@sats-group/ui-lib 80.4.0 → 81.0.1

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 (657) hide show
  1. package/package.json +6 -2
  2. package/react/add-bem-modifiers.d.ts +10 -0
  3. package/react/add-bem-modifiers.js +2 -0
  4. package/react/add-bem-modifiers.js.map +7 -0
  5. package/react/badge/badge.d.ts +7 -0
  6. package/react/badge/badge.js +2 -0
  7. package/react/badge/badge.js.map +7 -0
  8. package/react/badge/badge.types.d.ts +29 -0
  9. package/react/badge/badge.types.js +2 -0
  10. package/react/badge/badge.types.js.map +7 -0
  11. package/react/badge/index.js +2 -0
  12. package/react/badge/index.js.map +7 -0
  13. package/react/banner/banner.d.ts +4 -0
  14. package/react/banner/banner.js +2 -0
  15. package/react/banner/banner.js.map +7 -0
  16. package/react/banner/banner.types.d.ts +13 -0
  17. package/react/banner/banner.types.js +1 -0
  18. package/react/banner/banner.types.js.map +7 -0
  19. package/react/banner/index.js +2 -0
  20. package/react/banner/index.js.map +7 -0
  21. package/react/bomb/bomb.d.ts +4 -0
  22. package/react/bomb/bomb.js +2 -0
  23. package/react/bomb/bomb.js.map +7 -0
  24. package/react/bomb/bomb.types.d.ts +4 -0
  25. package/react/bomb/bomb.types.js +1 -0
  26. package/react/bomb/bomb.types.js.map +7 -0
  27. package/react/bomb/index.js +2 -0
  28. package/react/bomb/index.js.map +7 -0
  29. package/react/button/button.d.ts +9 -0
  30. package/react/button/button.js +2 -0
  31. package/react/button/button.js.map +7 -0
  32. package/react/button/{button.types.ts → button.types.d.ts} +0 -1
  33. package/react/button/button.types.js +1 -0
  34. package/react/button/button.types.js.map +7 -0
  35. package/react/button/index.js +2 -0
  36. package/react/button/index.js.map +7 -0
  37. package/react/checkbox/checkbox.d.ts +20 -0
  38. package/react/checkbox/checkbox.js +2 -0
  39. package/react/checkbox/checkbox.js.map +7 -0
  40. package/react/checkbox/checkbox.types.d.ts +17 -0
  41. package/react/checkbox/checkbox.types.js +2 -0
  42. package/react/checkbox/checkbox.types.js.map +7 -0
  43. package/react/checkbox/index.js +2 -0
  44. package/react/checkbox/index.js.map +7 -0
  45. package/react/chip/chip.d.ts +4 -0
  46. package/react/chip/chip.js +2 -0
  47. package/react/chip/chip.js.map +7 -0
  48. package/react/chip/chip.types.d.ts +18 -0
  49. package/react/chip/chip.types.js +1 -0
  50. package/react/chip/chip.types.js.map +7 -0
  51. package/react/chip/index.js +2 -0
  52. package/react/chip/index.js.map +7 -0
  53. package/react/chip/remove.d.ts +3 -0
  54. package/react/chip/remove.js +2 -0
  55. package/react/chip/remove.js.map +7 -0
  56. package/react/chip-selected/chip-selected.d.ts +4 -0
  57. package/react/chip-selected/chip-selected.js +2 -0
  58. package/react/chip-selected/chip-selected.js.map +7 -0
  59. package/react/chip-selected/chip-selected.types.d.ts +10 -0
  60. package/react/chip-selected/chip-selected.types.js +1 -0
  61. package/react/chip-selected/chip-selected.types.js.map +7 -0
  62. package/react/chip-selected/index.js +2 -0
  63. package/react/chip-selected/index.js.map +7 -0
  64. package/react/collapse/collapse.d.ts +1134 -0
  65. package/react/collapse/collapse.js +2 -0
  66. package/react/collapse/collapse.js.map +7 -0
  67. package/react/collapse/collapse.types.d.ts +13 -0
  68. package/react/collapse/collapse.types.js +1 -0
  69. package/react/collapse/collapse.types.js.map +7 -0
  70. package/react/collapse/index.js +2 -0
  71. package/react/collapse/index.js.map +7 -0
  72. package/react/components.d.ts +2 -0
  73. package/react/components.js +2 -0
  74. package/react/components.js.map +7 -0
  75. package/react/confirmation/confirmation.d.ts +4 -0
  76. package/react/confirmation/confirmation.js +2 -0
  77. package/react/confirmation/confirmation.js.map +7 -0
  78. package/react/confirmation/confirmation.types.d.ts +22 -0
  79. package/react/confirmation/confirmation.types.js +1 -0
  80. package/react/confirmation/confirmation.types.js.map +7 -0
  81. package/react/confirmation/index.js +2 -0
  82. package/react/confirmation/index.js.map +7 -0
  83. package/react/context-menu/context-menu.d.ts +7 -0
  84. package/react/context-menu/context-menu.js +2 -0
  85. package/react/context-menu/context-menu.js.map +7 -0
  86. package/react/context-menu/context-menu.types.d.ts +64 -0
  87. package/react/context-menu/context-menu.types.js +2 -0
  88. package/react/context-menu/context-menu.types.js.map +7 -0
  89. package/react/context-menu/index.js +2 -0
  90. package/react/context-menu/index.js.map +7 -0
  91. package/react/cropped-image/cropped-image.d.ts +7 -0
  92. package/react/cropped-image/cropped-image.js +2 -0
  93. package/react/cropped-image/cropped-image.js.map +7 -0
  94. package/react/cropped-image/cropped-image.types.d.ts +23 -0
  95. package/react/cropped-image/cropped-image.types.js +2 -0
  96. package/react/cropped-image/cropped-image.types.js.map +7 -0
  97. package/react/cropped-image/index.js +2 -0
  98. package/react/cropped-image/index.js.map +7 -0
  99. package/react/div-button/div-button.d.ts +8 -0
  100. package/react/div-button/div-button.js +2 -0
  101. package/react/div-button/div-button.js.map +7 -0
  102. package/react/div-button/{div-button.types.ts → div-button.types.d.ts} +0 -1
  103. package/react/div-button/div-button.types.js +1 -0
  104. package/react/div-button/div-button.types.js.map +7 -0
  105. package/react/div-button/index.js +2 -0
  106. package/react/div-button/index.js.map +7 -0
  107. package/react/dropdown-list/dropdown-list.d.ts +6 -0
  108. package/react/dropdown-list/dropdown-list.js +2 -0
  109. package/react/dropdown-list/dropdown-list.js.map +7 -0
  110. package/react/dropdown-list/dropdown-list.types.d.ts +15 -0
  111. package/react/dropdown-list/dropdown-list.types.js +2 -0
  112. package/react/dropdown-list/dropdown-list.types.js.map +7 -0
  113. package/react/dropdown-list/index.js +2 -0
  114. package/react/dropdown-list/index.js.map +7 -0
  115. package/react/expander/expander.d.ts +6 -0
  116. package/react/expander/expander.js +2 -0
  117. package/react/expander/expander.js.map +7 -0
  118. package/react/expander/expander.types.d.ts +30 -0
  119. package/react/expander/expander.types.js +2 -0
  120. package/react/expander/expander.types.js.map +7 -0
  121. package/react/expander/index.js +2 -0
  122. package/react/expander/index.js.map +7 -0
  123. package/react/filter/filter.d.ts +4 -0
  124. package/react/filter/filter.js +2 -0
  125. package/react/filter/filter.js.map +7 -0
  126. package/react/filter/filter.types.d.ts +9 -0
  127. package/react/filter/filter.types.js +1 -0
  128. package/react/filter/filter.types.js.map +7 -0
  129. package/react/filter/index.js +2 -0
  130. package/react/filter/index.js.map +7 -0
  131. package/react/filter-wrapper/filter-wrapper.d.ts +4 -0
  132. package/react/filter-wrapper/filter-wrapper.js +2 -0
  133. package/react/filter-wrapper/filter-wrapper.js.map +7 -0
  134. package/react/filter-wrapper/filter-wrapper.types.d.ts +8 -0
  135. package/react/filter-wrapper/filter-wrapper.types.js +2 -0
  136. package/react/filter-wrapper/filter-wrapper.types.js.map +7 -0
  137. package/react/filter-wrapper/index.js +2 -0
  138. package/react/filter-wrapper/index.js.map +7 -0
  139. package/react/flag/flag.d.ts +7 -0
  140. package/react/flag/flag.js +2 -0
  141. package/react/flag/flag.js.map +7 -0
  142. package/react/flag/flag.types.d.ts +14 -0
  143. package/react/flag/flag.types.js +2 -0
  144. package/react/flag/flag.types.js.map +7 -0
  145. package/react/flag/index.js +2 -0
  146. package/react/flag/index.js.map +7 -0
  147. package/react/form-content/checkbox-category.d.ts +4 -0
  148. package/react/form-content/checkbox-category.js +2 -0
  149. package/react/form-content/checkbox-category.js.map +7 -0
  150. package/react/form-content/form-content.checkbox-list.d.ts +4 -0
  151. package/react/form-content/form-content.checkbox-list.js +2 -0
  152. package/react/form-content/form-content.checkbox-list.js.map +7 -0
  153. package/react/form-content/form-content.checkbox-list.types.d.ts +35 -0
  154. package/react/form-content/form-content.checkbox-list.types.js +1 -0
  155. package/react/form-content/form-content.checkbox-list.types.js.map +7 -0
  156. package/react/form-content/form-content.d.ts +4 -0
  157. package/react/form-content/form-content.js +2 -0
  158. package/react/form-content/form-content.js.map +7 -0
  159. package/react/form-content/form-content.radio-list.d.ts +4 -0
  160. package/react/form-content/form-content.radio-list.js +2 -0
  161. package/react/form-content/form-content.radio-list.js.map +7 -0
  162. package/react/form-content/form-content.range.d.ts +4 -0
  163. package/react/form-content/form-content.range.js +2 -0
  164. package/react/form-content/form-content.range.js.map +7 -0
  165. package/react/form-content/{form-content.range.types.ts → form-content.range.types.d.ts} +7 -8
  166. package/react/form-content/form-content.range.types.js +1 -0
  167. package/react/form-content/form-content.range.types.js.map +7 -0
  168. package/react/form-content/form-content.search.d.ts +4 -0
  169. package/react/form-content/form-content.search.js +2 -0
  170. package/react/form-content/form-content.search.js.map +7 -0
  171. package/react/form-content/form-content.types.d.ts +49 -0
  172. package/react/form-content/form-content.types.js +2 -0
  173. package/react/form-content/form-content.types.js.map +7 -0
  174. package/react/form-content/index.js +2 -0
  175. package/react/form-content/index.js.map +7 -0
  176. package/react/hidden-input/{hidden-input.tsx → hidden-input.d.ts} +1 -6
  177. package/react/hidden-input/hidden-input.js +2 -0
  178. package/react/hidden-input/hidden-input.js.map +7 -0
  179. package/react/hidden-input/{hidden-input.types.ts → hidden-input.types.d.ts} +2 -3
  180. package/react/hidden-input/hidden-input.types.js +1 -0
  181. package/react/hidden-input/hidden-input.types.js.map +7 -0
  182. package/react/hidden-input/index.js +2 -0
  183. package/react/hidden-input/index.js.map +7 -0
  184. package/react/hooks/focus-previous-element.d.ts +3 -0
  185. package/react/hooks/focus-previous-element.js +2 -0
  186. package/react/hooks/focus-previous-element.js.map +7 -0
  187. package/react/hooks/is-running-on-client.d.ts +2 -0
  188. package/react/hooks/is-running-on-client.js +2 -0
  189. package/react/hooks/is-running-on-client.js.map +7 -0
  190. package/react/hooks/use-click-outside.d.ts +4 -0
  191. package/react/hooks/use-click-outside.js +2 -0
  192. package/react/hooks/use-click-outside.js.map +7 -0
  193. package/react/hooks/use-escape.d.ts +2 -0
  194. package/react/hooks/use-escape.js +2 -0
  195. package/react/hooks/use-escape.js.map +7 -0
  196. package/react/hooks/use-event.d.ts +2 -0
  197. package/react/hooks/use-event.js +2 -0
  198. package/react/hooks/use-event.js.map +7 -0
  199. package/react/hooks/use-is-mounted.d.ts +1 -0
  200. package/react/hooks/use-is-mounted.js +2 -0
  201. package/react/hooks/use-is-mounted.js.map +7 -0
  202. package/react/hooks/use-toggle.d.ts +2 -0
  203. package/react/hooks/use-toggle.js +2 -0
  204. package/react/hooks/use-toggle.js.map +7 -0
  205. package/react/icons/16/add.d.ts +3 -0
  206. package/react/icons/16/add.js +2 -0
  207. package/react/icons/16/add.js.map +7 -0
  208. package/react/icons/16/close.d.ts +3 -0
  209. package/react/icons/16/close.js +2 -0
  210. package/react/icons/16/close.js.map +7 -0
  211. package/react/icons/16/error.d.ts +3 -0
  212. package/react/icons/16/error.js +2 -0
  213. package/react/icons/16/error.js.map +7 -0
  214. package/react/icons/16/fistbump.d.ts +3 -0
  215. package/react/icons/16/fistbump.js +2 -0
  216. package/react/icons/16/fistbump.js.map +7 -0
  217. package/react/icons/16/info.d.ts +3 -0
  218. package/react/icons/16/info.js +2 -0
  219. package/react/icons/16/info.js.map +7 -0
  220. package/react/icons/16/send.d.ts +3 -0
  221. package/react/icons/16/send.js +2 -0
  222. package/react/icons/16/send.js.map +7 -0
  223. package/react/icons/18/arrow-down.d.ts +3 -0
  224. package/react/icons/18/arrow-down.js +2 -0
  225. package/react/icons/18/arrow-down.js.map +7 -0
  226. package/react/icons/18/close.d.ts +3 -0
  227. package/react/icons/18/close.js +2 -0
  228. package/react/icons/18/close.js.map +7 -0
  229. package/react/icons/18/confirm.d.ts +3 -0
  230. package/react/icons/18/confirm.js +2 -0
  231. package/react/icons/18/confirm.js.map +7 -0
  232. package/react/icons/18/error.d.ts +3 -0
  233. package/react/icons/18/error.js +2 -0
  234. package/react/icons/18/error.js.map +7 -0
  235. package/react/icons/18/info.d.ts +3 -0
  236. package/react/icons/18/info.js +2 -0
  237. package/react/icons/18/info.js.map +7 -0
  238. package/react/icons/18/warning-sign.d.ts +3 -0
  239. package/react/icons/18/warning-sign.js +2 -0
  240. package/react/icons/18/warning-sign.js.map +7 -0
  241. package/react/icons/24/arrow-down.d.ts +3 -0
  242. package/react/icons/24/arrow-down.js +2 -0
  243. package/react/icons/24/arrow-down.js.map +7 -0
  244. package/react/icons/24/arrow-right.d.ts +3 -0
  245. package/react/icons/24/arrow-right.js +2 -0
  246. package/react/icons/24/arrow-right.js.map +7 -0
  247. package/react/icons/24/arrow-up.d.ts +3 -0
  248. package/react/icons/24/arrow-up.js +2 -0
  249. package/react/icons/24/arrow-up.js.map +7 -0
  250. package/react/icons/24/close.d.ts +3 -0
  251. package/react/icons/24/close.js +2 -0
  252. package/react/icons/24/close.js.map +7 -0
  253. package/react/icons/24/remove.d.ts +3 -0
  254. package/react/icons/24/remove.js +2 -0
  255. package/react/icons/24/remove.js.map +7 -0
  256. package/react/icons/24/search.d.ts +3 -0
  257. package/react/icons/24/search.js +2 -0
  258. package/react/icons/24/search.js.map +7 -0
  259. package/react/indexed-access-type.js +1 -0
  260. package/react/indexed-access-type.js.map +7 -0
  261. package/react/link/index.js +2 -0
  262. package/react/link/index.js.map +7 -0
  263. package/react/link/link.d.ts +9 -0
  264. package/react/link/link.js +2 -0
  265. package/react/link/link.js.map +7 -0
  266. package/react/link/link.types.d.ts +29 -0
  267. package/react/link/link.types.js +2 -0
  268. package/react/link/link.types.js.map +7 -0
  269. package/react/link-button/index.js +2 -0
  270. package/react/link-button/index.js.map +7 -0
  271. package/react/link-button/link-button.d.ts +8 -0
  272. package/react/link-button/link-button.js +2 -0
  273. package/react/link-button/link-button.js.map +7 -0
  274. package/react/link-button/{link-button.types.ts → link-button.types.d.ts} +0 -1
  275. package/react/link-button/link-button.types.js +1 -0
  276. package/react/link-button/link-button.types.js.map +7 -0
  277. package/react/link-card/index.js +2 -0
  278. package/react/link-card/index.js.map +7 -0
  279. package/react/link-card/link-card.d.ts +4 -0
  280. package/react/link-card/link-card.js +2 -0
  281. package/react/link-card/link-card.js.map +7 -0
  282. package/react/link-card/link-card.types.d.ts +5 -0
  283. package/react/link-card/link-card.types.js +1 -0
  284. package/react/link-card/link-card.types.js.map +7 -0
  285. package/react/logos/e-avatar.d.ts +3 -0
  286. package/react/logos/e-avatar.js +2 -0
  287. package/react/logos/e-avatar.js.map +7 -0
  288. package/react/logos/elixia-anniversary-light.d.ts +3 -0
  289. package/react/logos/elixia-anniversary-light.js +2 -0
  290. package/react/logos/elixia-anniversary-light.js.map +7 -0
  291. package/react/logos/elixia-letter.d.ts +3 -0
  292. package/react/logos/elixia-letter.js +2 -0
  293. package/react/logos/elixia-letter.js.map +7 -0
  294. package/react/logos/elixia-pride-dark.d.ts +3 -0
  295. package/react/logos/elixia-pride-dark.js +2 -0
  296. package/react/logos/elixia-pride-dark.js.map +7 -0
  297. package/react/logos/elixia-pride-light.d.ts +3 -0
  298. package/react/logos/elixia-pride-light.js +2 -0
  299. package/react/logos/elixia-pride-light.js.map +7 -0
  300. package/react/logos/elixia-small.d.ts +3 -0
  301. package/react/logos/elixia-small.js +2 -0
  302. package/react/logos/elixia-small.js.map +7 -0
  303. package/react/logos/elixia.d.ts +3 -0
  304. package/react/logos/elixia.js +2 -0
  305. package/react/logos/elixia.js.map +7 -0
  306. package/react/logos/index.js +2 -0
  307. package/react/logos/index.js.map +7 -0
  308. package/react/logos/s-avatar.d.ts +3 -0
  309. package/react/logos/s-avatar.js +2 -0
  310. package/react/logos/s-avatar.js.map +7 -0
  311. package/react/logos/sats-anniversary-light.d.ts +3 -0
  312. package/react/logos/sats-anniversary-light.js +2 -0
  313. package/react/logos/sats-anniversary-light.js.map +7 -0
  314. package/react/logos/sats-letter.d.ts +3 -0
  315. package/react/logos/sats-letter.js +2 -0
  316. package/react/logos/sats-letter.js.map +7 -0
  317. package/react/logos/sats-pride-dark.d.ts +3 -0
  318. package/react/logos/sats-pride-dark.js +2 -0
  319. package/react/logos/sats-pride-dark.js.map +7 -0
  320. package/react/logos/sats-pride-light.d.ts +3 -0
  321. package/react/logos/sats-pride-light.js +2 -0
  322. package/react/logos/sats-pride-light.js.map +7 -0
  323. package/react/logos/sats-small.d.ts +3 -0
  324. package/react/logos/sats-small.js +2 -0
  325. package/react/logos/sats-small.js.map +7 -0
  326. package/react/logos/sats.d.ts +3 -0
  327. package/react/logos/sats.js +2 -0
  328. package/react/logos/sats.js.map +7 -0
  329. package/react/message/hook/use-message.d.ts +3 -0
  330. package/react/message/hook/use-message.js +2 -0
  331. package/react/message/hook/use-message.js.map +7 -0
  332. package/react/message/index.js +2 -0
  333. package/react/message/index.js.map +7 -0
  334. package/react/message/message.d.ts +6 -0
  335. package/react/message/message.js +2 -0
  336. package/react/message/message.js.map +7 -0
  337. package/react/message/message.types.d.ts +23 -0
  338. package/react/message/message.types.js +2 -0
  339. package/react/message/message.types.js.map +7 -0
  340. package/react/message/publish.d.ts +3 -0
  341. package/react/message/publish.js +2 -0
  342. package/react/message/publish.js.map +7 -0
  343. package/react/message-field/index.js +2 -0
  344. package/react/message-field/index.js.map +7 -0
  345. package/react/message-field/message-field.d.ts +7 -0
  346. package/react/message-field/message-field.js +2 -0
  347. package/react/message-field/message-field.js.map +7 -0
  348. package/react/message-field/message-field.types.d.ts +21 -0
  349. package/react/message-field/message-field.types.js +2 -0
  350. package/react/message-field/message-field.types.js.map +7 -0
  351. package/react/modal/index.js +2 -0
  352. package/react/modal/index.js.map +7 -0
  353. package/react/modal/modal.d.ts +6 -0
  354. package/react/modal/modal.js +2 -0
  355. package/react/modal/modal.js.map +7 -0
  356. package/react/modal/modal.types.d.ts +32 -0
  357. package/react/modal/modal.types.js +2 -0
  358. package/react/modal/modal.types.js.map +7 -0
  359. package/react/modal/tab-trapper.d.ts +6 -0
  360. package/react/modal/tab-trapper.js +2 -0
  361. package/react/modal/tab-trapper.js.map +7 -0
  362. package/react/progress-bar/index.js +2 -0
  363. package/react/progress-bar/index.js.map +7 -0
  364. package/react/progress-bar/progress-bar.d.ts +9 -0
  365. package/react/progress-bar/progress-bar.js +2 -0
  366. package/react/progress-bar/progress-bar.js.map +7 -0
  367. package/react/progress-bar/progress-bar.types.d.ts +30 -0
  368. package/react/progress-bar/progress-bar.types.js +2 -0
  369. package/react/progress-bar/progress-bar.types.js.map +7 -0
  370. package/react/radio/index.js +2 -0
  371. package/react/radio/index.js.map +7 -0
  372. package/react/radio/radio.d.ts +17 -0
  373. package/react/radio/radio.js +2 -0
  374. package/react/radio/radio.js.map +7 -0
  375. package/react/radio/radio.types.d.ts +13 -0
  376. package/react/radio/radio.types.js +2 -0
  377. package/react/radio/radio.types.js.map +7 -0
  378. package/react/scale-bar/index.js +2 -0
  379. package/react/scale-bar/index.js.map +7 -0
  380. package/react/scale-bar/scale-bar.d.ts +4 -0
  381. package/react/scale-bar/scale-bar.js +2 -0
  382. package/react/scale-bar/scale-bar.js.map +7 -0
  383. package/react/scale-bar/scale-bar.types.d.ts +4 -0
  384. package/react/scale-bar/scale-bar.types.js +1 -0
  385. package/react/scale-bar/scale-bar.types.js.map +7 -0
  386. package/react/search/index.js +2 -0
  387. package/react/search/index.js.map +7 -0
  388. package/react/search/search.d.ts +28 -0
  389. package/react/search/search.js +2 -0
  390. package/react/search/search.js.map +7 -0
  391. package/react/search/search.types.d.ts +39 -0
  392. package/react/search/search.types.js +2 -0
  393. package/react/search/search.types.js.map +7 -0
  394. package/react/select/index.js +2 -0
  395. package/react/select/index.js.map +7 -0
  396. package/react/select/select.d.ts +10 -0
  397. package/react/select/select.js +2 -0
  398. package/react/select/select.js.map +7 -0
  399. package/react/select/select.types.d.ts +21 -0
  400. package/react/select/select.types.js +2 -0
  401. package/react/select/select.types.js.map +7 -0
  402. package/react/select-option/index.js +2 -0
  403. package/react/select-option/index.js.map +7 -0
  404. package/react/select-option/{select-option.tsx → select-option.d.ts} +1 -12
  405. package/react/select-option/select-option.js +2 -0
  406. package/react/select-option/select-option.js.map +7 -0
  407. package/react/select-option/select-option.types.d.ts +6 -0
  408. package/react/select-option/select-option.types.js +1 -0
  409. package/react/select-option/select-option.types.js.map +7 -0
  410. package/react/tag/index.js +2 -0
  411. package/react/tag/index.js.map +7 -0
  412. package/react/tag/tag.d.ts +7 -0
  413. package/react/tag/tag.js +2 -0
  414. package/react/tag/tag.js.map +7 -0
  415. package/react/tag/tag.types.d.ts +26 -0
  416. package/react/tag/tag.types.js +2 -0
  417. package/react/tag/tag.types.js.map +7 -0
  418. package/react/text/index.js +2 -0
  419. package/react/text/index.js.map +7 -0
  420. package/react/text/text.d.ts +7 -0
  421. package/react/text/text.js +2 -0
  422. package/react/text/text.js.map +7 -0
  423. package/react/text/text.types.d.ts +27 -0
  424. package/react/text/text.types.js +2 -0
  425. package/react/text/text.types.js.map +7 -0
  426. package/react/text-area/index.js +2 -0
  427. package/react/text-area/index.js.map +7 -0
  428. package/react/text-area/text-area.d.ts +20 -0
  429. package/react/text-area/text-area.js +2 -0
  430. package/react/text-area/text-area.js.map +7 -0
  431. package/react/text-area/text-area.types.d.ts +21 -0
  432. package/react/text-area/text-area.types.js +2 -0
  433. package/react/text-area/text-area.types.js.map +7 -0
  434. package/react/text-input/index.js +2 -0
  435. package/react/text-input/index.js.map +7 -0
  436. package/react/text-input/text-input.d.ts +18 -0
  437. package/react/text-input/text-input.js +2 -0
  438. package/react/text-input/text-input.js.map +7 -0
  439. package/react/text-input/text-input.scss +3 -9
  440. package/react/text-input/text-input.types.d.ts +21 -0
  441. package/react/text-input/text-input.types.js +2 -0
  442. package/react/text-input/text-input.types.js.map +7 -0
  443. package/react/toggle/index.js +2 -0
  444. package/react/toggle/index.js.map +7 -0
  445. package/react/toggle/toggle.d.ts +13 -0
  446. package/react/toggle/toggle.js +2 -0
  447. package/react/toggle/toggle.js.map +7 -0
  448. package/react/toggle/toggle.types.d.ts +10 -0
  449. package/react/toggle/toggle.types.js +1 -0
  450. package/react/toggle/toggle.types.js.map +7 -0
  451. package/react/toolbox/index.js +2 -0
  452. package/react/toolbox/index.js.map +7 -0
  453. package/react/toolbox/toolbox.d.ts +4 -0
  454. package/react/toolbox/toolbox.js +2 -0
  455. package/react/toolbox/toolbox.js.map +7 -0
  456. package/react/toolbox/toolbox.types.d.ts +34 -0
  457. package/react/toolbox/toolbox.types.js +2 -0
  458. package/react/toolbox/toolbox.types.js.map +7 -0
  459. package/react/ts/debounce.d.ts +1 -0
  460. package/react/ts/debounce.js +2 -0
  461. package/react/ts/debounce.js.map +7 -0
  462. package/react/{types.ts → types.d.ts} +4 -19
  463. package/react/types.js +1 -0
  464. package/react/types.js.map +7 -0
  465. package/react/use-input-validation.d.ts +4 -0
  466. package/react/use-input-validation.js +2 -0
  467. package/react/use-input-validation.js.map +7 -0
  468. package/react/use-input-validation.types.d.ts +13 -0
  469. package/react/use-input-validation.types.js +1 -0
  470. package/react/use-input-validation.types.js.map +7 -0
  471. package/react/visually-button/index.js +2 -0
  472. package/react/visually-button/index.js.map +7 -0
  473. package/react/visually-button/maps.d.ts +6 -0
  474. package/react/visually-button/maps.js +2 -0
  475. package/react/visually-button/maps.js.map +7 -0
  476. package/react/visually-button/visually-button.d.ts +8 -0
  477. package/react/visually-button/visually-button.js +2 -0
  478. package/react/visually-button/visually-button.js.map +7 -0
  479. package/react/visually-button/visually-button.types.d.ts +46 -0
  480. package/react/visually-button/visually-button.types.js +2 -0
  481. package/react/visually-button/visually-button.types.js.map +7 -0
  482. package/react/visually-hidden/index.js +2 -0
  483. package/react/visually-hidden/index.js.map +7 -0
  484. package/react/visually-hidden/visually-hidden.d.ts +3 -0
  485. package/react/visually-hidden/visually-hidden.js +2 -0
  486. package/react/visually-hidden/visually-hidden.js.map +7 -0
  487. package/.nvmrc +0 -1
  488. package/catalog-info.yaml +0 -14
  489. package/eslint.config.mjs +0 -93
  490. package/react/add-bem-modifiers.ts +0 -51
  491. package/react/badge/badge.tsx +0 -28
  492. package/react/badge/badge.types.ts +0 -34
  493. package/react/banner/banner.tsx +0 -93
  494. package/react/banner/banner.types.ts +0 -10
  495. package/react/bomb/bomb.tsx +0 -19
  496. package/react/bomb/bomb.types.ts +0 -1
  497. package/react/button/button.tsx +0 -23
  498. package/react/checkbox/checkbox.tsx +0 -176
  499. package/react/checkbox/checkbox.types.ts +0 -19
  500. package/react/chip/chip.tsx +0 -37
  501. package/react/chip/chip.types.ts +0 -18
  502. package/react/chip/remove.tsx +0 -14
  503. package/react/chip-selected/chip-selected.tsx +0 -102
  504. package/react/chip-selected/chip-selected.types.ts +0 -11
  505. package/react/collapse/collapse.tsx +0 -179
  506. package/react/collapse/collapse.types.ts +0 -13
  507. package/react/components.ts +0 -83
  508. package/react/confirmation/confirmation.tsx +0 -90
  509. package/react/confirmation/confirmation.types.ts +0 -25
  510. package/react/context-menu/context-menu.tsx +0 -201
  511. package/react/context-menu/context-menu.types.ts +0 -71
  512. package/react/cropped-image/cropped-image.tsx +0 -36
  513. package/react/cropped-image/cropped-image.types.ts +0 -26
  514. package/react/div-button/div-button.tsx +0 -15
  515. package/react/dropdown-list/dropdown-list.tsx +0 -116
  516. package/react/dropdown-list/dropdown-list.types.ts +0 -17
  517. package/react/expander/expander.tsx +0 -170
  518. package/react/expander/expander.types.ts +0 -33
  519. package/react/filter/filter.tsx +0 -99
  520. package/react/filter/filter.types.ts +0 -8
  521. package/react/filter-wrapper/filter-wrapper.tsx +0 -24
  522. package/react/filter-wrapper/filter-wrapper.types.ts +0 -10
  523. package/react/flag/flag.tsx +0 -27
  524. package/react/flag/flag.types.ts +0 -17
  525. package/react/form-content/checkbox-category.tsx +0 -183
  526. package/react/form-content/form-content.checkbox-list.tsx +0 -126
  527. package/react/form-content/form-content.checkbox-list.types.ts +0 -36
  528. package/react/form-content/form-content.radio-list.tsx +0 -58
  529. package/react/form-content/form-content.range.tsx +0 -20
  530. package/react/form-content/form-content.search.tsx +0 -47
  531. package/react/form-content/form-content.tsx +0 -96
  532. package/react/form-content/form-content.types.ts +0 -55
  533. package/react/hooks/focus-previous-element.ts +0 -30
  534. package/react/hooks/is-running-on-client.ts +0 -1
  535. package/react/hooks/use-click-outside.ts +0 -23
  536. package/react/hooks/use-escape.ts +0 -18
  537. package/react/hooks/use-event.ts +0 -29
  538. package/react/hooks/use-is-mounted.ts +0 -11
  539. package/react/hooks/use-toggle.ts +0 -19
  540. package/react/icons/16/add.tsx +0 -13
  541. package/react/icons/16/close.tsx +0 -12
  542. package/react/icons/16/error.tsx +0 -23
  543. package/react/icons/16/fistbump.tsx +0 -13
  544. package/react/icons/16/info.tsx +0 -17
  545. package/react/icons/16/send.tsx +0 -13
  546. package/react/icons/18/arrow-down.tsx +0 -13
  547. package/react/icons/18/close.tsx +0 -18
  548. package/react/icons/18/confirm.tsx +0 -19
  549. package/react/icons/18/error.tsx +0 -23
  550. package/react/icons/18/info.tsx +0 -17
  551. package/react/icons/18/warning-sign.tsx +0 -23
  552. package/react/icons/24/arrow-down.tsx +0 -14
  553. package/react/icons/24/arrow-right.tsx +0 -14
  554. package/react/icons/24/arrow-up.tsx +0 -14
  555. package/react/icons/24/close.tsx +0 -12
  556. package/react/icons/24/remove.tsx +0 -12
  557. package/react/icons/24/search.tsx +0 -10
  558. package/react/icons/icons.md +0 -3
  559. package/react/link/link.tsx +0 -62
  560. package/react/link/link.types.ts +0 -37
  561. package/react/link-button/link-button.tsx +0 -17
  562. package/react/link-card/link-card.tsx +0 -24
  563. package/react/link-card/link-card.types.ts +0 -5
  564. package/react/logos/e-avatar.tsx +0 -12
  565. package/react/logos/elixia-anniversary-light.tsx +0 -70
  566. package/react/logos/elixia-letter.tsx +0 -12
  567. package/react/logos/elixia-pride-dark.tsx +0 -102
  568. package/react/logos/elixia-pride-light.tsx +0 -102
  569. package/react/logos/elixia-small.tsx +0 -12
  570. package/react/logos/elixia.tsx +0 -12
  571. package/react/logos/s-avatar.tsx +0 -12
  572. package/react/logos/sats-anniversary-light.tsx +0 -76
  573. package/react/logos/sats-letter.tsx +0 -12
  574. package/react/logos/sats-pride-dark.tsx +0 -102
  575. package/react/logos/sats-pride-light.tsx +0 -102
  576. package/react/logos/sats-small.tsx +0 -12
  577. package/react/logos/sats.tsx +0 -12
  578. package/react/message/hook/use-message.ts +0 -22
  579. package/react/message/message.tsx +0 -60
  580. package/react/message/message.types.ts +0 -39
  581. package/react/message/publish.ts +0 -19
  582. package/react/message-field/message-field.tsx +0 -70
  583. package/react/message-field/message-field.types.ts +0 -24
  584. package/react/modal/modal.tsx +0 -131
  585. package/react/modal/modal.types.ts +0 -36
  586. package/react/modal/tab-trapper.tsx +0 -68
  587. package/react/progress-bar/progress-bar.tsx +0 -81
  588. package/react/progress-bar/progress-bar.types.ts +0 -35
  589. package/react/radio/radio.tsx +0 -87
  590. package/react/radio/radio.types.ts +0 -15
  591. package/react/scale-bar/scale-bar.tsx +0 -29
  592. package/react/scale-bar/scale-bar.types.ts +0 -4
  593. package/react/search/search.tsx +0 -267
  594. package/react/search/search.types.ts +0 -44
  595. package/react/select/select.tsx +0 -139
  596. package/react/select/select.types.ts +0 -26
  597. package/react/select-option/select-option.types.ts +0 -8
  598. package/react/tag/tag.tsx +0 -26
  599. package/react/tag/tag.types.ts +0 -30
  600. package/react/text/text.tsx +0 -40
  601. package/react/text/text.types.ts +0 -29
  602. package/react/text-area/text-area.tsx +0 -153
  603. package/react/text-area/text-area.types.ts +0 -24
  604. package/react/text-input/text-input.tsx +0 -160
  605. package/react/text-input/text-input.types.ts +0 -24
  606. package/react/toggle/toggle.tsx +0 -85
  607. package/react/toggle/toggle.types.ts +0 -11
  608. package/react/toolbox/toolbox.tsx +0 -43
  609. package/react/toolbox/toolbox.types.ts +0 -39
  610. package/react/ts/debounce.ts +0 -12
  611. package/react/use-input-validation.ts +0 -60
  612. package/react/use-input-validation.types.ts +0 -13
  613. package/react/visually-button/maps.ts +0 -36
  614. package/react/visually-button/visually-button.tsx +0 -111
  615. package/react/visually-button/visually-button.types.ts +0 -59
  616. package/react/visually-hidden/visually-hidden.tsx +0 -10
  617. /package/react/badge/{index.ts → index.d.ts} +0 -0
  618. /package/react/banner/{index.ts → index.d.ts} +0 -0
  619. /package/react/bomb/{index.ts → index.d.ts} +0 -0
  620. /package/react/button/{index.ts → index.d.ts} +0 -0
  621. /package/react/checkbox/{index.ts → index.d.ts} +0 -0
  622. /package/react/chip/{index.ts → index.d.ts} +0 -0
  623. /package/react/chip-selected/{index.ts → index.d.ts} +0 -0
  624. /package/react/collapse/{index.ts → index.d.ts} +0 -0
  625. /package/react/confirmation/{index.ts → index.d.ts} +0 -0
  626. /package/react/context-menu/{index.ts → index.d.ts} +0 -0
  627. /package/react/cropped-image/{index.ts → index.d.ts} +0 -0
  628. /package/react/div-button/{index.ts → index.d.ts} +0 -0
  629. /package/react/dropdown-list/{index.ts → index.d.ts} +0 -0
  630. /package/react/expander/{index.ts → index.d.ts} +0 -0
  631. /package/react/filter/{index.ts → index.d.ts} +0 -0
  632. /package/react/filter-wrapper/{index.ts → index.d.ts} +0 -0
  633. /package/react/flag/{index.ts → index.d.ts} +0 -0
  634. /package/react/form-content/{index.ts → index.d.ts} +0 -0
  635. /package/react/hidden-input/{index.ts → index.d.ts} +0 -0
  636. /package/react/{indexed-access-type.ts → indexed-access-type.d.ts} +0 -0
  637. /package/react/link/{index.ts → index.d.ts} +0 -0
  638. /package/react/link-button/{index.ts → index.d.ts} +0 -0
  639. /package/react/link-card/{index.ts → index.d.ts} +0 -0
  640. /package/react/logos/{index.ts → index.d.ts} +0 -0
  641. /package/react/message/{index.ts → index.d.ts} +0 -0
  642. /package/react/message-field/{index.ts → index.d.ts} +0 -0
  643. /package/react/modal/{index.ts → index.d.ts} +0 -0
  644. /package/react/progress-bar/{index.ts → index.d.ts} +0 -0
  645. /package/react/radio/{index.ts → index.d.ts} +0 -0
  646. /package/react/scale-bar/{index.ts → index.d.ts} +0 -0
  647. /package/react/search/{index.ts → index.d.ts} +0 -0
  648. /package/react/select/{index.ts → index.d.ts} +0 -0
  649. /package/react/select-option/{index.ts → index.d.ts} +0 -0
  650. /package/react/tag/{index.ts → index.d.ts} +0 -0
  651. /package/react/text/{index.ts → index.d.ts} +0 -0
  652. /package/react/text-area/{index.ts → index.d.ts} +0 -0
  653. /package/react/text-input/{index.ts → index.d.ts} +0 -0
  654. /package/react/toggle/{index.ts → index.d.ts} +0 -0
  655. /package/react/toolbox/{index.ts → index.d.ts} +0 -0
  656. /package/react/visually-button/{index.ts → index.d.ts} +0 -0
  657. /package/react/visually-hidden/{index.ts → index.d.ts} +0 -0
@@ -0,0 +1,46 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { ButtonHtmlProps, DivHtmlProps, LinkHtmlProps, ObjectValues } from '../types';
3
+ export declare const sizes: {
4
+ readonly small: "small";
5
+ readonly basic: "basic";
6
+ readonly large: "large";
7
+ };
8
+ export declare const variants: {
9
+ readonly complete: "complete";
10
+ readonly cta: "cta";
11
+ readonly ctaSecondary: "cta-secondary";
12
+ readonly ctaSecondaryWhite: "cta-secondary-white";
13
+ readonly primary: "primary";
14
+ readonly primaryDestructive: "primary-destructive";
15
+ readonly primaryWhite: "primary-white";
16
+ readonly secondary: "secondary";
17
+ readonly secondaryWhite: "secondary-white";
18
+ readonly secondaryDestructive: "secondary-destructive";
19
+ readonly tertiary: "tertiary";
20
+ readonly tertiaryDestructive: "tertiary-destructive";
21
+ readonly fixedTertiary: "fixed-tertiary";
22
+ readonly waitlist: "waitlist";
23
+ readonly waitlistSecondary: "waitlist-secondary";
24
+ };
25
+ type CommonProps<ElementName extends string> = {
26
+ className?: string;
27
+ elementName: ElementName;
28
+ hasStackedIcon?: boolean;
29
+ iconOnly?: boolean;
30
+ leadingIcon?: ReactElement;
31
+ size?: ObjectValues<typeof sizes>;
32
+ spinning?: boolean;
33
+ testId?: string;
34
+ text: string;
35
+ trailingIcon?: ReactElement;
36
+ variant?: ObjectValues<typeof variants>;
37
+ wide?: boolean;
38
+ };
39
+ type Props<ElementProps, ElementName extends string> = ElementProps & CommonProps<ElementName>;
40
+ export type VisuallyButtonButton = Props<ButtonHtmlProps, 'button'>;
41
+ export type VisuallyButtonDiv = Props<DivHtmlProps, 'div'>;
42
+ export type VisuallyButtonLink = Props<LinkHtmlProps, 'a'> & {
43
+ href: string;
44
+ };
45
+ export type VisuallyButton = VisuallyButtonButton | VisuallyButtonDiv | VisuallyButtonLink;
46
+ export {};
@@ -0,0 +1,2 @@
1
+ const t={small:"small",basic:"basic",large:"large"},e={complete:"complete",cta:"cta",ctaSecondary:"cta-secondary",ctaSecondaryWhite:"cta-secondary-white",primary:"primary",primaryDestructive:"primary-destructive",primaryWhite:"primary-white",secondary:"secondary",secondaryWhite:"secondary-white",secondaryDestructive:"secondary-destructive",tertiary:"tertiary",tertiaryDestructive:"tertiary-destructive",fixedTertiary:"fixed-tertiary",waitlist:"waitlist",waitlistSecondary:"waitlist-secondary"};export{t as sizes,e as variants};
2
+ //# sourceMappingURL=visually-button.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/visually-button/visually-button.types.ts"],
4
+ "sourcesContent": ["import type { ReactElement } from 'react';\n\nimport type {\n ButtonHtmlProps,\n DivHtmlProps,\n LinkHtmlProps,\n ObjectValues,\n} from '../types';\n\nexport const sizes = {\n small: 'small',\n basic: 'basic',\n large: 'large',\n} as const;\n\nexport const variants = {\n complete: 'complete',\n cta: 'cta',\n ctaSecondary: 'cta-secondary',\n ctaSecondaryWhite: 'cta-secondary-white',\n primary: 'primary',\n primaryDestructive: 'primary-destructive',\n primaryWhite: 'primary-white',\n secondary: 'secondary',\n secondaryWhite: 'secondary-white',\n secondaryDestructive: 'secondary-destructive',\n tertiary: 'tertiary',\n tertiaryDestructive: 'tertiary-destructive',\n fixedTertiary: 'fixed-tertiary',\n waitlist: 'waitlist',\n waitlistSecondary: 'waitlist-secondary',\n} as const;\n\ntype CommonProps<ElementName extends string> = {\n className?: string;\n elementName: ElementName;\n hasStackedIcon?: boolean;\n iconOnly?: boolean;\n leadingIcon?: ReactElement;\n size?: ObjectValues<typeof sizes>;\n spinning?: boolean;\n testId?: string;\n text: string;\n trailingIcon?: ReactElement;\n variant?: ObjectValues<typeof variants>;\n wide?: boolean;\n};\n\ntype Props<ElementProps, ElementName extends string> = ElementProps &\n CommonProps<ElementName>;\n\nexport type VisuallyButtonButton = Props<ButtonHtmlProps, 'button'>;\nexport type VisuallyButtonDiv = Props<DivHtmlProps, 'div'>;\nexport type VisuallyButtonLink = Props<LinkHtmlProps, 'a'> & { href: string };\n\nexport type VisuallyButton =\n | VisuallyButtonButton\n | VisuallyButtonDiv\n | VisuallyButtonLink;\n"],
5
+ "mappings": "AASO,MAAMA,EAAQ,CACnB,MAAO,QACP,MAAO,QACP,MAAO,OACT,EAEaC,EAAW,CACtB,SAAU,WACV,IAAK,MACL,aAAc,gBACd,kBAAmB,sBACnB,QAAS,UACT,mBAAoB,sBACpB,aAAc,gBACd,UAAW,YACX,eAAgB,kBAChB,qBAAsB,wBACtB,SAAU,WACV,oBAAqB,uBACrB,cAAe,iBACf,SAAU,WACV,kBAAmB,oBACrB",
6
+ "names": ["sizes", "variants"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import d from"./visually-hidden";var i=d;export{i as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/visually-hidden/index.ts"],
4
+ "sourcesContent": ["import VisuallyHidden from './visually-hidden';\nexport default VisuallyHidden;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAoB,oBAC3B,IAAOC,EAAQD",
6
+ "names": ["VisuallyHidden", "visually_hidden_default"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const VisuallyHidden: React.FunctionComponent<React.PropsWithChildren>;
3
+ export default VisuallyHidden;
@@ -0,0 +1,2 @@
1
+ import*as a from"react";const t=({children:n})=>a.Children.count(n)===0?null:a.createElement("span",{className:"visually-hidden"},n);var e=t;export{e as default};
2
+ //# sourceMappingURL=visually-hidden.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/visually-hidden/visually-hidden.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\n\nconst VisuallyHidden: React.FunctionComponent<React.PropsWithChildren> = ({\n children,\n}) =>\n React.Children.count(children) === 0 ? null : (\n <span className=\"visually-hidden\">{children}</span>\n );\n\nexport default VisuallyHidden;\n"],
5
+ "mappings": "AAAA,UAAYA,MAAW,QAEvB,MAAMC,EAAmE,CAAC,CACxE,SAAAC,CACF,IACEF,EAAM,SAAS,MAAME,CAAQ,IAAM,EAAI,KACrCF,EAAA,cAAC,QAAK,UAAU,mBAAmBE,CAAS,EAGhD,IAAOC,EAAQF",
6
+ "names": ["React", "VisuallyHidden", "children", "visually_hidden_default"]
7
+ }
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v20
package/catalog-info.yaml DELETED
@@ -1,14 +0,0 @@
1
- apiVersion: backstage.io/v1alpha1
2
- kind: Component
3
- metadata:
4
- name: sats-ui-lib
5
- title: SATS UI Library
6
- links:
7
- - url: https://ui-lib.sats.com
8
- title: Website
9
- - url: https://satsdigital.slack.com/archives/C02U0R4004F
10
- title: Slack Channel
11
- spec:
12
- type: library
13
- lifecycle: production
14
- owner: sats-internal-apps-team
package/eslint.config.mjs DELETED
@@ -1,93 +0,0 @@
1
- import { FlatCompat } from '@eslint/eslintrc';
2
- import js from '@eslint/js';
3
- import typescriptEslint from '@typescript-eslint/eslint-plugin';
4
- import tsParser from '@typescript-eslint/parser';
5
- import prettier from 'eslint-plugin-prettier';
6
- import react from 'eslint-plugin-react';
7
- import path from 'node:path';
8
- import { fileURLToPath } from 'node:url';
9
-
10
- const __filename = fileURLToPath(import.meta.url);
11
- const __dirname = path.dirname(__filename);
12
- const compat = new FlatCompat({
13
- baseDirectory: __dirname,
14
- recommendedConfig: js.configs.recommended,
15
- allConfig: js.configs.all,
16
- });
17
-
18
- export default [
19
- {
20
- ignores: [
21
- '**/.vscode',
22
- '**/dist',
23
- '**/docs',
24
- '**/node_modules',
25
- '**/test-results',
26
- ],
27
- },
28
- ...compat.extends(
29
- 'eslint:recommended',
30
- 'plugin:@typescript-eslint/eslint-recommended',
31
- 'plugin:@typescript-eslint/recommended',
32
- 'prettier',
33
- ),
34
- {
35
- plugins: {
36
- '@typescript-eslint': typescriptEslint,
37
- prettier,
38
- react,
39
- },
40
- languageOptions: {
41
- globals: {},
42
- parser: tsParser,
43
- },
44
- settings: {
45
- 'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
46
- react: {
47
- version: '20',
48
- },
49
- },
50
- rules: {
51
- '@typescript-eslint/no-require-imports': 'off',
52
- '@typescript-eslint/ban-ts-comment': 'off',
53
- '@typescript-eslint/ban-types': 'off',
54
- '@typescript-eslint/explicit-module-boundary-types': 'off',
55
- '@typescript-eslint/no-empty-function': 'off',
56
- '@typescript-eslint/no-explicit-any': 'error',
57
- '@typescript-eslint/no-redeclare': 'error',
58
- '@typescript-eslint/no-unused-vars': [
59
- 'warn',
60
- {
61
- vars: 'all',
62
- args: 'after-used',
63
- argsIgnorePattern: '(^_|^next$)',
64
- },
65
- ],
66
- '@typescript-eslint/prefer-literal-enum-member': 'error',
67
- 'arrow-parens': ['warn', 'as-needed'],
68
- eqeqeq: 'error',
69
- 'no-console': 'warn',
70
- 'no-dupe-args': 'error',
71
- 'no-dupe-keys': 'error',
72
- 'no-irregular-whitespace': 'warn',
73
- 'no-unreachable': 'error',
74
- 'no-use-before-define': 'off',
75
- 'no-warning-comments': 'warn',
76
- 'prettier/prettier': [
77
- 'warn',
78
- {
79
- endOfLine: 'auto',
80
- singleQuote: true,
81
- },
82
- ],
83
- semi: 'error',
84
- strict: 'off',
85
- },
86
- },
87
- {
88
- files: ['**/*.js', '**/*.ts'],
89
- rules: {
90
- '@typescript-eslint/no-var-requires': 'off',
91
- },
92
- },
93
- ];
@@ -1,51 +0,0 @@
1
- /* eslint-disable no-var, @typescript-eslint/no-explicit-any */
2
- var hasOwn = {}.hasOwnProperty;
3
-
4
- // NOTE: This is copied from the source of 'classnames' and modified to produce BEM modifier classes. (source: https://github.com/JedWatson/classnames/blob/master/index.js)
5
-
6
- /** Creates modifier classnames of the provided values. The API is similar to `classnames`. All values passed will be prefixed by `className` (the first argument)
7
- *
8
- * Note that unlike with `classnames`, when an array is passed all elements must be strings
9
-
10
- ```
11
- mod("block__element", "something", { "is-active": true });
12
- // Returns "block__element block__element--something block__element--is-active"
13
- ```
14
- */
15
- export function mod(...args: any[]) {
16
- var baseName = args[0];
17
- if (!baseName) return '';
18
-
19
- var classes = [baseName];
20
-
21
- for (var i = 1; i < args.length; i++) {
22
- var arg = args[i];
23
- if (!arg) continue;
24
-
25
- var argType = typeof arg;
26
-
27
- if (argType === 'string' || argType === 'number') {
28
- classes.push(baseName + '--' + arg);
29
- } else if (Array.isArray(arg)) {
30
- if (arg.length) {
31
- for (var el of arg) {
32
- if (el) {
33
- classes.push(baseName + '--' + el);
34
- }
35
- }
36
- }
37
- } else if (argType === 'object') {
38
- if (arg.toString !== Object.prototype.toString) {
39
- classes.push(baseName + '--' + arg.toString());
40
- } else {
41
- for (var key in arg) {
42
- if (hasOwn.call(arg, key) && arg[key]) {
43
- classes.push(baseName + '--' + key);
44
- }
45
- }
46
- }
47
- }
48
- }
49
-
50
- return classes.join(' ');
51
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import cn from 'classnames';
3
-
4
- import { Badge as Props, variants, themes, Types } from './badge.types';
5
- import Text from '../text';
6
-
7
- const Badge: React.FunctionComponent<Props> & {
8
- variants: typeof variants;
9
- themes: typeof themes;
10
- } = ({ content, theme = themes.light, variant = variants.primary }) => (
11
- <Text
12
- size={Text.sizes.interface}
13
- className={cn('badge', `badge--theme-${theme}-${variant}`, {
14
- 'badge--padding-tight': content.type === Types.Icon,
15
- })}
16
- tight
17
- >
18
- {content.type === Types.Numerical
19
- ? content.content >= 1000
20
- ? '999+'
21
- : content.content
22
- : content.content}
23
- </Text>
24
- );
25
-
26
- Badge.variants = variants;
27
- Badge.themes = themes;
28
- export default Badge;
@@ -1,34 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { ObjectValues } from '../types';
3
-
4
- export const variants = {
5
- primary: 'primary',
6
- secondary: 'secondary',
7
- tertiary: 'tertiary',
8
- } as const;
9
-
10
- export const themes = {
11
- light: 'light',
12
- fixed: 'fixed',
13
- } as const;
14
-
15
- export enum Types {
16
- Numerical = 'Numerical',
17
- Icon = 'Icon',
18
- }
19
-
20
- type Icon = {
21
- type: Types.Icon;
22
- content: ReactElement;
23
- };
24
-
25
- type Numerical = {
26
- type: Types.Numerical;
27
- content: number;
28
- };
29
-
30
- export type Badge = {
31
- content: Numerical | Icon;
32
- theme?: ObjectValues<typeof themes>;
33
- variant?: ObjectValues<typeof variants>;
34
- };
@@ -1,93 +0,0 @@
1
- import cn from 'classnames';
2
- import React, { useState } from 'react';
3
-
4
- import Text from '../text';
5
- import VisuallyHidden from '../visually-hidden';
6
- import Error from '../icons/18/error';
7
- import Info from '../icons/18/info';
8
- import Confirm from '../icons/18/confirm';
9
- import WarningSign from '../icons/18/warning-sign';
10
- import Close from '../icons/18/close';
11
-
12
- import type { Banner as Props } from './banner.types';
13
-
14
- const typeIcon = {
15
- error: <Error />,
16
- information: <Info />,
17
- neutral: <Info />,
18
- success: <Confirm />,
19
- warning: <WarningSign />,
20
- };
21
-
22
- const Banner: React.FunctionComponent<Props> = ({
23
- dismiss,
24
- icon,
25
- link,
26
- list,
27
- nested,
28
- text,
29
- title,
30
- type,
31
- }) => {
32
- const [isDismissed, setDismissed] = useState(false);
33
- if (isDismissed) {
34
- return null;
35
- }
36
-
37
- const handleClick = () => setDismissed(true);
38
-
39
- return (
40
- <div
41
- className={cn('banner', {
42
- 'banner--layout-dismissable': !icon && dismiss,
43
- 'banner--layout-icon': icon && !dismiss,
44
- 'banner--layout-single': !icon && !dismiss,
45
- 'banner--layout-triple': icon && dismiss,
46
- 'banner--nested': nested,
47
- [`banner--type-${type}`]: type,
48
- })}
49
- >
50
- {icon ? <div className="banner__icon">{typeIcon[type]}</div> : null}
51
- <div className="banner__primary">
52
- {title ? (
53
- <div className="banner__title">
54
- <Text theme={Text.themes.emphasis} tight>
55
- {title}
56
- </Text>
57
- </div>
58
- ) : null}
59
- <Text className="banner__text" size={Text.sizes.small}>
60
- {text}
61
- </Text>
62
- {list.length ? (
63
- <Text
64
- elementName="ol"
65
- className="banner__list"
66
- size={Text.sizes.small}
67
- >
68
- {list.map(item => (
69
- <li key={item}>{item}</li>
70
- ))}
71
- </Text>
72
- ) : null}
73
- {link ? (
74
- <Text className="banner__link">
75
- <a className="banner__anchor" href={link.href}>
76
- {link.text}
77
- </a>
78
- </Text>
79
- ) : null}
80
- </div>
81
- {dismiss ? (
82
- <div className="banner__secondary">
83
- <button className="banner__dismisser" onClick={handleClick}>
84
- <VisuallyHidden>{dismiss}</VisuallyHidden>
85
- <Close />
86
- </button>
87
- </div>
88
- ) : null}
89
- </div>
90
- );
91
- };
92
-
93
- export default Banner;
@@ -1,10 +0,0 @@
1
- export type Banner = {
2
- dismiss?: string;
3
- icon?: boolean;
4
- link?: { href: string; text: string };
5
- list: string[];
6
- nested?: boolean;
7
- text: string;
8
- title?: string;
9
- type: 'error' | 'information' | 'neutral' | 'success' | 'warning';
10
- };
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import Text from '../text';
3
-
4
- import { Bomb as Props } from './bomb.types';
5
-
6
- const Bomb: React.FC<Props> = ({ label, price }) => (
7
- <div className="bomb">
8
- <div className="bomb__content">
9
- <Text size={Text.sizes.small} theme={Text.themes.normal}>
10
- {label}
11
- </Text>
12
- <Text size={Text.sizes.large} theme={Text.themes['emphasis']}>
13
- {price}
14
- </Text>
15
- </div>
16
- </div>
17
- );
18
-
19
- export default Bomb;
@@ -1 +0,0 @@
1
- export type Bomb = { label: string; price: string };
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
-
3
- import type { Button as Props } from './button.types';
4
-
5
- import VisuallyButton from '../visually-button';
6
-
7
- const ButtonRef = React.forwardRef<HTMLButtonElement, Props>(
8
- ({ type = 'button', ...rest }, ref) => (
9
- <VisuallyButton elementName="button" ref={ref} type={type} {...rest} />
10
- ),
11
- );
12
-
13
- ButtonRef.displayName = 'Button';
14
-
15
- const Button: typeof ButtonRef & {
16
- sizes: typeof VisuallyButton.sizes;
17
- variants: typeof VisuallyButton.variants;
18
- } = Object.assign(ButtonRef, {
19
- sizes: VisuallyButton.sizes,
20
- variants: VisuallyButton.variants,
21
- });
22
-
23
- export default Button;
@@ -1,176 +0,0 @@
1
- import cn from 'classnames';
2
- import * as React from 'react';
3
-
4
- import useInputValidation from '../use-input-validation';
5
- import Text from '../text';
6
-
7
- import { Checkbox as Props, themes } from './checkbox.types';
8
-
9
- const RefCheckbox = React.forwardRef<
10
- HTMLInputElement,
11
- React.PropsWithChildren<Props>
12
- >(
13
- (
14
- {
15
- children,
16
- disabled,
17
- description,
18
- extra,
19
- intermediate,
20
- isLabelVisible = true,
21
- label,
22
- name,
23
- showCustomError = true,
24
- theme,
25
- value = '',
26
- isUnderlined,
27
- required,
28
- ...restProps
29
- },
30
- ref,
31
- ) => {
32
- const [onChange, onInvalid, error] = useInputValidation();
33
-
34
- return (
35
- <div
36
- className={cn('checkbox', {
37
- 'checkbox--error': error,
38
- 'checkbox--intermediate': intermediate,
39
- [`checkbox--${theme}`]: theme,
40
- })}
41
- >
42
- <label
43
- className={cn('checkbox__content', {
44
- 'checkbox--underline': isUnderlined,
45
- })}
46
- >
47
- <div className="checkbox__main">
48
- <div className="checkbox__main-top">
49
- <div>
50
- <input
51
- aria-label={isLabelVisible ? undefined : label}
52
- className="checkbox__input"
53
- type="checkbox"
54
- name={name}
55
- onChange={e => {
56
- // NOTE: If props specify an `onChange`, we need to call that too
57
- if (restProps.onChange) restProps.onChange(e);
58
- onChange(e);
59
- }}
60
- onInvalid={e => {
61
- // NOTE: If props specify an `onInvalid`, we need to call that too
62
- if (restProps.onInvalid) restProps.onInvalid(e);
63
- onInvalid(e);
64
- }}
65
- ref={ref}
66
- value={value}
67
- disabled={disabled}
68
- required={required}
69
- {...restProps}
70
- />
71
-
72
- <div
73
- className={cn('checkbox__icon', {
74
- 'checkbox__icon--intermediate': intermediate,
75
- [`checkbox__icon--${theme}`]: theme,
76
- })}
77
- >
78
- <svg
79
- className="checkbox__intermediate"
80
- width="10"
81
- height="10"
82
- viewBox="0 0 10 10"
83
- fill="none"
84
- xmlns="http://www.w3.org/2000/svg"
85
- >
86
- <line
87
- x1="0"
88
- y1="5"
89
- x2="10"
90
- y2="5"
91
- stroke="currentColor"
92
- strokeWidth="2"
93
- />
94
- </svg>
95
- <svg
96
- className="checkbox__check"
97
- width="12"
98
- height="10"
99
- viewBox="0 0 12 10"
100
- fill="none"
101
- xmlns="http://www.w3.org/2000/svg"
102
- >
103
- <path
104
- d="M4.76123 9.0605L0.700729 5L1.76123 3.9395L4.76123 6.9395L10.7612 0.939501L11.8217 2L4.76123 9.0605Z"
105
- fill="currentColor"
106
- />
107
- </svg>
108
- </div>
109
- </div>
110
- {isLabelVisible ? (
111
- <>
112
- {label ? (
113
- <Text
114
- className={cn('checkbox__label', {
115
- [`checkbox__label--${theme}`]: theme,
116
- 'checkbox__label--disabled': disabled,
117
- })}
118
- size={Text.sizes.basic}
119
- >
120
- {label}
121
- </Text>
122
- ) : (
123
- <div
124
- className={cn('checkbox__label', {
125
- [`checkbox__label--${theme}`]: theme,
126
- 'checkbox__label--disabled': disabled,
127
- })}
128
- >
129
- {children}
130
- </div>
131
- )}
132
- </>
133
- ) : null}
134
- {required ? <span className="checkbox__asterisk">*</span> : null}
135
- </div>
136
- {description && (
137
- <Text
138
- className={cn('checkbox__description', {
139
- [`checkbox__label--${theme}`]: theme,
140
- 'checkbox__label--disabled': disabled,
141
- })}
142
- size={Text.sizes.small}
143
- >
144
- {description}
145
- </Text>
146
- )}
147
- </div>
148
- </label>
149
-
150
- {/* NOTE: This is aria-hidden because reporting of validation errors is handled by the browser */}
151
- {error && showCustomError && (
152
- <div
153
- aria-hidden="true"
154
- className={cn('checkbox__error', {
155
- [`checkbox__error--${theme}`]: theme,
156
- })}
157
- >
158
- {error}
159
- </div>
160
- )}
161
-
162
- {extra && <span className="checkbox__extra">{extra}</span>}
163
- </div>
164
- );
165
- },
166
- );
167
-
168
- // NOTE: If this isn't set, stack traces say "forwardRef" instead of "Checkbox"
169
- RefCheckbox.displayName = 'Checkbox';
170
-
171
- // NOTE: The component is redeclared here because TypeScript doesn't accept assigning extra properties to `RefComponent` when it's declared
172
- const Checkbox: typeof RefCheckbox & {
173
- themes: typeof themes;
174
- } = Object.assign(RefCheckbox, { themes });
175
-
176
- export default Checkbox;
@@ -1,19 +0,0 @@
1
- import { ObjectValues, InputHtmlProps } from '../types';
2
-
3
- export const themes = {
4
- light: 'light',
5
- blue: 'blue',
6
- } as const;
7
-
8
- export type Checkbox = Omit<InputHtmlProps, 'value'> & {
9
- intermediate?: boolean;
10
- description?: string;
11
- extra?: React.ReactNode;
12
- isLabelVisible?: boolean;
13
- label?: string;
14
- name: string;
15
- value: string;
16
- showCustomError?: boolean;
17
- theme?: ObjectValues<typeof themes>;
18
- isUnderlined?: boolean;
19
- };