@financial-times/x-topic-search 0.0.10 → 6.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.
Files changed (333) hide show
  1. package/__tests__/x-topic-search.test.jsx +76 -75
  2. package/bower.json +4 -3
  3. package/bower_components/fontfaceobserver/package.json +57 -0
  4. package/bower_components/fticons/.bower.json +5 -5
  5. package/bower_components/fticons/.github/CODEOWNERS +1 -1
  6. package/bower_components/fticons/.github/ISSUE_TEMPLATE.md +1 -1
  7. package/bower_components/fticons/.github/PULL_REQUEST_TEMPLATE.md +0 -1
  8. package/bower_components/fticons/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  9. package/bower_components/fticons/.github/workflows/apply-labels.yml +13 -0
  10. package/bower_components/fticons/.github/workflows/auto-approve.yml +23 -0
  11. package/bower_components/fticons/.github/workflows/automatic-tag-and-release.yml +21 -0
  12. package/bower_components/fticons/.github/workflows/publish.yml +26 -0
  13. package/bower_components/fticons/.github/workflows/sync-repo-labels.yml +12 -0
  14. package/bower_components/fticons/README.md +2 -2
  15. package/bower_components/fticons/contributing.md +1 -3
  16. package/bower_components/fticons/imageset.json +183 -60
  17. package/bower_components/fticons/origami.json +4 -3
  18. package/bower_components/fticons/package-lock.json +5481 -0
  19. package/bower_components/fticons/package.json +15 -1
  20. package/bower_components/fticons/svg/data.svg +1 -0
  21. package/bower_components/fticons/svg/edit.svg +1 -1
  22. package/bower_components/fticons/svg/label-outline.svg +1 -0
  23. package/bower_components/fticons/svg/label.svg +1 -0
  24. package/bower_components/fticons/svg/mute-notifications.svg +1 -0
  25. package/bower_components/fticons/svg/restore.svg +1 -0
  26. package/bower_components/fticons/svg/scroll-to.svg +1 -0
  27. package/bower_components/fticons/svg/skip-backward-30.svg +1 -0
  28. package/bower_components/fticons/svg/skip-forward-30.svg +1 -0
  29. package/bower_components/mathsass/package.json +58 -0
  30. package/bower_components/o-assets/.bower.json +5 -5
  31. package/bower_components/o-assets/.eslintrc.js +3 -0
  32. package/bower_components/o-assets/.github/CODEOWNERS +1 -1
  33. package/bower_components/o-assets/.github/ISSUE_TEMPLATE.md +1 -1
  34. package/bower_components/o-assets/.github/dependabot.yml +21 -0
  35. package/bower_components/o-assets/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +16 -0
  36. package/bower_components/o-assets/.github/workflows/apply-labels.yml +14 -0
  37. package/bower_components/o-assets/.github/workflows/auto-approve.yml +12 -0
  38. package/bower_components/o-assets/.github/workflows/automatic-tag-and-release.yml +21 -0
  39. package/bower_components/o-assets/.github/workflows/automerge.yml +40 -0
  40. package/bower_components/o-assets/.github/workflows/release-origami-component.yml +29 -0
  41. package/bower_components/o-assets/.github/workflows/sync-repo-labels.yml +13 -0
  42. package/bower_components/o-assets/.github/workflows/test-origami-component.yml +22 -0
  43. package/bower_components/o-assets/.remarkrc.js +1 -0
  44. package/bower_components/o-assets/.stylelintrc.js +3 -0
  45. package/bower_components/o-assets/README.md +50 -43
  46. package/bower_components/o-assets/origami.json +4 -6
  47. package/bower_components/o-brand/.bower.json +5 -5
  48. package/bower_components/o-brand/README.md +74 -81
  49. package/bower_components/o-brand/origami.json +1 -4
  50. package/bower_components/o-brand/package-lock.json +1810 -0
  51. package/bower_components/o-brand/package.json +10 -0
  52. package/bower_components/o-brand/scss/_mixins.scss +6 -7
  53. package/bower_components/o-brand/scss/_private-functions.scss +2 -2
  54. package/bower_components/o-brand/scss/_variables.scss +7 -1
  55. package/bower_components/o-colors/.bower.json +6 -6
  56. package/bower_components/o-colors/.eslintrc.js +3 -0
  57. package/bower_components/o-colors/.github/CODEOWNERS +1 -1
  58. package/bower_components/o-colors/.github/ISSUE_TEMPLATE.md +1 -1
  59. package/bower_components/o-colors/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  60. package/bower_components/o-colors/.github/workflows/apply-labels.yml +13 -0
  61. package/bower_components/o-colors/.github/workflows/auto-approve.yml +23 -0
  62. package/bower_components/o-colors/.github/workflows/automatic-tag-and-release.yml +21 -0
  63. package/bower_components/o-colors/.github/workflows/percy.yml +35 -0
  64. package/bower_components/o-colors/.github/workflows/release-origami-component.yml +29 -0
  65. package/bower_components/o-colors/.github/workflows/sync-repo-labels.yml +12 -0
  66. package/bower_components/o-colors/.github/workflows/test-origami-component.yml +22 -0
  67. package/bower_components/o-colors/.remarkrc.js +1 -0
  68. package/bower_components/o-colors/.stylelintrc.js +3 -0
  69. package/bower_components/o-colors/MIGRATION.md +373 -0
  70. package/bower_components/o-colors/README.md +253 -150
  71. package/bower_components/o-colors/app.json +12 -0
  72. package/bower_components/o-colors/bower.json +1 -1
  73. package/bower_components/o-colors/demos/src/b2c-palette.mustache +9 -9
  74. package/bower_components/o-colors/demos/src/{experimental-palette.mustache → brand-palette.mustache} +3 -4
  75. package/bower_components/o-colors/demos/src/color-mixer/color-mixer.js +61 -0
  76. package/bower_components/o-colors/demos/src/{sandboxes/colors-mix.scss → color-mixer/color-mixer.scss} +38 -47
  77. package/bower_components/o-colors/demos/src/color-mixer/index.mustache +88 -0
  78. package/bower_components/o-colors/demos/src/color-mixer/select-options.mustache +11 -0
  79. package/bower_components/o-colors/demos/src/contrast-checker/contrast-checker.js +88 -0
  80. package/bower_components/o-colors/demos/src/contrast-checker/contrast-checker.scss +223 -0
  81. package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/background.mustache +28 -0
  82. package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/foreground.mustache +28 -0
  83. package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/mixer.mustache +78 -0
  84. package/bower_components/o-colors/demos/src/contrast-checker/index.mustache +51 -0
  85. package/bower_components/o-colors/demos/src/demo.js +6 -5
  86. package/bower_components/o-colors/demos/src/demo.scss +19 -17
  87. package/bower_components/o-colors/demos/src/pa11y.mustache +6 -6
  88. package/bower_components/o-colors/demos/src/palettes/internal-palette.json +8 -7
  89. package/bower_components/o-colors/demos/src/palettes/master-palette.json +14 -6
  90. package/bower_components/o-colors/demos/src/palettes/whitelabel-palette.json +6 -4
  91. package/bower_components/o-colors/demos/src/partner-content-palette.mustache +10 -0
  92. package/bower_components/o-colors/demos/src/primary-palette.mustache +1 -1
  93. package/bower_components/o-colors/demos/src/secondary-palette.mustache +1 -1
  94. package/bower_components/o-colors/demos/src/shared/colors-mix.js +39 -0
  95. package/bower_components/o-colors/demos/src/{sandboxes → shared}/contrast-ratio.js +17 -17
  96. package/bower_components/o-colors/demos/src/tertiary-palette.mustache +1 -1
  97. package/bower_components/o-colors/demos/src/tones-mixes.mustache +26 -0
  98. package/bower_components/o-colors/main.scss +81 -28
  99. package/bower_components/o-colors/origami.json +93 -50
  100. package/bower_components/o-colors/package.json +18 -0
  101. package/bower_components/o-colors/src/scss/_functions.scss +407 -130
  102. package/bower_components/o-colors/src/scss/_mixins.scss +188 -104
  103. package/bower_components/o-colors/src/scss/_palette.scss +88 -320
  104. package/bower_components/o-colors/src/scss/_use-cases.scss +93 -71
  105. package/bower_components/o-colors/src/scss/_variables.scss +58 -16
  106. package/bower_components/o-editorial-typography/.bower.json +31 -0
  107. package/bower_components/o-editorial-typography/README.md +213 -0
  108. package/bower_components/o-editorial-typography/bower.json +20 -0
  109. package/bower_components/o-editorial-typography/demos/src/body.mustache +1 -0
  110. package/bower_components/o-editorial-typography/demos/src/byline.mustache +4 -0
  111. package/bower_components/o-editorial-typography/demos/src/caption.mustache +6 -0
  112. package/bower_components/o-editorial-typography/demos/src/demo.scss +8 -0
  113. package/bower_components/o-editorial-typography/demos/src/headings.mustache +5 -0
  114. package/bower_components/o-editorial-typography/demos/src/headline.mustache +1 -0
  115. package/bower_components/o-editorial-typography/demos/src/ordered-list.mustache +5 -0
  116. package/bower_components/o-editorial-typography/demos/src/pa11y.mustache +33 -0
  117. package/bower_components/o-editorial-typography/demos/src/standfirst.mustache +3 -0
  118. package/bower_components/o-editorial-typography/demos/src/topic-tag.mustache +1 -0
  119. package/bower_components/o-editorial-typography/demos/src/unordered-list.mustache +5 -0
  120. package/bower_components/o-editorial-typography/main.scss +143 -0
  121. package/bower_components/o-editorial-typography/origami.json +86 -0
  122. package/bower_components/o-editorial-typography/package-lock.json +1743 -0
  123. package/bower_components/o-editorial-typography/package.json +8 -0
  124. package/bower_components/o-editorial-typography/src/scss/_brand.scss +12 -0
  125. package/bower_components/o-editorial-typography/src/scss/_functions.scss +0 -0
  126. package/bower_components/o-editorial-typography/src/scss/_mixins.scss +242 -0
  127. package/bower_components/o-editorial-typography/src/scss/_variables.scss +9 -0
  128. package/bower_components/o-fonts/.bower.json +6 -6
  129. package/bower_components/o-fonts/.eslintrc.js +3 -0
  130. package/bower_components/o-fonts/.github/CODEOWNERS +1 -1
  131. package/bower_components/o-fonts/.github/ISSUE_TEMPLATE.md +1 -1
  132. package/bower_components/o-fonts/.github/dependabot.yml +21 -0
  133. package/bower_components/o-fonts/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  134. package/bower_components/o-fonts/.github/workflows/apply-labels.yml +13 -0
  135. package/bower_components/o-fonts/.github/workflows/auto-approve.yml +23 -0
  136. package/bower_components/o-fonts/.github/workflows/automatic-tag-and-release.yml +21 -0
  137. package/bower_components/o-fonts/.github/workflows/release-origami-component.yml +29 -0
  138. package/bower_components/o-fonts/.github/workflows/sync-repo-labels.yml +12 -0
  139. package/bower_components/o-fonts/.github/workflows/test-origami-component.yml +22 -0
  140. package/bower_components/o-fonts/.stylelintrc.js +3 -0
  141. package/bower_components/o-fonts/MIGRATION.md +32 -0
  142. package/bower_components/o-fonts/README.md +125 -46
  143. package/bower_components/o-fonts/app.json +12 -0
  144. package/bower_components/o-fonts/bower.json +1 -1
  145. package/bower_components/o-fonts/demos/src/demo.scss +2 -1
  146. package/bower_components/o-fonts/main.scss +49 -9
  147. package/bower_components/o-fonts/origami.json +3 -5
  148. package/bower_components/o-fonts/package-lock.json +1870 -0
  149. package/bower_components/o-fonts/package.json +14 -0
  150. package/bower_components/o-fonts/src/scss/_functions.scss +103 -41
  151. package/bower_components/o-fonts/src/scss/_mixins.scss +128 -91
  152. package/bower_components/o-fonts/src/scss/_variables.scss +108 -32
  153. package/bower_components/o-fonts/test/scss/_functions.test.scss +72 -35
  154. package/bower_components/o-fonts/test/scss/_mixins.test.scss +198 -24
  155. package/bower_components/o-grid/.bower.json +5 -5
  156. package/bower_components/o-grid/.eslintrc.js +3 -0
  157. package/bower_components/o-grid/.github/CODEOWNERS +1 -1
  158. package/bower_components/o-grid/.github/ISSUE_TEMPLATE.md +1 -1
  159. package/bower_components/o-grid/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  160. package/bower_components/o-grid/.github/workflows/apply-labels.yml +13 -0
  161. package/bower_components/o-grid/.github/workflows/auto-approve.yml +23 -0
  162. package/bower_components/o-grid/.github/workflows/automatic-tag-and-release.yml +21 -0
  163. package/bower_components/o-grid/.github/workflows/percy.yml +35 -0
  164. package/bower_components/o-grid/.github/workflows/release-origami-component.yml +29 -0
  165. package/bower_components/o-grid/.github/workflows/sync-repo-labels.yml +12 -0
  166. package/bower_components/o-grid/.github/workflows/test-origami-component.yml +22 -0
  167. package/bower_components/o-grid/.stylelintrc.js +3 -0
  168. package/bower_components/o-grid/MIGRATION.md +49 -0
  169. package/bower_components/o-grid/README.md +112 -119
  170. package/bower_components/o-grid/app.json +12 -0
  171. package/bower_components/o-grid/bookmarklet/bookmarklet.js +2 -2
  172. package/bower_components/o-grid/demos/src/configurations.json +1 -2
  173. package/bower_components/o-grid/demos/src/js/layout-change-events.js +1 -1
  174. package/bower_components/o-grid/demos/src/js/style-switcher.js +11 -12
  175. package/bower_components/o-grid/demos/src/scss/_demos.scss +0 -8
  176. package/bower_components/o-grid/main.js +38 -77
  177. package/bower_components/o-grid/main.scss +124 -62
  178. package/bower_components/o-grid/origami.json +3 -12
  179. package/bower_components/o-grid/package-lock.json +1848 -0
  180. package/bower_components/o-grid/package.json +13 -1
  181. package/bower_components/o-grid/src/scss/_functions.scss +90 -0
  182. package/bower_components/o-grid/src/scss/{_main.scss → _mixins.scss} +177 -384
  183. package/bower_components/o-grid/src/scss/_variables.scss +0 -49
  184. package/bower_components/o-grid/test/scss/_base-grid.test.scss +135 -163
  185. package/bower_components/o-grid/test/scss/_fixed-grid.test.scss +28 -36
  186. package/bower_components/o-grid/test/scss/_fluid-grid.test.scss +88 -123
  187. package/bower_components/o-icons/.bower.json +7 -7
  188. package/bower_components/o-icons/.eslintrc.js +3 -0
  189. package/bower_components/o-icons/.github/CODEOWNERS +1 -1
  190. package/bower_components/o-icons/.github/ISSUE_TEMPLATE.md +1 -1
  191. package/bower_components/o-icons/.github/dependabot.yml +21 -0
  192. package/bower_components/o-icons/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  193. package/bower_components/o-icons/.github/workflows/apply-labels.yml +13 -0
  194. package/bower_components/o-icons/.github/workflows/auto-approve.yml +23 -0
  195. package/bower_components/o-icons/.github/workflows/automatic-tag-and-release.yml +21 -0
  196. package/bower_components/o-icons/.github/workflows/percy.yml +35 -0
  197. package/bower_components/o-icons/.github/workflows/release-origami-component.yml +29 -0
  198. package/bower_components/o-icons/.github/workflows/sync-repo-labels.yml +12 -0
  199. package/bower_components/o-icons/.github/workflows/test-origami-component.yml +22 -0
  200. package/bower_components/o-icons/.stylelintrc.js +3 -0
  201. package/bower_components/o-icons/MIGRATION.md +82 -0
  202. package/bower_components/o-icons/README.md +80 -134
  203. package/bower_components/o-icons/app.json +12 -0
  204. package/bower_components/o-icons/bower.json +2 -2
  205. package/bower_components/o-icons/demos/src/custom-icons.mustache +14 -0
  206. package/bower_components/o-icons/demos/src/data.json +30 -0
  207. package/bower_components/o-icons/demos/src/demo.scss +13 -33
  208. package/bower_components/o-icons/demos/src/icons.mustache +8 -0
  209. package/bower_components/o-icons/main.scss +21 -8
  210. package/bower_components/o-icons/origami.json +22 -11
  211. package/bower_components/o-icons/package-lock.json +1832 -0
  212. package/bower_components/o-icons/package.json +14 -0
  213. package/bower_components/o-icons/scripts/build-icon-list.js +6 -2
  214. package/bower_components/o-icons/{scss → src/scss}/_icon-list.scss +10 -0
  215. package/bower_components/o-icons/src/scss/_mixins.scss +71 -0
  216. package/bower_components/o-icons/src/scss/_variables.scss +8 -0
  217. package/bower_components/o-icons/test/scss/_mixins.test.scss +94 -0
  218. package/bower_components/o-icons/test/scss/index.test.scss +5 -0
  219. package/bower_components/o-normalise/.bower.json +28 -0
  220. package/bower_components/o-normalise/MIGRATION.md +35 -0
  221. package/bower_components/o-normalise/README.md +80 -0
  222. package/bower_components/o-normalise/bower.json +17 -0
  223. package/bower_components/o-normalise/demos/src/demo.js +9 -0
  224. package/bower_components/o-normalise/demos/src/demo.scss +30 -0
  225. package/bower_components/o-normalise/demos/src/focus.mustache +58 -0
  226. package/bower_components/o-normalise/demos/src/pa11y.mustache +3 -0
  227. package/bower_components/o-normalise/main.scss +78 -0
  228. package/bower_components/o-normalise/origami.json +39 -0
  229. package/bower_components/o-normalise/package.json +14 -0
  230. package/bower_components/o-normalise/src/scss/_mixins.scss +332 -0
  231. package/bower_components/o-normalise/src/scss/_variables.scss +5 -0
  232. package/bower_components/o-spacing/.bower.json +25 -0
  233. package/bower_components/o-spacing/MIGRATION.md +7 -0
  234. package/bower_components/o-spacing/README.md +146 -0
  235. package/bower_components/o-spacing/bower.json +14 -0
  236. package/bower_components/o-spacing/demos/src/demo.scss +100 -0
  237. package/bower_components/o-spacing/demos/src/named-spaces.mustache +51 -0
  238. package/bower_components/o-spacing/demos/src/vertical-margin-utilities.mustache +10 -0
  239. package/bower_components/o-spacing/main.scss +45 -0
  240. package/bower_components/o-spacing/origami.json +39 -0
  241. package/bower_components/o-spacing/package-lock.json +1753 -0
  242. package/bower_components/o-spacing/package.json +10 -0
  243. package/bower_components/o-spacing/src/scss/_functions.scss +26 -0
  244. package/bower_components/o-spacing/src/scss/_variables.scss +36 -0
  245. package/bower_components/o-typography/.bower.json +11 -9
  246. package/bower_components/o-typography/.eslintrc.js +3 -0
  247. package/bower_components/o-typography/.github/CODEOWNERS +1 -1
  248. package/bower_components/o-typography/.github/ISSUE_TEMPLATE.md +1 -1
  249. package/bower_components/o-typography/.github/dependabot.yml +21 -0
  250. package/bower_components/o-typography/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
  251. package/bower_components/o-typography/.github/workflows/apply-labels.yml +13 -0
  252. package/bower_components/o-typography/.github/workflows/auto-approve.yml +23 -0
  253. package/bower_components/o-typography/.github/workflows/automatic-tag-and-release.yml +21 -0
  254. package/bower_components/o-typography/.github/workflows/percy.yml +35 -0
  255. package/bower_components/o-typography/.github/workflows/release-origami-component.yml +29 -0
  256. package/bower_components/o-typography/.github/workflows/sync-repo-labels.yml +12 -0
  257. package/bower_components/o-typography/.github/workflows/test-origami-component.yml +22 -0
  258. package/bower_components/o-typography/.remarkrc.js +1 -0
  259. package/bower_components/o-typography/.stylelintrc.js +3 -0
  260. package/bower_components/o-typography/MIGRATION.md +512 -0
  261. package/bower_components/o-typography/README.md +258 -292
  262. package/bower_components/o-typography/app.json +12 -0
  263. package/bower_components/o-typography/bower.json +6 -4
  264. package/bower_components/o-typography/demos/src/body.mustache +1 -1
  265. package/bower_components/o-typography/demos/src/demo.js +4 -4
  266. package/bower_components/o-typography/demos/src/demo.scss +12 -9
  267. package/bower_components/o-typography/demos/src/headings.mustache +1 -10
  268. package/bower_components/o-typography/demos/src/line-width.mustache +3 -3
  269. package/bower_components/o-typography/demos/src/links.mustache +5 -0
  270. package/bower_components/o-typography/demos/src/lists.mustache +42 -9
  271. package/bower_components/o-typography/demos/src/wrapper.mustache +2 -8
  272. package/bower_components/o-typography/main.js +1 -1
  273. package/bower_components/o-typography/main.scss +88 -178
  274. package/bower_components/o-typography/origami.json +9 -67
  275. package/bower_components/o-typography/package.json +16 -5
  276. package/bower_components/o-typography/src/js/typography.js +18 -11
  277. package/bower_components/o-typography/src/scss/_brand.scss +170 -190
  278. package/bower_components/o-typography/src/scss/_functions.scss +52 -52
  279. package/bower_components/o-typography/src/scss/_mixins.scss +248 -71
  280. package/bower_components/o-typography/src/scss/_variables.scss +25 -28
  281. package/bower_components/o-typography/src/scss/use-cases/_general.scss +277 -191
  282. package/bower_components/o-typography/src/scss/use-cases/_wrapper.scss +49 -84
  283. package/bower_components/o-typography/test/origami.test.js +5 -5
  284. package/bower_components/o-typography/test/scss/_functions.test.scss +7 -0
  285. package/bower_components/o-typography/test/scss/_mixins.test.scss +640 -188
  286. package/bower_components/o-typography/test/scss/index.test.scss +1 -0
  287. package/bower_components/o-typography/test/typography.test.js +14 -39
  288. package/bower_components/sass-mq/README.md +22 -15
  289. package/bower_components/sass-mq/_mq.scss +28 -12
  290. package/bower_components/sass-mq/package.json +61 -0
  291. package/dist/TopicSearch.cjs.js +177 -208
  292. package/dist/TopicSearch.css +226 -137
  293. package/dist/TopicSearch.es5.js +310 -288
  294. package/dist/TopicSearch.esm.js +177 -208
  295. package/package.json +4 -4
  296. package/readme.md +9 -8
  297. package/storybook/index.jsx +52 -0
  298. package/bower_components/fticons/.circleci/config.yml +0 -59
  299. package/bower_components/o-assets/.circleci/config.yml +0 -36
  300. package/bower_components/o-colors/.circleci/config.yml +0 -36
  301. package/bower_components/o-colors/demos/src/sandboxes/colors-mix.js +0 -103
  302. package/bower_components/o-colors/demos/src/sandboxes/colors-mix.mustache +0 -135
  303. package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.js +0 -41
  304. package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.mustache +0 -76
  305. package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.scss +0 -61
  306. package/bower_components/o-colors/demos/src/tints.mustache +0 -15
  307. package/bower_components/o-colors/designguidelines.md +0 -3
  308. package/bower_components/o-colors/migration-guide.md +0 -66
  309. package/bower_components/o-colors/src/scss/tools/_a11y.scss +0 -55
  310. package/bower_components/o-colors/src/scss/tools/_color.scss +0 -95
  311. package/bower_components/o-colors/src/scss/tools/_error.scss +0 -9
  312. package/bower_components/o-fonts/.circleci/config.yml +0 -36
  313. package/bower_components/o-grid/.circleci/config.yml +0 -36
  314. package/bower_components/o-grid/demos/src/scss/ie8.scss +0 -8
  315. package/bower_components/o-icons/.circleci/config.yml +0 -36
  316. package/bower_components/o-icons/buildImageList.js +0 -21
  317. package/bower_components/o-icons/demos/src/test.mustache +0 -19
  318. package/bower_components/o-icons/designguidelines.md +0 -3
  319. package/bower_components/o-icons/scss/_mixins.scss +0 -86
  320. package/bower_components/o-icons/scss/_variables.scss +0 -25
  321. package/bower_components/o-typography/.circleci/config.yml +0 -36
  322. package/bower_components/o-typography/demos/src/article.mustache +0 -47
  323. package/bower_components/o-typography/demos/src/big-number.mustache +0 -1
  324. package/bower_components/o-typography/demos/src/blockquote.mustache +0 -4
  325. package/bower_components/o-typography/demos/src/product-headings.mustache +0 -9
  326. package/bower_components/o-typography/demos/src/read-next.mustache +0 -1
  327. package/bower_components/o-typography/migrating-v4-v5.md +0 -51
  328. package/bower_components/o-typography/src/scss/_deprecated.scss +0 -17
  329. package/bower_components/o-typography/src/scss/_type-mixins.scss +0 -152
  330. package/bower_components/o-typography/src/scss/use-cases/_article.scss +0 -63
  331. package/bower_components/o-typography/src/scss/use-cases/_asides.scss +0 -43
  332. package/bower_components/o-typography/src/scss/use-cases/_headings.scss +0 -86
  333. package/bower_components/o-typography/src/scss/use-cases/_product-headings.scss +0 -76
@@ -1,127 +1,128 @@
1
- const fetchMock = require('fetch-mock');
2
- const { h } = require('@financial-times/x-engine');
3
- const { mount } = require('@financial-times/x-test-utils/enzyme');
4
- const { TopicSearch } = require('../');
5
-
6
- const minSearchLength = 3;
7
- const maxSuggestions = 3;
8
- const apiUrl = 'api-url';
9
- const FOLLOWED_TOPIC_ID1 = 'Cat-House-id';
10
- const FOLLOWED_TOPIC_ID2 = 'Cat-Food-id';
11
- const UNFOLLOWED_TOPIC_ID1 = 'Cat-Toys-id';
1
+ const fetchMock = require('fetch-mock')
2
+ const { h } = require('@financial-times/x-engine')
3
+ const { mount } = require('@financial-times/x-test-utils/enzyme')
4
+ const { TopicSearch } = require('../')
5
+
6
+ const minSearchLength = 3
7
+ const maxSuggestions = 3
8
+ const apiUrl = 'api-url'
9
+ const FOLLOWED_TOPIC_ID1 = 'Cat-House-id'
10
+ const FOLLOWED_TOPIC_ID2 = 'Cat-Food-id'
11
+ const UNFOLLOWED_TOPIC_ID1 = 'Cat-Toys-id'
12
12
 
13
13
  describe('x-topic-search', () => {
14
- const buildSearchUrl = term => `${apiUrl}?count=${maxSuggestions}&partial=${term}`;
15
- const enterSearchTerm = searchTerm => {
16
- target.find('input').simulate('input', { target: { value: searchTerm }});
14
+ const buildSearchUrl = (term) => `${apiUrl}?count=${maxSuggestions}&partial=${term}`
15
+ const enterSearchTerm = (searchTerm) => {
16
+ target.find('input').simulate('input', { target: { value: searchTerm } })
17
17
 
18
- return new Promise(resolve => { setTimeout(resolve, 400); });
19
- };
20
- let target;
18
+ return new Promise((resolve) => {
19
+ setTimeout(resolve, 400)
20
+ })
21
+ }
22
+ let target
21
23
 
22
24
  beforeEach(() => {
23
25
  const props = {
24
26
  minSearchLength,
25
27
  maxSuggestions,
26
28
  apiUrl,
27
- followedTopicIds: [FOLLOWED_TOPIC_ID1, FOLLOWED_TOPIC_ID2],
28
- };
29
- target = mount(<TopicSearch {...props} />);
30
- });
29
+ followedTopicIds: [FOLLOWED_TOPIC_ID1, FOLLOWED_TOPIC_ID2]
30
+ }
31
+ target = mount(<TopicSearch {...props} />)
32
+ })
31
33
 
32
34
  afterEach(() => {
33
- fetchMock.reset();
34
- });
35
+ fetchMock.reset()
36
+ })
35
37
 
36
38
  describe('initial rendering', () => {
37
39
  it('should render with input box', () => {
38
- expect(target.find('input').exists()).toBe(true);
39
- });
40
+ expect(target.find('input').exists()).toBe(true)
41
+ })
40
42
 
41
43
  it('should not display result container', () => {
42
- expect(target.render().children('div')).toHaveLength(1);
43
- });
44
- });
44
+ expect(target.render().children('div')).toHaveLength(1)
45
+ })
46
+ })
45
47
 
46
48
  describe('when input receives focus', () => {
47
49
  it('selects the text in the input', () => {
48
- const selectMock = jest.fn();
49
- const inputBox = target.find('input');
50
+ const selectMock = jest.fn()
51
+ const inputBox = target.find('input')
50
52
 
51
- inputBox.simulate('blur');
52
- inputBox.simulate('focus', { target: { select: selectMock }});
53
+ inputBox.simulate('blur')
54
+ inputBox.simulate('focus', { target: { select: selectMock } })
53
55
 
54
- expect(selectMock).toHaveBeenCalledTimes(1);
55
- });
56
- });
56
+ expect(selectMock).toHaveBeenCalledTimes(1)
57
+ })
58
+ })
57
59
 
58
60
  describe('given inputted text is shorter than minSearchLength', () => {
59
- const apiUrlWithResults = buildSearchUrl('a');
60
-
61
- fetchMock.get(apiUrlWithResults, []);
61
+ const apiUrlWithResults = buildSearchUrl('a')
62
62
 
63
63
  beforeEach(() => {
64
- return enterSearchTerm('a');
65
- });
64
+ fetchMock.get(apiUrlWithResults, [])
65
+ return enterSearchTerm('a')
66
+ })
66
67
 
67
68
  it('does not make a request to the api or render any result', () => {
68
- expect(fetchMock.called(apiUrlWithResults)).toBe(false);
69
- expect(target.render().children('div')).toHaveLength(1);
70
- });
71
- });
69
+ expect(fetchMock.called(apiUrlWithResults)).toBe(false)
70
+ expect(target.render().children('div')).toHaveLength(1)
71
+ })
72
+ })
72
73
 
73
74
  describe('given searchTerm which has some topic suggestions to follow', () => {
74
- const apiUrlWithResults = buildSearchUrl('Cat');
75
+ const apiUrlWithResults = buildSearchUrl('Cat')
75
76
  const results = [
76
77
  { id: FOLLOWED_TOPIC_ID1, prefLabel: 'Cat House', url: 'Cat-House-url' },
77
78
  { id: FOLLOWED_TOPIC_ID2, prefLabel: 'Cat Food', url: 'Cat-Food-url' },
78
79
  { id: UNFOLLOWED_TOPIC_ID1, prefLabel: 'Cat Toys', url: 'Cat-Toys-url' }
79
- ];
80
-
81
- fetchMock.get(apiUrlWithResults, results);
80
+ ]
82
81
 
83
82
  beforeEach(() => {
84
- return enterSearchTerm('Cat');
85
- });
83
+ fetchMock.get(apiUrlWithResults, results)
84
+ return enterSearchTerm('Cat')
85
+ })
86
86
 
87
87
  it('requests the topic suggestions with count set to maxSuggestions', () => {
88
- expect(fetchMock.called(apiUrlWithResults)).toBe(true);
89
- });
88
+ expect(fetchMock.called(apiUrlWithResults)).toBe(true)
89
+ })
90
90
 
91
91
  it('renders no more than the max number of suggestions', () => {
92
- expect(target.render().children('div')).toHaveLength(2);
93
- expect(target.render().find('li')).toHaveLength(maxSuggestions);
94
- });
92
+ expect(target.render().children('div')).toHaveLength(2)
93
+ expect(target.render().find('li')).toHaveLength(maxSuggestions)
94
+ })
95
95
 
96
96
  it('renders links and follow buttons for each suggestion', () => {
97
- const suggestionsList = target.render().find('li');
97
+ const suggestionsList = target.render().find('li')
98
98
 
99
99
  results.forEach((topic, index) => {
100
- const suggestion = suggestionsList.eq(index);
101
-
102
- expect(suggestion.find('a').text()).toEqual(topic.prefLabel);
103
- expect(suggestion.find('a').attr('href')).toEqual(topic.url);
104
- expect(suggestion.find('button').text()).toEqual(topic.id === UNFOLLOWED_TOPIC_ID1 ? 'Add to myFT' : 'Added');
105
- });
100
+ const suggestion = suggestionsList.eq(index)
101
+
102
+ expect(suggestion.find('a').text()).toEqual(topic.prefLabel)
103
+ expect(suggestion.find('a').attr('href')).toEqual(topic.url)
104
+ expect(suggestion.find('button').text()).toEqual(
105
+ topic.id === UNFOLLOWED_TOPIC_ID1 ? 'Add to myFT' : 'Added'
106
+ )
107
+ })
106
108
  })
107
- });
109
+ })
108
110
 
109
111
  describe('given searchTerm which has no topic suggestions to follow', () => {
110
- const apiUrlNoResults = buildSearchUrl('Dog');
111
-
112
- fetchMock.get(apiUrlNoResults, []);
112
+ const apiUrlNoResults = buildSearchUrl('Dog')
113
113
 
114
114
  beforeEach(() => {
115
- return enterSearchTerm('Dog');
116
- });
115
+ fetchMock.get(apiUrlNoResults, [])
116
+ return enterSearchTerm('Dog')
117
+ })
117
118
 
118
119
  it('requests from the api and renders the no matching topics message', () => {
119
- expect(fetchMock.called(apiUrlNoResults)).toBe(true);
120
+ expect(fetchMock.called(apiUrlNoResults)).toBe(true)
120
121
 
121
- const resultContainer = target.render().children('div').eq(1);
122
+ const resultContainer = target.render().children('div').eq(1)
122
123
 
123
- expect(resultContainer).toHaveLength(1);
124
- expect(resultContainer.find('h2').text()).toMatch('No topics matching');
125
- });
126
- });
127
- });
124
+ expect(resultContainer).toHaveLength(1)
125
+ expect(resultContainer.find('h2').text()).toMatch('No topics matching')
126
+ })
127
+ })
128
+ })
package/bower.json CHANGED
@@ -3,8 +3,9 @@
3
3
  "main": "dist/TopicSearch.es5.js",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "o-icons": "^5.8.0",
7
- "o-typography": "^5.7.8",
8
- "o-colors": "^4.7.7"
6
+ "o-icons": "^6.3.0",
7
+ "o-typography": "^6.4.6",
8
+ "o-editorial-typography": "^1.2.1",
9
+ "o-colors": "^5.4.1"
9
10
  }
10
11
  }
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "fontfaceobserver",
3
+ "version": "2.1.0",
4
+ "description": "Detect if web fonts are available",
5
+ "directories": {
6
+ "test": "test"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/bramstein/fontfaceobserver.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/bramstein/fontfaceobserver/issues"
14
+ },
15
+ "homepage": "https://fontfaceobserver.com/",
16
+ "main": "fontfaceobserver.standalone.js",
17
+ "keywords": [
18
+ "fontloader",
19
+ "fonts",
20
+ "font",
21
+ "font-face",
22
+ "web font",
23
+ "font load",
24
+ "font events"
25
+ ],
26
+ "files": [
27
+ "fontfaceobserver.js",
28
+ "fontfaceobserver.standalone.js",
29
+ "src/*.js",
30
+ "externs.js"
31
+ ],
32
+ "author": "Bram Stein <b.l.stein@gmail.com> (http://www.bramstein.com/)",
33
+ "license": "BSD-3-Clause",
34
+ "dependencies": {},
35
+ "devDependencies": {
36
+ "closure-dom": "=0.2.6",
37
+ "extend": "^3.0.0",
38
+ "google-closure-compiler": "=20161024.0.0",
39
+ "grunt": "^1.0.3",
40
+ "grunt-contrib-clean": "^1.0.0",
41
+ "grunt-contrib-concat": "^1.0.1",
42
+ "grunt-contrib-jshint": "^1.0.0",
43
+ "grunt-exec": "~1.0.0",
44
+ "mocha": "^5.2.0",
45
+ "mocha-phantomjs-core": "^2.0.0",
46
+ "phantomjs-prebuilt": "^2.1.7",
47
+ "promis": "=1.1.4",
48
+ "sinon": "^1.17.4",
49
+ "unexpected": "^10.14.2"
50
+ },
51
+ "scripts": {
52
+ "preversion": "npm test",
53
+ "version": "grunt dist && git add fontfaceobserver.js && git add fontfaceobserver.standalone.js",
54
+ "postversion": "git push && git push --tags && rm -rf build && npm publish",
55
+ "test": "grunt test"
56
+ }
57
+ }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "fticons",
3
3
  "homepage": "https://github.com/Financial-Times/fticons",
4
- "version": "1.19.0",
5
- "_release": "1.19.0",
4
+ "version": "1.23.2",
5
+ "_release": "1.23.2",
6
6
  "_resolution": {
7
7
  "type": "version",
8
- "tag": "v1.19.0",
9
- "commit": "964ca01cb88f7c6a4066f907f21ef8ac2d441021"
8
+ "tag": "v1.23.2",
9
+ "commit": "580a76d5ba6c6718675990f17ac991b623668170"
10
10
  },
11
11
  "_source": "https://github.com/Financial-Times/fticons.git",
12
- "_target": "^1.15.1",
12
+ "_target": "^1.23.1",
13
13
  "_originalSource": "fticons"
14
14
  }
@@ -2,6 +2,6 @@
2
2
  # This file adds the owner as a reviewer for all pull requests made to this repository.
3
3
  # It references owners by source order - the last matching pattern takes the most precedence.
4
4
 
5
- # If you would like to be added as an owner, please get in touch with the Origami team at origami.support@ft.com or #ft-origami on Slack
5
+ # If you would like to be added as an owner, please get in touch with the Origami team at origami.support@ft.com or #origami-support on Slack
6
6
 
7
7
  * @Financial-Times/origami-core
@@ -6,7 +6,7 @@ title: Issue: [type] [short description]
6
6
  <!--
7
7
  Please make sure you've checked that your issue hasn't already been raised within this repository.
8
8
 
9
- If you need help with submitting an issue, please get in touch with the Origami Team at origami.support@ft.com or #ft-origami on Slack.
9
+ If you need help with submitting an issue, please get in touch with the Origami Team at origami.support@ft.com or #origami-support on Slack.
10
10
  -->
11
11
  ## What
12
12
  <!-- A clear description of what the problem or feature request is -->
@@ -13,7 +13,6 @@
13
13
  - [ ] Icons should have square rather than rounded corners where suitable
14
14
  - [ ] Icons must be SVG v1.1
15
15
  - [ ] Icons must have been run through an SVG compression service (such as SVGOMG)
16
- - [ ] Icons should have a bounding box of 1024.
17
16
  - [ ] Icon names must be made up only of lowecase a-z, or a hyphen
18
17
  - [ ] Icon names must include the .svg file extension
19
18
 
@@ -0,0 +1,15 @@
1
+ name: Add new issues and pull requests to Origami Project Board
2
+ on:
3
+ - issues
4
+ - pull_request_target
5
+
6
+ jobs:
7
+ origami_project_board_job:
8
+ runs-on: ubuntu-latest
9
+ name: Add new issue or pull request to Origami Project Board
10
+ steps:
11
+ - name: Add new issue or pull request to Origami Project Board
12
+ id: origami-project-board
13
+ uses: Financial-Times/origami-project-board-action@v1
14
+ with:
15
+ origami-fox-access-token: ${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}
@@ -0,0 +1,13 @@
1
+ name: Apply Origami labels
2
+ on:
3
+ - issues
4
+ - pull_request_target
5
+ jobs:
6
+ apply-labels:
7
+ runs-on: ubuntu-latest
8
+ name: Apply Origami labels to new issues and pull requests.
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - uses: Financial-Times/origami-apply-labels@v1
12
+ with:
13
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,23 @@
1
+ name: Auto Approve Dependabot PRs
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [labeled]
6
+
7
+ jobs:
8
+ auto-update-dependabot:
9
+ name: Auto-Approve and enable Auto-Merge for all Dependabot PRs
10
+ runs-on: ubuntu-latest
11
+ if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
12
+ steps:
13
+
14
+ # Enable auto-merge *before* issuing an approval.
15
+ - name: Enable Github Automerge
16
+ uses: alexwilson/enable-github-automerge-action@main
17
+ with:
18
+ github-token: "${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}"
19
+
20
+ # We "trust" dependabot updates (this still requires all other checks to pass!)
21
+ - uses: hmarr/auto-approve-action@5d04a5ca6da9aeb8ca9f31a5239b96fc3e003029
22
+ with:
23
+ github-token: "${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}"
@@ -0,0 +1,21 @@
1
+ on:
2
+ pull_request:
3
+ types: [closed] # Merged pull-requests count as closed pull-requests.
4
+
5
+ jobs:
6
+ create-new-version:
7
+ runs-on: ubuntu-latest
8
+ name: Create new version/tag
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ if: github.event.pull_request.merged # Only run on merged pull-requests
12
+ with:
13
+ ref: ${{ github.event.pull_request.merge_commit_sha }} # Checkout the merged commit
14
+ fetch-depth: 0
15
+ - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # Get all tags from the origin
16
+ if: github.event.pull_request.merged # Only run on merged pull-requests
17
+ - uses: Financial-Times/origami-version@v1.2.1
18
+ name: Create new version/tag
19
+ if: github.event.pull_request.merged # Only run on merged pull-requests
20
+ with:
21
+ github-token: ${{ secrets.ORIGAMI_GITHUB_TOKEN }}
@@ -0,0 +1,26 @@
1
+ name: Publish to npm and s3
2
+ on:
3
+ release:
4
+ types: [created]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - uses: actions/setup-node@v2.1.5
11
+ with:
12
+ node-version: '12.x'
13
+ registry-url: 'https://registry.npmjs.org'
14
+ - run: git config --global user.email "origami.support@ft.com";
15
+ - run: git config --global user.name "origamiserviceuser [bot]";
16
+ - run: npm ci
17
+ - name: Get the version
18
+ id: version
19
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
20
+ - run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
21
+ - run: git push origin HEAD:master
22
+ - run: npm publish
23
+ env:
24
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25
+ AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
26
+ AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
@@ -0,0 +1,12 @@
1
+ name: Sync Origami labels
2
+ on:
3
+ - issues
4
+ - pull_request_target
5
+ jobs:
6
+ sync-labels:
7
+ runs-on: ubuntu-latest
8
+ name: Sync repository labels
9
+ steps:
10
+ - uses: Financial-Times/origami-labels@v1
11
+ with:
12
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,4 +1,4 @@
1
- # Icon set for FT [![CircleCI](https://circleci.com/gh/Financial-Times/fticons.svg?style=svg)](https://circleci.com/gh/Financial-Times/fticons)
1
+ # Icon set for FT
2
2
  This is the (new) icon set for FT websites. It replaces the assets in [o-icons](http://github.com/financial-times/o-icons).
3
3
 
4
4
  The icons have been designed to work best at 40px width and height. At this size they align precisely with the pixel grid and do not appear blurry on screens with a DPR of 1 (non-retina screens).
@@ -80,7 +80,7 @@ The following icons no longer exist:
80
80
 
81
81
  ## Contact
82
82
 
83
- If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/fticons/issues), visit [#ft-origami](https://financialtimes.slack.com/messages/ft-origami/) or email [Origami Support](mailto:origami-support@ft.com).
83
+ If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/fticons/issues), visit [#origami-support](https://financialtimes.slack.com/messages/origami-support/) or email [Origami Support](mailto:origami-support@ft.com).
84
84
 
85
85
  ----
86
86
 
@@ -1,6 +1,6 @@
1
1
  # How to contribute to fticons
2
2
 
3
- Thank you for your interest in contributing to fticons! As our icons are used by a lot of different applications, we have a few constraints for new ones. If you aren't sure if your new icon meets any of these, please [raise an issue](http://github.com/financial-times/fticons/issues), or ask in the [#ft-origami slack channel](https://financialtimes.slack.com/messages/ft-origami/).
3
+ Thank you for your interest in contributing to fticons! As our icons are used by a lot of different applications, we have a few constraints for new ones. If you aren't sure if your new icon meets any of these, please [raise an issue](http://github.com/financial-times/fticons/issues), or ask in the [#origami-support slack channel](https://financialtimes.slack.com/messages/origami-support/).
4
4
  Thank you!
5
5
 
6
6
  ## Adding or updating an icon
@@ -24,8 +24,6 @@ If you want to add or update an icon, please open a pull request, making sure th
24
24
  1. Icons must have been run through an SVG compression service (such as [SVGOMG](https://jakearchibald.github.io/svgomg/))
25
25
  1. Icons must have been tested with the [Responsive Image Service](https://www.ft.com/__origami/service/image/v2/docs/url-builder)'s SVG -> PNG conversion. [How do I do this?](#how-to-test-an-icon-with-the-image-service)
26
26
  1. Icons must have been tested with the Image Service's tinting option. [How do I do this?](#how-to-test-an-icon-with-the-image-service)
27
- 1. Icons should have a bounding box of 1024. This is because of a quirk with the Image Service, whereby a conversion from SVG to PNG will be very blurry if the _source_ SVG has a small viewBox.
28
-
29
27
 
30
28
  ### Naming conventions:
31
29