@telefonica/mistica 12.5.0 → 12.6.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/dist/dialog.d.ts CHANGED
@@ -1,34 +1,49 @@
1
1
  import * as React from 'react';
2
+ import { ButtonLink } from './button';
3
+ import type { RendersNullableElement } from './utils/types';
2
4
  interface BaseDialogProps {
3
5
  className?: string;
4
6
  title?: string;
5
7
  icon?: React.ReactElement;
6
8
  message: string;
7
- cancelText?: string;
8
9
  acceptText?: string;
9
- onCancel?: () => void;
10
10
  onAccept?: () => void;
11
- showCancel?: boolean;
12
11
  destructive?: boolean;
13
12
  }
14
13
  interface AlertProps extends BaseDialogProps {
14
+ subtitle?: undefined;
15
15
  extra?: undefined;
16
16
  forceWeb?: undefined;
17
+ showClose?: boolean;
18
+ showCancel?: never;
19
+ cancelText?: never;
20
+ onCancel?: never;
17
21
  }
18
22
  interface ConfirmProps extends BaseDialogProps {
23
+ subtitle?: undefined;
19
24
  extra?: undefined;
20
25
  forceWeb?: undefined;
26
+ showClose?: boolean;
27
+ showCancel?: boolean;
28
+ cancelText?: string;
29
+ onCancel?: () => void;
21
30
  }
22
31
  interface ExtendedDialogProps extends BaseDialogProps {
23
- extra: React.ReactNode;
32
+ subtitle?: string;
33
+ extra?: React.ReactNode;
24
34
  forceWeb?: boolean;
35
+ showClose?: boolean;
36
+ showCancel?: boolean;
37
+ cancelText?: string;
38
+ onCancel?: () => void;
39
+ link?: RendersNullableElement<typeof ButtonLink>;
25
40
  }
26
41
  declare type DialogProps = AlertProps | ConfirmProps | ExtendedDialogProps;
27
42
  declare type DialogRootProps = {
28
43
  children?: React.ReactNode;
29
44
  };
30
45
  declare type DialogRootState = {
31
- dialogProps: BaseDialogProps | null;
46
+ dialogProps: DialogProps | null;
32
47
  isClosing: boolean;
33
48
  instanceNumber: number;
34
49
  };
package/dist/dialog.js CHANGED
@@ -21,6 +21,7 @@ var _keyCodes = require("./utils/key-codes");
21
21
  var _box = _interopRequireDefault(require("./box"));
22
22
  var _platform = require("./utils/platform");
23
23
  var _modalContextProvider = require("./modal-context-provider");
24
+ var _css = require("./utils/css");
24
25
  var _stack = _interopRequireDefault(require("./stack"));
25
26
  function _interopRequireDefault(obj) {
26
27
  return obj && obj.__esModule ? obj : {
@@ -265,7 +266,10 @@ var useDialogStyles = (0, _jss).createUseStyles(function(theme) {
265
266
  dialogContainer: {
266
267
  width: "calc(100vw - 48px)",
267
268
  margin: "auto",
268
- padding: "48px 24px 24px"
269
+ padding: function padding(param) {
270
+ var isDialog = param.isDialog;
271
+ return isDialog ? "40px 24px 24px" : 24;
272
+ }
269
273
  }
270
274
  });
271
275
  });
@@ -273,9 +277,8 @@ var Dialog = function Dialog(props) {
273
277
  var ref = (0, _hooks).useTheme(), texts = ref.texts, colors = ref.colors;
274
278
  var className = props.className, title = props.title, message = props.message, icon = props.icon, extra = props.extra, _cancelText = props.cancelText, cancelText = _cancelText === void 0 ? texts.dialogCancelButton : _cancelText, _acceptText = props.acceptText, acceptText = _acceptText === void 0 ? texts.dialogAcceptButton : _acceptText, handleCancel = props.onCancel, handleAccept = props.onAccept, _showCancel = props.showCancel, showCancel = _showCancel === void 0 ? false : _showCancel, _destructive = props.destructive, destructive = _destructive === void 0 ? false : _destructive;
275
279
  var isTabletOrSmaller = (0, _hooks).useScreenSize().isTabletOrSmaller;
276
- var withSecondaryButton = showCancel && !!handleCancel;
277
280
  var classes = useDialogStyles({
278
- withSecondaryButton: withSecondaryButton
281
+ isDialog: !!props.forceWeb
279
282
  });
280
283
  var mainButtonProps = {
281
284
  onPress: handleAccept ? handleAccept : function() {},
@@ -289,15 +292,29 @@ var Dialog = function Dialog(props) {
289
292
  children: [
290
293
  icon && /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
291
294
  paddingBottom: 24,
292
- children: icon
295
+ children: /*#__PURE__*/ React.cloneElement(icon, {
296
+ size: (0, _css).pxToRem(isTabletOrSmaller ? 40 : 64)
297
+ })
293
298
  }),
294
299
  title && /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
295
300
  paddingBottom: 16,
296
- children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text5, {
301
+ children: props.forceWeb ? /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text5, {
302
+ as: "h2",
303
+ children: title
304
+ }) : /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text4, {
305
+ regular: true,
297
306
  as: "h2",
298
307
  children: title
299
308
  })
300
309
  }),
310
+ props.subtitle && /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
311
+ paddingBottom: 16,
312
+ children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text4, {
313
+ regular: true,
314
+ as: "h2",
315
+ children: props.subtitle
316
+ })
317
+ }),
301
318
  /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
302
319
  className: classes.dialogContent,
303
320
  children: /*#__PURE__*/ (0, _jsxRuntime).jsxs(_stack.default, {
@@ -305,7 +322,7 @@ var Dialog = function Dialog(props) {
305
322
  children: [
306
323
  /*#__PURE__*/ (0, _jsxRuntime).jsx(_text.Text3, {
307
324
  color: colors.textSecondary,
308
- light: true,
325
+ regular: true,
309
326
  children: message
310
327
  }),
311
328
  extra
@@ -315,6 +332,7 @@ var Dialog = function Dialog(props) {
315
332
  /*#__PURE__*/ (0, _jsxRuntime).jsx(_box.default, {
316
333
  paddingTop: isTabletOrSmaller ? 24 : 32,
317
334
  children: /*#__PURE__*/ (0, _jsxRuntime).jsxs(_buttonLayout.default, {
335
+ link: props.forceWeb ? props.link : undefined,
318
336
  children: [
319
337
  destructive ? /*#__PURE__*/ (0, _jsxRuntime // eslint-disable-line jsx-a11y/tabindex-no-positive
320
338
  ).jsx(_button.ButtonDanger, _objectSpread({
@@ -428,10 +446,13 @@ var ModalDialog = function ModalDialog(props) {
428
446
  ]);
429
447
  var handleClose = props.showCancel ? handleCancel : handleAccept;
430
448
  var handleOverlayPress = React.useCallback(function(event) {
431
- handleClose();
432
- event.stopPropagation();
449
+ if (props.showClose) {
450
+ handleClose();
451
+ event.stopPropagation();
452
+ }
433
453
  }, [
434
- handleClose
454
+ handleClose,
455
+ props.showClose
435
456
  ]);
436
457
  var handleKeyDown = React.useCallback(function(event) {
437
458
  if (event.keyCode === _keyCodes.ESC) {
@@ -505,7 +526,7 @@ var ModalDialog = function ModalDialog(props) {
505
526
  closed: isClosing
506
527
  }),
507
528
  children: [
508
- /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
529
+ props.showClose && /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
509
530
  className: classes.modalCloseButtonContainer,
510
531
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_iconButton.default, {
511
532
  onPress: handleClose,
@@ -643,29 +664,33 @@ var DialogRoot = /*#__PURE__*/ function(_Component) {
643
664
  }(React.Component);
644
665
  exports.default = DialogRoot;
645
666
  var showDialog = function showDialog(param) {
646
- var showCancel = param.showCancel, forceWeb = param.forceWeb;
667
+ var showCancel = param.showCancel, showClose = param.showClose, forceWeb = param.forceWeb;
647
668
  return function(props) {
648
669
  if (!dialogInstance) {
649
670
  throw Error("Tried to show a dialog but the DialogRoot component was not mounted (mount <ThemeContextProvider>)");
650
671
  }
651
672
  dialogInstance.show(_objectSpread({
652
673
  showCancel: showCancel,
674
+ showClose: showClose,
653
675
  forceWeb: forceWeb
654
676
  }, props));
655
677
  };
656
678
  };
657
679
  var alert = showDialog({
658
680
  showCancel: false,
659
- forceWeb: false
681
+ forceWeb: false,
682
+ showClose: false
660
683
  });
661
684
  exports.alert = alert;
662
685
  var confirm = showDialog({
663
686
  showCancel: true,
664
- forceWeb: false
687
+ forceWeb: false,
688
+ showClose: false
665
689
  });
666
690
  exports.confirm = confirm;
667
691
  var dialog = showDialog({
668
692
  showCancel: false,
669
- forceWeb: true
693
+ forceWeb: true,
694
+ showClose: true
670
695
  });
671
696
  exports.dialog = dialog;
@@ -1,32 +1,49 @@
1
1
  // @flow
2
2
 
3
3
  import * as React from "react";
4
+ import { ButtonLink } from "./button";
5
+ import type { RendersNullableElement } from "./utils/types";
4
6
  declare type BaseDialogProps = {
5
7
  className?: string,
6
8
  title?: string,
7
9
  icon?: React.Element<any>,
8
10
  message: string,
9
- cancelText?: string,
10
11
  acceptText?: string,
11
- onCancel?: () => void,
12
12
  onAccept?: () => void,
13
- showCancel?: boolean,
14
13
  destructive?: boolean,
15
14
  };
16
- declare type AlertProps = { ...$Exact<BaseDialogProps> };
17
- declare type ConfirmProps = { ...$Exact<BaseDialogProps> };
15
+ declare type AlertProps = {
16
+ ...$Exact<BaseDialogProps>,
17
+ showClose?: boolean,
18
+ showCancel?: empty,
19
+ cancelText?: empty,
20
+ onCancel?: empty,
21
+ };
22
+ declare type ConfirmProps = {
23
+ ...$Exact<BaseDialogProps>,
24
+ showClose?: boolean,
25
+ showCancel?: boolean,
26
+ cancelText?: string,
27
+ onCancel?: () => void,
28
+ };
18
29
  declare type ExtendedDialogProps = {
19
30
  ...$Exact<BaseDialogProps>,
20
31
 
21
- extra: React.Node,
32
+ subtitle?: string,
33
+ extra?: React.Node,
22
34
  forceWeb?: boolean,
35
+ showClose?: boolean,
36
+ showCancel?: boolean,
37
+ cancelText?: string,
38
+ onCancel?: () => void,
39
+ link?: RendersNullableElement<typeof ButtonLink>,
23
40
  };
24
41
  declare type DialogProps = AlertProps | ConfirmProps | ExtendedDialogProps;
25
42
  declare type DialogRootProps = {
26
43
  children?: React.Node,
27
44
  };
28
45
  declare type DialogRootState = {
29
- dialogProps: BaseDialogProps | null,
46
+ dialogProps: DialogProps | null,
30
47
  isClosing: boolean,
31
48
  instanceNumber: number,
32
49
  };
package/dist/index.d.ts CHANGED
@@ -91,6 +91,7 @@ export { SkeletonCircle, SkeletonRow, SkeletonLine, SkeletonRectangle, SkeletonT
91
91
  export { default as Circle } from './circle';
92
92
  export { useTheme, useScreenSize, useElementDimensions, useAriaId, useWindowSize, useWindowHeight, useWindowWidth, useIsInViewport, } from './hooks';
93
93
  export type { ThemeConfig, ColorScheme, EventFormat } from './theme';
94
+ export { pxToRem } from './utils/css';
94
95
  export { TrackingConfig, useTrackingConfig } from './utils/analytics';
95
96
  export { useDocumentVisibility } from './utils/document-visibility';
96
97
  export { ThemeVariant, useIsInverseVariant } from './theme-variant-context';
package/dist/index.js CHANGED
@@ -854,6 +854,12 @@ Object.defineProperty(exports, "useIsInViewport", {
854
854
  return _hooks.useIsInViewport;
855
855
  }
856
856
  });
857
+ Object.defineProperty(exports, "pxToRem", {
858
+ enumerable: true,
859
+ get: function() {
860
+ return _css.pxToRem;
861
+ }
862
+ });
857
863
  Object.defineProperty(exports, "TrackingConfig", {
858
864
  enumerable: true,
859
865
  get: function() {
@@ -10868,6 +10874,7 @@ var _iconSuccessVivo = _interopRequireDefault(require("./icons/icon-success-vivo
10868
10874
  var _skeletons = require("./skeletons");
10869
10875
  var _circle = _interopRequireDefault(require("./circle"));
10870
10876
  var _hooks = require("./hooks");
10877
+ var _css = require("./utils/css");
10871
10878
  var _analytics = require("./utils/analytics");
10872
10879
  var _documentVisibility = require("./utils/document-visibility");
10873
10880
  var _themeVariantContext = require("./theme-variant-context");
@@ -154,6 +154,7 @@ declare export {
154
154
  useIsInViewport,
155
155
  } from "./hooks";
156
156
  export type { ThemeConfig, ColorScheme, EventFormat } from "./theme";
157
+ declare export { pxToRem } from "./utils/css";
157
158
  declare export { TrackingConfig, useTrackingConfig } from "./utils/analytics";
158
159
  declare export { useDocumentVisibility } from "./utils/document-visibility";
159
160
  declare export {
@@ -387,8 +387,6 @@ var BurgerMenuIcon = function BurgerMenuIcon(param) {
387
387
  };
388
388
  var NAVBAR_ZINDEX = 25;
389
389
  var BURGER_ZINDEX = 26;
390
- var DESKTOP_NAVBAR_HEIGHT = 80;
391
- var MOBILE_NAVBAR_HEIGHT = 56;
392
390
  var BURGER_MENU_ANIMATION_DURATION_MS = 300;
393
391
  var useStyles = (0, _jss).createUseStyles(function(theme) {
394
392
  var shadowAlpha = theme.isDarkMode ? 1 : 0.2;
@@ -415,7 +413,7 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
415
413
  var isInverse = param.isInverse;
416
414
  return isInverse ? theme.colors.navigationBarBackground : theme.colors.background;
417
415
  },
418
- height: DESKTOP_NAVBAR_HEIGHT,
416
+ height: theme.dimensions.headerDesktopHeight,
419
417
  padding: "16px 0",
420
418
  borderBottomStyle: "solid",
421
419
  borderBottomWidth: function borderBottomWidth(param) {
@@ -432,11 +430,11 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
432
430
  var isMenuOpen = param.isMenuOpen, isInverse = param.isInverse;
433
431
  return isMenuOpen || isInverse && !theme.isDarkMode ? "transparent" : theme.colors.divider;
434
432
  },
435
- height: MOBILE_NAVBAR_HEIGHT,
433
+ height: theme.dimensions.headerMobileHeight,
436
434
  padding: "8px 0"
437
435
  }),
438
436
  section: _defineProperty({
439
- height: DESKTOP_NAVBAR_HEIGHT,
437
+ height: theme.dimensions.headerDesktopHeight,
440
438
  display: "flex",
441
439
  alignItems: "center",
442
440
  padding: "0 8px",
@@ -457,17 +455,17 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
457
455
  }
458
456
  },
459
457
  spacer: _defineProperty({
460
- height: DESKTOP_NAVBAR_HEIGHT
458
+ height: theme.dimensions.headerDesktopHeight
461
459
  }, theme.mq.tabletOrSmaller, {
462
- height: MOBILE_NAVBAR_HEIGHT
460
+ height: theme.dimensions.headerMobileHeight
463
461
  }),
464
462
  burgerMenu: {
465
463
  zIndex: BURGER_ZINDEX,
466
464
  position: "fixed",
467
- top: MOBILE_NAVBAR_HEIGHT,
465
+ top: theme.dimensions.headerMobileHeight,
468
466
  left: 0,
469
467
  right: 0,
470
- height: "calc(100vh - ".concat(MOBILE_NAVBAR_HEIGHT, "px)"),
468
+ height: "calc(100vh - ".concat(theme.dimensions.headerMobileHeight, "px)"),
471
469
  overflowY: "auto",
472
470
  background: theme.colors.background,
473
471
  boxShadow: function boxShadow(param) {
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.PACKAGE_VERSION = void 0;
6
- var PACKAGE_VERSION = "12.5.0";
6
+ var PACKAGE_VERSION = "12.6.0";
7
7
  exports.PACKAGE_VERSION = PACKAGE_VERSION;
@@ -302,7 +302,10 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
302
302
  position: "absolute"
303
303
  },
304
304
  prefix: (_obj2 = {
305
- alignSelf: "baseline",
305
+ alignSelf: function alignSelf(param) {
306
+ var prefixAlignSelf = param.prefixAlignSelf;
307
+ return prefixAlignSelf;
308
+ },
306
309
  paddingTop: function paddingTop(param) {
307
310
  var hasLabel = param.hasLabel;
308
311
  return hasLabel ? 28 : 16;
@@ -347,7 +350,7 @@ var TextFieldBase = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
347
350
  "fullWidth"
348
351
  ]);
349
352
  var id = (0, _hooks).useAriaId(idProp);
350
- var _$ref3 = _slicedToArray(React.useState((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) || (value === null || value === void 0 ? void 0 : value.length) ? "filled" : "default"), 2), inputState = _$ref3[0], setInputState = _$ref3[1];
353
+ var _$ref4 = _slicedToArray(React.useState((defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.length) || (value === null || value === void 0 ? void 0 : value.length) ? "filled" : "default"), 2), inputState = _$ref4[0], setInputState = _$ref4[1];
351
354
  var colors = (0, _hooks).useTheme().colors;
352
355
  var isTabletOrSmaller = (0, _hooks).useScreenSize().isTabletOrSmaller;
353
356
  var _$ref1;
@@ -356,6 +359,18 @@ var TextFieldBase = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
356
359
  // this shrinkLabel override is a workaround because I was unable to find a way to hide date
357
360
  // and date-time native placeholders when the input is not required
358
361
  var shrinkLabel = shrinkLabelProp || (rest.type === "date" || rest.type === "datetime-local" || rest.type === "month") && !rest.required;
362
+ var _$ref3 = _slicedToArray(React.useState("baseline"), 2), prefixAlignSelf = _$ref3[0], setPrefixAlignSelf = _$ref3[1];
363
+ (0, _hooks).useIsomorphicLayoutEffect(function() {
364
+ /**
365
+ * Safari check to workaround https://jira.tid.es/browse/WEB-648
366
+ * For some reason it is super hard to align the prefix text with the input text
367
+ * and get the same result in chrome and safari
368
+ *
369
+ * Using an effect to set the style to avoid problems with SSR
370
+ */ if ((0, _platform).isSafari()) {
371
+ setPrefixAlignSelf("initial");
372
+ }
373
+ }, []);
359
374
  var classes = useStyles({
360
375
  inputState: inputState,
361
376
  error: error,
@@ -366,7 +381,8 @@ var TextFieldBase = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
366
381
  prefix: prefix,
367
382
  multiline: multiline,
368
383
  type: rest.type,
369
- disabled: rest.disabled
384
+ disabled: rest.disabled,
385
+ prefixAlignSelf: prefixAlignSelf
370
386
  });
371
387
  React.useEffect(function() {
372
388
  if (inputState !== "focused" && (value === null || value === void 0 ? void 0 : value.length)) {
@@ -534,10 +550,10 @@ var TextFieldBaseAutosuggest = /*#__PURE__*/ React.forwardRef(function(_param, r
534
550
  "getSuggestions",
535
551
  "id"
536
552
  ]);
537
- var _$ref5 = _slicedToArray(React.useState([]), 2), suggestions = _$ref5[0], setSuggestions = _$ref5[1];
553
+ var _$ref6 = _slicedToArray(React.useState([]), 2), suggestions = _$ref6[0], setSuggestions = _$ref6[1];
538
554
  var inputRef = React.useRef(null);
539
555
  var classes = useSuggestionsStyles();
540
- var _$ref4 = (0, _hooks).useTheme(), platformOverrides = _$ref4.platformOverrides, texts = _$ref4.texts;
556
+ var _$ref5 = (0, _hooks).useTheme(), platformOverrides = _$ref5.platformOverrides, texts = _$ref5.texts;
541
557
  var id = (0, _hooks).useAriaId(idProp);
542
558
  var autoSuggestId = (0, _hooks).useAriaId();
543
559
  if (getSuggestions && (props.value === undefined || props.defaultValue !== undefined)) {
package/dist/text-link.js CHANGED
@@ -101,7 +101,7 @@ var useStyles = (0, _jss).createUseStyles(function(param) {
101
101
  textLink: (_obj = {
102
102
  width: "auto",
103
103
  lineHeight: "inherit",
104
- display: "inline-block",
104
+ display: "inline",
105
105
  color: colors.textLink,
106
106
  wordBreak: "break-word",
107
107
  cursor: "pointer"
@@ -155,6 +155,7 @@ var TextLink = function TextLink(_param) {
155
155
  var _trackingEvent;
156
156
  var _obj;
157
157
  return /*#__PURE__*/ (0, _jsxRuntime).jsx(_touchable.default, _objectSpread({}, props, {
158
+ as: props.onPress ? "a" : undefined,
158
159
  trackingEvent: (_trackingEvent = props.trackingEvent) !== null && _trackingEvent !== void 0 ? _trackingEvent : props.trackEvent ? createDefaultTrackingEvent() : undefined,
159
160
  disabled: disabled || formStatus === "sending",
160
161
  className: (0, _classnames).default(classes.textLink, className, (_obj = {}, _defineProperty(_obj, classes.small, small), _defineProperty(_obj, classes.inverse, isInverse), _obj)),
package/dist/theme.d.ts CHANGED
@@ -40,6 +40,7 @@ declare const TEXTS_ES: {
40
40
  export declare const getTexts: (locale: Locale) => typeof TEXTS_ES;
41
41
  export declare const dimensions: {
42
42
  headerMobileHeight: number;
43
+ headerDesktopHeight: number;
43
44
  };
44
45
  export declare const mediaQueriesConfig: {
45
46
  tabletMinWidth: number;
@@ -124,6 +125,7 @@ export declare type Theme = {
124
125
  };
125
126
  dimensions: {
126
127
  headerMobileHeight: number;
128
+ headerDesktopHeight: number;
127
129
  };
128
130
  mq: MediaQueries;
129
131
  colors: Colors;
package/dist/theme.js CHANGED
@@ -232,7 +232,8 @@ var getTexts = function getTexts(locale) {
232
232
  };
233
233
  exports.getTexts = getTexts;
234
234
  var dimensions = {
235
- headerMobileHeight: 56
235
+ headerMobileHeight: 56,
236
+ headerDesktopHeight: 80
236
237
  };
237
238
  exports.dimensions = dimensions;
238
239
  var mediaQueriesConfig = {
@@ -42,6 +42,7 @@ declare var TEXTS_ES: {
42
42
  declare export var getTexts: (locale: Locale) => typeof TEXTS_ES;
43
43
  declare export var dimensions: {
44
44
  headerMobileHeight: number,
45
+ headerDesktopHeight: number,
45
46
  };
46
47
  declare export var mediaQueriesConfig: {
47
48
  tabletMinWidth: number,
@@ -128,6 +129,7 @@ export type Theme = {
128
129
  },
129
130
  dimensions: {
130
131
  headerMobileHeight: number,
132
+ headerDesktopHeight: number,
131
133
  },
132
134
  mq: MediaQueries,
133
135
  colors: Colors,
package/dist/tooltip.d.ts CHANGED
@@ -2,12 +2,14 @@ import * as React from 'react';
2
2
  declare type Position = 'top' | 'bottom' | 'left' | 'right';
3
3
  declare type Props = {
4
4
  children?: React.ReactNode;
5
+ extra?: React.ReactNode;
5
6
  description?: string;
6
7
  target: React.ReactNode;
7
8
  title?: string;
8
9
  position?: Position;
9
10
  width?: number;
10
11
  targetLabel: string;
12
+ delay?: boolean;
11
13
  };
12
14
  declare const Tooltip: React.FC<Props>;
13
15
  export default Tooltip;