@sis-cc/dotstatsuite-visions 7.12.1 → 7.12.2
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/es/DataHeader/DataHeader.js +23 -35
- package/es/theme.js +1 -1
- package/lib/DataHeader/DataHeader.js +23 -35
- package/lib/theme.js +1 -1
- package/package.json +1 -1
|
@@ -61,9 +61,12 @@ var useStyles = makeStyles(function (theme) {
|
|
|
61
61
|
}
|
|
62
62
|
}),
|
|
63
63
|
disclaimer: _extends({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
padding: theme.spacing(0.5),
|
|
65
|
+
fontSize: function fontSize(_ref4) {
|
|
66
|
+
var isWidthLess = _ref4.isWidthLess;
|
|
67
|
+
return R.cond([[R.always(isWidthLess(T4_BREAKPOINTS.xs3)), R.always(12)], [R.always(isWidthLess(T4_BREAKPOINTS.sm)), R.always(13)]])(14);
|
|
68
|
+
},
|
|
69
|
+
lineHeight: 1.5
|
|
67
70
|
}, R.pathOr({}, ['mixins', 'dataHeader', 'disclaimer'], theme)),
|
|
68
71
|
infoIcon: {
|
|
69
72
|
height: '0.8em',
|
|
@@ -104,19 +107,19 @@ var useStyles = makeStyles(function (theme) {
|
|
|
104
107
|
};
|
|
105
108
|
});
|
|
106
109
|
|
|
107
|
-
var DataHeader = function DataHeader(
|
|
110
|
+
var DataHeader = function DataHeader(_ref5) {
|
|
108
111
|
var _cx;
|
|
109
112
|
|
|
110
|
-
var children =
|
|
111
|
-
title =
|
|
112
|
-
|
|
113
|
-
subtitle =
|
|
114
|
-
uprs =
|
|
115
|
-
disclaimer =
|
|
116
|
-
sideProps =
|
|
117
|
-
SideIcon =
|
|
118
|
-
|
|
119
|
-
isSticky =
|
|
113
|
+
var children = _ref5.children,
|
|
114
|
+
title = _ref5.title,
|
|
115
|
+
_ref5$subtitle = _ref5.subtitle,
|
|
116
|
+
subtitle = _ref5$subtitle === undefined ? [] : _ref5$subtitle,
|
|
117
|
+
uprs = _ref5.uprs,
|
|
118
|
+
disclaimer = _ref5.disclaimer,
|
|
119
|
+
sideProps = _ref5.sideProps,
|
|
120
|
+
SideIcon = _ref5.SideIcon,
|
|
121
|
+
_ref5$isSticky = _ref5.isSticky,
|
|
122
|
+
isSticky = _ref5$isSticky === undefined ? false : _ref5$isSticky;
|
|
120
123
|
|
|
121
124
|
var target = React.useRef(null);
|
|
122
125
|
|
|
@@ -151,27 +154,7 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
151
154
|
{ className: classes.sideIconContainer },
|
|
152
155
|
React.createElement(SideIcon, { sideProps: sideProps })
|
|
153
156
|
),
|
|
154
|
-
React.createElement(Flags, { classes: classes, content: R.propOr([], 'flags', title) })
|
|
155
|
-
disclaimer && React.createElement(
|
|
156
|
-
Tooltip,
|
|
157
|
-
{
|
|
158
|
-
className: cx(classes.title, classes.disclaimer),
|
|
159
|
-
title: disclaimer,
|
|
160
|
-
tabIndex: 0,
|
|
161
|
-
'data-testid': 'data-header-disclaimer',
|
|
162
|
-
variant: 'warning',
|
|
163
|
-
'aria-hidden': false,
|
|
164
|
-
placement: 'bottom',
|
|
165
|
-
PopperProps: {
|
|
166
|
-
modifiers: {
|
|
167
|
-
flip: {
|
|
168
|
-
behavior: ['bottom', 'top', 'left', 'right']
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
React.createElement(WarningIcon, { pathBackgroundColor: warningColor, pathColor: warningTextColor })
|
|
174
|
-
)
|
|
157
|
+
React.createElement(Flags, { classes: classes, content: R.propOr([], 'flags', title) })
|
|
175
158
|
),
|
|
176
159
|
isWidthUp(T4_BREAKPOINTS.xs3) && subtitle && R.not(R.isEmpty(subtitle)) && React.createElement(
|
|
177
160
|
'div',
|
|
@@ -200,6 +183,11 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
200
183
|
{ className: classes.subtitle },
|
|
201
184
|
React.createElement(Title, { header: uprs.header }),
|
|
202
185
|
uprs.label
|
|
186
|
+
),
|
|
187
|
+
isWidthUp(T4_BREAKPOINTS.xs3) && disclaimer && React.createElement(
|
|
188
|
+
Typography,
|
|
189
|
+
{ 'data-testid': 'data-header-disclaimer', className: classes.disclaimer },
|
|
190
|
+
disclaimer
|
|
203
191
|
)
|
|
204
192
|
),
|
|
205
193
|
React.createElement(
|
package/es/theme.js
CHANGED
|
@@ -255,7 +255,7 @@ export var sisccTheme = function sisccTheme(_ref) {
|
|
|
255
255
|
color: '#494444'
|
|
256
256
|
},
|
|
257
257
|
disclaimer: {
|
|
258
|
-
|
|
258
|
+
backgroundColor: outerPalette.highlight1 || innerPalette.highlight1
|
|
259
259
|
},
|
|
260
260
|
subtitle: {
|
|
261
261
|
color: '#494444',
|
|
@@ -101,9 +101,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
101
101
|
}
|
|
102
102
|
}),
|
|
103
103
|
disclaimer: _extends({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
padding: theme.spacing(0.5),
|
|
105
|
+
fontSize: function fontSize(_ref4) {
|
|
106
|
+
var isWidthLess = _ref4.isWidthLess;
|
|
107
|
+
return R.cond([[R.always(isWidthLess(_theme.T4_BREAKPOINTS.xs3)), R.always(12)], [R.always(isWidthLess(_theme.T4_BREAKPOINTS.sm)), R.always(13)]])(14);
|
|
108
|
+
},
|
|
109
|
+
lineHeight: 1.5
|
|
107
110
|
}, R.pathOr({}, ['mixins', 'dataHeader', 'disclaimer'], theme)),
|
|
108
111
|
infoIcon: {
|
|
109
112
|
height: '0.8em',
|
|
@@ -144,19 +147,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
|
144
147
|
};
|
|
145
148
|
});
|
|
146
149
|
|
|
147
|
-
var DataHeader = function DataHeader(
|
|
150
|
+
var DataHeader = function DataHeader(_ref5) {
|
|
148
151
|
var _cx;
|
|
149
152
|
|
|
150
|
-
var children =
|
|
151
|
-
title =
|
|
152
|
-
|
|
153
|
-
subtitle =
|
|
154
|
-
uprs =
|
|
155
|
-
disclaimer =
|
|
156
|
-
sideProps =
|
|
157
|
-
SideIcon =
|
|
158
|
-
|
|
159
|
-
isSticky =
|
|
153
|
+
var children = _ref5.children,
|
|
154
|
+
title = _ref5.title,
|
|
155
|
+
_ref5$subtitle = _ref5.subtitle,
|
|
156
|
+
subtitle = _ref5$subtitle === undefined ? [] : _ref5$subtitle,
|
|
157
|
+
uprs = _ref5.uprs,
|
|
158
|
+
disclaimer = _ref5.disclaimer,
|
|
159
|
+
sideProps = _ref5.sideProps,
|
|
160
|
+
SideIcon = _ref5.SideIcon,
|
|
161
|
+
_ref5$isSticky = _ref5.isSticky,
|
|
162
|
+
isSticky = _ref5$isSticky === undefined ? false : _ref5$isSticky;
|
|
160
163
|
|
|
161
164
|
var target = _react2.default.useRef(null);
|
|
162
165
|
|
|
@@ -191,27 +194,7 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
191
194
|
{ className: classes.sideIconContainer },
|
|
192
195
|
_react2.default.createElement(SideIcon, { sideProps: sideProps })
|
|
193
196
|
),
|
|
194
|
-
_react2.default.createElement(_Flags2.default, { classes: classes, content: R.propOr([], 'flags', title) })
|
|
195
|
-
disclaimer && _react2.default.createElement(
|
|
196
|
-
_.Tooltip,
|
|
197
|
-
{
|
|
198
|
-
className: (0, _classnames2.default)(classes.title, classes.disclaimer),
|
|
199
|
-
title: disclaimer,
|
|
200
|
-
tabIndex: 0,
|
|
201
|
-
'data-testid': 'data-header-disclaimer',
|
|
202
|
-
variant: 'warning',
|
|
203
|
-
'aria-hidden': false,
|
|
204
|
-
placement: 'bottom',
|
|
205
|
-
PopperProps: {
|
|
206
|
-
modifiers: {
|
|
207
|
-
flip: {
|
|
208
|
-
behavior: ['bottom', 'top', 'left', 'right']
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
_react2.default.createElement(_.Warning, { pathBackgroundColor: warningColor, pathColor: warningTextColor })
|
|
214
|
-
)
|
|
197
|
+
_react2.default.createElement(_Flags2.default, { classes: classes, content: R.propOr([], 'flags', title) })
|
|
215
198
|
),
|
|
216
199
|
isWidthUp(_theme.T4_BREAKPOINTS.xs3) && subtitle && R.not(R.isEmpty(subtitle)) && _react2.default.createElement(
|
|
217
200
|
'div',
|
|
@@ -240,6 +223,11 @@ var DataHeader = function DataHeader(_ref4) {
|
|
|
240
223
|
{ className: classes.subtitle },
|
|
241
224
|
_react2.default.createElement(_Title2.default, { header: uprs.header }),
|
|
242
225
|
uprs.label
|
|
226
|
+
),
|
|
227
|
+
isWidthUp(_theme.T4_BREAKPOINTS.xs3) && disclaimer && _react2.default.createElement(
|
|
228
|
+
_Typography2.default,
|
|
229
|
+
{ 'data-testid': 'data-header-disclaimer', className: classes.disclaimer },
|
|
230
|
+
disclaimer
|
|
243
231
|
)
|
|
244
232
|
),
|
|
245
233
|
_react2.default.createElement(
|
package/lib/theme.js
CHANGED
|
@@ -258,7 +258,7 @@ var sisccTheme = exports.sisccTheme = function sisccTheme(_ref) {
|
|
|
258
258
|
color: '#494444'
|
|
259
259
|
},
|
|
260
260
|
disclaimer: {
|
|
261
|
-
|
|
261
|
+
backgroundColor: outerPalette.highlight1 || innerPalette.highlight1
|
|
262
262
|
},
|
|
263
263
|
subtitle: {
|
|
264
264
|
color: '#494444',
|