@transferwise/components 0.0.0-experimental-1319ded → 0.0.0-experimental-fcfae09

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.
@@ -1,7 +1,7 @@
1
1
  import classNames from 'classnames';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
- import React__default, { forwardRef, cloneElement, useState, useRef, useMemo, useEffect, useCallback, useLayoutEffect, createContext, useContext, Component, PureComponent, createRef, Children, Fragment as Fragment$1 } from 'react';
4
+ import React__default, { forwardRef, cloneElement, useState, useRef, useMemo, useEffect, useCallback, useLayoutEffect, createContext, useContext, createElement, Component, PureComponent, createRef, Children, Fragment as Fragment$1 } from 'react';
5
5
  import { useId } from '@radix-ui/react-id';
6
6
  import { ChevronUp, CrossCircleFill, Cross, NavigateAway, Check, Info as Info$1, Alert as Alert$2, ClockBorderless, CheckCircle, InfoCircle, Warning, CrossCircle, Clock, Briefcase, Person, ArrowLeft, QuestionMarkCircle, AlertCircle, Search, ChevronDown, CheckCircleFill, ArrowRight, Download, ClockFill, Upload as Upload$2, Document, Plus, PlusCircle, AlertCircleFill } from '@transferwise/icons';
7
7
  import { defineMessages, useIntl, injectIntl, IntlProvider } from 'react-intl';
@@ -1778,8 +1778,9 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1778
1778
  }, reference) => {
1779
1779
  /** @type {RefObject<HTMLDivElement>} */
1780
1780
  const localReference = useRef(null);
1781
- return /*#__PURE__*/jsx(CSSTransition, {
1781
+ return /*#__PURE__*/createElement(CSSTransition, {
1782
1782
  ...rest,
1783
+ key: `sliding-panel--open-${position}`,
1783
1784
  nodeRef: localReference,
1784
1785
  in: open
1785
1786
  // Wait for animation to finish before unmount.
@@ -1792,13 +1793,12 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
1792
1793
  'sliding-panel--fixed': slidingPanelPositionFixed
1793
1794
  }, 'sliding-panel'),
1794
1795
  appear: true,
1795
- unmountOnExit: true,
1796
- children: /*#__PURE__*/jsx("div", {
1797
- ref: mergeRefs([reference, localReference]),
1798
- className: classNames('sliding-panel', `sliding-panel--open-${position}`, className),
1799
- children: children
1800
- })
1801
- });
1796
+ unmountOnExit: true
1797
+ }, /*#__PURE__*/jsx("div", {
1798
+ ref: mergeRefs([reference, localReference]),
1799
+ className: classNames('sliding-panel', `sliding-panel--open-${position}`, className),
1800
+ children: children
1801
+ }));
1802
1802
  });
1803
1803
  SlidingPanel.propTypes = {
1804
1804
  children: PropTypes.node,
@@ -4239,7 +4239,6 @@ class DateLookup extends PureComponent {
4239
4239
  return /*#__PURE__*/jsxs("div", {
4240
4240
  // eslint-disable-line jsx-a11y/no-static-element-interactions
4241
4241
  ref: this.element,
4242
- id: this.props.id,
4243
4242
  "aria-labelledby": ariaLabelledBy,
4244
4243
  className: "input-group",
4245
4244
  onKeyDown: this.handleKeyDown,
@@ -4264,7 +4263,6 @@ class DateLookup extends PureComponent {
4264
4263
  }
4265
4264
  }
4266
4265
  DateLookup.propTypes = {
4267
- id: PropTypes.string,
4268
4266
  value: PropTypes.instanceOf(Date),
4269
4267
  min: PropTypes.instanceOf(Date),
4270
4268
  max: PropTypes.instanceOf(Date),
@@ -4280,7 +4278,6 @@ DateLookup.propTypes = {
4280
4278
  clearable: PropTypes.bool
4281
4279
  };
4282
4280
  DateLookup.defaultProps = {
4283
- id: null,
4284
4281
  value: null,
4285
4282
  min: null,
4286
4283
  max: null,