@sats-group/ui-lib 80.4.0 → 81.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) 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.types.d.ts +21 -0
  440. package/react/text-input/text-input.types.js +2 -0
  441. package/react/text-input/text-input.types.js.map +7 -0
  442. package/react/toggle/index.js +2 -0
  443. package/react/toggle/index.js.map +7 -0
  444. package/react/toggle/toggle.d.ts +13 -0
  445. package/react/toggle/toggle.js +2 -0
  446. package/react/toggle/toggle.js.map +7 -0
  447. package/react/toggle/toggle.types.d.ts +10 -0
  448. package/react/toggle/toggle.types.js +1 -0
  449. package/react/toggle/toggle.types.js.map +7 -0
  450. package/react/toolbox/index.js +2 -0
  451. package/react/toolbox/index.js.map +7 -0
  452. package/react/toolbox/toolbox.d.ts +4 -0
  453. package/react/toolbox/toolbox.js +2 -0
  454. package/react/toolbox/toolbox.js.map +7 -0
  455. package/react/toolbox/toolbox.types.d.ts +34 -0
  456. package/react/toolbox/toolbox.types.js +2 -0
  457. package/react/toolbox/toolbox.types.js.map +7 -0
  458. package/react/ts/debounce.d.ts +1 -0
  459. package/react/ts/debounce.js +2 -0
  460. package/react/ts/debounce.js.map +7 -0
  461. package/react/{types.ts → types.d.ts} +4 -19
  462. package/react/types.js +1 -0
  463. package/react/types.js.map +7 -0
  464. package/react/use-input-validation.d.ts +4 -0
  465. package/react/use-input-validation.js +2 -0
  466. package/react/use-input-validation.js.map +7 -0
  467. package/react/use-input-validation.types.d.ts +13 -0
  468. package/react/use-input-validation.types.js +1 -0
  469. package/react/use-input-validation.types.js.map +7 -0
  470. package/react/visually-button/index.js +2 -0
  471. package/react/visually-button/index.js.map +7 -0
  472. package/react/visually-button/maps.d.ts +6 -0
  473. package/react/visually-button/maps.js +2 -0
  474. package/react/visually-button/maps.js.map +7 -0
  475. package/react/visually-button/visually-button.d.ts +8 -0
  476. package/react/visually-button/visually-button.js +2 -0
  477. package/react/visually-button/visually-button.js.map +7 -0
  478. package/react/visually-button/visually-button.types.d.ts +46 -0
  479. package/react/visually-button/visually-button.types.js +2 -0
  480. package/react/visually-button/visually-button.types.js.map +7 -0
  481. package/react/visually-hidden/index.js +2 -0
  482. package/react/visually-hidden/index.js.map +7 -0
  483. package/react/visually-hidden/visually-hidden.d.ts +3 -0
  484. package/react/visually-hidden/visually-hidden.js +2 -0
  485. package/react/visually-hidden/visually-hidden.js.map +7 -0
  486. package/.nvmrc +0 -1
  487. package/catalog-info.yaml +0 -14
  488. package/eslint.config.mjs +0 -93
  489. package/react/add-bem-modifiers.ts +0 -51
  490. package/react/badge/badge.tsx +0 -28
  491. package/react/badge/badge.types.ts +0 -34
  492. package/react/banner/banner.tsx +0 -93
  493. package/react/banner/banner.types.ts +0 -10
  494. package/react/bomb/bomb.tsx +0 -19
  495. package/react/bomb/bomb.types.ts +0 -1
  496. package/react/button/button.tsx +0 -23
  497. package/react/checkbox/checkbox.tsx +0 -176
  498. package/react/checkbox/checkbox.types.ts +0 -19
  499. package/react/chip/chip.tsx +0 -37
  500. package/react/chip/chip.types.ts +0 -18
  501. package/react/chip/remove.tsx +0 -14
  502. package/react/chip-selected/chip-selected.tsx +0 -102
  503. package/react/chip-selected/chip-selected.types.ts +0 -11
  504. package/react/collapse/collapse.tsx +0 -179
  505. package/react/collapse/collapse.types.ts +0 -13
  506. package/react/components.ts +0 -83
  507. package/react/confirmation/confirmation.tsx +0 -90
  508. package/react/confirmation/confirmation.types.ts +0 -25
  509. package/react/context-menu/context-menu.tsx +0 -201
  510. package/react/context-menu/context-menu.types.ts +0 -71
  511. package/react/cropped-image/cropped-image.tsx +0 -36
  512. package/react/cropped-image/cropped-image.types.ts +0 -26
  513. package/react/div-button/div-button.tsx +0 -15
  514. package/react/dropdown-list/dropdown-list.tsx +0 -116
  515. package/react/dropdown-list/dropdown-list.types.ts +0 -17
  516. package/react/expander/expander.tsx +0 -170
  517. package/react/expander/expander.types.ts +0 -33
  518. package/react/filter/filter.tsx +0 -99
  519. package/react/filter/filter.types.ts +0 -8
  520. package/react/filter-wrapper/filter-wrapper.tsx +0 -24
  521. package/react/filter-wrapper/filter-wrapper.types.ts +0 -10
  522. package/react/flag/flag.tsx +0 -27
  523. package/react/flag/flag.types.ts +0 -17
  524. package/react/form-content/checkbox-category.tsx +0 -183
  525. package/react/form-content/form-content.checkbox-list.tsx +0 -126
  526. package/react/form-content/form-content.checkbox-list.types.ts +0 -36
  527. package/react/form-content/form-content.radio-list.tsx +0 -58
  528. package/react/form-content/form-content.range.tsx +0 -20
  529. package/react/form-content/form-content.search.tsx +0 -47
  530. package/react/form-content/form-content.tsx +0 -96
  531. package/react/form-content/form-content.types.ts +0 -55
  532. package/react/hooks/focus-previous-element.ts +0 -30
  533. package/react/hooks/is-running-on-client.ts +0 -1
  534. package/react/hooks/use-click-outside.ts +0 -23
  535. package/react/hooks/use-escape.ts +0 -18
  536. package/react/hooks/use-event.ts +0 -29
  537. package/react/hooks/use-is-mounted.ts +0 -11
  538. package/react/hooks/use-toggle.ts +0 -19
  539. package/react/icons/16/add.tsx +0 -13
  540. package/react/icons/16/close.tsx +0 -12
  541. package/react/icons/16/error.tsx +0 -23
  542. package/react/icons/16/fistbump.tsx +0 -13
  543. package/react/icons/16/info.tsx +0 -17
  544. package/react/icons/16/send.tsx +0 -13
  545. package/react/icons/18/arrow-down.tsx +0 -13
  546. package/react/icons/18/close.tsx +0 -18
  547. package/react/icons/18/confirm.tsx +0 -19
  548. package/react/icons/18/error.tsx +0 -23
  549. package/react/icons/18/info.tsx +0 -17
  550. package/react/icons/18/warning-sign.tsx +0 -23
  551. package/react/icons/24/arrow-down.tsx +0 -14
  552. package/react/icons/24/arrow-right.tsx +0 -14
  553. package/react/icons/24/arrow-up.tsx +0 -14
  554. package/react/icons/24/close.tsx +0 -12
  555. package/react/icons/24/remove.tsx +0 -12
  556. package/react/icons/24/search.tsx +0 -10
  557. package/react/icons/icons.md +0 -3
  558. package/react/link/link.tsx +0 -62
  559. package/react/link/link.types.ts +0 -37
  560. package/react/link-button/link-button.tsx +0 -17
  561. package/react/link-card/link-card.tsx +0 -24
  562. package/react/link-card/link-card.types.ts +0 -5
  563. package/react/logos/e-avatar.tsx +0 -12
  564. package/react/logos/elixia-anniversary-light.tsx +0 -70
  565. package/react/logos/elixia-letter.tsx +0 -12
  566. package/react/logos/elixia-pride-dark.tsx +0 -102
  567. package/react/logos/elixia-pride-light.tsx +0 -102
  568. package/react/logos/elixia-small.tsx +0 -12
  569. package/react/logos/elixia.tsx +0 -12
  570. package/react/logos/s-avatar.tsx +0 -12
  571. package/react/logos/sats-anniversary-light.tsx +0 -76
  572. package/react/logos/sats-letter.tsx +0 -12
  573. package/react/logos/sats-pride-dark.tsx +0 -102
  574. package/react/logos/sats-pride-light.tsx +0 -102
  575. package/react/logos/sats-small.tsx +0 -12
  576. package/react/logos/sats.tsx +0 -12
  577. package/react/message/hook/use-message.ts +0 -22
  578. package/react/message/message.tsx +0 -60
  579. package/react/message/message.types.ts +0 -39
  580. package/react/message/publish.ts +0 -19
  581. package/react/message-field/message-field.tsx +0 -70
  582. package/react/message-field/message-field.types.ts +0 -24
  583. package/react/modal/modal.tsx +0 -131
  584. package/react/modal/modal.types.ts +0 -36
  585. package/react/modal/tab-trapper.tsx +0 -68
  586. package/react/progress-bar/progress-bar.tsx +0 -81
  587. package/react/progress-bar/progress-bar.types.ts +0 -35
  588. package/react/radio/radio.tsx +0 -87
  589. package/react/radio/radio.types.ts +0 -15
  590. package/react/scale-bar/scale-bar.tsx +0 -29
  591. package/react/scale-bar/scale-bar.types.ts +0 -4
  592. package/react/search/search.tsx +0 -267
  593. package/react/search/search.types.ts +0 -44
  594. package/react/select/select.tsx +0 -139
  595. package/react/select/select.types.ts +0 -26
  596. package/react/select-option/select-option.types.ts +0 -8
  597. package/react/tag/tag.tsx +0 -26
  598. package/react/tag/tag.types.ts +0 -30
  599. package/react/text/text.tsx +0 -40
  600. package/react/text/text.types.ts +0 -29
  601. package/react/text-area/text-area.tsx +0 -153
  602. package/react/text-area/text-area.types.ts +0 -24
  603. package/react/text-input/text-input.tsx +0 -160
  604. package/react/text-input/text-input.types.ts +0 -24
  605. package/react/toggle/toggle.tsx +0 -85
  606. package/react/toggle/toggle.types.ts +0 -11
  607. package/react/toolbox/toolbox.tsx +0 -43
  608. package/react/toolbox/toolbox.types.ts +0 -39
  609. package/react/ts/debounce.ts +0 -12
  610. package/react/use-input-validation.ts +0 -60
  611. package/react/use-input-validation.types.ts +0 -13
  612. package/react/visually-button/maps.ts +0 -36
  613. package/react/visually-button/visually-button.tsx +0 -111
  614. package/react/visually-button/visually-button.types.ts +0 -59
  615. package/react/visually-hidden/visually-hidden.tsx +0 -10
  616. /package/react/badge/{index.ts → index.d.ts} +0 -0
  617. /package/react/banner/{index.ts → index.d.ts} +0 -0
  618. /package/react/bomb/{index.ts → index.d.ts} +0 -0
  619. /package/react/button/{index.ts → index.d.ts} +0 -0
  620. /package/react/checkbox/{index.ts → index.d.ts} +0 -0
  621. /package/react/chip/{index.ts → index.d.ts} +0 -0
  622. /package/react/chip-selected/{index.ts → index.d.ts} +0 -0
  623. /package/react/collapse/{index.ts → index.d.ts} +0 -0
  624. /package/react/confirmation/{index.ts → index.d.ts} +0 -0
  625. /package/react/context-menu/{index.ts → index.d.ts} +0 -0
  626. /package/react/cropped-image/{index.ts → index.d.ts} +0 -0
  627. /package/react/div-button/{index.ts → index.d.ts} +0 -0
  628. /package/react/dropdown-list/{index.ts → index.d.ts} +0 -0
  629. /package/react/expander/{index.ts → index.d.ts} +0 -0
  630. /package/react/filter/{index.ts → index.d.ts} +0 -0
  631. /package/react/filter-wrapper/{index.ts → index.d.ts} +0 -0
  632. /package/react/flag/{index.ts → index.d.ts} +0 -0
  633. /package/react/form-content/{index.ts → index.d.ts} +0 -0
  634. /package/react/hidden-input/{index.ts → index.d.ts} +0 -0
  635. /package/react/{indexed-access-type.ts → indexed-access-type.d.ts} +0 -0
  636. /package/react/link/{index.ts → index.d.ts} +0 -0
  637. /package/react/link-button/{index.ts → index.d.ts} +0 -0
  638. /package/react/link-card/{index.ts → index.d.ts} +0 -0
  639. /package/react/logos/{index.ts → index.d.ts} +0 -0
  640. /package/react/message/{index.ts → index.d.ts} +0 -0
  641. /package/react/message-field/{index.ts → index.d.ts} +0 -0
  642. /package/react/modal/{index.ts → index.d.ts} +0 -0
  643. /package/react/progress-bar/{index.ts → index.d.ts} +0 -0
  644. /package/react/radio/{index.ts → index.d.ts} +0 -0
  645. /package/react/scale-bar/{index.ts → index.d.ts} +0 -0
  646. /package/react/search/{index.ts → index.d.ts} +0 -0
  647. /package/react/select/{index.ts → index.d.ts} +0 -0
  648. /package/react/select-option/{index.ts → index.d.ts} +0 -0
  649. /package/react/tag/{index.ts → index.d.ts} +0 -0
  650. /package/react/text/{index.ts → index.d.ts} +0 -0
  651. /package/react/text-area/{index.ts → index.d.ts} +0 -0
  652. /package/react/text-input/{index.ts → index.d.ts} +0 -0
  653. /package/react/toggle/{index.ts → index.d.ts} +0 -0
  654. /package/react/toolbox/{index.ts → index.d.ts} +0 -0
  655. /package/react/visually-button/{index.ts → index.d.ts} +0 -0
  656. /package/react/visually-hidden/{index.ts → index.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/radio/radio.types.ts"],
4
+ "sourcesContent": ["import { InputHtmlProps, ObjectValues } from '../types';\n\nexport const colors = {\n light: 'radio--light',\n} as const;\n\nexport type Radio = {\n color?: ObjectValues<typeof colors>;\n description?: string;\n isUnderline?: boolean;\n label?: string;\n name: string;\n showCustomError?: boolean;\n value: string;\n} & InputHtmlProps;\n"],
5
+ "mappings": "AAEO,MAAMA,EAAS,CACpB,MAAO,cACT",
6
+ "names": ["colors"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import r from"./scale-bar";var e=r;export{e as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/scale-bar/index.ts"],
4
+ "sourcesContent": ["import ScaleBar from './scale-bar';\nexport default ScaleBar;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAc,cACrB,IAAOC,EAAQD",
6
+ "names": ["ScaleBar", "scale_bar_default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { ScaleBar as Props } from './scale-bar.types';
3
+ declare const ScaleBar: React.FunctionComponent<Props>;
4
+ export default ScaleBar;
@@ -0,0 +1,2 @@
1
+ import*as r from"react";import l from"../visually-hidden/visually-hidden";const m=({max:e=4,value:a})=>r.createElement(r.Fragment,null,r.createElement("div",{className:"scale-bar"},Array(e).fill(0).map((s,i)=>r.createElement("div",{className:`scale-bar__item scale-bar__item--${i<a?"filled":"empty"}`,key:i}))),r.createElement(l,null,r.createElement("meter",{max:e,min:0,value:a},a,"/",e)));var t=m;export{t as default};
2
+ //# sourceMappingURL=scale-bar.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/scale-bar/scale-bar.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\n\nimport VisuallyHidden from '../visually-hidden/visually-hidden';\n\nimport { ScaleBar as Props } from './scale-bar.types';\n\nconst ScaleBar: React.FunctionComponent<Props> = ({ max = 4, value }) => (\n <>\n <div className=\"scale-bar\">\n {Array(max)\n .fill(0)\n .map((_, i) => (\n <div\n className={`scale-bar__item scale-bar__item--${\n i < value ? 'filled' : 'empty'\n }`}\n key={i}\n />\n ))}\n </div>\n <VisuallyHidden>\n <meter max={max} min={0} value={value}>\n {value}/{max}\n </meter>\n </VisuallyHidden>\n </>\n);\n\nexport default ScaleBar;\n"],
5
+ "mappings": "AAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAoB,qCAI3B,MAAMC,EAA2C,CAAC,CAAE,IAAAC,EAAM,EAAG,MAAAC,CAAM,IACjEJ,EAAA,cAAAA,EAAA,cACEA,EAAA,cAAC,OAAI,UAAU,aACZ,MAAMG,CAAG,EACP,KAAK,CAAC,EACN,IAAI,CAACE,EAAG,IACPL,EAAA,cAAC,OACC,UAAW,oCACT,EAAII,EAAQ,SAAW,OACzB,GACA,IAAK,EACP,CACD,CACL,EACAJ,EAAA,cAACC,EAAA,KACCD,EAAA,cAAC,SAAM,IAAKG,EAAK,IAAK,EAAG,MAAOC,GAC7BA,EAAM,IAAED,CACX,CACF,CACF,EAGF,IAAOG,EAAQJ",
6
+ "names": ["React", "VisuallyHidden", "ScaleBar", "max", "value", "_", "scale_bar_default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ export type ScaleBar = {
2
+ max?: number;
3
+ value: number;
4
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=scale-bar.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 r from"./search";var o=r;export{o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/search/index.ts"],
4
+ "sourcesContent": ["import Search from './search';\nexport default Search;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAY,WACnB,IAAOC,EAAQD",
6
+ "names": ["Search", "search_default"]
7
+ }
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { themes, inputSizes, variants, expandDirections } from './search.types';
3
+ declare const RefSearch: React.ForwardRefExoticComponent<{
4
+ button?: import("../button/button.types").Button;
5
+ clear: import("../button/button.types").Button;
6
+ customErrorMessages?: import("../use-input-validation.types").Messages;
7
+ expandable?: {
8
+ close: import("../button/button.types").Button;
9
+ direction?: import("../types").ObjectValues<typeof expandDirections>;
10
+ };
11
+ helpIcon?: React.ReactElement;
12
+ helpText?: string;
13
+ inputSize?: import("../types").ObjectValues<typeof inputSizes>;
14
+ isLabelVisible?: boolean;
15
+ label: string;
16
+ name: string;
17
+ onChangeFunc?: (arg: string) => void;
18
+ onClear?: () => void;
19
+ theme?: import("../types").ObjectValues<typeof themes>;
20
+ variant?: import("../types").ObjectValues<typeof variants>;
21
+ } & import("../types").InputHtmlProps & React.RefAttributes<HTMLInputElement>>;
22
+ declare const Search: typeof RefSearch & {
23
+ themes: typeof themes;
24
+ variants: typeof variants;
25
+ inputSizes: typeof inputSizes;
26
+ expandDirections: typeof expandDirections;
27
+ };
28
+ export default Search;
@@ -0,0 +1,2 @@
1
+ var Z=Object.defineProperty,b=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var D=(e,a,i)=>a in e?Z(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,p=(e,a)=>{for(var i in a||(a={}))H.call(a,i)&&D(e,i,a[i]);if(N)for(var i of N(a))O.call(a,i)&&D(e,i,a[i]);return e},f=(e,a)=>b(e,R(a));var P=(e,a)=>{var i={};for(var l in e)H.call(e,l)&&a.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&N)for(var l of N(e))a.indexOf(l)<0&&O.call(e,l)&&(i[l]=e[l]);return i};import o from"classnames";import s,{useRef as ss,useState as V}from"react";import n from"../button";import es from"../hooks/use-click-outside";import{useIsMounted as rs}from"../hooks/use-is-mounted";import as from"../icons/18/close";import is from"../icons/24/search";import _ from"../text";import ns from"../use-input-validation";import{themes as h,inputSizes as m,variants as v,expandDirections as ls}from"./search.types";const j=s.forwardRef((ts,G)=>{var x=ts,{button:e,customErrorMessages:a,clear:i,disabled:l,label:y,isLabelVisible:$=!0,name:q,onChangeFunc:A=()=>{},onClear:B=()=>{},expandable:c,placeholder:L,required:S,inputSize:t=m.small,theme:d=h.inline,variant:r=v.default,value:W="",helpText:g,helpIcon:z}=x,F=P(x,["button","customErrorMessages","clear","disabled","label","isLabelVisible","name","onChangeFunc","onClear","expandable","placeholder","required","inputSize","theme","variant","value","helpText","helpIcon"]);const[J,K,I]=ns(a),T=ss(null),[w,C]=V(!1),Q=rs();es(T,()=>C(!1));const[E,U]=V(W),M=u=>{A(u),U(u)},X=u=>{M(u.target.value),J(u)},k=()=>{M(""),B()},Y=()=>{k(),C(!1)};return s.createElement("div",{className:o("search",{[`search--expand-direction-${c==null?void 0:c.direction}`]:c==null?void 0:c.direction})},Q?s.createElement("div",{className:o("search__inner",{"search__inner--expandable":c,"search__inner--expand":w}),ref:T},d===h.inline&&$?s.createElement(_,{theme:_.themes.emphasis,size:t===m.large?_.sizes.large:_.sizes.small,className:o("search__header",{[`search__header--variant-${r}`]:r})},y):null,s.createElement("div",{className:o("search__input-wrapper",{[`search__input-wrapper--size-${t}`]:t,[`search__input-wrapper--theme-${d}`]:d,[`search__input-wrapper--variant-${r}`]:r})},s.createElement("label",{className:"search__label"},s.createElement("div",{className:o("search__icon",{[`search__icon--variant-${r}`]:r})},s.createElement(is,null)),s.createElement("input",f(p({},F),{className:o("search__input",{[`search__input--variant-${r}`]:r,[`search__input--size-${t}`]:t}),disabled:l,name:q,onChange:X,onClick:()=>C(!0),value:E,onInvalid:K,placeholder:L,ref:G,required:S,type:"search","aria-label":d===h.floating||!$?y:void 0}))),s.createElement("div",{className:o("search__clear-button",{"search__clear-button--visible":E})},s.createElement(n,f(p({},i),{onClick:k,size:t===m.small?n.sizes.small:n.sizes.basic,type:"button",variant:r===v.fixed?n.variants.fixedTertiary:n.variants.tertiary}))),e?s.createElement(n,f(p({},e),{className:"search__search-button",variant:r===v.fixed?n.variants.secondaryWhite:n.variants.secondary,type:"submit",size:t===m.small?n.sizes.small:n.sizes.basic})):null,c&&w?s.createElement(n,f(p({},c.close),{className:"search__close-button",onClick:Y,leadingIcon:s.createElement(as,null),size:t===m.small?n.sizes.small:n.sizes.basic,type:"button",variant:r===v.fixed?n.variants.fixedTertiary:n.variants.tertiary})):null),I?s.createElement("div",{"aria-hidden":"true",className:"search__error"},s.createElement(_,null,I)):null,d===h.inline&&g?s.createElement(_,{size:_.sizes.interface,className:o("search__help-text",{[`search__help-text--variant-${r}`]:r})},z,g):null):s.createElement("div",{className:"search__loading-inner"},d===h.inline&&$?s.createElement("div",{className:o("search__loading-extra",{[`search__loading-extra--${r}`]:r})},y):null,s.createElement("div",{className:o("search__loading-input",{[`search__loading-input--${r}`]:r,[`search__loading-input--${t}`]:t})}),d===h.inline&&g?s.createElement("div",{className:o("search__loading-extra",{[`search__loading-extra--${r}`]:r})},z,g):null))});j.displayName="Search";const os=Object.assign(j,{themes:h,variants:v,inputSizes:m,expandDirections:ls});var $s=os;export{$s as default};
2
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/search/search.tsx"],
4
+ "sourcesContent": ["import classNames from 'classnames';\nimport React, { useRef, useState } from 'react';\n\nimport Button from '../button';\nimport useClickOutside from '../hooks/use-click-outside';\nimport { useIsMounted } from '../hooks/use-is-mounted';\nimport CloseIcon from '../icons/18/close';\nimport SearchIcon from '../icons/24/search';\nimport Text from '../text';\nimport useInputValidation from '../use-input-validation';\n\nimport {\n Search as Props,\n themes,\n inputSizes,\n variants,\n expandDirections,\n} from './search.types';\n\nconst RefSearch = React.forwardRef<HTMLInputElement, Props>(\n (\n {\n button,\n customErrorMessages,\n clear,\n disabled,\n label,\n isLabelVisible = true,\n name,\n onChangeFunc = () => {},\n onClear = () => {},\n expandable,\n placeholder,\n required,\n inputSize = inputSizes.small,\n theme = themes.inline,\n variant = variants.default,\n value = '',\n helpText,\n helpIcon,\n ...restProps\n },\n ref,\n ) => {\n const [validationOnChange, handleInvalid, error] =\n useInputValidation(customErrorMessages);\n const searchArea = useRef<HTMLDivElement>(null);\n const [expand, setExpand] = useState(false);\n const isMounted = useIsMounted();\n\n useClickOutside(searchArea, () => setExpand(false));\n\n const [inputValue, setInputValue] = useState(value);\n\n const setValue = (value: string) => {\n onChangeFunc(value);\n setInputValue(value);\n };\n\n const handleChange: React.ChangeEventHandler<HTMLInputElement> = e => {\n setValue(e.target.value);\n validationOnChange(e);\n };\n\n const handleClear = () => {\n setValue('');\n onClear();\n };\n\n const handleClose = () => {\n handleClear();\n setExpand(false);\n };\n\n return (\n <div\n className={classNames('search', {\n [`search--expand-direction-${expandable?.direction}`]:\n expandable?.direction,\n })}\n >\n {isMounted ? (\n <div\n className={classNames('search__inner', {\n 'search__inner--expandable': expandable,\n 'search__inner--expand': expand,\n })}\n ref={searchArea}\n >\n {theme === themes.inline && isLabelVisible ? (\n <Text\n theme={Text.themes.emphasis}\n size={\n inputSize === inputSizes.large\n ? Text.sizes.large\n : Text.sizes.small\n }\n className={classNames('search__header', {\n [`search__header--variant-${variant}`]: variant,\n })}\n >\n {label}\n </Text>\n ) : null}\n <div\n className={classNames('search__input-wrapper', {\n [`search__input-wrapper--size-${inputSize}`]: inputSize,\n [`search__input-wrapper--theme-${theme}`]: theme,\n [`search__input-wrapper--variant-${variant}`]: variant,\n })}\n >\n <label className=\"search__label\">\n <div\n className={classNames('search__icon', {\n [`search__icon--variant-${variant}`]: variant,\n })}\n >\n <SearchIcon />\n </div>\n <input\n {...restProps}\n className={classNames('search__input', {\n [`search__input--variant-${variant}`]: variant,\n [`search__input--size-${inputSize}`]: inputSize,\n })}\n disabled={disabled}\n name={name}\n onChange={handleChange}\n onClick={() => setExpand(true)}\n value={inputValue}\n onInvalid={handleInvalid}\n placeholder={placeholder}\n ref={ref}\n required={required}\n type=\"search\"\n aria-label={\n theme === themes.floating || !isLabelVisible\n ? label\n : undefined\n }\n />\n </label>\n <div\n className={classNames('search__clear-button', {\n 'search__clear-button--visible': inputValue,\n })}\n >\n <Button\n {...clear}\n onClick={handleClear}\n size={\n inputSize === inputSizes.small\n ? Button.sizes.small\n : Button.sizes.basic\n }\n type=\"button\"\n variant={\n variant === variants.fixed\n ? Button.variants.fixedTertiary\n : Button.variants.tertiary\n }\n />\n </div>\n {button ? (\n <Button\n {...button}\n className=\"search__search-button\"\n variant={\n variant === variants.fixed\n ? Button.variants.secondaryWhite\n : Button.variants.secondary\n }\n type=\"submit\"\n size={\n inputSize === inputSizes.small\n ? Button.sizes.small\n : Button.sizes.basic\n }\n />\n ) : null}\n {expandable && expand ? (\n <Button\n {...expandable.close}\n className=\"search__close-button\"\n onClick={handleClose}\n leadingIcon={<CloseIcon />}\n size={\n inputSize === inputSizes.small\n ? Button.sizes.small\n : Button.sizes.basic\n }\n type=\"button\"\n variant={\n variant === variants.fixed\n ? Button.variants.fixedTertiary\n : Button.variants.tertiary\n }\n />\n ) : null}\n </div>\n {error ? (\n <div aria-hidden=\"true\" className=\"search__error\">\n <Text>{error}</Text>\n </div>\n ) : null}\n {theme === themes.inline && helpText ? (\n <Text\n size={Text.sizes.interface}\n className={classNames('search__help-text', {\n [`search__help-text--variant-${variant}`]: variant,\n })}\n >\n {helpIcon}\n {helpText}\n </Text>\n ) : null}\n </div>\n ) : (\n <div className=\"search__loading-inner\">\n {theme === themes.inline && isLabelVisible ? (\n <div\n className={classNames('search__loading-extra', {\n [`search__loading-extra--${variant}`]: variant,\n })}\n >\n {label}\n </div>\n ) : null}\n <div\n className={classNames('search__loading-input', {\n [`search__loading-input--${variant}`]: variant,\n [`search__loading-input--${inputSize}`]: inputSize,\n })}\n ></div>\n {theme === themes.inline && helpText ? (\n <div\n className={classNames('search__loading-extra', {\n [`search__loading-extra--${variant}`]: variant,\n })}\n >\n {helpIcon}\n {helpText}\n </div>\n ) : null}\n </div>\n )}\n </div>\n );\n },\n);\n\n// NOTE: Stack traces will show \"forwardRef\" instead of \"Search\" if this is not set.\nRefSearch.displayName = 'Search';\n\nconst Search: typeof RefSearch & {\n themes: typeof themes;\n variants: typeof variants;\n inputSizes: typeof inputSizes;\n expandDirections: typeof expandDirections;\n} = Object.assign(RefSearch, {\n themes,\n variants,\n inputSizes,\n expandDirections,\n});\n\nexport default Search;\n"],
5
+ "mappings": "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",
6
+ "names": ["classNames", "React", "useRef", "useState", "Button", "useClickOutside", "useIsMounted", "CloseIcon", "SearchIcon", "Text", "useInputValidation", "themes", "inputSizes", "variants", "expandDirections", "RefSearch", "_a", "ref", "_b", "button", "customErrorMessages", "clear", "disabled", "label", "isLabelVisible", "name", "onChangeFunc", "onClear", "expandable", "placeholder", "required", "inputSize", "theme", "variant", "value", "helpText", "helpIcon", "restProps", "__objRest", "validationOnChange", "handleInvalid", "error", "searchArea", "expand", "setExpand", "isMounted", "inputValue", "setInputValue", "setValue", "handleChange", "e", "handleClear", "handleClose", "__spreadProps", "__spreadValues", "Search", "search_default"]
7
+ }
@@ -0,0 +1,39 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { Button } from '../button/button.types';
3
+ import type { InputHtmlProps, ObjectValues } from '../types';
4
+ import type { Messages } from '../use-input-validation.types';
5
+ export declare const themes: {
6
+ readonly floating: "floating";
7
+ readonly inline: "inline";
8
+ };
9
+ export declare const inputSizes: {
10
+ readonly small: "small";
11
+ readonly large: "large";
12
+ };
13
+ export declare const variants: {
14
+ readonly default: "default";
15
+ readonly fixed: "fixed";
16
+ };
17
+ export declare const expandDirections: {
18
+ readonly left: "left";
19
+ readonly right: "right";
20
+ };
21
+ export type Search = {
22
+ button?: Button;
23
+ clear: Button;
24
+ customErrorMessages?: Messages;
25
+ expandable?: {
26
+ close: Button;
27
+ direction?: ObjectValues<typeof expandDirections>;
28
+ };
29
+ helpIcon?: ReactElement;
30
+ helpText?: string;
31
+ inputSize?: ObjectValues<typeof inputSizes>;
32
+ isLabelVisible?: boolean;
33
+ label: string;
34
+ name: string;
35
+ onChangeFunc?: (arg: string) => void;
36
+ onClear?: () => void;
37
+ theme?: ObjectValues<typeof themes>;
38
+ variant?: ObjectValues<typeof variants>;
39
+ } & InputHtmlProps;
@@ -0,0 +1,2 @@
1
+ const t={floating:"floating",inline:"inline"},e={small:"small",large:"large"},n={default:"default",fixed:"fixed"},o={left:"left",right:"right"};export{o as expandDirections,e as inputSizes,t as themes,n as variants};
2
+ //# sourceMappingURL=search.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/search/search.types.ts"],
4
+ "sourcesContent": ["import type { ReactElement } from 'react';\nimport type { Button } from '../button/button.types';\nimport type { InputHtmlProps, ObjectValues } from '../types';\nimport type { Messages } from '../use-input-validation.types';\n\nexport const themes = {\n floating: 'floating',\n inline: 'inline',\n} as const;\n\nexport const inputSizes = {\n small: 'small',\n large: 'large',\n} as const;\n\nexport const variants = {\n default: 'default',\n fixed: 'fixed',\n} as const;\n\nexport const expandDirections = {\n left: 'left',\n right: 'right',\n} as const;\n\nexport type Search = {\n button?: Button;\n clear: Button;\n customErrorMessages?: Messages;\n expandable?: {\n close: Button;\n direction?: ObjectValues<typeof expandDirections>;\n };\n helpIcon?: ReactElement;\n helpText?: string;\n inputSize?: ObjectValues<typeof inputSizes>; //NOTE: This is not named `size` due to InputHTMLProps having a `size` attribute that will clash\n isLabelVisible?: boolean;\n label: string;\n name: string;\n onChangeFunc?: (arg: string) => void;\n onClear?: () => void;\n theme?: ObjectValues<typeof themes>;\n variant?: ObjectValues<typeof variants>;\n} & InputHtmlProps;\n"],
5
+ "mappings": "AAKO,MAAMA,EAAS,CACpB,SAAU,WACV,OAAQ,QACV,EAEaC,EAAa,CACxB,MAAO,QACP,MAAO,OACT,EAEaC,EAAW,CACtB,QAAS,UACT,MAAO,OACT,EAEaC,EAAmB,CAC9B,KAAM,OACN,MAAO,OACT",
6
+ "names": ["themes", "inputSizes", "variants", "expandDirections"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import e from"./select";var o=e;export{o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/select/index.ts"],
4
+ "sourcesContent": ["import Select from './select';\nexport default Select;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAY,WACnB,IAAOC,EAAQD",
6
+ "names": ["Select", "select_default"]
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { labelPositions, Select as Props, variants } from './select.types';
3
+ declare const SelectComponent: <OptionExtra>(props: Props<OptionExtra> & {
4
+ ref?: React.Ref<HTMLSelectElement>;
5
+ }) => React.ReactElement;
6
+ declare const Select: typeof SelectComponent & {
7
+ labelPositions: typeof labelPositions;
8
+ variants: typeof variants;
9
+ };
10
+ export default Select;
@@ -0,0 +1,2 @@
1
+ var L=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var g=(e,s,t)=>s in e?L(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,v=(e,s)=>{for(var t in s||(s={}))x.call(s,t)&&g(e,t,s[t]);if(o)for(var t of o(s))C.call(s,t)&&g(e,t,s[t]);return e};var E=(e,s)=>{var t={};for(var a in e)x.call(e,a)&&s.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&o)for(var a of o(e))s.indexOf(a)<0&&C.call(e,a)&&(t[a]=e[a]);return t};import i from"classnames";import*as l from"react";import $ from"../use-input-validation";import j from"../select-option/select-option";import r from"../text";import A from"../icons/18/arrow-down";import{labelPositions as b,variants as f}from"./select.types";const w=l.forwardRef((W,T)=>{var N=W,{children:e,className:s,id:t,isLabelVisible:a=!0,label:c,labelPosition:I=b.stacked,name:y,onChange:O=()=>{},onChangeOption:P=()=>{},options:u=[],required:m,variant:h=f.large,wide:p}=N,_=E(N,["children","className","id","isLabelVisible","label","labelPosition","name","onChange","onChangeOption","options","required","variant","wide"]);const[k,z,d]=$(),H=n=>{O(n),P(u.find(({value:M})=>M===n.target.value)),k(n)},S=m?l.createElement("span",{className:"select__asterisk"},"*"):null;return l.createElement("div",{className:i("select",s,{"select--error":d})},l.createElement("div",{className:i(`select__content select__content--position-${I}`,{"select__content--wide":p})},a?l.createElement("label",{className:"select__label",htmlFor:t},c||e?l.createElement("div",{className:"select__label-text"},l.createElement(r,{size:h===f.small?r.sizes.small:r.sizes.basic,theme:r.themes.emphasis},c),S,e):m?S:null):null,l.createElement("div",{className:i("select__native-wrapper",{"select__native-wrapper--wide":p})},l.createElement("select",v({"aria-label":a?void 0:c,className:i(`select__select select__select--variant-${h}`,{"select__select--wide":p}),id:t,name:y,onChange:H,onInvalid:n=>{_.onInvalid&&_.onInvalid(n),z(n)},ref:T,required:m},_),u.map(n=>l.createElement(j,v({key:n.value},n)))),l.createElement("span",{className:"select__chevron"},l.createElement(A,null))),d?l.createElement("div",{"aria-hidden":"true",className:"select__error"},d):null))});w.displayName="Select";const D=w,F=Object.assign(D,{labelPositions:b,variants:f});var Y=F;export{Y as default};
2
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/select/select.tsx"],
4
+ "sourcesContent": ["import cn from 'classnames';\nimport * as React from 'react';\n\nimport useInputValidation from '../use-input-validation';\n\nimport Option from '../select-option/select-option';\nimport Text from '../text';\nimport SvgArrowDown from '../icons/18/arrow-down';\n\nimport { labelPositions, Select as Props, variants } from './select.types';\n\n// NOTE: `onChangeOption` works like `onChange` but returns the props for that option instead of an event object.\nconst RefSelect = React.forwardRef<\n HTMLSelectElement,\n React.PropsWithChildren<Props>\n>(\n (\n {\n children,\n className,\n id,\n isLabelVisible = true,\n label,\n labelPosition = labelPositions.stacked,\n name,\n onChange = () => {},\n onChangeOption = () => {},\n options = [],\n required,\n variant = variants.large,\n wide,\n ...restProps\n },\n ref,\n ) => {\n const [validationOnChange, onInvalid, error] = useInputValidation();\n\n const onInputChange = (e: React.ChangeEvent<HTMLSelectElement>) => {\n onChange(e);\n onChangeOption(options.find(({ value }) => value === e.target.value));\n validationOnChange(e);\n };\n\n const asterix = required ? (\n <span className=\"select__asterisk\">*</span>\n ) : null;\n\n return (\n <div className={cn('select', className, { 'select--error': error })}>\n <div\n className={cn(\n `select__content select__content--position-${labelPosition}`,\n { 'select__content--wide': wide },\n )}\n >\n {isLabelVisible ? (\n <label className=\"select__label\" htmlFor={id}>\n {label || children ? (\n <div className=\"select__label-text\">\n <Text\n size={\n variant === variants.small\n ? Text.sizes.small\n : Text.sizes.basic\n }\n theme={Text.themes.emphasis}\n >\n {label}\n </Text>\n {asterix}\n {children}\n </div>\n ) : required ? (\n asterix\n ) : null}\n </label>\n ) : null}\n <div\n className={cn('select__native-wrapper', {\n 'select__native-wrapper--wide': wide,\n })}\n >\n <select\n aria-label={isLabelVisible ? undefined : label}\n className={cn(\n `select__select select__select--variant-${variant}`,\n {\n 'select__select--wide': wide,\n },\n )}\n id={id}\n name={name}\n onChange={onInputChange}\n onInvalid={e => {\n // NOTE: To not break compatibility\n if (restProps.onInvalid) restProps.onInvalid(e);\n onInvalid(e);\n }}\n ref={ref}\n required={required}\n {...restProps}\n >\n {options.map(option => (\n <Option key={option.value} {...option} />\n ))}\n </select>\n <span className=\"select__chevron\">\n <SvgArrowDown />\n </span>\n </div>\n\n {/* NOTE: This is aria-hidden because reporting of validation errors is handled by the browser */}\n {error ? (\n <div aria-hidden=\"true\" className=\"select__error\">\n {error}\n </div>\n ) : null}\n </div>\n </div>\n );\n },\n);\n\n// NOTE: If this isn't set, stack traces say \"forwardRef\" instead of \"Select\"\nRefSelect.displayName = 'Select';\n\n// NOTE: Since `React.forwardRef` props aren't generic, the component is cast so that generics work as intended. See https://stackoverflow.com/a/58473012\nconst SelectComponent = RefSelect as <OptionExtra>(\n props: Props<OptionExtra> & {\n ref?: React.Ref<HTMLSelectElement>;\n },\n) => React.ReactElement;\n\nconst Select: typeof SelectComponent & {\n labelPositions: typeof labelPositions;\n variants: typeof variants;\n} = Object.assign(SelectComponent, { labelPositions, variants });\n\nexport default Select;\n"],
5
+ "mappings": "2fAAA,OAAOA,MAAQ,aACf,UAAYC,MAAW,QAEvB,OAAOC,MAAwB,0BAE/B,OAAOC,MAAY,iCACnB,OAAOC,MAAU,UACjB,OAAOC,MAAkB,yBAEzB,OAAS,kBAAAC,EAAiC,YAAAC,MAAgB,iBAG1D,MAAMC,EAAYP,EAAM,WAItB,CACEQ,EAgBAC,IACG,CAjBH,IAAAC,EAAAF,EACE,UAAAG,EACA,UAAAC,EACA,GAAAC,EACA,eAAAC,EAAiB,GACjB,MAAAC,EACA,cAAAC,EAAgBX,EAAe,QAC/B,KAAAY,EACA,SAAAC,EAAW,IAAM,CAAC,EAClB,eAAAC,EAAiB,IAAM,CAAC,EACxB,QAAAC,EAAU,CAAC,EACX,SAAAC,EACA,QAAAC,EAAUhB,EAAS,MACnB,KAAAiB,CA9BN,EAiBIb,EAcKc,EAAAC,EAdLf,EAcK,CAbH,WACA,YACA,KACA,iBACA,QACA,gBACA,OACA,WACA,iBACA,UACA,WACA,UACA,SAKF,KAAM,CAACgB,EAAoBC,EAAWC,CAAK,EAAI3B,EAAmB,EAE5D4B,EAAiBC,GAA4C,CACjEZ,EAASY,CAAC,EACVX,EAAeC,EAAQ,KAAK,CAAC,CAAE,MAAAW,CAAM,IAAMA,IAAUD,EAAE,OAAO,KAAK,CAAC,EACpEJ,EAAmBI,CAAC,CACtB,EAEME,EAAUX,EACdrB,EAAA,cAAC,QAAK,UAAU,oBAAmB,GAAC,EAClC,KAEJ,OACEA,EAAA,cAAC,OAAI,UAAWD,EAAG,SAAUa,EAAW,CAAE,gBAAiBgB,CAAM,CAAC,GAChE5B,EAAA,cAAC,OACC,UAAWD,EACT,6CAA6CiB,CAAa,GAC1D,CAAE,wBAAyBO,CAAK,CAClC,GAECT,EACCd,EAAA,cAAC,SAAM,UAAU,gBAAgB,QAASa,GACvCE,GAASJ,EACRX,EAAA,cAAC,OAAI,UAAU,sBACbA,EAAA,cAACG,EAAA,CACC,KACEmB,IAAYhB,EAAS,MACjBH,EAAK,MAAM,MACXA,EAAK,MAAM,MAEjB,MAAOA,EAAK,OAAO,UAElBY,CACH,EACCiB,EACArB,CACH,EACEU,EACFW,EACE,IACN,EACE,KACJhC,EAAA,cAAC,OACC,UAAWD,EAAG,yBAA0B,CACtC,+BAAgCwB,CAClC,CAAC,GAEDvB,EAAA,cAAC,SAAAiC,EAAA,CACC,aAAYnB,EAAiB,OAAYC,EACzC,UAAWhB,EACT,0CAA0CuB,CAAO,GACjD,CACE,uBAAwBC,CAC1B,CACF,EACA,GAAIV,EACJ,KAAMI,EACN,SAAUY,EACV,UAAWC,GAAK,CAEVN,EAAU,WAAWA,EAAU,UAAUM,CAAC,EAC9CH,EAAUG,CAAC,CACb,EACA,IAAKrB,EACL,SAAUY,GACNG,GAEHJ,EAAQ,IAAIc,GACXlC,EAAA,cAACE,EAAA+B,EAAA,CAAO,IAAKC,EAAO,OAAWA,EAAQ,CACxC,CACH,EACAlC,EAAA,cAAC,QAAK,UAAU,mBACdA,EAAA,cAACI,EAAA,IAAa,CAChB,CACF,EAGCwB,EACC5B,EAAA,cAAC,OAAI,cAAY,OAAO,UAAU,iBAC/B4B,CACH,EACE,IACN,CACF,CAEJ,CACF,EAGArB,EAAU,YAAc,SAGxB,MAAM4B,EAAkB5B,EAMlB6B,EAGF,OAAO,OAAOD,EAAiB,CAAE,eAAA9B,EAAgB,SAAAC,CAAS,CAAC,EAE/D,IAAO+B,EAAQD",
6
+ "names": ["cn", "React", "useInputValidation", "Option", "Text", "SvgArrowDown", "labelPositions", "variants", "RefSelect", "_a", "ref", "_b", "children", "className", "id", "isLabelVisible", "label", "labelPosition", "name", "onChange", "onChangeOption", "options", "required", "variant", "wide", "restProps", "__objRest", "validationOnChange", "onInvalid", "error", "onInputChange", "e", "value", "asterix", "__spreadValues", "option", "SelectComponent", "Select", "select_default"]
7
+ }
@@ -0,0 +1,21 @@
1
+ import { ObjectValues, SelectHtmlProps } from '../types';
2
+ import { SelectOption } from '../select-option/select-option.types';
3
+ export declare const labelPositions: {
4
+ readonly inline: "inline";
5
+ readonly stacked: "stacked";
6
+ };
7
+ export declare const variants: {
8
+ readonly small: "small";
9
+ readonly large: "large";
10
+ };
11
+ export type Select<OptionExtra = any> = {
12
+ id: string;
13
+ isLabelVisible?: boolean;
14
+ label?: string;
15
+ labelPosition?: ObjectValues<typeof labelPositions>;
16
+ name: string;
17
+ onChangeOption?: (option?: SelectOption<OptionExtra>) => void;
18
+ options?: SelectOption<OptionExtra>[];
19
+ variant?: ObjectValues<typeof variants>;
20
+ wide?: boolean;
21
+ } & SelectHtmlProps;
@@ -0,0 +1,2 @@
1
+ const l={inline:"inline",stacked:"stacked"},a={small:"small",large:"large"};export{l as labelPositions,a as variants};
2
+ //# sourceMappingURL=select.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/select/select.types.ts"],
4
+ "sourcesContent": ["import { ObjectValues, SelectHtmlProps } from '../types';\n\nimport { SelectOption } from '../select-option/select-option.types';\n\nexport const labelPositions = {\n inline: 'inline',\n stacked: 'stacked',\n} as const;\n\nexport const variants = {\n small: 'small',\n large: 'large',\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Select<OptionExtra = any> = {\n id: string;\n isLabelVisible?: boolean;\n label?: string;\n labelPosition?: ObjectValues<typeof labelPositions>;\n name: string;\n onChangeOption?: (option?: SelectOption<OptionExtra>) => void;\n options?: SelectOption<OptionExtra>[];\n variant?: ObjectValues<typeof variants>;\n wide?: boolean;\n} & SelectHtmlProps;\n"],
5
+ "mappings": "AAIO,MAAMA,EAAiB,CAC5B,OAAQ,SACR,QAAS,SACX,EAEaC,EAAW,CACtB,MAAO,QACP,MAAO,OACT",
6
+ "names": ["labelPositions", "variants"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import t from"./select-option";var o=t;export{o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/select-option/index.ts"],
4
+ "sourcesContent": ["import SelectOption from './select-option';\nexport default SelectOption;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAkB,kBACzB,IAAOC,EAAQD",
6
+ "names": ["SelectOption", "select_option_default"]
7
+ }
@@ -1,16 +1,5 @@
1
1
  import * as React from 'react';
2
-
3
2
  import { SelectOption as Props } from './select-option.types';
4
-
5
3
  /** This component is not intended to be used directly. It is used by `Select` internally */
6
- const SelectOption: React.FunctionComponent<Props> = ({
7
- value,
8
- text,
9
- ...rest
10
- }) => (
11
- <option value={value} {...rest}>
12
- {text}
13
- </option>
14
- );
15
-
4
+ declare const SelectOption: React.FunctionComponent<Props>;
16
5
  export default SelectOption;
@@ -0,0 +1,2 @@
1
+ var l=Object.defineProperty;var n=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var r=(o,p,t)=>p in o?l(o,p,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[p]=t,m=(o,p)=>{for(var t in p||(p={}))a.call(p,t)&&r(o,t,p[t]);if(n)for(var t of n(p))c.call(p,t)&&r(o,t,p[t]);return o};var s=(o,p)=>{var t={};for(var e in o)a.call(o,e)&&p.indexOf(e)<0&&(t[e]=o[e]);if(o!=null&&n)for(var e of n(o))p.indexOf(e)<0&&c.call(o,e)&&(t[e]=o[e]);return t};import*as f from"react";const u=e=>{var i=e,{value:o,text:p}=i,t=s(i,["value","text"]);return f.createElement("option",m({value:o},t),p)};var d=u;export{d as default};
2
+ //# sourceMappingURL=select-option.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/select-option/select-option.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\n\nimport { SelectOption as Props } from './select-option.types';\n\n/** This component is not intended to be used directly. It is used by `Select` internally */\nconst SelectOption: React.FunctionComponent<Props> = ({\n value,\n text,\n ...rest\n}) => (\n <option value={value} {...rest}>\n {text}\n </option>\n);\n\nexport default SelectOption;\n"],
5
+ "mappings": "2fAAA,UAAYA,MAAW,QAKvB,MAAMC,EAAgDC,GAInD,CAJmD,IAAAC,EAAAD,EACpD,OAAAE,EACA,KAAAC,CAPF,EAKsDF,EAGjDG,EAAAC,EAHiDJ,EAGjD,CAFH,QACA,SAGA,OAAAH,EAAA,cAAC,SAAAQ,EAAA,CAAO,MAAOJ,GAAWE,GACvBD,CACH,GAGF,IAAOI,EAAQR",
6
+ "names": ["React", "SelectOption", "_a", "_b", "value", "text", "rest", "__objRest", "__spreadValues", "select_option_default"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import { OptionHtmlProps } from '../types';
2
+ export type SelectOption<Extra = any> = {
3
+ extra?: Extra;
4
+ value: string;
5
+ text: string;
6
+ } & OptionHtmlProps;
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=select-option.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"./tag";var t=o;export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/tag/index.ts"],
4
+ "sourcesContent": ["import Tag from './tag';\nexport default Tag;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAS,QAChB,IAAOC,EAAQD",
6
+ "names": ["Tag", "tag_default"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Tag as Props, variants, sizes } from './tag.types';
3
+ declare const Tag: React.FunctionComponent<Props> & {
4
+ sizes: typeof sizes;
5
+ variants: typeof variants;
6
+ };
7
+ export default Tag;
@@ -0,0 +1,2 @@
1
+ import p from"react";import n from"../text";import{variants as r,sizes as o}from"./tag.types";import f from"classnames";const t=({text:e,icon:a,border:i,size:m=o.m,variant:s=r.primary})=>p.createElement(n,{size:m,tight:!0,className:f("tag",`tag--variant-${s}`,{[`tag--variant-${s}-border`]:i})},a||null,e);t.sizes=o,t.variants=r;var T=t;export{T as default};
2
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/tag/tag.tsx"],
4
+ "sourcesContent": ["import React from 'react';\n\nimport Text from '../text';\n\nimport { Tag as Props, variants, sizes } from './tag.types';\nimport classNames from 'classnames';\n\nconst Tag: React.FunctionComponent<Props> & {\n sizes: typeof sizes;\n variants: typeof variants;\n} = ({ text, icon, border, size = sizes.m, variant = variants.primary }) => (\n <Text\n size={size}\n tight\n className={classNames('tag', `tag--variant-${variant}`, {\n [`tag--variant-${variant}-border`]: border,\n })}\n >\n {icon ? icon : null}\n {text}\n </Text>\n);\n\nTag.sizes = sizes;\nTag.variants = variants;\nexport default Tag;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAW,QAElB,OAAOC,MAAU,UAEjB,OAAuB,YAAAC,EAAU,SAAAC,MAAa,cAC9C,OAAOC,MAAgB,aAEvB,MAAMC,EAGF,CAAC,CAAE,KAAAC,EAAM,KAAAC,EAAM,OAAAC,EAAQ,KAAAC,EAAON,EAAM,EAAG,QAAAO,EAAUR,EAAS,OAAQ,IACpEF,EAAA,cAACC,EAAA,CACC,KAAMQ,EACN,MAAK,GACL,UAAWL,EAAW,MAAO,gBAAgBM,CAAO,GAAI,CACtD,CAAC,gBAAgBA,CAAO,SAAS,EAAGF,CACtC,CAAC,GAEAD,GAAc,KACdD,CACH,EAGFD,EAAI,MAAQF,EACZE,EAAI,SAAWH,EACf,IAAOS,EAAQN",
6
+ "names": ["React", "Text", "variants", "sizes", "classNames", "Tag", "text", "icon", "border", "size", "variant", "tag_default"]
7
+ }
@@ -0,0 +1,26 @@
1
+ import { ObjectValues } from '../types';
2
+ import { ReactElement } from 'react';
3
+ export declare const sizes: {
4
+ readonly xs: "interface";
5
+ readonly s: "small";
6
+ readonly m: "basic";
7
+ readonly l: "large";
8
+ };
9
+ export declare const variants: {
10
+ readonly primary: "primary";
11
+ readonly secondary: "secondary";
12
+ readonly tertiary: "tertiary";
13
+ readonly positive: "positive";
14
+ readonly attention: "attention";
15
+ readonly negative: "negative";
16
+ readonly neutral: "neutral";
17
+ readonly information: "information";
18
+ readonly featured: "featured";
19
+ };
20
+ export type Tag = {
21
+ text: string;
22
+ border?: boolean;
23
+ size?: ObjectValues<typeof sizes>;
24
+ variant?: ObjectValues<typeof variants>;
25
+ icon?: ReactElement;
26
+ };
@@ -0,0 +1,2 @@
1
+ import{sizes as e}from"../text/text.types";const s={xs:e.interface,s:e.small,m:e.basic,l:e.large},n={primary:"primary",secondary:"secondary",tertiary:"tertiary",positive:"positive",attention:"attention",negative:"negative",neutral:"neutral",information:"information",featured:"featured"};export{s as sizes,n as variants};
2
+ //# sourceMappingURL=tag.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/tag/tag.types.ts"],
4
+ "sourcesContent": ["import { ObjectValues } from '../types';\nimport { sizes as TextSizes } from '../text/text.types';\nimport { ReactElement } from 'react';\n\nexport const sizes = {\n xs: TextSizes.interface,\n s: TextSizes.small,\n m: TextSizes.basic,\n l: TextSizes.large,\n} as const;\n\nexport const variants = {\n primary: 'primary',\n secondary: 'secondary',\n tertiary: 'tertiary',\n positive: 'positive',\n attention: 'attention',\n negative: 'negative',\n neutral: 'neutral',\n information: 'information',\n featured: 'featured',\n} as const;\n\nexport type Tag = {\n text: string;\n border?: boolean;\n size?: ObjectValues<typeof sizes>;\n variant?: ObjectValues<typeof variants>;\n icon?: ReactElement;\n};\n"],
5
+ "mappings": "AACA,OAAS,SAASA,MAAiB,qBAG5B,MAAMC,EAAQ,CACnB,GAAID,EAAU,UACd,EAAGA,EAAU,MACb,EAAGA,EAAU,MACb,EAAGA,EAAU,KACf,EAEaE,EAAW,CACtB,QAAS,UACT,UAAW,YACX,SAAU,WACV,SAAU,WACV,UAAW,YACX,SAAU,WACV,QAAS,UACT,YAAa,cACb,SAAU,UACZ",
6
+ "names": ["TextSizes", "sizes", "variants"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import t from"./text";var o=t;export{o as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/text/index.ts"],
4
+ "sourcesContent": ["import Text from './text';\nexport default Text;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAU,SACjB,IAAOC,EAAQD",
6
+ "names": ["Text", "text_default"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { sizes, themes, Text as Props } from './text.types';
3
+ declare const Text: React.FunctionComponent<React.PropsWithChildren<Props>> & {
4
+ sizes: typeof sizes;
5
+ themes: typeof themes;
6
+ };
7
+ export default Text;
@@ -0,0 +1,2 @@
1
+ var P=Object.defineProperty;var i=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?P(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,h=(e,s)=>{for(var t in s||(s={}))x.call(s,t)&&f(e,t,s[t]);if(i)for(var t of i(s))d.call(s,t)&&f(e,t,s[t]);return e};var l=(e,s)=>{var t={};for(var o in e)x.call(e,o)&&s.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&i)for(var o of i(e))s.indexOf(o)<0&&d.call(e,o)&&(t[o]=e[o]);return t};import R from"classnames";import*as y from"react";import{sizes as r,themes as a}from"./text.types";const c=C=>{var p=C,{children:e,className:s,elementName:t="div",italic:o,size:m=r.basic,theme:n=a.normal,tight:u}=p,z=l(p,["children","className","elementName","italic","size","theme","tight"]);return y.createElement(t,h({className:R("text",{"text--italic":o,[`text--size-${m}`]:m?r[m]:void 0,[`text--theme-${n}`]:n?a[n]:void 0,"text--tight":u},s)},z),e)};c.sizes=r,c.themes=a;var v=c;export{v as default};
2
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/text/text.tsx"],
4
+ "sourcesContent": ["import cn from 'classnames';\nimport * as React from 'react';\n\nimport { sizes, themes, Text as Props } from './text.types';\n\nconst Text: React.FunctionComponent<React.PropsWithChildren<Props>> & {\n sizes: typeof sizes;\n themes: typeof themes;\n} = ({\n children,\n className,\n elementName = 'div',\n italic,\n size = sizes.basic,\n theme = themes.normal,\n tight,\n ...restProps\n}) =>\n React.createElement(\n elementName,\n {\n className: cn(\n 'text',\n {\n 'text--italic': italic,\n [`text--size-${size}`]: size ? sizes[size] : undefined,\n [`text--theme-${theme}`]: theme ? themes[theme] : undefined,\n 'text--tight': tight,\n },\n className,\n ),\n ...restProps,\n },\n children,\n );\n\nText.sizes = sizes;\nText.themes = themes;\n\nexport default Text;\n"],
5
+ "mappings": "2fAAA,OAAOA,MAAQ,aACf,UAAYC,MAAW,QAEvB,OAAS,SAAAC,EAAO,UAAAC,MAA6B,eAE7C,MAAMC,EAGDC,GASF,CATE,IAAAC,EAAAD,EACH,UAAAE,EACA,UAAAC,EACA,YAAAC,EAAc,MACd,OAAAC,EACA,KAAAC,EAAOT,EAAM,MACb,MAAAU,EAAQT,EAAO,OACf,MAAAU,CAfF,EAQKP,EAQAQ,EAAAC,EARAT,EAQA,CAPH,WACA,YACA,cACA,SACA,OACA,QACA,UAGA,OAAAL,EAAM,cACJQ,EACAO,EAAA,CACE,UAAWhB,EACT,OACA,CACE,eAAgBU,EAChB,CAAC,cAAcC,CAAI,EAAE,EAAGA,EAAOT,EAAMS,CAAI,EAAI,OAC7C,CAAC,eAAeC,CAAK,EAAE,EAAGA,EAAQT,EAAOS,CAAK,EAAI,OAClD,cAAeC,CACjB,EACAL,CACF,GACGM,GAELP,CACF,GAEFH,EAAK,MAAQF,EACbE,EAAK,OAASD,EAEd,IAAOc,EAAQb",
6
+ "names": ["cn", "React", "sizes", "themes", "Text", "_a", "_b", "children", "className", "elementName", "italic", "size", "theme", "tight", "restProps", "__objRest", "__spreadValues", "text_default"]
7
+ }
@@ -0,0 +1,27 @@
1
+ import { ObjectValues } from '../types';
2
+ export declare const sizes: {
3
+ readonly headline1: "headline1";
4
+ readonly headline2: "headline2";
5
+ readonly headline3: "headline3";
6
+ readonly large: "large";
7
+ readonly basic: "basic";
8
+ readonly small: "small";
9
+ readonly interface: "interface";
10
+ readonly button: "button";
11
+ readonly section: "section";
12
+ };
13
+ export declare const themes: {
14
+ readonly normal: "normal";
15
+ readonly emphasis: "emphasis";
16
+ readonly headline: "headline";
17
+ };
18
+ export type Text = {
19
+ className?: string;
20
+ elementName?: string;
21
+ italic?: boolean;
22
+ size?: ObjectValues<typeof sizes>;
23
+ theme?: ObjectValues<typeof themes>;
24
+ tight?: boolean;
25
+ } & {
26
+ [key: string]: unknown;
27
+ };
@@ -0,0 +1,2 @@
1
+ const a={headline1:"headline1",headline2:"headline2",headline3:"headline3",large:"large",basic:"basic",small:"small",interface:"interface",button:"button",section:"section"},s={normal:"normal",emphasis:"emphasis",headline:"headline"};export{a as sizes,s as themes};
2
+ //# sourceMappingURL=text.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/text/text.types.ts"],
4
+ "sourcesContent": ["import { ObjectValues } from '../types';\n\nexport const sizes = {\n headline1: 'headline1',\n headline2: 'headline2',\n headline3: 'headline3',\n large: 'large',\n basic: 'basic',\n small: 'small',\n interface: 'interface',\n button: 'button',\n section: 'section',\n} as const;\n\nexport const themes = {\n normal: 'normal',\n emphasis: 'emphasis',\n headline: 'headline',\n} as const;\n\n// NOTE: The type of the rest spread properties is generic because `elementName` can be _any_ HTML element which we can't type the props for\nexport type Text = {\n className?: string;\n elementName?: string;\n italic?: boolean;\n size?: ObjectValues<typeof sizes>;\n theme?: ObjectValues<typeof themes>;\n tight?: boolean;\n} & { [key: string]: unknown };\n"],
5
+ "mappings": "AAEO,MAAMA,EAAQ,CACnB,UAAW,YACX,UAAW,YACX,UAAW,YACX,MAAO,QACP,MAAO,QACP,MAAO,QACP,UAAW,YACX,OAAQ,SACR,QAAS,SACX,EAEaC,EAAS,CACpB,OAAQ,SACR,SAAU,WACV,SAAU,UACZ",
6
+ "names": ["sizes", "themes"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import e from"./text-area";var t=e;export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/text-area/index.ts"],
4
+ "sourcesContent": ["import TextArea from './text-area';\nexport default TextArea;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAc,cACrB,IAAOC,EAAQD",
6
+ "names": ["TextArea", "text_area_default"]
7
+ }
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { themes, sizes } from './text-area.types';
3
+ declare const RefTextArea: React.ForwardRefExoticComponent<{
4
+ helpText?: string;
5
+ label: string;
6
+ theme?: import("../types").ObjectValues<typeof themes>;
7
+ size?: import("../types").ObjectValues<typeof sizes>;
8
+ isLabelVisible?: boolean;
9
+ helpIcon?: React.ReactElement;
10
+ isShort?: boolean;
11
+ name: string;
12
+ defaultValue?: string;
13
+ } & import("../types").TextAreaHtmlProps & {
14
+ children?: React.ReactNode | undefined;
15
+ } & React.RefAttributes<HTMLTextAreaElement>>;
16
+ declare const TextArea: typeof RefTextArea & {
17
+ themes: typeof themes;
18
+ sizes: typeof sizes;
19
+ };
20
+ export default TextArea;
@@ -0,0 +1,2 @@
1
+ var O=Object.defineProperty;var p=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var g=(e,t,a)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A=(e,t)=>{for(var a in t||(t={}))b.call(t,a)&&g(e,a,t[a]);if(p)for(var a of p(t))y.call(t,a)&&g(e,a,t[a]);return e};var C=(e,t)=>{var a={};for(var i in e)b.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&p)for(var i of p(e))t.indexOf(i)<0&&y.call(e,i)&&(a[i]=e[i]);return a};import d from"classnames";import*as r from"react";import n from"../text";import W from"../use-input-validation";import{themes as I,sizes as v}from"./text-area.types";const k=r.forwardRef((B,E)=>{var z=B,{children:e,helpText:t,label:a,name:i,placeholder:w,disabled:u,required:c,isLabelVisible:N=!0,helpIcon:T,size:x=v.default,theme:s=I.light,isShort:$,maxLength:m,defaultValue:l}=z,_=C(z,["children","helpText","label","name","placeholder","disabled","required","isLabelVisible","helpIcon","size","theme","isShort","maxLength","defaultValue"]);const[j,H,f]=W(),[M,h]=r.useState(0);return r.useEffect(()=>{l&&(typeof l=="string"?h(l.length):typeof l=="number"&&h(l))},[_]),r.createElement("label",{className:"text-area"},r.createElement("div",{className:"text-area__wrapper"},N?r.createElement("div",{className:"text-area__header"},r.createElement(n,{theme:n.themes.emphasis,size:x===v.default?n.sizes.basic:n.sizes.small,className:d("text-area__label",{[`text-area__label--theme-${s}-disabled`]:u,[`text-area__label--theme-${s}`]:s})},a,c?r.createElement("span",{className:d("text-area__asterisk",{[`text-area__asterisk--theme-${s}-disabled`]:u,[`text-area__asterisk--theme-${s}`]:s})},"*"):null,e),m?r.createElement(n,{className:"text-area__max",size:n.sizes.small},M,"/",m):null):null,r.createElement("textarea",A({className:d("text-area__input",{[`text-area__input--theme-${s}`]:s,[`text-area__input--theme-${s}-error`]:f,[`text-area__input--size-${x}-short`]:$,[`text-area__input--size-${x}`]:x}),"aria-label":N?a:void 0,name:i,maxLength:m,ref:E,cols:1,required:c,defaultValue:l,rows:$?1:2,onChange:o=>{_.onChange&&_.onChange(o),j(o),m&&h(o.target.value.length)},onInvalid:o=>{_.onInvalid&&_.onInvalid(o),H(o)},placeholder:w,disabled:u},_))),t?r.createElement("div",{className:"text-area__help"},r.createElement(n,{size:n.sizes.interface,className:d("text-area__help-text",{[`text-area__help-text--theme-${s}-error`]:f,[`text-area__help-text--theme-${s}`]:s})},T||null,t)):null,f&&r.createElement("div",{"aria-hidden":"true",className:"text-area__error"},r.createElement(n,null,f)))});k.displayName="TextArea";const q=Object.assign(k,{themes:I,sizes:v});var S=q;export{S as default};
2
+ //# sourceMappingURL=text-area.js.map