@transferwise/components 45.2.0 → 45.4.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.
Files changed (70) hide show
  1. package/build/es/no-polyfill/accordion/Accordion.story.js +1 -0
  2. package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -1
  3. package/build/es/no-polyfill/avatar/Avatar.js +1 -1
  4. package/build/es/no-polyfill/avatar/Avatar.story.js +1 -1
  5. package/build/es/no-polyfill/avatar/colors/avatarColorTestCases.json +402 -0
  6. package/build/es/no-polyfill/avatar/colors/colors.js +10 -0
  7. package/build/es/no-polyfill/avatar/colors/index.js +1 -0
  8. package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  9. package/build/es/no-polyfill/button/Button.story.js +1 -0
  10. package/build/es/no-polyfill/checkbox/Checkbox.story.js +1 -0
  11. package/build/es/no-polyfill/common/bottomSheet/BottomSheet.story.js +2 -0
  12. package/build/es/no-polyfill/dateInput/DateInput.story.js +1 -0
  13. package/build/es/no-polyfill/info/Info.story.js +1 -0
  14. package/build/es/no-polyfill/modal/Modal.story.js +2 -1
  15. package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
  16. package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +8 -0
  17. package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/index.js +1 -0
  18. package/build/es/no-polyfill/phoneNumberInput/utils/index.js +1 -1
  19. package/build/es/no-polyfill/select/option/Option.js +1 -1
  20. package/build/es/no-polyfill/tooltip/Tooltip.story.js +1 -1
  21. package/build/es/polyfill/accordion/Accordion.story.js +1 -0
  22. package/build/es/polyfill/actionButton/ActionButton.story.js +1 -1
  23. package/build/es/polyfill/avatar/Avatar.js +1 -1
  24. package/build/es/polyfill/avatar/Avatar.story.js +1 -1
  25. package/build/es/polyfill/avatar/colors/avatarColorTestCases.json +402 -0
  26. package/build/es/polyfill/avatar/colors/colors.js +10 -0
  27. package/build/es/polyfill/avatar/colors/index.js +1 -0
  28. package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
  29. package/build/es/polyfill/button/Button.story.js +1 -0
  30. package/build/es/polyfill/checkbox/Checkbox.story.js +1 -0
  31. package/build/es/polyfill/common/bottomSheet/BottomSheet.story.js +2 -0
  32. package/build/es/polyfill/dateInput/DateInput.story.js +1 -0
  33. package/build/es/polyfill/info/Info.story.js +1 -0
  34. package/build/es/polyfill/modal/Modal.story.js +2 -1
  35. package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
  36. package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +8 -0
  37. package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/index.js +1 -0
  38. package/build/es/polyfill/phoneNumberInput/utils/index.js +1 -1
  39. package/build/es/polyfill/select/option/Option.js +1 -1
  40. package/build/es/polyfill/tooltip/Tooltip.story.js +1 -1
  41. package/build/main.css +1 -1
  42. package/build/styles/avatar/Avatar.css +1 -1
  43. package/build/styles/main.css +1 -1
  44. package/build/styles/snackbar/Snackbar.css +1 -1
  45. package/build/types/accordion/Accordion.story.d.ts +46 -0
  46. package/build/types/avatar/Avatar.d.ts +18 -22
  47. package/build/types/avatar/Avatar.story.d.ts +2 -31
  48. package/build/types/avatar/colors/colors.d.ts +3 -0
  49. package/build/types/avatar/colors/index.d.ts +1 -0
  50. package/build/types/avatar/index.d.ts +2 -2
  51. package/build/types/avatarWrapper/AvatarWrapper.d.ts +1 -0
  52. package/build/types/avatarWrapper/AvatarWrapper.story.d.ts +4 -1
  53. package/build/types/button/Button.story.d.ts +4586 -0
  54. package/build/types/checkbox/Checkbox.story.d.ts +54 -0
  55. package/build/types/common/bottomSheet/BottomSheet.story.d.ts +29 -0
  56. package/build/types/dateInput/DateInput.story.d.ts +71 -0
  57. package/build/types/info/Info.story.d.ts +39 -0
  58. package/build/types/modal/Modal.story.d.ts +20 -3
  59. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +4 -0
  60. package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts +1 -0
  61. package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts +1 -0
  62. package/build/types/phoneNumberInput/utils/index.d.ts +1 -0
  63. package/build/types/test-utils/VariantDecorator.d.ts +18 -0
  64. package/build/types/test-utils/story-config.d.ts +18 -50
  65. package/build/types/tooltip/Tooltip.story.d.ts +17 -9
  66. package/build/umd/no-polyfill/main.js +1 -1
  67. package/build/umd/polyfill/main.js +1 -1
  68. package/package.json +4 -3
  69. package/scripts/generate-type-declarations.js +0 -1
  70. package/build/types/test-utils/GlobalsDecorator.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "45.2.0",
3
+ "version": "45.4.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/umd/polyfill/main.js",
@@ -44,13 +44,14 @@
44
44
  "@storybook/react-webpack5": "^7.0.6",
45
45
  "@storybook/testing-library": "^0.1.0",
46
46
  "@storybook/theming": "^7.0.0",
47
+ "@storybook/types": "^7.0.6",
47
48
  "@testing-library/dom": "^7.21.4",
48
49
  "@testing-library/jest-dom": "^5.14.1",
49
50
  "@testing-library/react": "^12.0.0",
50
51
  "@testing-library/react-hooks": "^8.0.0",
51
52
  "@testing-library/user-event": "^13.2.1",
52
53
  "@transferwise/icons": "^3.2.3",
53
- "@transferwise/neptune-tokens": "^8.4.0",
54
+ "@transferwise/neptune-tokens": "^8.5.0",
54
55
  "@types/jest": "^26.0.20",
55
56
  "@types/jscodeshift": "^0.11.0",
56
57
  "@types/node": "^14.14.31",
@@ -128,7 +129,7 @@
128
129
  "access": "public"
129
130
  },
130
131
  "scripts": {
131
- "dev": "npm-run-all --parallel dev:*",
132
+ "dev": "npm-run-all --parallel dev:* sb:dev",
132
133
  "dev:watch-less": "gulp watchLess --dest=src",
133
134
  "dev:translations": "npx npm-watch",
134
135
  "sb:dev": "storybook dev -p 3001",
@@ -31,7 +31,6 @@ const jsFiles = [
31
31
  { filename: 'Upload', folder: 'upload' },
32
32
  { filename: 'DefinitionList', folder: 'definitionList' },
33
33
  { filename: 'DynamicFieldDefinitionList', folder: 'dynamicFieldDefinitionList' },
34
- { filename: 'Avatar', folder: 'avatar' },
35
34
  { filename: 'CircularButton', folder: 'circularButton' },
36
35
  { filename: 'Info', folder: 'info' },
37
36
  { filename: 'RadioGroup', folder: 'radioGroup' },
@@ -1,4 +0,0 @@
1
- import { Decorator } from '@storybook/react';
2
- export declare const DarkThemeDecorator: Decorator;
3
- export declare const RtlDecorator: Decorator;
4
- export declare const GlobalsDecorator: Decorator;