@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,2 @@
1
+ var v=Object.defineProperty,b=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var p=(i,e,t)=>e in i?v(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,m=(i,e)=>{for(var t in e||(e={}))O.call(e,t)&&p(i,t,e[t]);if(d)for(var t of d(e))S.call(e,t)&&p(i,t,e[t]);return i},u=(i,e)=>b(i,C(e));var n=(i,e,t)=>p(i,typeof e!="symbol"?e+"":e,t);import M,{Component as w,createRef as P}from"react";class g extends w{constructor(){super(...arguments);n(this,"state",{height:this.props.forceInitialAnimation||!this.props.isOpen?0:null,isAnimating:!1,isMounted:!1,isOpen:this.props.isOpen||!1});n(this,"wrapperRef",P());n(this,"previousHeight",0);n(this,"raf",null);n(this,"timer",null);n(this,"isAnimating",!1);n(this,"getHeight",()=>{var s;const t=(s=this.wrapperRef.current)==null?void 0:s.firstElementChild;return t?Math.max(t.offsetHeight-1,0):0});n(this,"transition",()=>{const t=this.props.isOpen?this.getHeight():0;clearTimeout(this.timer),cancelAnimationFrame(this.raf),this.isAnimating=!0,this.setState({height:this.previousHeight,isAnimating:!0,shouldAnimate:!1},()=>{this.previousHeight=t,this.raf=requestAnimationFrame(()=>{this.raf=requestAnimationFrame(()=>{this.setState({height:t},()=>{this.timer=window.setTimeout(()=>{this.setState({height:this.props.isOpen?null:0,isAnimating:!1},()=>{this.isAnimating=!1})},this.props.duration)})})})})});n(this,"onTransitionEnd",()=>{this.previousHeight=this.getHeight()})}componentDidMount(){this.setState({isMounted:!0},()=>{this.props.forceInitialAnimation?this.transition():(this.previousHeight=this.props.isOpen?this.getHeight():0,this.setState({isAnimating:!1}))})}static getDerivedStateFromProps(t,s){const o=t.isOpen!==s.isOpen,a=!s.isMounted&&t.forceInitialAnimation&&t.isOpen;return{isOpen:t.isOpen||!1,shouldAnimate:o||a}}getSnapshotBeforeUpdate(){return this.props.isOpen?this.getHeight():0}componentDidUpdate(t,s,o){if(this.isAnimating&&!this.state.shouldAnimate)return;const a=this.getHeight(),r=a!==o;this.props.onMeasure(a),this.state.shouldAnimate||r&&this.props.animateChildren?this.transition():r&&(this.previousHeight=this.getHeight())}componentWillUnmount(){clearTimeout(this.timer),cancelAnimationFrame(this.raf)}render(){const{isAnimating:t,isMounted:s}=this.state,{component:o="div",componentProps:a={},forceInitialAnimation:r,isOpen:h,unmountChildren:f,className:c,children:A}=this.props,H=f?h||t:!0,l=!s&&r&&h;return M.createElement(o,u(m({},a),{className:c,onTransitionEnd:this.onTransitionEnd,ref:this.wrapperRef,style:u(m({},a.style),{height:this.state.height,overflow:t||!h||l?"hidden":void 0,visibility:!t&&!h||l?"hidden":void 0,transition:t||l?`height ${this.props.duration}ms ${this.props.easing}`:void 0})}),H&&A)}}n(g,"defaultProps",{animateChildren:!1,component:"div",componentProps:{},duration:500,easing:"cubic-bezier(0.3,0,0,1)",forceInitialAnimation:!1,isOpen:!1,onMeasure:()=>{},unmountChildren:!1});var I=g;export{I as default};
2
+ //# sourceMappingURL=collapse.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/collapse/collapse.tsx"],
4
+ "sourcesContent": ["import React, { Component, createRef } from 'react';\n\nimport { Collapse as Props } from './collapse.types';\n\ninterface CollapseState {\n height: number | null;\n isAnimating: boolean;\n isMounted: boolean;\n isOpen: boolean;\n shouldAnimate?: boolean;\n}\n\nclass Collapse extends Component<Props, CollapseState> {\n static defaultProps: Props = {\n animateChildren: false,\n component: 'div',\n componentProps: {},\n duration: 500,\n easing: 'cubic-bezier(0.3,0,0,1)',\n forceInitialAnimation: false,\n isOpen: false,\n onMeasure: () => {},\n unmountChildren: false,\n };\n\n state: CollapseState = {\n height: this.props.forceInitialAnimation || !this.props.isOpen ? 0 : null,\n isAnimating: false,\n isMounted: false,\n isOpen: this.props.isOpen || false,\n };\n\n private wrapperRef = createRef<HTMLElement>();\n private previousHeight: number = 0;\n private raf: number | null = null;\n private timer: number | null = null;\n private isAnimating: boolean = false;\n\n getHeight = (): number => {\n const child = this.wrapperRef.current\n ?.firstElementChild as HTMLElement | null;\n return child ? Math.max(child.offsetHeight - 1, 0) : 0; // -1px to avoid jump after transition\n };\n\n transition = () => {\n const newHeight = this.props.isOpen ? this.getHeight() : 0;\n\n clearTimeout(this.timer!);\n cancelAnimationFrame(this.raf!);\n this.isAnimating = true;\n\n this.setState(\n { height: this.previousHeight, isAnimating: true, shouldAnimate: false },\n () => {\n this.previousHeight = newHeight;\n this.raf = requestAnimationFrame(() => {\n this.raf = requestAnimationFrame(() => {\n this.setState({ height: newHeight }, () => {\n this.timer = window.setTimeout(() => {\n this.setState(\n {\n height: this.props.isOpen ? null : 0,\n isAnimating: false,\n },\n () => {\n this.isAnimating = false;\n },\n );\n }, this.props.duration);\n });\n });\n });\n },\n );\n };\n\n componentDidMount() {\n this.setState({ isMounted: true }, () => {\n if (this.props.forceInitialAnimation) {\n this.transition();\n } else {\n this.previousHeight = this.props.isOpen ? this.getHeight() : 0;\n this.setState({ isAnimating: false });\n }\n });\n }\n\n onTransitionEnd = () => {\n this.previousHeight = this.getHeight();\n };\n\n static getDerivedStateFromProps(\n nextProps: Props,\n prevState: CollapseState,\n ): Partial<CollapseState> | null {\n const openDidChange = nextProps.isOpen !== prevState.isOpen;\n const forceAnimation =\n !prevState.isMounted &&\n nextProps.forceInitialAnimation &&\n nextProps.isOpen;\n\n return {\n isOpen: nextProps.isOpen || false,\n shouldAnimate: openDidChange || forceAnimation,\n };\n }\n\n getSnapshotBeforeUpdate(): number {\n return this.props.isOpen ? this.getHeight() : 0;\n }\n\n componentDidUpdate(\n _prevProps: Props,\n _prevState: CollapseState,\n snapshot: number,\n ) {\n if (this.isAnimating && !this.state.shouldAnimate) {\n return;\n }\n\n const newHeight = this.getHeight();\n const childrenDidChange = newHeight !== snapshot;\n this.props.onMeasure!(newHeight);\n\n if (\n this.state.shouldAnimate ||\n (childrenDidChange && this.props.animateChildren)\n ) {\n this.transition();\n } else if (childrenDidChange) {\n this.previousHeight = this.getHeight();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timer!);\n cancelAnimationFrame(this.raf!);\n }\n\n render() {\n const { isAnimating, isMounted } = this.state;\n const {\n component = 'div',\n componentProps = {},\n forceInitialAnimation,\n isOpen,\n unmountChildren,\n className,\n children,\n } = this.props;\n const shouldMount = unmountChildren ? isOpen || isAnimating : true;\n const initiallyHidden = !isMounted && forceInitialAnimation && isOpen;\n\n return React.createElement(\n component,\n {\n ...componentProps,\n className: className,\n onTransitionEnd: this.onTransitionEnd,\n ref: this.wrapperRef,\n style: {\n ...componentProps.style,\n height: this.state.height,\n overflow:\n isAnimating || !isOpen || initiallyHidden ? 'hidden' : undefined,\n visibility:\n (!isAnimating && !isOpen) || initiallyHidden ? 'hidden' : undefined,\n transition:\n isAnimating || initiallyHidden\n ? `height ${this.props.duration}ms ${this.props.easing}`\n : undefined,\n },\n },\n shouldMount && children,\n );\n }\n}\n\nexport default Collapse;\n"],
5
+ "mappings": "6dAAA,OAAOA,GAAS,aAAAC,EAAW,aAAAC,MAAiB,QAY5C,MAAMC,UAAiBF,CAAgC,CAAvD,kCAaEG,EAAA,aAAuB,CACrB,OAAQ,KAAK,MAAM,uBAAyB,CAAC,KAAK,MAAM,OAAS,EAAI,KACrE,YAAa,GACb,UAAW,GACX,OAAQ,KAAK,MAAM,QAAU,EAC/B,GAEAA,EAAA,KAAQ,aAAaF,EAAuB,GAC5CE,EAAA,KAAQ,iBAAyB,GACjCA,EAAA,KAAQ,MAAqB,MAC7BA,EAAA,KAAQ,QAAuB,MAC/BA,EAAA,KAAQ,cAAuB,IAE/BA,EAAA,iBAAY,IAAc,CAtC5B,IAAAC,EAuCI,MAAMC,GAAQD,EAAA,KAAK,WAAW,UAAhB,YA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"child", "newHeight", "nextProps", "prevState", "openDidChange", "forceAnimation", "_prevProps", "_prevState", "snapshot", "childrenDidChange", "isAnimating", "isMounted", "component", "componentProps", "forceInitialAnimation", "isOpen", "unmountChildren", "className", "children", "shouldMount", "initiallyHidden", "__spreadProps", "__spreadValues", "collapse_default"]
7
+ }
@@ -0,0 +1,13 @@
1
+ export type Collapse = {
2
+ animateChildren?: boolean;
3
+ component?: string;
4
+ componentProps?: React.HTMLAttributes<HTMLElement>;
5
+ duration?: number;
6
+ easing?: string;
7
+ forceInitialAnimation?: boolean;
8
+ isOpen?: boolean;
9
+ onMeasure?: (height: number) => void;
10
+ unmountChildren?: boolean;
11
+ className?: string;
12
+ children?: React.ReactNode;
13
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=collapse.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ import o from"./collapse";var l=o;export{l as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/collapse/index.ts"],
4
+ "sourcesContent": ["import Collapse from './collapse';\nexport default Collapse;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAc,aACrB,IAAOC,EAAQD",
6
+ "names": ["Collapse", "collapse_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export declare const names: string[];
2
+ export declare const selectors: string[];
@@ -0,0 +1,2 @@
1
+ const e=["badge","banner","bomb","button","checkbox","chip","chip-selected","collapse","confirmation","context-menu","cropped-image","div-button","dropdown-list","expander","filter","filter-wrapper","flag","form-content","hidden-input","link","link-button","link-card","message","message-field","modal","progress-bar","radio","scale-bar","search","select","select-option","tag","text","text-area","text-input","toggle","toolbox","visually-button","visually-hidden"],t=[".badge",".banner",".bomb",".button",".checkbox",".chip",".chip-selected",".collapse",".confirmation",".context-menu",".cropped-image",".div-button",".dropdown-list",".expander",".filter",".filter-wrapper",".flag",".form-content",".hidden-input",".link",".link-button",".link-card",".message",".message-field",".modal",".progress-bar",".radio",".scale-bar",".search",".select",".select-option",".tag",".text",".text-area",".text-input",".toggle",".toolbox",".visually-button",".visually-hidden"];export{e as names,t as selectors};
2
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../react/components.ts"],
4
+ "sourcesContent": ["export const names = [\n 'badge',\n 'banner',\n 'bomb',\n 'button',\n 'checkbox',\n 'chip',\n 'chip-selected',\n 'collapse',\n 'confirmation',\n 'context-menu',\n 'cropped-image',\n 'div-button',\n 'dropdown-list',\n 'expander',\n 'filter',\n 'filter-wrapper',\n 'flag',\n 'form-content',\n 'hidden-input',\n 'link',\n 'link-button',\n 'link-card',\n 'message',\n 'message-field',\n 'modal',\n 'progress-bar',\n 'radio',\n 'scale-bar',\n 'search',\n 'select',\n 'select-option',\n 'tag',\n 'text',\n 'text-area',\n 'text-input',\n 'toggle',\n 'toolbox',\n 'visually-button',\n 'visually-hidden',\n];\n\nexport const selectors = [\n '.badge',\n '.banner',\n '.bomb',\n '.button',\n '.checkbox',\n '.chip',\n '.chip-selected',\n '.collapse',\n '.confirmation',\n '.context-menu',\n '.cropped-image',\n '.div-button',\n '.dropdown-list',\n '.expander',\n '.filter',\n '.filter-wrapper',\n '.flag',\n '.form-content',\n '.hidden-input',\n '.link',\n '.link-button',\n '.link-card',\n '.message',\n '.message-field',\n '.modal',\n '.progress-bar',\n '.radio',\n '.scale-bar',\n '.search',\n '.select',\n '.select-option',\n '.tag',\n '.text',\n '.text-area',\n '.text-input',\n '.toggle',\n '.toolbox',\n '.visually-button',\n '.visually-hidden',\n];\n"],
5
+ "mappings": "AAAO,MAAMA,EAAQ,CACnB,QACA,SACA,OACA,SACA,WACA,OACA,gBACA,WACA,eACA,eACA,gBACA,aACA,gBACA,WACA,SACA,iBACA,OACA,eACA,eACA,OACA,cACA,YACA,UACA,gBACA,QACA,eACA,QACA,YACA,SACA,SACA,gBACA,MACA,OACA,YACA,aACA,SACA,UACA,kBACA,iBACF,EAEaC,EAAY,CACvB,SACA,UACA,QACA,UACA,YACA,QACA,iBACA,YACA,gBACA,gBACA,iBACA,cACA,iBACA,YACA,UACA,kBACA,QACA,gBACA,gBACA,QACA,eACA,aACA,WACA,iBACA,SACA,gBACA,SACA,aACA,UACA,UACA,iBACA,OACA,QACA,aACA,cACA,UACA,WACA,mBACA,kBACF",
6
+ "names": ["names", "selectors"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { Confirmation as Props } from './confirmation.types';
3
+ declare const Confirmation: React.FC<React.PropsWithChildren<Props>>;
4
+ export default Confirmation;
@@ -0,0 +1,2 @@
1
+ var b=Object.defineProperty,h=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var l=(a,i,r)=>i in a?b(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r,t=(a,i)=>{for(var r in i||(i={}))T.call(i,r)&&l(a,r,i[r]);if(c)for(var r of c(i))C.call(i,r)&&l(a,r,i[r]);return a},m=(a,i)=>h(a,y(i));import*as o from"react";import*as x from"react-dom";import n from"../button";import u from"../link-button";import M from"../modal/tab-trapper";import e from"../text";import P from"../hooks/use-escape";import{useIsMounted as k}from"../hooks/use-is-mounted";const z=({children:a,close:i,confirmationButton:r,confirmationLink:s,onClose:d=()=>{},onConfirm:v,text:p,title:f,ariaLabel:_,actionButtonType:N="primary"})=>(P(d),k()?x.createPortal(o.createElement("div",{className:"confirmation",role:"dialog","aria-label":_},o.createElement("div",{className:"confirmation__content"},o.createElement(M,{isActive:!0},o.createElement("div",{className:"confirmation__wrapper"},f?o.createElement(e,{className:"confirmation__title",elementName:"h2",theme:e.themes.emphasis,size:e.sizes.headline3},f):void 0,p?o.createElement(e,{className:"confirmation__text"},p):o.createElement("div",{className:"confirmation__children"},a),o.createElement("div",{className:"confirmation__buttons"},r?o.createElement(n,m(t({className:"confirmation__button",variant:N==="primary"?n.variants.primary:n.variants.primaryDestructive},r),{onClick:v})):void 0,s?o.createElement(u,t({className:"confirmation__button",variant:u.variants.primary},s)):void 0,i?o.createElement(n,m(t({className:"confirmation__button",variant:n.variants.secondary},i),{onClick:d})):void 0))))),document.body):null);var j=z;export{j as default};
2
+ //# sourceMappingURL=confirmation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/confirmation/confirmation.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\n\nimport Button from '../button';\nimport LinkButton from '../link-button';\nimport TabTrapper from '../modal/tab-trapper';\nimport Text from '../text';\nimport useEscape from '../hooks/use-escape';\nimport { useIsMounted } from '../hooks/use-is-mounted';\n\nimport { Confirmation as Props } from './confirmation.types';\n\nconst Confirmation: React.FC<React.PropsWithChildren<Props>> = ({\n children,\n close,\n confirmationButton,\n confirmationLink,\n onClose = () => {},\n onConfirm,\n text,\n title,\n ariaLabel,\n actionButtonType = 'primary',\n}) => {\n useEscape(onClose);\n\n const isMounted = useIsMounted();\n\n if (!isMounted) {\n return null;\n }\n\n return ReactDOM.createPortal(\n <div className=\"confirmation\" role=\"dialog\" aria-label={ariaLabel}>\n <div className=\"confirmation__content\">\n <TabTrapper isActive={true}>\n <div className=\"confirmation__wrapper\">\n {title ? (\n <Text\n className=\"confirmation__title\"\n elementName=\"h2\"\n theme={Text.themes.emphasis}\n size={Text.sizes.headline3}\n >\n {title}\n </Text>\n ) : undefined}\n {text ? (\n <Text className=\"confirmation__text\">{text}</Text>\n ) : (\n <div className=\"confirmation__children\">{children}</div>\n )}\n <div className=\"confirmation__buttons\">\n {confirmationButton ? (\n <Button\n className=\"confirmation__button\"\n variant={\n actionButtonType === 'primary'\n ? Button.variants.primary\n : Button.variants.primaryDestructive\n }\n {...confirmationButton}\n onClick={onConfirm}\n />\n ) : undefined}\n {confirmationLink ? (\n <LinkButton\n className=\"confirmation__button\"\n variant={LinkButton.variants.primary}\n {...confirmationLink}\n />\n ) : undefined}\n {close ? (\n <Button\n className=\"confirmation__button\"\n variant={Button.variants.secondary}\n {...close}\n onClick={onClose}\n />\n ) : undefined}\n </div>\n </div>\n </TabTrapper>\n </div>\n </div>,\n document.body,\n );\n};\n\nexport default Confirmation;\n"],
5
+ "mappings": "6aAAA,UAAYA,MAAW,QACvB,UAAYC,MAAc,YAE1B,OAAOC,MAAY,YACnB,OAAOC,MAAgB,iBACvB,OAAOC,MAAgB,uBACvB,OAAOC,MAAU,UACjB,OAAOC,MAAe,sBACtB,OAAS,gBAAAC,MAAoB,0BAI7B,MAAMC,EAAyD,CAAC,CAC9D,SAAAC,EACA,MAAAC,EACA,mBAAAC,EACA,iBAAAC,EACA,QAAAC,EAAU,IAAM,CAAC,EACjB,UAAAC,EACA,KAAAC,EACA,MAAAC,EACA,UAAAC,EACA,iBAAAC,EAAmB,SACrB,KACEZ,EAAUO,CAAO,EAECN,EAAa,EAMxBN,EAAS,aACdD,EAAA,cAAC,OAAI,UAAU,eAAe,KAAK,SAAS,aAAYiB,GACtDjB,EAAA,cAAC,OAAI,UAAU,yBACbA,EAAA,cAACI,EAAA,CAAW,SAAU,IACpBJ,EAAA,cAAC,OAAI,UAAU,yBACZgB,EACChB,EAAA,cAACK,EAAA,CACC,UAAU,sBACV,YAAY,KACZ,MAAOA,EAAK,OAAO,SACnB,KAAMA,EAAK,MAAM,WAEhBW,CACH,EACE,OACHD,EACCf,EAAA,cAACK,EAAA,CAAK,UAAU,sBAAsBU,CAAK,EAE3Cf,EAAA,cAAC,OAAI,UAAU,0BAA0BS,CAAS,EAEpDT,EAAA,cAAC,OAAI,UAAU,yBACZW,EACCX,EAAA,cAACE,EAAAiB,EAAAC,EAAA,CACC,UAAU,uBACV,QACEF,IAAqB,UACjBhB,EAAO,SAAS,QAChBA,EAAO,SAAS,oBAElBS,GAPL,CAQC,QAASG,GACX,EACE,OACHF,EACCZ,EAAA,cAACG,EAAAiB,EAAA,CACC,UAAU,uBACV,QAASjB,EAAW,SAAS,SACzBS,EACN,EACE,OACHF,EACCV,EAAA,cAACE,EAAAiB,EAAAC,EAAA,CACC,UAAU,uBACV,QAASlB,EAAO,SAAS,WACrBQ,GAHL,CAIC,QAASG,GACX,EACE,MACN,CACF,CACF,CACF,CACF,EACA,SAAS,IACX,EAzDS,MA4DX,IAAOQ,EAAQb",
6
+ "names": ["React", "ReactDOM", "Button", "LinkButton", "TabTrapper", "Text", "useEscape", "useIsMounted", "Confirmation", "children", "close", "confirmationButton", "confirmationLink", "onClose", "onConfirm", "text", "title", "ariaLabel", "actionButtonType", "__spreadProps", "__spreadValues", "confirmation_default"]
7
+ }
@@ -0,0 +1,22 @@
1
+ import { Button } from '../button/button.types';
2
+ import { LinkButton } from '../link-button/link-button.types';
3
+ type ConfirmationBase = {
4
+ close?: Button;
5
+ onClose?: () => void;
6
+ title?: string;
7
+ text?: string;
8
+ ariaLabel: string;
9
+ actionButtonType?: 'primary' | 'destructive';
10
+ };
11
+ type ConfirmationRedirect = ConfirmationBase & {
12
+ confirmationLink: LinkButton;
13
+ confirmationButton?: never;
14
+ onConfirm?: never;
15
+ };
16
+ type ConfirmationAction = ConfirmationBase & {
17
+ confirmationLink?: never;
18
+ confirmationButton: Button;
19
+ onConfirm?: () => void;
20
+ };
21
+ export type Confirmation = ConfirmationRedirect | ConfirmationAction;
22
+ export {};
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=confirmation.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ import o from"./confirmation";var t=o;export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/confirmation/index.ts"],
4
+ "sourcesContent": ["import Confirmation from './confirmation';\nexport default Confirmation;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAkB,iBACzB,IAAOC,EAAQD",
6
+ "names": ["Confirmation", "confirmation_default"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ContextMenu as Props, itemThemes, positions } from './context-menu.types';
3
+ declare const ContextMenu: React.FunctionComponent<Props> & {
4
+ position: typeof positions;
5
+ itemTheme: typeof itemThemes;
6
+ };
7
+ export default ContextMenu;
@@ -0,0 +1,2 @@
1
+ var E=Object.defineProperty,S=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var N=(m,o,n)=>o in m?E(m,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):m[o]=n,u=(m,o)=>{for(var n in o||(o={}))C.call(o,n)&&N(m,n,o[n]);if(b)for(var n of b(o))L.call(o,n)&&N(m,n,o[n]);return m},w=(m,o)=>S(m,g(o));import t,{useEffect as P,useRef as W,useState as M}from"react";import r from"classnames";import B from"../icons/18/close";import F from"../hidden-input";import H from"../hooks/focus-previous-element";import A from"../modal/tab-trapper";import O from"../hooks/use-click-outside";import j from"../hooks/use-escape";import x from"../button";import p from"../text";import q from"../ts/debounce";import{Types as _,itemThemes as G,positions as y}from"./context-menu.types";const h=({list:m,isOpen:o,onClose:n=()=>{},position:f=y.right,title:z,close:k,descriptions:i,smallDescription:l})=>{const d=W(null),[a,v]=M();O(d,n),j(n),H(d,o),P(()=>{a||v(window.innerWidth);const s=()=>{v(window.innerWidth)};return window.addEventListener("resize",q(s,2e3)),()=>window.addEventListener("resize",s)});const c=t.createElement("div",{className:r("context-menu",{[`context-menu--${f}`]:f}),ref:d,tabIndex:-1},t.createElement("div",{className:r("context-menu__texts-wrapper",{"context-menu__texts-wrapper--center":!(i!=null&&i.length)})},t.createElement("div",{className:"context-menu__texts"},t.createElement(p,{theme:p.themes.emphasis,size:p.sizes.small},z),i?i.map(s=>t.createElement(p,{size:p.sizes.small,className:"context-menu__texts-description",key:s},s)):null,l?t.createElement(p,{size:p.sizes.interface,className:"context-menu__texts-description",key:l},l):null),t.createElement("div",null,t.createElement(x,w(u({},k),{iconOnly:!0,leadingIcon:t.createElement(B,null),onClick:n,size:x.sizes.small,variant:x.variants.tertiary})))),t.createElement("div",{className:"context-menu__list-items"},m.map(({icon:s,item:e},$)=>t.createElement("div",{key:e.props.text+$},e.type===_.Link?t.createElement("a",{href:e.props.href,className:r("context-menu__list-item-link",{[`context-menu__list-item-link--theme-${e.props.theme}`]:e.props.theme}),"data-testid":e.props.testId},s?t.createElement("div",{className:r("context-menu__list-icon",{[`context-menu__list-icon--theme-${e.props.theme}`]:e.props.theme})},s):null,t.createElement(p,null,e.props.text)):e.type===_.Form?t.createElement("form",{onSubmit:e.props.handleSubmit,action:e.props.action,method:"POST",className:r("context-menu__list-item-form",{[`context-menu__list-item-form--theme-${e.props.theme}`]:e.props.theme})},t.createElement("button",{type:"submit",className:r("context-menu__list-item-form-button",{[`context-menu__list-item-form-button--theme-${e.props.theme}`]:e.props.theme}),"data-testid":e.props.testId},s?t.createElement("div",{className:r("context-menu__list-icon",{[`context-menu__list-icon--theme-${e.props.theme}`]:e.props.theme})},s):null,t.createElement(p,null,e.props.text)),e.props.hiddenInputs?e.props.hiddenInputs.map((T,I)=>t.createElement(F,u({key:T.name+I},T))):null):e.type===_.Button?t.createElement("button",u({className:r("context-menu__list-item-button",{[`context-menu__list-item-button--theme-${e.props.theme}`]:e.props.theme})},e.props),s?t.createElement("div",{className:r("context-menu__list-icon",{[`context-menu__list-icon--theme-${e.props.theme}`]:e.props.theme})},s):null,t.createElement(p,null,e.props.text)):null))));return o?t.createElement(t.Fragment,null,t.createElement("div",{className:"context-menu__background-overlay"}),a&&a<600?t.createElement(A,{isActive:o},c):t.createElement("div",null,c)):null};h.position=y,h.itemTheme=G;var se=h;export{se as default};
2
+ //# sourceMappingURL=context-menu.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/context-menu/context-menu.tsx"],
4
+ "sourcesContent": ["import React, { useEffect, useRef, useState } from 'react';\nimport classNames from 'classnames';\n\nimport Close from '../icons/18/close';\nimport HiddenInput from '../hidden-input';\nimport focusPreviousElement from '../hooks/focus-previous-element';\nimport TabTrapper from '../modal/tab-trapper';\nimport useClickOutside from '../hooks/use-click-outside';\nimport useEscape from '../hooks/use-escape';\nimport Button from '../button';\nimport Text from '../text';\nimport debounce from '../ts/debounce';\n\nimport {\n ContextMenu as Props,\n Types,\n itemThemes,\n positions,\n} from './context-menu.types';\n\nconst ContextMenu: React.FunctionComponent<Props> & {\n position: typeof positions;\n itemTheme: typeof itemThemes;\n} = ({\n list,\n isOpen,\n onClose = () => {},\n position = positions.right,\n title,\n close,\n descriptions,\n smallDescription,\n}) => {\n const modal = useRef<HTMLDivElement>(null);\n const [windowSize, setWindowSize] = useState<number>();\n useClickOutside(modal, onClose);\n useEscape(onClose);\n\n focusPreviousElement(modal, isOpen);\n\n useEffect(() => {\n if (!windowSize) setWindowSize(window.innerWidth);\n const handleWindowResize = () => {\n setWindowSize(window.innerWidth);\n };\n window.addEventListener('resize', debounce(handleWindowResize, 2000));\n\n return () => window.addEventListener('resize', handleWindowResize);\n });\n\n const component = (\n <div\n className={classNames('context-menu', {\n [`context-menu--${position}`]: position,\n })}\n ref={modal}\n tabIndex={-1}\n >\n <div\n className={classNames('context-menu__texts-wrapper', {\n 'context-menu__texts-wrapper--center': !descriptions?.length,\n })}\n >\n <div className=\"context-menu__texts\">\n <Text theme={Text.themes.emphasis} size={Text.sizes.small}>\n {title}\n </Text>\n\n {descriptions\n ? descriptions.map(description => (\n <Text\n size={Text.sizes.small}\n className=\"context-menu__texts-description\"\n key={description}\n >\n {description}\n </Text>\n ))\n : null}\n {smallDescription ? (\n <Text\n size={Text.sizes.interface}\n className=\"context-menu__texts-description\"\n key={smallDescription}\n >\n {smallDescription}\n </Text>\n ) : null}\n </div>\n <div>\n <Button\n {...close}\n iconOnly\n leadingIcon={<Close />}\n onClick={onClose}\n size={Button.sizes.small}\n variant={Button.variants.tertiary}\n />\n </div>\n </div>\n <div className=\"context-menu__list-items\">\n {list.map(({ icon, item }, index) => (\n <div key={item.props.text + index}>\n {item.type === Types.Link ? (\n <a\n href={item.props.href}\n className={classNames('context-menu__list-item-link', {\n [`context-menu__list-item-link--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n data-testid={item.props.testId}\n >\n {icon ? (\n <div\n className={classNames('context-menu__list-icon', {\n [`context-menu__list-icon--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n >\n {icon}\n </div>\n ) : null}\n <Text>{item.props.text}</Text>\n </a>\n ) : item.type === Types.Form ? (\n <form\n onSubmit={item.props.handleSubmit}\n action={item.props.action}\n method=\"POST\"\n className={classNames('context-menu__list-item-form', {\n [`context-menu__list-item-form--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n >\n <button\n type=\"submit\"\n className={classNames('context-menu__list-item-form-button', {\n [`context-menu__list-item-form-button--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n data-testid={item.props.testId}\n >\n {icon ? (\n <div\n className={classNames('context-menu__list-icon', {\n [`context-menu__list-icon--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n >\n {icon}\n </div>\n ) : null}\n <Text>{item.props.text}</Text>\n </button>\n {item.props.hiddenInputs\n ? item.props.hiddenInputs.map((input, index) => (\n <HiddenInput key={input.name + index} {...input} />\n ))\n : null}\n </form>\n ) : item.type === Types.Button ? (\n <button\n className={classNames('context-menu__list-item-button', {\n [`context-menu__list-item-button--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n {...item.props}\n >\n {icon ? (\n <div\n className={classNames('context-menu__list-icon', {\n [`context-menu__list-icon--theme-${item.props.theme}`]:\n item.props.theme,\n })}\n >\n {icon}\n </div>\n ) : null}\n <Text>{item.props.text}</Text>\n </button>\n ) : null}\n </div>\n ))}\n </div>\n </div>\n );\n return isOpen ? (\n <>\n <div className=\"context-menu__background-overlay\"></div>\n {windowSize && windowSize < 600 ? ( // 600 is the breakpoint for the component.\n <TabTrapper isActive={isOpen}>{component}</TabTrapper>\n ) : (\n <div>{component}</div>\n )}\n </>\n ) : null;\n};\n\nContextMenu.position = positions;\nContextMenu.itemTheme = itemThemes;\nexport default ContextMenu;\n"],
5
+ "mappings": "6aAAA,OAAOA,GAAS,aAAAC,EAAW,UAAAC,EAAQ,YAAAC,MAAgB,QACnD,OAAOC,MAAgB,aAEvB,OAAOC,MAAW,oBAClB,OAAOC,MAAiB,kBACxB,OAAOC,MAA0B,kCACjC,OAAOC,MAAgB,uBACvB,OAAOC,MAAqB,6BAC5B,OAAOC,MAAe,sBACtB,OAAOC,MAAY,YACnB,OAAOC,MAAU,UACjB,OAAOC,MAAc,iBAErB,OAEE,SAAAC,EACA,cAAAC,EACA,aAAAC,MACK,uBAEP,MAAMC,EAGF,CAAC,CACH,KAAAC,EACA,OAAAC,EACA,QAAAC,EAAU,IAAM,CAAC,EACjB,SAAAC,EAAWL,EAAU,MACrB,MAAAM,EACA,MAAAC,EACA,aAAAC,EACA,iBAAAC,CACF,IAAM,CACJ,MAAMC,EAAQxB,EAAuB,IAAI,EACnC,CAACyB,EAAYC,CAAa,EAAIzB,EAAiB,EACrDM,EAAgBiB,EAAON,CAAO,EAC9BV,EAAUU,CAAO,EAEjBb,EAAqBmB,EAAOP,CAAM,EAElClB,EAAU,IAAM,CACT0B,GAAYC,EAAc,OAAO,UAAU,EAChD,MAAMC,EAAqB,IAAM,CAC/BD,EAAc,OAAO,UAAU,CACjC,EACA,cAAO,iBAAiB,SAAUf,EAASgB,EAAoB,GAAI,CAAC,EAE7D,IAAM,OAAO,iBAAiB,SAAUA,CAAkB,CACnE,CAAC,EAED,MAAMC,EACJ9B,EAAA,cAAC,OACC,UAAWI,EAAW,eAAgB,CACpC,CAAC,iBAAiBiB,CAAQ,EAAE,EAAG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A,EAAa,IAC1B3B,EAAA,cAACQ,EAAA,CAAW,SAAUW,GAASW,CAAU,EAEzC9B,EAAA,cAAC,WAAK8B,CAAU,CAEpB,EACE,IACN,EAEAb,EAAY,SAAWD,EACvBC,EAAY,UAAYF,EACxB,IAAOuB,GAAQrB",
6
+ "names": ["React", "useEffect", "useRef", "useState", "classNames", "Close", "HiddenInput", "focusPreviousElement", "TabTrapper", "useClickOutside", "useEscape", "Button", "Text", "debounce", "Types", "itemThemes", "positions", "ContextMenu", "list", "isOpen", "onClose", "position", "title", "close", "descriptions", "smallDescription", "modal", "windowSize", "setWindowSize", "handleWindowResize", "component", "description", "__spreadProps", "__spreadValues", "icon", "item", "index", "input", "context_menu_default"]
7
+ }
@@ -0,0 +1,64 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { Button } from '../button/button.types';
3
+ import type { HiddenInput } from '../hidden-input/hidden-input.types';
4
+ import type { ButtonHtmlProps, ObjectValues } from '../types';
5
+ export declare const positions: {
6
+ readonly top: "top";
7
+ readonly right: "right";
8
+ readonly bottom: "bottom";
9
+ readonly left: "left";
10
+ readonly topLeft: "top-left";
11
+ readonly topRight: "top-right";
12
+ readonly bottomRight: "bottom-right";
13
+ readonly bottomLeft: "bottom-left";
14
+ };
15
+ export declare enum Types {
16
+ Button = "Button",
17
+ Form = "Form",
18
+ Link = "Link"
19
+ }
20
+ export declare const itemThemes: {
21
+ readonly destructive: "destructive";
22
+ };
23
+ type CommonProps = {
24
+ theme?: ObjectValues<typeof itemThemes>;
25
+ };
26
+ type LinkMenuItem = {
27
+ type: Types.Link;
28
+ props: {
29
+ href: string;
30
+ text: string;
31
+ testId?: string;
32
+ } & CommonProps;
33
+ };
34
+ type FormMenuItem = {
35
+ type: Types.Form;
36
+ props: {
37
+ text: string;
38
+ action: string;
39
+ handleSubmit?: () => void;
40
+ hiddenInputs?: HiddenInput[];
41
+ testId?: string;
42
+ } & CommonProps;
43
+ };
44
+ type ButtonMenuitem = {
45
+ type: Types.Button;
46
+ props: {
47
+ text: string;
48
+ } & ButtonHtmlProps & CommonProps;
49
+ };
50
+ type MenuItem = {
51
+ icon?: ReactNode;
52
+ item: LinkMenuItem | FormMenuItem | ButtonMenuitem;
53
+ };
54
+ export type ContextMenu = {
55
+ isOpen?: boolean;
56
+ onClose?: () => void;
57
+ list: MenuItem[];
58
+ position?: ObjectValues<typeof positions>;
59
+ close: Button;
60
+ title: string;
61
+ descriptions?: string[];
62
+ smallDescription?: string;
63
+ };
64
+ export {};
@@ -0,0 +1,2 @@
1
+ const o={top:"top",right:"right",bottom:"bottom",left:"left",topLeft:"top-left",topRight:"top-right",bottomRight:"bottom-right",bottomLeft:"bottom-left"};var e=(t=>(t.Button="Button",t.Form="Form",t.Link="Link",t))(e||{});const n={destructive:"destructive"};export{e as Types,n as itemThemes,o as positions};
2
+ //# sourceMappingURL=context-menu.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/context-menu/context-menu.types.ts"],
4
+ "sourcesContent": ["import type { ReactNode } from 'react';\n\nimport type { Button } from '../button/button.types';\nimport type { HiddenInput } from '../hidden-input/hidden-input.types';\nimport type { ButtonHtmlProps, ObjectValues } from '../types';\n\nexport const positions = {\n top: 'top',\n right: 'right',\n bottom: 'bottom',\n left: 'left',\n topLeft: 'top-left',\n topRight: 'top-right',\n bottomRight: 'bottom-right',\n bottomLeft: 'bottom-left',\n} as const;\n\nexport enum Types {\n Button = 'Button',\n Form = 'Form',\n Link = 'Link',\n}\n\nexport const itemThemes = {\n destructive: 'destructive',\n} as const;\n\ntype CommonProps = {\n theme?: ObjectValues<typeof itemThemes>;\n};\n\ntype LinkMenuItem = {\n type: Types.Link;\n props: {\n href: string;\n text: string;\n testId?: string;\n } & CommonProps;\n};\n\ntype FormMenuItem = {\n type: Types.Form;\n props: {\n text: string;\n action: string;\n handleSubmit?: () => void;\n hiddenInputs?: HiddenInput[];\n testId?: string;\n } & CommonProps;\n};\n\ntype ButtonMenuitem = {\n type: Types.Button;\n props: { text: string } & ButtonHtmlProps & CommonProps;\n};\n\ntype MenuItem = {\n icon?: ReactNode;\n item: LinkMenuItem | FormMenuItem | ButtonMenuitem;\n};\n\nexport type ContextMenu = {\n isOpen?: boolean;\n onClose?: () => void;\n list: MenuItem[];\n position?: ObjectValues<typeof positions>;\n close: Button;\n title: string;\n descriptions?: string[];\n smallDescription?: string;\n};\n"],
5
+ "mappings": "AAMO,MAAMA,EAAY,CACvB,IAAK,MACL,MAAO,QACP,OAAQ,SACR,KAAM,OACN,QAAS,WACT,SAAU,YACV,YAAa,eACb,WAAY,aACd,EAEO,IAAKC,OACVA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,KAAO,OAHGA,OAAA,IAML,MAAMC,EAAa,CACxB,YAAa,aACf",
6
+ "names": ["positions", "Types", "itemThemes"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import t from"./context-menu";var o=t;export{o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/context-menu/index.ts"],
4
+ "sourcesContent": ["import ContextMenu from './context-menu';\nexport default ContextMenu;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAiB,iBACxB,IAAOC,EAAQD",
6
+ "names": ["ContextMenu", "context_menu_default"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { aspectRatios, loadings, CroppedImage as Props } from './cropped-image.types';
3
+ declare const CroppedImage: React.FunctionComponent<Props> & {
4
+ aspectRatios: typeof aspectRatios;
5
+ loadings: typeof loadings;
6
+ };
7
+ export default CroppedImage;
@@ -0,0 +1,2 @@
1
+ var N=Object.defineProperty;var p=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;var m=(o,e,a)=>e in o?N(o,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[e]=a,c=(o,e)=>{for(var a in e||(e={}))n.call(e,a)&&m(o,a,e[a]);if(p)for(var a of p(e))r.call(e,a)&&m(o,a,e[a]);return o};var d=(o,e)=>{var a={};for(var s in o)n.call(o,s)&&e.indexOf(s)<0&&(a[s]=o[s]);if(o!=null&&p)for(var s of p(o))e.indexOf(s)<0&&r.call(o,s)&&(a[s]=o[s]);return a};import u from"classnames";import*as l from"react";import{aspectRatios as g,loadings as f}from"./cropped-image.types";const t=v=>{var i=v,{alt:o,aspectRatio:e=g.sixteenNine,className:a,loading:s=f.lazy,src:R,srcQuery:y=""}=i,C=d(i,["alt","aspectRatio","className","loading","src","srcQuery"]);return l.createElement("div",{className:u("cropped-image",e,a)},l.createElement("img",c({className:"cropped-image__element",alt:o,loading:s,src:`${R}${y}`},C)))};t.aspectRatios=g,t.loadings=f;var $=t;export{$ as default};
2
+ //# sourceMappingURL=cropped-image.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/cropped-image/cropped-image.tsx"],
4
+ "sourcesContent": ["import cn from 'classnames';\nimport * as React from 'react';\n\nimport {\n aspectRatios,\n loadings,\n CroppedImage as Props,\n} from './cropped-image.types';\n\nconst CroppedImage: React.FunctionComponent<Props> & {\n aspectRatios: typeof aspectRatios;\n loadings: typeof loadings;\n} = ({\n alt,\n aspectRatio = aspectRatios.sixteenNine,\n className,\n loading = loadings.lazy,\n src,\n srcQuery = '',\n ...rest\n}) => (\n <div className={cn('cropped-image', aspectRatio, className)}>\n <img\n className=\"cropped-image__element\"\n alt={alt}\n loading={loading}\n src={`${src}${srcQuery}`}\n {...rest}\n />\n </div>\n);\n\nCroppedImage.aspectRatios = aspectRatios;\nCroppedImage.loadings = loadings;\n\nexport default CroppedImage;\n"],
5
+ "mappings": "2fAAA,OAAOA,MAAQ,aACf,UAAYC,MAAW,QAEvB,OACE,gBAAAC,EACA,YAAAC,MAEK,wBAEP,MAAMC,EAGDC,GAQF,CARE,IAAAC,EAAAD,EACH,KAAAE,EACA,YAAAC,EAAcN,EAAa,YAC3B,UAAAO,EACA,QAAAC,EAAUP,EAAS,KACnB,IAAAQ,EACA,SAAAC,EAAW,EAlBb,EAYKN,EAOAO,EAAAC,EAPAR,EAOA,CANH,MACA,cACA,YACA,UACA,MACA,aAGA,OAAAL,EAAA,cAAC,OAAI,UAAWD,EAAG,gBAAiBQ,EAAaC,CAAS,GACxDR,EAAA,cAAC,MAAAc,EAAA,CACC,UAAU,yBACV,IAAKR,EACL,QAASG,EACT,IAAK,GAAGC,CAAG,GAAGC,CAAQ,IAClBC,EACN,CACF,GAGFT,EAAa,aAAeF,EAC5BE,EAAa,SAAWD,EAExB,IAAOa,EAAQZ",
6
+ "names": ["cn", "React", "aspectRatios", "loadings", "CroppedImage", "_a", "_b", "alt", "aspectRatio", "className", "loading", "src", "srcQuery", "rest", "__objRest", "__spreadValues", "cropped_image_default"]
7
+ }
@@ -0,0 +1,23 @@
1
+ import { ImageHtmlProps, ObjectValues } from '../types';
2
+ export declare const aspectRatios: {
3
+ readonly square: "cropped-image--square";
4
+ readonly twoThree: "cropped-image--2-3";
5
+ readonly fourThree: "cropped-image--4-3";
6
+ readonly threeTwo: "cropped-image--3-2";
7
+ readonly threeFour: "cropped-image--3-4";
8
+ readonly nineSixteen: "cropped-image--9-16";
9
+ readonly nineEighteen: "cropped-image--9-18";
10
+ readonly sixteenNine: "cropped-image--16-9";
11
+ };
12
+ export declare const loadings: {
13
+ readonly eager: "eager";
14
+ readonly lazy: "lazy";
15
+ };
16
+ export type CroppedImage = ImageHtmlProps & {
17
+ alt: string;
18
+ aspectRatio?: ObjectValues<typeof aspectRatios>;
19
+ className?: string;
20
+ loading?: ObjectValues<typeof loadings>;
21
+ src: string;
22
+ srcQuery?: string;
23
+ };
@@ -0,0 +1,2 @@
1
+ const t={square:"cropped-image--square",twoThree:"cropped-image--2-3",fourThree:"cropped-image--4-3",threeTwo:"cropped-image--3-2",threeFour:"cropped-image--3-4",nineSixteen:"cropped-image--9-16",nineEighteen:"cropped-image--9-18",sixteenNine:"cropped-image--16-9"},o={eager:"eager",lazy:"lazy"};export{t as aspectRatios,o as loadings};
2
+ //# sourceMappingURL=cropped-image.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/cropped-image/cropped-image.types.ts"],
4
+ "sourcesContent": ["import { ImageHtmlProps, ObjectValues } from '../types';\n\nexport const aspectRatios = {\n square: 'cropped-image--square',\n twoThree: 'cropped-image--2-3',\n fourThree: 'cropped-image--4-3',\n threeTwo: 'cropped-image--3-2',\n threeFour: 'cropped-image--3-4',\n nineSixteen: 'cropped-image--9-16',\n nineEighteen: 'cropped-image--9-18',\n sixteenNine: 'cropped-image--16-9',\n} as const;\n\nexport const loadings = {\n eager: 'eager',\n lazy: 'lazy',\n} as const;\n\nexport type CroppedImage = ImageHtmlProps & {\n alt: string;\n aspectRatio?: ObjectValues<typeof aspectRatios>;\n className?: string;\n loading?: ObjectValues<typeof loadings>;\n src: string;\n srcQuery?: string;\n};\n"],
5
+ "mappings": "AAEO,MAAMA,EAAe,CAC1B,OAAQ,wBACR,SAAU,qBACV,UAAW,qBACX,SAAU,qBACV,UAAW,qBACX,YAAa,sBACb,aAAc,sBACd,YAAa,qBACf,EAEaC,EAAW,CACtB,MAAO,QACP,KAAM,MACR",
6
+ "names": ["aspectRatios", "loadings"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import e from"./cropped-image";var p=e;export{p as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/cropped-image/index.ts"],
4
+ "sourcesContent": ["import CroppedImage from './cropped-image';\nexport default CroppedImage;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAkB,kBACzB,IAAOC,EAAQD",
6
+ "names": ["CroppedImage", "cropped_image_default"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import VisuallyButton from '../visually-button/visually-button';
3
+ import { DivButton as Props } from './div-button.types';
4
+ declare const DivButton: React.FunctionComponent<Props> & {
5
+ sizes: typeof VisuallyButton.sizes;
6
+ variants: typeof VisuallyButton.variants;
7
+ };
8
+ export default DivButton;
@@ -0,0 +1,2 @@
1
+ var u=Object.defineProperty;var n=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var e=(s,t,o)=>t in s?u(s,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[t]=o,r=(s,t)=>{for(var o in t||(t={}))m.call(t,o)&&e(s,o,t[o]);if(n)for(var o of n(t))p.call(t,o)&&e(s,o,t[o]);return s};import*as l from"react";import i from"../visually-button/visually-button";const a=s=>l.createElement(i,r({elementName:"div"},s));a.sizes=i.sizes,a.variants=i.variants;var z=a;export{z as default};
2
+ //# sourceMappingURL=div-button.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/div-button/div-button.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\n\nimport VisuallyButton from '../visually-button/visually-button';\n\nimport { DivButton as Props } from './div-button.types';\n\nconst DivButton: React.FunctionComponent<Props> & {\n sizes: typeof VisuallyButton.sizes;\n variants: typeof VisuallyButton.variants;\n} = props => <VisuallyButton elementName=\"div\" {...props} />;\n\nDivButton.sizes = VisuallyButton.sizes;\nDivButton.variants = VisuallyButton.variants;\n\nexport default DivButton;\n"],
5
+ "mappings": "yVAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAoB,qCAI3B,MAAMC,EAGFC,GAASH,EAAA,cAACC,EAAAG,EAAA,CAAe,YAAY,OAAUD,EAAO,EAE1DD,EAAU,MAAQD,EAAe,MACjCC,EAAU,SAAWD,EAAe,SAEpC,IAAOI,EAAQH",
6
+ "names": ["React", "VisuallyButton", "DivButton", "props", "__spreadValues", "div_button_default"]
7
+ }
@@ -1,3 +1,2 @@
1
1
  import type { VisuallyButtonDiv } from '../visually-button/visually-button.types';
2
-
3
2
  export type DivButton = Omit<VisuallyButtonDiv, 'elementName'>;
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=div-button.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ import t from"./div-button";var r=t;export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/div-button/index.ts"],
4
+ "sourcesContent": ["import DivButton from './div-button';\nexport default DivButton;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAe,eACtB,IAAOC,EAAQD",
6
+ "names": ["DivButton", "div_button_default"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { DropdownList as Props, themes } from './dropdown-list.types';
3
+ declare const DropdownList: React.FC<React.PropsWithChildren<Props>> & {
4
+ themes: typeof themes;
5
+ };
6
+ export default DropdownList;
@@ -0,0 +1,2 @@
1
+ var N=Object.defineProperty,$=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var w=(e,o,t)=>o in e?N(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,f=(e,o)=>{for(var t in o||(o={}))C.call(o,t)&&w(e,t,o[t]);if(_)for(var t of _(o))z.call(o,t)&&w(e,t,o[t]);return e},u=(e,o)=>$(e,x(o));import*as s from"react";import T from"../form-content";import r from"../text";import{themes as b}from"./dropdown-list.types";import g from"../icons/24/arrow-up";import k from"../icons/24/arrow-down";import D from"../hooks/use-toggle";import P from"../hooks/use-click-outside";import y from"../hooks/use-escape";import l from"classnames";const h=({description:e,disabled:o,formContentOptions:t,label:c,selectedOptions:p,header:v,theme:i=b.light})=>{const m=s.useRef(null),[d,a,,n]=D(!1);return P(m,n),y(n),s.createElement("div",{className:"dropdown-list"},s.createElement(r,{theme:r.themes.emphasis,className:l("dropdown-list__label",`dropdown-list__label--theme-${i}`,{[`dropdown-list__label--theme-${i}-disabled`]:o})},c),s.createElement("div",{className:l("dropdown-list__wrapper",`dropdown-list__wrapper--theme-${i}`,{[`dropdown-list__wrapper--theme-${i}-disabled`]:o,[`dropdown-list__wrapper--theme-${i}-clicked`]:d}),ref:m},s.createElement("div",{className:"dropdown-list__buttons"},s.createElement("button",{type:"button",className:l("dropdown-list__button",`dropdown-list__button--theme-${i}`,{[`dropdown-list__button--theme-${i}-disabled`]:o,[`dropdown-list__button--theme-${i}-clicked`]:d}),onClick:a,disabled:o,"data-test-dropdown-button":!0},s.createElement("div",{className:"dropdown-list__text-wrap"},s.createElement(r,{theme:r.themes.normal,size:r.sizes.basic},v),s.createElement(r,{size:r.sizes.small},p||s.createElement(r,{elementName:"span",size:r.sizes.small,className:l("dropdown-list__information",`dropdown-list__information--theme-${i}`,{[`dropdown-list__information--theme-${i}-disabled`]:o})},e))),s.createElement("div",{className:"dropdown-list__icon"},s.createElement(d?g:k,null)))),s.createElement(T,u(f({},t),{isOpen:d,close:n,onSubmit:a}))))};h.themes=b;var G=h;export{G as default};
2
+ //# sourceMappingURL=dropdown-list.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/dropdown-list/dropdown-list.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport FormContent from '../form-content';\n\nimport Text from '../text';\n\nimport { DropdownList as Props, themes } from './dropdown-list.types';\nimport ChevronUp from '../icons/24/arrow-up';\nimport ChevronDown from '../icons/24/arrow-down';\nimport useToggle from '../hooks/use-toggle';\nimport useClickOutside from '../hooks/use-click-outside';\nimport useEscape from '../hooks/use-escape';\nimport classNames from 'classnames';\n\nconst DropdownList: React.FC<React.PropsWithChildren<Props>> & {\n themes: typeof themes;\n} = ({\n description,\n disabled,\n formContentOptions,\n label,\n selectedOptions,\n header,\n theme = themes.light,\n}) => {\n const modal = React.useRef(null);\n const [isOpen, toggle, , close] = useToggle(false);\n\n useClickOutside(modal, close);\n useEscape(close);\n\n return (\n <div className=\"dropdown-list\">\n <Text\n theme={Text.themes.emphasis}\n className={classNames(\n 'dropdown-list__label',\n `dropdown-list__label--theme-${theme}`,\n {\n [`dropdown-list__label--theme-${theme}-disabled`]: disabled,\n },\n )}\n >\n {label}\n </Text>\n <div\n className={classNames(\n 'dropdown-list__wrapper',\n `dropdown-list__wrapper--theme-${theme}`,\n {\n [`dropdown-list__wrapper--theme-${theme}-disabled`]: disabled,\n [`dropdown-list__wrapper--theme-${theme}-clicked`]: isOpen,\n },\n )}\n ref={modal}\n >\n <div className=\"dropdown-list__buttons\">\n <button\n type=\"button\"\n className={classNames(\n 'dropdown-list__button',\n `dropdown-list__button--theme-${theme}`,\n {\n [`dropdown-list__button--theme-${theme}-disabled`]: disabled,\n [`dropdown-list__button--theme-${theme}-clicked`]: isOpen,\n },\n )}\n onClick={toggle}\n disabled={disabled}\n data-test-dropdown-button\n >\n <div className=\"dropdown-list__text-wrap\">\n <Text theme={Text.themes.normal} size={Text.sizes.basic}>\n {header}\n </Text>\n\n <Text size={Text.sizes.small}>\n {selectedOptions ? (\n selectedOptions\n ) : (\n <Text\n elementName=\"span\"\n size={Text.sizes.small}\n className={classNames(\n 'dropdown-list__information',\n `dropdown-list__information--theme-${theme}`,\n {\n [`dropdown-list__information--theme-${theme}-disabled`]:\n disabled,\n },\n )}\n >\n {description}\n </Text>\n )}\n </Text>\n </div>\n\n <div className=\"dropdown-list__icon\">\n {isOpen ? <ChevronUp /> : <ChevronDown />}\n </div>\n </button>\n </div>\n <FormContent\n {...formContentOptions}\n isOpen={isOpen}\n close={close}\n onSubmit={toggle}\n />\n </div>\n </div>\n );\n};\n\nDropdownList.themes = themes;\n\nexport default DropdownList;\n"],
5
+ "mappings": "6aAAA,UAAYA,MAAW,QACvB,OAAOC,MAAiB,kBAExB,OAAOC,MAAU,UAEjB,OAAgC,UAAAC,MAAc,wBAC9C,OAAOC,MAAe,uBACtB,OAAOC,MAAiB,yBAC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T,6BACA,qCAAqCQ,CAAK,GAC1C,CACE,CAAC,qCAAqCA,CAAK,WAAW,EACpDL,CACJ,CACF,GAECD,CACH,CAEJ,CACF,EAEAX,EAAA,cAAC,OAAI,UAAU,uBACHA,EAAA,cAATmB,EAAUf,EAAgBC,EAAhB,IAAU,CACvB,CACF,CACF,EACAL,EAAA,cAACC,EAAAqB,EAAAC,EAAA,GACKV,GADL,CAEC,OAAQM,EACR,MAAOE,EACP,SAAUD,GACZ,CACF,CACF,CAEJ,EAEAV,EAAa,OAASP,EAEtB,IAAOqB,EAAQd",
6
+ "names": ["React", "FormContent", "Text", "themes", "ChevronUp", "ChevronDown", "useToggle", "useClickOutside", "useEscape", "classNames", "DropdownList", "description", "disabled", "formContentOptions", "label", "selectedOptions", "header", "theme", "modal", "isOpen", "toggle", "close", "__spreadProps", "__spreadValues", "dropdown_list_default"]
7
+ }
@@ -0,0 +1,15 @@
1
+ import type { FormContentDropdownList } from '../form-content/form-content.types';
2
+ import type { ObjectValues } from '../types';
3
+ export declare const themes: {
4
+ readonly dark: "dark";
5
+ readonly light: "light";
6
+ };
7
+ export type DropdownList = {
8
+ label?: string;
9
+ header: string;
10
+ description: string;
11
+ formContentOptions: FormContentDropdownList;
12
+ selectedOptions?: string;
13
+ disabled?: boolean;
14
+ theme?: ObjectValues<typeof themes>;
15
+ };
@@ -0,0 +1,2 @@
1
+ const t={dark:"dark",light:"light"};export{t as themes};
2
+ //# sourceMappingURL=dropdown-list.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/dropdown-list/dropdown-list.types.ts"],
4
+ "sourcesContent": ["import type { FormContentDropdownList } from '../form-content/form-content.types';\nimport type { ObjectValues } from '../types';\n\nexport const themes = {\n dark: 'dark',\n light: 'light',\n} as const;\n\nexport type DropdownList = {\n label?: string;\n header: string;\n description: string;\n formContentOptions: FormContentDropdownList;\n selectedOptions?: string;\n disabled?: boolean;\n theme?: ObjectValues<typeof themes>;\n};\n"],
5
+ "mappings": "AAGO,MAAMA,EAAS,CACpB,KAAM,OACN,MAAO,OACT",
6
+ "names": ["themes"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import o from"./dropdown-list";var t=o;export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/dropdown-list/index.ts"],
4
+ "sourcesContent": ["import DropdownList from './dropdown-list';\nexport default DropdownList;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAkB,kBACzB,IAAOC,EAAQD",
6
+ "names": ["DropdownList", "dropdown_list_default"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type Expander as Props } from './expander.types';
3
+ declare const Expander: <T extends {}>({ description, faq, itemRenderer, items, title, }: Props<T> & {
4
+ itemRenderer: React.FC<T>;
5
+ }) => React.JSX.Element;
6
+ export default Expander;
@@ -0,0 +1,2 @@
1
+ var w=Object.defineProperty,z=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var N=(i,n,r)=>n in i?w(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r,o=(i,n)=>{for(var r in n||(n={}))E.call(n,r)&&N(i,r,n[r]);if(h)for(var r of h(n))I.call(n,r)&&N(i,r,n[r]);return i},u=(i,n)=>z(i,C(n));import _ from"classnames";import e,{useState as k}from"react";import b from"../icons/24/arrow-down";import L from"../link-button";import s from"../text";import g from"../badge";import{Types as A}from"../badge/badge.types";import c from"../link";import O from"../collapse";const S=({actions:i,contentType:n="article",defaultOpen:r=!1,faq:d,icon:p,id:m,links:a,children:f,metadata:x,title:P,value:v})=>{const[t,y]=k(r),T=()=>y(!t);return e.createElement("div",{className:"expander__list-item",key:m,itemScope:d||void 0,itemProp:d?"mainEntity":void 0,itemType:d?"https://schema.org/Question":void 0},e.createElement("button",{"aria-controls":m,"aria-expanded":t,className:_("expander__trigger",{"expander__trigger--triggered":t,"expander__trigger--w-value":v}),onClick:T},p?e.createElement("div",{className:"expander__icon"},p):null,e.createElement("div",{className:"expander__trigger-title"},e.createElement(s,{elementName:"h3",itemProp:d?"name":void 0,tight:!0},P)),v?e.createElement(g,{content:{content:v,type:A.Numerical},variant:g.variants.secondary}):null,e.createElement("div",{className:_("expander__icon",{"expander__icon--flipped":t})},e.createElement(b,null))),e.createElement("div",{className:_("expander__drawer",{"expander__drawer--open":t}),id:m},e.createElement(O,{isOpen:t},e.createElement("div",{className:_("expander__content",{[`expander__content--${n}`]:n}),itemScope:d||void 0,itemProp:d?"acceptedAnswer":void 0,itemType:d?"https://schema.org/Answer":void 0},e.createElement("div",{className:"expander__children",itemProp:d?"text":void 0},f),i.length?e.createElement("div",{className:"expander__actions"},i.map(l=>e.createElement("div",{className:"expander__action",key:l.href},e.createElement(L,o({},l))))):null,x||a&&a.length?e.createElement("div",{className:"expander__metadata"},e.createElement("hr",{className:"expander__divider"}),e.createElement("div",{className:"expander__meta-content"},x?e.createElement("div",{className:"expander__meta-text"},e.createElement(s,{elementName:"span",size:s.sizes.small},x)):null,a&&a.length?e.createElement("div",{className:"expander__links"},a.map(l=>e.createElement("div",{className:"expander__link",key:l.href},e.createElement(c,u(o({},l),{size:c.sizes.small}))))):null)):null))))},B=({description:i,faq:n,itemRenderer:r,items:d,title:p})=>e.createElement("div",{className:"expander"},p||i?e.createElement("div",{className:"expander__header"},p?e.createElement(s,{elementName:"h2",size:s.sizes.headline2,theme:s.themes.emphasis,tight:!0},p):null,i?e.createElement(s,{size:s.sizes.basic},i):null):null,e.createElement("div",null,d.map(m=>e.createElement(S,u(o({key:m.listItemProps.id},m.listItemProps),{faq:n}),e.createElement(r,m.props)))));var U=B;export{U as default};
2
+ //# sourceMappingURL=expander.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/expander/expander.tsx"],
4
+ "sourcesContent": ["import cn from 'classnames';\nimport React, { useState } from 'react';\n\nimport ArrowDown from '../icons/24/arrow-down';\nimport LinkButton from '../link-button';\nimport Text from '../text';\n\nimport { type Expander as Props } from './expander.types';\nimport Badge from '../badge';\nimport { Types } from '../badge/badge.types';\nimport Link from '../link';\nimport Collapse from '../collapse';\n\nconst ExpanderListItem: React.FC<\n React.PropsWithChildren<Props<unknown>['items'][number]['listItemProps']>\n> = ({\n actions,\n contentType = 'article',\n defaultOpen = false,\n faq,\n icon,\n id,\n links,\n children,\n metadata,\n title,\n value,\n}) => {\n const [isOpen, setIsOpen] = useState(defaultOpen);\n\n const toggle = () => setIsOpen(!isOpen);\n\n return (\n <div\n className=\"expander__list-item\"\n key={id}\n itemScope={faq ? faq : undefined}\n itemProp={faq ? 'mainEntity' : undefined}\n itemType={faq ? 'https://schema.org/Question' : undefined}\n >\n <button\n aria-controls={id}\n aria-expanded={isOpen}\n className={cn('expander__trigger', {\n 'expander__trigger--triggered': isOpen,\n 'expander__trigger--w-value': value,\n })}\n onClick={toggle}\n >\n {icon ? <div className=\"expander__icon\">{icon}</div> : null}\n <div className=\"expander__trigger-title\">\n <Text elementName=\"h3\" itemProp={faq ? 'name' : undefined} tight>\n {title}\n </Text>\n </div>\n {value ? (\n <Badge\n content={{ content: value, type: Types.Numerical }}\n variant={Badge.variants.secondary}\n />\n ) : null}\n <div\n className={cn('expander__icon', {\n 'expander__icon--flipped': isOpen,\n })}\n >\n <ArrowDown />\n </div>\n </button>\n <div\n className={cn('expander__drawer', {\n 'expander__drawer--open': isOpen,\n })}\n id={id}\n >\n <Collapse isOpen={isOpen}>\n <div\n className={cn('expander__content', {\n [`expander__content--${contentType}`]: contentType,\n })}\n itemScope={faq ? faq : undefined}\n itemProp={faq ? 'acceptedAnswer' : undefined}\n itemType={faq ? 'https://schema.org/Answer' : undefined}\n >\n <div\n className=\"expander__children\"\n itemProp={faq ? 'text' : undefined}\n >\n {children}\n </div>\n {actions.length ? (\n <div className=\"expander__actions\">\n {actions.map(action => (\n <div className=\"expander__action\" key={action.href}>\n <LinkButton {...action} />\n </div>\n ))}\n </div>\n ) : null}\n {metadata || (links && links.length) ? (\n <div className=\"expander__metadata\">\n <hr className=\"expander__divider\" />\n <div className=\"expander__meta-content\">\n {metadata ? (\n <div className=\"expander__meta-text\">\n <Text elementName=\"span\" size={Text.sizes.small}>\n {metadata}\n </Text>\n </div>\n ) : null}\n {links && links.length ? (\n <div className=\"expander__links\">\n {links.map(link => (\n <div className=\"expander__link\" key={link.href}>\n <Link {...link} size={Link.sizes.small} />\n </div>\n ))}\n </div>\n ) : null}\n </div>\n </div>\n ) : null}\n </div>\n </Collapse>\n </div>\n </div>\n );\n};\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nconst Expander = <T extends {}>({\n description,\n faq,\n itemRenderer,\n items,\n title,\n}: Props<T> & { itemRenderer: React.FC<T> }) => (\n <div className=\"expander\">\n {title || description ? (\n <div className=\"expander__header\">\n {title ? (\n <Text\n elementName=\"h2\"\n size={Text.sizes.headline2}\n theme={Text.themes.emphasis}\n tight\n >\n {title}\n </Text>\n ) : null}\n {description ? (\n <Text size={Text.sizes.basic}>{description}</Text>\n ) : null}\n </div>\n ) : null}\n <div>\n {items.map(item => (\n <ExpanderListItem\n key={item.listItemProps.id}\n {...item.listItemProps}\n faq={faq}\n >\n {React.createElement(itemRenderer, item.props)}\n </ExpanderListItem>\n ))}\n </div>\n </div>\n);\n\nexport default Expander;\n"],
5
+ "mappings": "6aAAA,OAAOA,MAAQ,aACf,OAAOC,GAAS,YAAAC,MAAgB,QAEhC,OAAOC,MAAe,yBACtB,OAAOC,MAAgB,iBACvB,OAAOC,MAAU,UAGjB,OAAOC,MAAW,WAClB,OAAS,SAAAC,MAAa,uBACtB,OAAOC,MAAU,UACjB,OAAOC,MAAc,cAErB,MAAMC,EAEF,CAAC,CACH,QAAAC,EACA,YAAAC,EAAc,UACd,YAAAC,EAAc,GACd,IAAAC,EACA,KAAAC,EACA,GAAAC,EACA,MAAAC,E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/C,CACD,CACH,CACF,EAGF,IAAOC,EAAQL",
6
+ "names": ["cn", "React", "useState", "ArrowDown", "LinkButton", "Text", "Badge", "Types", "Link", "Collapse", "ExpanderListItem", "actions", "contentType", "defaultOpen", "faq", "icon", "id", "links", "children", "metadata", "title", "value", "isOpen", "setIsOpen", "toggle", "action", "__spreadValues", "link", "__spreadProps", "Expander", "description", "itemRenderer", "items", "item", "expander_default"]
7
+ }