@transferwise/components 0.0.0-experimental-db52174 → 0.0.0-experimental-5aa07c7

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.
Files changed (34) hide show
  1. package/build/index.esm.js +2 -4
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +2 -4
  4. package/build/index.js.map +1 -1
  5. package/build/main.css +4 -0
  6. package/build/styles/instructionsList/InstructionsList.css +4 -0
  7. package/build/styles/main.css +4 -0
  8. package/build/types/accordion/Accordion.d.ts +3 -7
  9. package/build/types/accordion/Accordion.d.ts.map +1 -1
  10. package/build/types/accordion/index.d.ts +1 -0
  11. package/build/types/accordion/index.d.ts.map +1 -1
  12. package/build/types/body/Body.d.ts +1 -1
  13. package/build/types/dateLookup/DateLookup.d.ts +0 -1
  14. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  15. package/build/types/index.d.ts +2 -1
  16. package/build/types/index.d.ts.map +1 -1
  17. package/build/types/radioGroup/RadioGroup.d.ts +2 -1
  18. package/build/types/radioGroup/RadioGroup.d.ts.map +1 -1
  19. package/build/types/radioGroup/index.d.ts +1 -1
  20. package/build/types/radioGroup/index.d.ts.map +1 -1
  21. package/build/types/typeahead/Typeahead.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/src/accordion/Accordion.tsx +6 -7
  24. package/src/accordion/index.ts +1 -0
  25. package/src/dateLookup/DateLookup.js +0 -2
  26. package/src/dateLookup/DateLookup.story.js +0 -3
  27. package/src/dateLookup/DateLookup.view.spec.js +0 -5
  28. package/src/index.ts +2 -1
  29. package/src/instructionsList/InstructionsList.css +4 -0
  30. package/src/instructionsList/InstructionsList.less +5 -0
  31. package/src/instructionsList/InstructionsList.tsx +3 -3
  32. package/src/main.css +4 -0
  33. package/src/radioGroup/RadioGroup.tsx +6 -1
  34. package/src/radioGroup/index.ts +1 -1
@@ -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),
@@ -7371,7 +7369,7 @@ const InstructionsList = ({
7371
7369
  }) : /*#__PURE__*/jsxs(Fragment, {
7372
7370
  children: [dontsInstructions, dosInstructions]
7373
7371
  });
7374
- return /*#__PURE__*/jsx("div", {
7372
+ return /*#__PURE__*/jsx("ul", {
7375
7373
  className: "tw-instructions",
7376
7374
  children: orderedInstructions
7377
7375
  });
@@ -7381,7 +7379,7 @@ function Instruction({
7381
7379
  type
7382
7380
  }) {
7383
7381
  const isInstructionNode = typeof item === 'object' && item !== null && 'content' in item && 'aria-label' in item;
7384
- return /*#__PURE__*/jsxs("div", {
7382
+ return /*#__PURE__*/jsxs("li", {
7385
7383
  className: "instruction",
7386
7384
  "aria-label": isInstructionNode ? item['aria-label'] : undefined,
7387
7385
  children: [type === 'do' ? /*#__PURE__*/jsx(CheckCircleFill, {