@dscout/particle 1.0.0-alpha.21 → 1.0.0-alpha.23

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 (443) hide show
  1. package/README.md +45 -76
  2. package/lib/cjs/components/advanced_options.d.ts +3 -3
  3. package/lib/cjs/components/advanced_options.js +14 -13
  4. package/lib/cjs/components/advanced_options.js.map +1 -1
  5. package/lib/cjs/components/attribute_input.d.ts +4 -3
  6. package/lib/cjs/components/attribute_input.js +4 -3
  7. package/lib/cjs/components/attribute_input.js.map +1 -1
  8. package/lib/cjs/components/attribute_selector.d.ts +4 -3
  9. package/lib/cjs/components/attribute_selector.js +4 -3
  10. package/lib/cjs/components/attribute_selector.js.map +1 -1
  11. package/lib/cjs/components/avatar.d.ts +3 -3
  12. package/lib/cjs/components/avatar.js +3 -2
  13. package/lib/cjs/components/avatar.js.map +1 -1
  14. package/lib/cjs/components/blitz.d.ts +2 -2
  15. package/lib/cjs/components/blitz.js +28 -4
  16. package/lib/cjs/components/blitz.js.map +1 -1
  17. package/lib/cjs/components/button.d.ts +3 -3
  18. package/lib/cjs/components/button.js +3 -2
  19. package/lib/cjs/components/button.js.map +1 -1
  20. package/lib/cjs/components/button_control.d.ts +3 -3
  21. package/lib/cjs/components/button_control.js +3 -2
  22. package/lib/cjs/components/button_control.js.map +1 -1
  23. package/lib/cjs/components/button_icon.d.ts +10 -10
  24. package/lib/cjs/components/button_icon.js +3 -2
  25. package/lib/cjs/components/button_icon.js.map +1 -1
  26. package/lib/cjs/components/button_mode.d.ts +3 -3
  27. package/lib/cjs/components/button_mode.js +3 -2
  28. package/lib/cjs/components/button_mode.js.map +1 -1
  29. package/lib/cjs/components/button_plain.d.ts +3 -3
  30. package/lib/cjs/components/button_plain.js +3 -2
  31. package/lib/cjs/components/button_plain.js.map +1 -1
  32. package/lib/cjs/components/card.d.ts +3 -3
  33. package/lib/cjs/components/card.js +3 -2
  34. package/lib/cjs/components/card.js.map +1 -1
  35. package/lib/cjs/components/card_body.d.ts +3 -3
  36. package/lib/cjs/components/card_body.js +3 -2
  37. package/lib/cjs/components/card_body.js.map +1 -1
  38. package/lib/cjs/components/card_footer.d.ts +3 -3
  39. package/lib/cjs/components/card_footer.js +3 -2
  40. package/lib/cjs/components/card_footer.js.map +1 -1
  41. package/lib/cjs/components/cards.d.ts +3 -3
  42. package/lib/cjs/components/cards.js +3 -2
  43. package/lib/cjs/components/cards.js.map +1 -1
  44. package/lib/cjs/components/checkbox_input.d.ts +5 -3
  45. package/lib/cjs/components/checkbox_input.js +4 -3
  46. package/lib/cjs/components/checkbox_input.js.map +1 -1
  47. package/lib/cjs/components/chip.d.ts +3 -3
  48. package/lib/cjs/components/chip.js +3 -2
  49. package/lib/cjs/components/chip.js.map +1 -1
  50. package/lib/cjs/components/collapsible_content.d.ts +3 -3
  51. package/lib/cjs/components/collapsible_content.js +11 -3
  52. package/lib/cjs/components/collapsible_content.js.map +1 -1
  53. package/lib/cjs/components/collapsing_menu.d.ts +3 -3
  54. package/lib/cjs/components/collapsing_menu.js +39 -16
  55. package/lib/cjs/components/collapsing_menu.js.map +1 -1
  56. package/lib/cjs/components/column.d.ts +2 -2
  57. package/lib/cjs/components/common_input.d.ts +3 -3
  58. package/lib/cjs/components/common_input.js +4 -2
  59. package/lib/cjs/components/common_input.js.map +1 -1
  60. package/lib/cjs/components/common_menu_item.d.ts +3 -3
  61. package/lib/cjs/components/common_menu_item.js +2 -2
  62. package/lib/cjs/components/common_menu_item.js.map +1 -1
  63. package/lib/cjs/components/container.d.ts +4 -3
  64. package/lib/cjs/components/container.js +8 -3
  65. package/lib/cjs/components/container.js.map +1 -1
  66. package/lib/cjs/components/container_header.d.ts +2 -2
  67. package/lib/cjs/components/date_input.d.ts +3 -3
  68. package/lib/cjs/components/date_input.js +2 -2
  69. package/lib/cjs/components/date_input.js.map +1 -1
  70. package/lib/cjs/components/drag_and_drop.d.ts +5 -3
  71. package/lib/cjs/components/drag_and_drop.js +4 -3
  72. package/lib/cjs/components/drag_and_drop.js.map +1 -1
  73. package/lib/cjs/components/dropdown.d.ts +2 -2
  74. package/lib/cjs/components/dropdown.js +3 -2
  75. package/lib/cjs/components/dropdown.js.map +1 -1
  76. package/lib/cjs/components/dropdown_input_toggle.d.ts +3 -3
  77. package/lib/cjs/components/dropdown_input_toggle.js +3 -2
  78. package/lib/cjs/components/dropdown_input_toggle.js.map +1 -1
  79. package/lib/cjs/components/editing_container.d.ts +2 -2
  80. package/lib/cjs/components/editing_container.js +8 -3
  81. package/lib/cjs/components/editing_container.js.map +1 -1
  82. package/lib/cjs/components/email_input.d.ts +3 -3
  83. package/lib/cjs/components/email_input.js +2 -2
  84. package/lib/cjs/components/email_input.js.map +1 -1
  85. package/lib/cjs/components/file_input.d.ts +5 -3
  86. package/lib/cjs/components/file_input.js +6 -4
  87. package/lib/cjs/components/file_input.js.map +1 -1
  88. package/lib/cjs/components/flex.d.ts +11 -4
  89. package/lib/cjs/components/flex.js +17 -11
  90. package/lib/cjs/components/flex.js.map +1 -1
  91. package/lib/cjs/components/focus_trap.d.ts +1 -1
  92. package/lib/cjs/components/footnote.d.ts +3 -3
  93. package/lib/cjs/components/footnote.js +3 -2
  94. package/lib/cjs/components/footnote.js.map +1 -1
  95. package/lib/cjs/components/heading.d.ts +3 -3
  96. package/lib/cjs/components/heading.js +4 -3
  97. package/lib/cjs/components/heading.js.map +1 -1
  98. package/lib/cjs/components/input_addon.js +1 -1
  99. package/lib/cjs/components/input_addon.js.map +1 -1
  100. package/lib/cjs/components/input_group.d.ts +3 -3
  101. package/lib/cjs/components/input_group.js +3 -2
  102. package/lib/cjs/components/input_group.js.map +1 -1
  103. package/lib/cjs/components/input_group_item.js +1 -1
  104. package/lib/cjs/components/input_group_item.js.map +1 -1
  105. package/lib/cjs/components/link_text.d.ts +3 -3
  106. package/lib/cjs/components/link_text.js +3 -2
  107. package/lib/cjs/components/link_text.js.map +1 -1
  108. package/lib/cjs/components/list.d.ts +3 -3
  109. package/lib/cjs/components/list.js +4 -3
  110. package/lib/cjs/components/list.js.map +1 -1
  111. package/lib/cjs/components/list_inline.d.ts +3 -3
  112. package/lib/cjs/components/list_inline.js +4 -3
  113. package/lib/cjs/components/list_inline.js.map +1 -1
  114. package/lib/cjs/components/menu.d.ts +3 -3
  115. package/lib/cjs/components/menu.js +3 -2
  116. package/lib/cjs/components/menu.js.map +1 -1
  117. package/lib/cjs/components/menu_item.d.ts +3 -3
  118. package/lib/cjs/components/menu_item.js +2 -2
  119. package/lib/cjs/components/menu_item.js.map +1 -1
  120. package/lib/cjs/components/menu_item_li.d.ts +2 -2
  121. package/lib/cjs/components/menu_item_li.js +2 -2
  122. package/lib/cjs/components/menu_item_li.js.map +1 -1
  123. package/lib/cjs/components/menu_link.d.ts +3 -3
  124. package/lib/cjs/components/menu_link.js +2 -2
  125. package/lib/cjs/components/menu_link.js.map +1 -1
  126. package/lib/cjs/components/menu_list.d.ts +3 -3
  127. package/lib/cjs/components/menu_list.js +3 -2
  128. package/lib/cjs/components/menu_list.js.map +1 -1
  129. package/lib/cjs/components/menu_section.d.ts +3 -3
  130. package/lib/cjs/components/menu_section.js +3 -2
  131. package/lib/cjs/components/menu_section.js.map +1 -1
  132. package/lib/cjs/components/menu_title.d.ts +3 -3
  133. package/lib/cjs/components/menu_title.js +3 -2
  134. package/lib/cjs/components/menu_title.js.map +1 -1
  135. package/lib/cjs/components/modal.d.ts +5 -3
  136. package/lib/cjs/components/modal.js +3 -3
  137. package/lib/cjs/components/modal.js.map +1 -1
  138. package/lib/cjs/components/modifier.d.ts +13 -13
  139. package/lib/cjs/components/modifier.js +3 -43
  140. package/lib/cjs/components/modifier.js.map +1 -1
  141. package/lib/cjs/components/number_input.d.ts +3 -3
  142. package/lib/cjs/components/number_input.js +2 -2
  143. package/lib/cjs/components/number_input.js.map +1 -1
  144. package/lib/cjs/components/password_input.d.ts +3 -3
  145. package/lib/cjs/components/password_input.js +2 -2
  146. package/lib/cjs/components/password_input.js.map +1 -1
  147. package/lib/cjs/components/pill.d.ts +3 -3
  148. package/lib/cjs/components/pill.js +3 -2
  149. package/lib/cjs/components/pill.js.map +1 -1
  150. package/lib/cjs/components/radio_input.d.ts +4 -3
  151. package/lib/cjs/components/radio_input.js +4 -3
  152. package/lib/cjs/components/radio_input.js.map +1 -1
  153. package/lib/cjs/components/range_input.d.ts +4 -3
  154. package/lib/cjs/components/range_input.js +5 -3
  155. package/lib/cjs/components/range_input.js.map +1 -1
  156. package/lib/cjs/components/row.d.ts +3 -3
  157. package/lib/cjs/components/row.js +3 -2
  158. package/lib/cjs/components/row.js.map +1 -1
  159. package/lib/cjs/components/search_input.d.ts +3 -3
  160. package/lib/cjs/components/search_input.js +2 -2
  161. package/lib/cjs/components/search_input.js.map +1 -1
  162. package/lib/cjs/components/segmented_controls.d.ts +3 -3
  163. package/lib/cjs/components/segmented_controls.js +3 -2
  164. package/lib/cjs/components/segmented_controls.js.map +1 -1
  165. package/lib/cjs/components/select_input.d.ts +5 -3
  166. package/lib/cjs/components/select_input.js +6 -4
  167. package/lib/cjs/components/select_input.js.map +1 -1
  168. package/lib/cjs/components/separator.d.ts +2 -2
  169. package/lib/cjs/components/speech_bubble.d.ts +3 -3
  170. package/lib/cjs/components/speech_bubble.js +3 -2
  171. package/lib/cjs/components/speech_bubble.js.map +1 -1
  172. package/lib/cjs/components/tags_input.d.ts +2 -2
  173. package/lib/cjs/components/tags_input.js +3 -2
  174. package/lib/cjs/components/tags_input.js.map +1 -1
  175. package/lib/cjs/components/text_input.d.ts +3 -3
  176. package/lib/cjs/components/text_input.js +2 -2
  177. package/lib/cjs/components/text_input.js.map +1 -1
  178. package/lib/cjs/components/textarea.d.ts +5 -3
  179. package/lib/cjs/components/textarea.js +5 -4
  180. package/lib/cjs/components/textarea.js.map +1 -1
  181. package/lib/cjs/components/theme_provider.d.ts +29 -1
  182. package/lib/cjs/components/theme_provider.js +28 -28
  183. package/lib/cjs/components/theme_provider.js.map +1 -1
  184. package/lib/cjs/components/thumbnail.d.ts +3 -3
  185. package/lib/cjs/components/thumbnail.js +3 -2
  186. package/lib/cjs/components/thumbnail.js.map +1 -1
  187. package/lib/cjs/components/togglable_fieldset.d.ts +3 -3
  188. package/lib/cjs/components/togglable_fieldset.js +7 -7
  189. package/lib/cjs/components/togglable_fieldset.js.map +1 -1
  190. package/lib/cjs/components/toggle.d.ts +5 -3
  191. package/lib/cjs/components/toggle.js +4 -3
  192. package/lib/cjs/components/toggle.js.map +1 -1
  193. package/lib/cjs/components/tooltip.d.ts +2 -2
  194. package/lib/cjs/components/tooltip_container.d.ts +3 -3
  195. package/lib/cjs/components/tooltip_container.js +3 -2
  196. package/lib/cjs/components/tooltip_container.js.map +1 -1
  197. package/lib/cjs/components/with_addons.d.ts +3 -3
  198. package/lib/cjs/components/with_addons.js +2 -2
  199. package/lib/cjs/components/with_addons.js.map +1 -1
  200. package/lib/cjs/index.d.ts +0 -1
  201. package/lib/cjs/index.js +5 -7
  202. package/lib/cjs/index.js.map +1 -1
  203. package/lib/cjs/types.d.ts +17 -4
  204. package/lib/cjs/utils/dom.d.ts +1 -1
  205. package/lib/cjs/utils/modifier_classes.d.ts +6 -0
  206. package/lib/cjs/utils/modifier_classes.js +57 -0
  207. package/lib/cjs/utils/modifier_classes.js.map +1 -0
  208. package/lib/cjs/utils/strings.d.ts +0 -2
  209. package/lib/cjs/utils/strings.js +1 -8
  210. package/lib/cjs/utils/strings.js.map +1 -1
  211. package/lib/esm/components/advanced_options.d.ts +3 -3
  212. package/lib/esm/components/advanced_options.js +15 -14
  213. package/lib/esm/components/advanced_options.js.map +1 -1
  214. package/lib/esm/components/attribute_input.d.ts +4 -3
  215. package/lib/esm/components/attribute_input.js +4 -3
  216. package/lib/esm/components/attribute_input.js.map +1 -1
  217. package/lib/esm/components/attribute_selector.d.ts +4 -3
  218. package/lib/esm/components/attribute_selector.js +4 -3
  219. package/lib/esm/components/attribute_selector.js.map +1 -1
  220. package/lib/esm/components/avatar.d.ts +3 -3
  221. package/lib/esm/components/avatar.js +3 -2
  222. package/lib/esm/components/avatar.js.map +1 -1
  223. package/lib/esm/components/blitz.d.ts +2 -2
  224. package/lib/esm/components/blitz.js +5 -4
  225. package/lib/esm/components/blitz.js.map +1 -1
  226. package/lib/esm/components/button.d.ts +3 -3
  227. package/lib/esm/components/button.js +3 -2
  228. package/lib/esm/components/button.js.map +1 -1
  229. package/lib/esm/components/button_control.d.ts +3 -3
  230. package/lib/esm/components/button_control.js +3 -2
  231. package/lib/esm/components/button_control.js.map +1 -1
  232. package/lib/esm/components/button_icon.d.ts +10 -10
  233. package/lib/esm/components/button_icon.js +3 -2
  234. package/lib/esm/components/button_icon.js.map +1 -1
  235. package/lib/esm/components/button_mode.d.ts +3 -3
  236. package/lib/esm/components/button_mode.js +3 -2
  237. package/lib/esm/components/button_mode.js.map +1 -1
  238. package/lib/esm/components/button_plain.d.ts +3 -3
  239. package/lib/esm/components/button_plain.js +3 -2
  240. package/lib/esm/components/button_plain.js.map +1 -1
  241. package/lib/esm/components/card.d.ts +3 -3
  242. package/lib/esm/components/card.js +3 -2
  243. package/lib/esm/components/card.js.map +1 -1
  244. package/lib/esm/components/card_body.d.ts +3 -3
  245. package/lib/esm/components/card_body.js +3 -2
  246. package/lib/esm/components/card_body.js.map +1 -1
  247. package/lib/esm/components/card_footer.d.ts +3 -3
  248. package/lib/esm/components/card_footer.js +3 -2
  249. package/lib/esm/components/card_footer.js.map +1 -1
  250. package/lib/esm/components/cards.d.ts +3 -3
  251. package/lib/esm/components/cards.js +3 -2
  252. package/lib/esm/components/cards.js.map +1 -1
  253. package/lib/esm/components/checkbox_input.d.ts +5 -3
  254. package/lib/esm/components/checkbox_input.js +4 -3
  255. package/lib/esm/components/checkbox_input.js.map +1 -1
  256. package/lib/esm/components/chip.d.ts +3 -3
  257. package/lib/esm/components/chip.js +3 -2
  258. package/lib/esm/components/chip.js.map +1 -1
  259. package/lib/esm/components/collapsible_content.d.ts +3 -3
  260. package/lib/esm/components/collapsible_content.js +11 -3
  261. package/lib/esm/components/collapsible_content.js.map +1 -1
  262. package/lib/esm/components/collapsing_menu.d.ts +3 -3
  263. package/lib/esm/components/collapsing_menu.js +16 -16
  264. package/lib/esm/components/collapsing_menu.js.map +1 -1
  265. package/lib/esm/components/column.d.ts +2 -2
  266. package/lib/esm/components/common_input.d.ts +3 -3
  267. package/lib/esm/components/common_input.js +4 -2
  268. package/lib/esm/components/common_input.js.map +1 -1
  269. package/lib/esm/components/common_menu_item.d.ts +3 -3
  270. package/lib/esm/components/common_menu_item.js +2 -2
  271. package/lib/esm/components/common_menu_item.js.map +1 -1
  272. package/lib/esm/components/container.d.ts +4 -3
  273. package/lib/esm/components/container.js +8 -3
  274. package/lib/esm/components/container.js.map +1 -1
  275. package/lib/esm/components/container_header.d.ts +2 -2
  276. package/lib/esm/components/date_input.d.ts +3 -3
  277. package/lib/esm/components/date_input.js +2 -2
  278. package/lib/esm/components/date_input.js.map +1 -1
  279. package/lib/esm/components/drag_and_drop.d.ts +5 -3
  280. package/lib/esm/components/drag_and_drop.js +4 -3
  281. package/lib/esm/components/drag_and_drop.js.map +1 -1
  282. package/lib/esm/components/dropdown.d.ts +2 -2
  283. package/lib/esm/components/dropdown.js +3 -2
  284. package/lib/esm/components/dropdown.js.map +1 -1
  285. package/lib/esm/components/dropdown_input_toggle.d.ts +3 -3
  286. package/lib/esm/components/dropdown_input_toggle.js +3 -2
  287. package/lib/esm/components/dropdown_input_toggle.js.map +1 -1
  288. package/lib/esm/components/editing_container.d.ts +2 -2
  289. package/lib/esm/components/editing_container.js +8 -3
  290. package/lib/esm/components/editing_container.js.map +1 -1
  291. package/lib/esm/components/email_input.d.ts +3 -3
  292. package/lib/esm/components/email_input.js +2 -2
  293. package/lib/esm/components/email_input.js.map +1 -1
  294. package/lib/esm/components/file_input.d.ts +5 -3
  295. package/lib/esm/components/file_input.js +6 -4
  296. package/lib/esm/components/file_input.js.map +1 -1
  297. package/lib/esm/components/flex.d.ts +11 -4
  298. package/lib/esm/components/flex.js +17 -11
  299. package/lib/esm/components/flex.js.map +1 -1
  300. package/lib/esm/components/focus_trap.d.ts +1 -1
  301. package/lib/esm/components/footnote.d.ts +3 -3
  302. package/lib/esm/components/footnote.js +3 -2
  303. package/lib/esm/components/footnote.js.map +1 -1
  304. package/lib/esm/components/heading.d.ts +3 -3
  305. package/lib/esm/components/heading.js +4 -3
  306. package/lib/esm/components/heading.js.map +1 -1
  307. package/lib/esm/components/input_addon.js +1 -1
  308. package/lib/esm/components/input_addon.js.map +1 -1
  309. package/lib/esm/components/input_group.d.ts +3 -3
  310. package/lib/esm/components/input_group.js +3 -2
  311. package/lib/esm/components/input_group.js.map +1 -1
  312. package/lib/esm/components/input_group_item.js +1 -1
  313. package/lib/esm/components/input_group_item.js.map +1 -1
  314. package/lib/esm/components/link_text.d.ts +3 -3
  315. package/lib/esm/components/link_text.js +3 -2
  316. package/lib/esm/components/link_text.js.map +1 -1
  317. package/lib/esm/components/list.d.ts +3 -3
  318. package/lib/esm/components/list.js +4 -3
  319. package/lib/esm/components/list.js.map +1 -1
  320. package/lib/esm/components/list_inline.d.ts +3 -3
  321. package/lib/esm/components/list_inline.js +4 -3
  322. package/lib/esm/components/list_inline.js.map +1 -1
  323. package/lib/esm/components/menu.d.ts +3 -3
  324. package/lib/esm/components/menu.js +3 -2
  325. package/lib/esm/components/menu.js.map +1 -1
  326. package/lib/esm/components/menu_item.d.ts +3 -3
  327. package/lib/esm/components/menu_item.js +2 -2
  328. package/lib/esm/components/menu_item.js.map +1 -1
  329. package/lib/esm/components/menu_item_li.d.ts +2 -2
  330. package/lib/esm/components/menu_item_li.js +2 -2
  331. package/lib/esm/components/menu_item_li.js.map +1 -1
  332. package/lib/esm/components/menu_link.d.ts +3 -3
  333. package/lib/esm/components/menu_link.js +2 -2
  334. package/lib/esm/components/menu_link.js.map +1 -1
  335. package/lib/esm/components/menu_list.d.ts +3 -3
  336. package/lib/esm/components/menu_list.js +3 -2
  337. package/lib/esm/components/menu_list.js.map +1 -1
  338. package/lib/esm/components/menu_section.d.ts +3 -3
  339. package/lib/esm/components/menu_section.js +3 -2
  340. package/lib/esm/components/menu_section.js.map +1 -1
  341. package/lib/esm/components/menu_title.d.ts +3 -3
  342. package/lib/esm/components/menu_title.js +3 -2
  343. package/lib/esm/components/menu_title.js.map +1 -1
  344. package/lib/esm/components/modal.d.ts +5 -3
  345. package/lib/esm/components/modal.js +3 -3
  346. package/lib/esm/components/modal.js.map +1 -1
  347. package/lib/esm/components/modifier.d.ts +13 -13
  348. package/lib/esm/components/modifier.js +3 -43
  349. package/lib/esm/components/modifier.js.map +1 -1
  350. package/lib/esm/components/number_input.d.ts +3 -3
  351. package/lib/esm/components/number_input.js +2 -2
  352. package/lib/esm/components/number_input.js.map +1 -1
  353. package/lib/esm/components/password_input.d.ts +3 -3
  354. package/lib/esm/components/password_input.js +2 -2
  355. package/lib/esm/components/password_input.js.map +1 -1
  356. package/lib/esm/components/pill.d.ts +3 -3
  357. package/lib/esm/components/pill.js +3 -2
  358. package/lib/esm/components/pill.js.map +1 -1
  359. package/lib/esm/components/radio_input.d.ts +4 -3
  360. package/lib/esm/components/radio_input.js +4 -3
  361. package/lib/esm/components/radio_input.js.map +1 -1
  362. package/lib/esm/components/range_input.d.ts +4 -3
  363. package/lib/esm/components/range_input.js +5 -3
  364. package/lib/esm/components/range_input.js.map +1 -1
  365. package/lib/esm/components/row.d.ts +3 -3
  366. package/lib/esm/components/row.js +3 -2
  367. package/lib/esm/components/row.js.map +1 -1
  368. package/lib/esm/components/search_input.d.ts +3 -3
  369. package/lib/esm/components/search_input.js +2 -2
  370. package/lib/esm/components/search_input.js.map +1 -1
  371. package/lib/esm/components/segmented_controls.d.ts +3 -3
  372. package/lib/esm/components/segmented_controls.js +3 -2
  373. package/lib/esm/components/segmented_controls.js.map +1 -1
  374. package/lib/esm/components/select_input.d.ts +5 -3
  375. package/lib/esm/components/select_input.js +6 -4
  376. package/lib/esm/components/select_input.js.map +1 -1
  377. package/lib/esm/components/separator.d.ts +2 -2
  378. package/lib/esm/components/speech_bubble.d.ts +3 -3
  379. package/lib/esm/components/speech_bubble.js +3 -2
  380. package/lib/esm/components/speech_bubble.js.map +1 -1
  381. package/lib/esm/components/tags_input.d.ts +2 -2
  382. package/lib/esm/components/tags_input.js +3 -2
  383. package/lib/esm/components/tags_input.js.map +1 -1
  384. package/lib/esm/components/text_input.d.ts +3 -3
  385. package/lib/esm/components/text_input.js +2 -2
  386. package/lib/esm/components/text_input.js.map +1 -1
  387. package/lib/esm/components/textarea.d.ts +5 -3
  388. package/lib/esm/components/textarea.js +5 -4
  389. package/lib/esm/components/textarea.js.map +1 -1
  390. package/lib/esm/components/theme_provider.d.ts +29 -1
  391. package/lib/esm/components/theme_provider.js +28 -28
  392. package/lib/esm/components/theme_provider.js.map +1 -1
  393. package/lib/esm/components/thumbnail.d.ts +3 -3
  394. package/lib/esm/components/thumbnail.js +3 -2
  395. package/lib/esm/components/thumbnail.js.map +1 -1
  396. package/lib/esm/components/togglable_fieldset.d.ts +3 -3
  397. package/lib/esm/components/togglable_fieldset.js +7 -7
  398. package/lib/esm/components/togglable_fieldset.js.map +1 -1
  399. package/lib/esm/components/toggle.d.ts +5 -3
  400. package/lib/esm/components/toggle.js +4 -3
  401. package/lib/esm/components/toggle.js.map +1 -1
  402. package/lib/esm/components/tooltip.d.ts +2 -2
  403. package/lib/esm/components/tooltip_container.d.ts +3 -3
  404. package/lib/esm/components/tooltip_container.js +3 -2
  405. package/lib/esm/components/tooltip_container.js.map +1 -1
  406. package/lib/esm/components/with_addons.d.ts +3 -3
  407. package/lib/esm/components/with_addons.js +2 -2
  408. package/lib/esm/components/with_addons.js.map +1 -1
  409. package/lib/esm/index.d.ts +0 -1
  410. package/lib/esm/index.js +0 -1
  411. package/lib/esm/index.js.map +1 -1
  412. package/lib/esm/types.d.ts +17 -4
  413. package/lib/esm/utils/dom.d.ts +1 -1
  414. package/lib/esm/utils/modifier_classes.d.ts +6 -0
  415. package/lib/esm/utils/modifier_classes.js +46 -0
  416. package/lib/esm/utils/modifier_classes.js.map +1 -0
  417. package/lib/esm/utils/strings.d.ts +0 -2
  418. package/lib/esm/utils/strings.js +0 -6
  419. package/lib/esm/utils/strings.js.map +1 -1
  420. package/lib/stylesheets/particle.css +188 -156
  421. package/lib/stylesheets/particle.css.map +1 -1
  422. package/lib/stylesheets/particle.min.css +1 -1
  423. package/lib/stylesheets/particle.min.css.gz +0 -0
  424. package/package.json +1 -1
  425. package/styles/color_schemes/_base_colors.scss +1 -1
  426. package/styles/components/collapsible/_base.scss +11 -3
  427. package/styles/components/container/_base.scss +32 -5
  428. package/styles/components/container/themes/_theme_builder.scss +12 -6
  429. package/styles/components/drag_and_drop/themes/_theme_builder.scss +3 -3
  430. package/styles/utilities/_shadows.scss +4 -0
  431. package/styles/utilities/_spacing.scss +59 -39
  432. package/lib/cjs/components/collapsible.d.ts +0 -10
  433. package/lib/cjs/components/collapsible.js +0 -17
  434. package/lib/cjs/components/collapsible.js.map +0 -1
  435. package/lib/cjs/components/focus_intent.d.ts +0 -23
  436. package/lib/cjs/components/focus_intent.js +0 -92
  437. package/lib/cjs/components/focus_intent.js.map +0 -1
  438. package/lib/esm/components/collapsible.d.ts +0 -10
  439. package/lib/esm/components/collapsible.js +0 -13
  440. package/lib/esm/components/collapsible.js.map +0 -1
  441. package/lib/esm/components/focus_intent.d.ts +0 -23
  442. package/lib/esm/components/focus_intent.js +0 -66
  443. package/lib/esm/components/focus_intent.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"password_input.js","sourceRoot":"","sources":["../../../src/components/password_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA6B7C,MAAM,UAAU,aAAa,CAAC,EA8BT;IA7BnB,IAAA,cAAc,oBAAA,EACM,e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CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"password_input.js","sourceRoot":"","sources":["../../../src/components/password_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgC7C,MAAM,UAAU,aAAa,CAAC,EA+BT;IA9BnB,IAAA,cAAc,oBAAA,EACM,eAAe,yBAAA,EACnB,WAAW,qBAAA,EACb,SAAS,mBAAA,EACJ,cAAc,wBAAA,EAChB,YAAY,sBAAA,EAC7B,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,OAAO,aAAA,EACP,MAAM,YAAA,EACN,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,SAAS,eAAA,EACT,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,KAAK,WAAA,EACF,IAAI,cA9BqB,4WA+B7B,CADQ;IAEP,OAAO,CACL,oBAAC,WAAW,eACN,iBAAiB,CAAC,IAAI,CAAC,IAC3B,cAAc,EAAE,cAAc,sBACZ,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,mBAChB,YAAY,EAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface PillProps extends CommonComponentProps, ModifierProps {
4
+ interface PillProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  children?: React.ReactNode;
6
6
  color?: 'part-0' | 'part-1' | 'part-2' | 'part-3' | 'part-4' | 'part-5' | 'part-6' | 'part-7' | 'part-8' | 'part-9';
7
7
  getRef?: GetRef<HTMLSpanElement>;
8
8
  id?: string;
9
9
  }
10
- export declare function Pill({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, color, getRef, id, ...rest }: PillProps): React.JSX.Element;
10
+ export declare function Pill({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, color, getRef, margin, id, ...rest }: PillProps): React.JSX.Element;
11
11
  export {};
@@ -23,10 +23,11 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import classNames from '../utils/class_names';
25
25
  import getDataAttributes from '../utils/data_attributes';
26
+ import { getMarginClass } from '../utils/modifier_classes';
26
27
  export function Pill(_a) {
27
28
  var _b;
28
- var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, color = _a.color, getRef = _a.getRef, id = _a.id, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "color", "getRef", "id"]);
29
- var className = classNames('Pill', _modifierClass, (_b = {},
29
+ var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, color = _a.color, getRef = _a.getRef, margin = _a.margin, id = _a.id, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "color", "getRef", "margin", "id"]);
30
+ var className = classNames('Pill', _modifierClass, getMarginClass(margin), (_b = {},
30
31
  _b["Pill--".concat(color)] = color,
31
32
  _b));
32
33
  return (React.createElement("span", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: className, id: id, ref: getRef }, getDataAttributes(rest)), children));
@@ -1 +1 @@
1
- {"version":3,"file":"pill.js","sourceRoot":"","sources":["../../../src/components/pill.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAmBzD,MAAM,UAAU,IAAI,CAAC,EAUT;;IATV,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,MAAM,YAAA,EACN,EAAE,QAAA,EACC,IAAI,cATY,4GAUpB,CADQ;IAEP,IAAM,SAAS,GAAG,UAAU,CAAC,MAAM,EAAE,cAAc;QACjD,GAAC,gBAAS,KAAK,CAAE,IAAG,KAAK;YACzB,CAAC;IAEH,OAAO,CACL,qDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"pill.js","sourceRoot":"","sources":["../../../src/components/pill.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAsB3D,MAAM,UAAU,IAAI,CAAC,EAWT;;IAVV,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,MAAM,YAAA,EACN,MAAM,YAAA,EACN,EAAE,QAAA,EACC,IAAI,cAVY,sHAWpB,CADQ;IAEP,IAAM,SAAS,GAAG,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC;QACzE,GAAC,gBAAS,KAAK,CAAE,IAAG,KAAK;YACzB,CAAC;IAEH,OAAO,CACL,qDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { Colors, CommonComponentProps, ModifierProps } from '../types';
2
+ import type { Colors, CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface RadioInputProps extends CommonComponentProps, ModifierProps {
4
+ interface RadioInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
6
6
  checked?: boolean;
7
7
  color?: Colors;
@@ -13,8 +13,9 @@ interface RadioInputProps extends CommonComponentProps, ModifierProps {
13
13
  name?: string;
14
14
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
15
  readOnly?: boolean;
16
+ required?: boolean;
16
17
  tabIndex?: number;
17
18
  value?: number | string;
18
19
  }
19
- export declare function RadioInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, checked, color, defaultChecked, disabled, getRef, id, label, name, onChange, readOnly, tabIndex, value, ...rest }: RadioInputProps): React.JSX.Element;
20
+ export declare function RadioInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, checked, color, defaultChecked, disabled, getRef, id, label, margin, name, onChange, readOnly, required, tabIndex, value, ...rest }: RadioInputProps): React.JSX.Element;
20
21
  export {};
@@ -24,16 +24,17 @@ import React from 'react';
24
24
  import classNames from '../utils/class_names';
25
25
  import { inputValue } from '../utils/forms';
26
26
  import getDataAttributes from '../utils/data_attributes';
27
+ import { getMarginClass } from '../utils/modifier_classes';
27
28
  import { useFallbackId } from './shared_hooks';
28
29
  import { IconRadioCircle } from '../icons/radio_circle';
29
30
  export function RadioInput(_a) {
30
- var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], checked = _a.checked, _b = _a.color, color = _b === void 0 ? 'dscout' : _b, defaultChecked = _a.defaultChecked, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, label = _a.label, name = _a.name, onChange = _a.onChange, readOnly = _a.readOnly, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "checked", "color", "defaultChecked", "disabled", "getRef", "id", "label", "name", "onChange", "readOnly", "tabIndex", "value"]);
31
+ var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], checked = _a.checked, _b = _a.color, color = _b === void 0 ? 'dscout' : _b, defaultChecked = _a.defaultChecked, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, label = _a.label, margin = _a.margin, name = _a.name, onChange = _a.onChange, readOnly = _a.readOnly, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "checked", "color", "defaultChecked", "disabled", "getRef", "id", "label", "margin", "name", "onChange", "readOnly", "required", "tabIndex", "value"]);
31
32
  var radioId = useFallbackId(id);
32
- var className = classNames('Selector', _modifierClass, {
33
+ var className = classNames('Selector', getMarginClass(margin), _modifierClass, {
33
34
  'Selector--with-label': label
34
35
  });
35
36
  return (React.createElement("div", { className: className },
36
- React.createElement("input", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, checked: checked, className: "Selector__Radio", defaultChecked: defaultChecked, disabled: disabled, id: radioId, name: name, onChange: onChange, readOnly: readOnly, ref: getRef, tabIndex: tabIndex, type: "radio", value: inputValue(value, onChange) })),
37
+ React.createElement("input", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, checked: checked, className: "Selector__Radio", defaultChecked: defaultChecked, disabled: disabled, id: radioId, name: name, onChange: onChange, readOnly: readOnly, required: required, ref: getRef, tabIndex: tabIndex, type: "radio", value: inputValue(value, onChange) })),
37
38
  React.createElement("div", { className: classNames('Selector__Field', "color--".concat(color)) }),
38
39
  label && (React.createElement("label", { className: "Selector__Label", htmlFor: radioId }, label)),
39
40
  React.createElement(IconRadioCircle, { "aria-hidden": true })));
@@ -1 +1 @@
1
- {"version":3,"file":"radio_input.js","sourceRoot":"","sources":["../../../src/components/radio_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAkBxD,MAAM,UAAU,UAAU,CAAC,EAmBT;IAlBhB,IAAA,cAAc,oBAAA,EACM,eAAe,yBAAA,EACnB,WAAW,qBAAA,EACb,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACjC,OAAO,aAAA,EACP,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAChB,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACF,IAAI,cAlBkB,uNAmB1B,CADQ;IAEP,IAAM,OAAO,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAElC,IAAM,SAAS,GAAG,UAAU,CAAC,UAAU,EAAE,cAAc,EAAE;QACvD,sBAAsB,EAAE,KAAK;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS;QAEvB,0CACM,iBAAiB,CAAC,IAAI,CAAC,wBACT,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,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F,KAAK,WAAA,EACL,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACF,IAAI,cApBkB,6OAqB1B,CADQ;IAEP,IAAM,OAAO,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAElC,IAAM,SAAS,GAAG,UAAU,CAC1B,UAAU,EACV,cAAc,CAAC,MAAM,CAAC,EACtB,cAAc,EACd;QACE,sBAAsB,EAAE,KAAK;KAC9B,CACF,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS;QAEvB,0CACM,iBAAiB,CAAC,IAAI,CAAC,wBACT,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,iBAAiB,EAC3B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,OAAO,EACX,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,IAClC;QACF,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAU,KAAK,CAAE,CAAC,GAAI;QACnE,KAAK,IAAI,CACR,+BAAO,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,OAAO,IAChD,KAAK,CACA,CACT;QACD,oBAAC,eAAe,0BAAe,CAC3B,CACP,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface RangeInputProps extends CommonComponentProps, ModifierProps {
4
+ interface RangeInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
6
6
  autoComplete?: string;
7
7
  defaultValue?: number | string;
@@ -12,9 +12,10 @@ interface RangeInputProps extends CommonComponentProps, ModifierProps {
12
12
  minimum?: number | string;
13
13
  name?: string;
14
14
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ required?: boolean;
15
16
  step?: string | number;
16
17
  tabIndex?: number;
17
18
  value?: number | string;
18
19
  }
19
- export declare function RangeInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, autoComplete, getRef, id, defaultValue, disabled, maximum, minimum, name, onChange, tabIndex, value, step, ...rest }: RangeInputProps): React.JSX.Element;
20
+ export declare function RangeInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, autoComplete, getRef, id, defaultValue, disabled, margin, maximum, minimum, name, onChange, required, tabIndex, value, step, ...rest }: RangeInputProps): React.JSX.Element;
20
21
  export {};
@@ -22,15 +22,17 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React from 'react';
24
24
  import { exists } from '../utils/types';
25
+ import classNames from '../utils/class_names';
25
26
  import getDataAttributes from '../utils/data_attributes';
27
+ import { getMarginClass } from '../utils/modifier_classes';
26
28
  function renderMinOrMax(value) {
27
29
  var className = 'color--gray-1 font-size--s margin--none';
28
30
  return React.createElement("div", { className: className }, value);
29
31
  }
30
32
  export function RangeInput(_a) {
31
- var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], autoComplete = _a.autoComplete, getRef = _a.getRef, id = _a.id, defaultValue = _a.defaultValue, disabled = _a.disabled, maximum = _a.maximum, minimum = _a.minimum, name = _a.name, onChange = _a.onChange, tabIndex = _a.tabIndex, value = _a.value, step = _a.step, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "autoComplete", "getRef", "id", "defaultValue", "disabled", "maximum", "minimum", "name", "onChange", "tabIndex", "value", "step"]);
32
- return (React.createElement("fieldset", { className: _modifierClass },
33
- React.createElement("input", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, autoComplete: autoComplete, className: "Range margin-t--0.75 margin-b--1", defaultValue: defaultValue, id: id, max: maximum || 100, min: minimum || 0, name: name, onChange: onChange, ref: getRef, step: step, tabIndex: tabIndex, type: "range", disabled: disabled, value: value })),
33
+ var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], autoComplete = _a.autoComplete, getRef = _a.getRef, id = _a.id, defaultValue = _a.defaultValue, disabled = _a.disabled, margin = _a.margin, maximum = _a.maximum, minimum = _a.minimum, name = _a.name, onChange = _a.onChange, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, step = _a.step, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "autoComplete", "getRef", "id", "defaultValue", "disabled", "margin", "maximum", "minimum", "name", "onChange", "required", "tabIndex", "value", "step"]);
34
+ return (React.createElement("fieldset", { className: classNames(getMarginClass(margin), _modifierClass) },
35
+ React.createElement("input", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, autoComplete: autoComplete, className: "Range margin-t--0.75 margin-b--1", defaultValue: defaultValue, id: id, max: maximum || 100, min: minimum || 0, name: name, onChange: onChange, ref: getRef, required: required, step: step, tabIndex: tabIndex, type: "range", disabled: disabled, value: value })),
34
36
  (exists(minimum) || exists(maximum)) && (React.createElement("div", { className: "flex justify--between" },
35
37
  renderMinOrMax(minimum),
36
38
  renderMinOrMax(maximum)))));
@@ -1 +1 @@
1
- {"version":3,"file":"range_input.js","sourceRoot":"","sources":["../../../src/components/range_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAkBzD,SAAS,cAAc,CAAC,KAAsB;IAC5C,IAAM,SAAS,GAAG,yCAAyC,CAAC;IAE5D,OAAO,6BAAK,SAAS,EAAE,SAAS,IAAG,KAAK,CAAO,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAmBT;IAlBhB,IAAA,cAAc,oBAAA,EACM,eAAe,yBAAA,EACnB,WAAW,qBAAA,EACb,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACjC,YAAY,kBAAA,EACZ,MAAM,YAAA,EACN,EAAE,QAAA,EACF,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,IAAI,UAAA,EACD,IAAI,cAlBkB,0NAmB1B,CADQ;IAEP,OAAO,CACL,kCAAU,SAAS,EAAE,cAAc;QACjC,0CACM,iBAAiB,CAAC,IAAI,CAAC,wBACT,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,EAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,kCAAkC,EAC5C,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,OAAO,IAAI,GAAG,EACnB,GAAG,EAAE,OAAO,IAAI,CAAC,E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ACR,KAAK,WAAA,EACL,IAAI,UAAA,EACD,IAAI,cApBkB,gPAqB1B,CADQ;IAEP,OAAO,CACL,kCAAU,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;QACrE,0CACM,iBAAiB,CAAC,IAAI,CAAC,wBACT,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,EAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,kCAAkC,EAC5C,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,OAAO,IAAI,GAAG,EACnB,GAAG,EAAE,OAAO,IAAI,CAAC,EACjB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,IACZ;QACD,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CACvC,6BAAK,SAAS,EAAC,uBAAuB;YACnC,cAAc,CAAC,OAAO,CAAC;YACvB,cAAc,CAAC,OAAO,CAAC,CACpB,CACP,CACQ,CACZ,CAAC;AACJ,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface RowProps extends CommonComponentProps, ModifierProps {
4
+ interface RowProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  children?: React.ReactNode;
6
6
  columnGap?: 'none' | 'tiny' | 'small' | 'default';
7
7
  getRef?: GetRef<HTMLDivElement>;
8
8
  id?: string;
9
9
  }
10
- export declare function Row({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, columnGap, getRef, id, ...rest }: RowProps): React.JSX.Element;
10
+ export declare function Row({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, columnGap, getRef, id, margin, ...rest }: RowProps): React.JSX.Element;
11
11
  export {};
@@ -23,9 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import classNames from '../utils/class_names';
25
25
  import getDataAttributes from '../utils/data_attributes';
26
+ import { getMarginClass } from '../utils/modifier_classes';
26
27
  export function Row(_a) {
27
- var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, _b = _a.columnGap, columnGap = _b === void 0 ? 'default' : _b, getRef = _a.getRef, id = _a.id, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "columnGap", "getRef", "id"]);
28
- var rowClassNames = classNames('Row', "Row--column-gap--".concat(columnGap), _modifierClass);
28
+ var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, _b = _a.columnGap, columnGap = _b === void 0 ? 'default' : _b, getRef = _a.getRef, id = _a.id, margin = _a.margin, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "columnGap", "getRef", "id", "margin"]);
29
+ var rowClassNames = classNames('Row', "Row--column-gap--".concat(columnGap), getMarginClass(margin), _modifierClass);
29
30
  return (React.createElement("div", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: rowClassNames, id: id, ref: getRef }, getDataAttributes(rest)), children));
30
31
  }
31
32
  //# sourceMappingURL=row.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"row.js","sourceRoot":"","sources":["../../../src/components/row.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AASzD,MAAM,UAAU,GAAG,CAAC,EAUT;IATT,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,iBAAqB,EAArB,SAAS,mBAAG,SAAS,KAAA,EACrB,MAAM,YAAA,EACN,EAAE,QAAA,EACC,IAAI,cATW,gHAUnB,CADQ;IAEP,IAAM,aAAa,GAAG,UAAU,CAC9B,KAAK,EACL,2BAAoB,SAAS,CAAE,EAC/B,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,aAAa,EACxB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"row.js","sourceRoot":"","sources":["../../../src/components/row.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAY3D,MAAM,UAAU,GAAG,CAAC,EAWT;IAVT,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,iBAAqB,EAArB,SAAS,mBAAG,SAAS,KAAA,EACrB,MAAM,YAAA,EACN,EAAE,QAAA,EACF,MAAM,YAAA,EACH,IAAI,cAVW,0HAWnB,CADQ;IAEP,IAAM,aAAa,GAAG,UAAU,CAC9B,KAAK,EACL,2BAAoB,SAAS,CAAE,EAC/B,cAAc,CAAC,MAAM,CAAC,EACtB,cAAc,CACf,CAAC;IAEF,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,aAAa,EACxB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { GetRef } from '../utils/refs';
3
- import type { CommonComponentProps, ModifierProps } from '../types';
4
- interface SearchInputProps extends CommonComponentProps, ModifierProps {
3
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
4
+ interface SearchInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
6
6
  'aria-required'?: React.AriaAttributes['aria-required'];
7
7
  autoComplete?: string;
@@ -24,5 +24,5 @@ interface SearchInputProps extends CommonComponentProps, ModifierProps {
24
24
  tabIndex?: number;
25
25
  value?: string;
26
26
  }
27
- export declare function SearchInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, readOnly, required, tabIndex, value, ...rest }: SearchInputProps): React.JSX.Element;
27
+ export declare function SearchInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, margin, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, readOnly, required, tabIndex, value, ...rest }: SearchInputProps): React.JSX.Element;
28
28
  export {};
@@ -24,7 +24,7 @@ import React from 'react';
24
24
  import getDataAttributes from '../utils/data_attributes';
25
25
  import { CommonInput } from './common_input';
26
26
  export function SearchInput(_a) {
27
- var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, _b = _a.placeholder, placeholder = _b === void 0 ? 'Search' : _b, readOnly = _a.readOnly, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "readOnly", "required", "tabIndex", "value"]);
28
- return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, placeholder: placeholder, readOnly: readOnly, required: required, tabIndex: tabIndex, type: "search", value: value })));
27
+ var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, _b = _a.placeholder, placeholder = _b === void 0 ? 'Search' : _b, readOnly = _a.readOnly, required = _a.required, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "margin", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "readOnly", "required", "tabIndex", "value"]);
28
+ return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, margin: margin, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, placeholder: placeholder, readOnly: readOnly, required: required, tabIndex: tabIndex, type: "search", value: value })));
29
29
  }
30
30
  //# sourceMappingURL=search_input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search_input.js","sourceRoot":"","sources":["../../../src/components/search_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA0B7C,MAAM,UAAU,WAAW,CAAC,EA2BT;IA1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O,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface SegmentedControlsProps extends CommonComponentProps, ModifierProps {
4
+ interface SegmentedControlsProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  children?: React.ReactNode;
6
6
  getRef?: GetRef<HTMLDivElement>;
7
7
  id?: string;
8
8
  }
9
- export declare function SegmentedControls({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, getRef, id, ...rest }: SegmentedControlsProps): React.JSX.Element;
9
+ export declare function SegmentedControls({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, getRef, id, margin, ...rest }: SegmentedControlsProps): React.JSX.Element;
10
10
  export {};
@@ -23,8 +23,9 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import classNames from '../utils/class_names';
25
25
  import getDataAttributes from '../utils/data_attributes';
26
+ import { getMarginClass } from '../utils/modifier_classes';
26
27
  export function SegmentedControls(_a) {
27
- var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, getRef = _a.getRef, id = _a.id, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "getRef", "id"]);
28
- return (React.createElement("div", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: classNames('Segmented-Controls', _modifierClass), id: id, ref: getRef }, getDataAttributes(rest)), children));
28
+ var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, getRef = _a.getRef, id = _a.id, margin = _a.margin, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "getRef", "id", "margin"]);
29
+ return (React.createElement("div", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: classNames('Segmented-Controls', getMarginClass(margin), _modifierClass), id: id, ref: getRef }, getDataAttributes(rest)), children));
29
30
  }
30
31
  //# sourceMappingURL=segmented_controls.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmented_controls.js","sourceRoot":"","sources":["../../../src/components/segmented_controls.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAQzD,MAAM,UAAU,iBAAiB,CAAC,EAST;IARvB,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACC,IAAI,cARyB,mGASjC,CADQ;IAEP,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,cAAc,CAAC,EAC3D,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"segmented_controls.js","sourceRoot":"","sources":["../../../src/components/segmented_controls.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAW3D,MAAM,UAAU,iBAAiB,CAAC,EAUT;IATvB,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,MAAM,YAAA,EACH,IAAI,cATyB,6GAUjC,CADQ;IAEP,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,UAAU,CACnB,oBAAoB,EACpB,cAAc,CAAC,MAAM,CAAC,EACtB,cAAc,CACf,EACD,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC,GAE1B,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import { type GetRef } from '../utils/refs';
4
- interface SelectInputProps extends CommonComponentProps, ModifierProps {
4
+ interface SelectInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
6
+ 'aria-required'?: React.AriaAttributes['aria-required'];
6
7
  autoComplete?: string;
7
8
  children?: React.ReactNode;
8
9
  defaultValue?: number | string;
@@ -16,9 +17,10 @@ interface SelectInputProps extends CommonComponentProps, ModifierProps {
16
17
  onFocus?: React.FocusEventHandler<HTMLSelectElement>;
17
18
  prefix?: React.ReactNode;
18
19
  readOnly?: boolean;
20
+ required?: boolean;
19
21
  suffix?: React.ReactNode;
20
22
  tabIndex?: number;
21
23
  value?: number | string;
22
24
  }
23
- export declare function SelectInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, autoComplete, children, defaultValue, disabled, getRef, id, invalid, mini, name, onChange, onFocus, prefix, readOnly, suffix, tabIndex, value, ...rest }: SelectInputProps): React.JSX.Element;
25
+ export declare function SelectInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, children, defaultValue, disabled, getRef, id, invalid, margin, mini, name, onChange, onFocus, prefix, readOnly, required, suffix, tabIndex, value, ...rest }: SelectInputProps): React.JSX.Element;
24
26
  export {};
@@ -24,11 +24,12 @@ import React, { useEffect, useRef, useState } from 'react';
24
24
  import { handleGetRef } from '../utils/refs';
25
25
  import classNames from '../utils/class_names';
26
26
  import getDataAttributes from '../utils/data_attributes';
27
+ import { getMarginClass } from '../utils/modifier_classes';
27
28
  import { IconTriangleInverted } from '../icons/triangle_inverted';
28
29
  import { WithAddons } from './with_addons';
29
30
  export function SelectInput(_a) {
30
31
  var _b;
31
- var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], autoComplete = _a.autoComplete, children = _a.children, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, _c = _a.mini, mini = _c === void 0 ? false : _c, name = _a.name, onChange = _a.onChange, onFocus = _a.onFocus, prefix = _a.prefix, readOnly = _a.readOnly, suffix = _a.suffix, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "autoComplete", "children", "defaultValue", "disabled", "getRef", "id", "invalid", "mini", "name", "onChange", "onFocus", "prefix", "readOnly", "suffix", "tabIndex", "value"]);
32
+ var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, children = _a.children, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, _c = _a.mini, mini = _c === void 0 ? false : _c, name = _a.name, onChange = _a.onChange, onFocus = _a.onFocus, prefix = _a.prefix, readOnly = _a.readOnly, required = _a.required, suffix = _a.suffix, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "children", "defaultValue", "disabled", "getRef", "id", "invalid", "margin", "mini", "name", "onChange", "onFocus", "prefix", "readOnly", "required", "suffix", "tabIndex", "value"]);
32
33
  var isControlledInput = value !== undefined;
33
34
  var _d = useState(isControlledInput ? null : !!defaultValue), filled = _d[0], setFilled = _d[1];
34
35
  var inputRef = useRef(null);
@@ -56,6 +57,7 @@ export function SelectInput(_a) {
56
57
  }, []);
57
58
  var affixed = !!prefix || !!suffix;
58
59
  var wrapperClassName = classNames('Dropdown__Toggle', (_b = {},
60
+ _b[getMarginClass(margin)] = !affixed,
59
61
  _b[_modifierClass] = _modifierClass && !affixed,
60
62
  _b['Dropdown__Toggle--disabled'] = disabled,
61
63
  _b['Dropdown__Toggle--mini'] = mini,
@@ -67,7 +69,7 @@ export function SelectInput(_a) {
67
69
  'Input--mini': mini
68
70
  });
69
71
  var input = (React.createElement("div", { className: wrapperClassName },
70
- React.createElement("select", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, autoComplete: autoComplete, className: selectClassName, defaultValue: defaultValue, disabled: disabled, id: id, name: name, onChange: function (event) {
72
+ React.createElement("select", __assign({}, getDataAttributes(rest), { "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, className: selectClassName, defaultValue: defaultValue, disabled: disabled, id: id, name: name, onChange: function (event) {
71
73
  if (isControlledInput) {
72
74
  if (onChange)
73
75
  onChange(event);
@@ -78,11 +80,11 @@ export function SelectInput(_a) {
78
80
  }, onFocus: onFocus, tabIndex: tabIndex, ref: function (ref) {
79
81
  handleGetRef(inputRef, ref);
80
82
  handleGetRef(getRef, ref);
81
- }, value: value }), children),
83
+ }, required: required, value: value }), children),
82
84
  React.createElement("div", { className: "Dropdown__Toggle__Icon" },
83
85
  React.createElement(IconTriangleInverted, null))));
84
86
  if (affixed) {
85
- return (React.createElement(WithAddons, { _modifierClass: _modifierClass, disabled: disabled, mini: mini, prefix: prefix, suffix: suffix }, input));
87
+ return (React.createElement(WithAddons, { _modifierClass: _modifierClass, disabled: disabled, margin: margin, mini: mini, prefix: prefix, suffix: suffix }, input));
86
88
  }
87
89
  return input;
88
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"select_input.js","sourceRoot":"","sources":["../../../src/components/select_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,YAAY,EAAe,MAAM,eAAe,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAsB3C,MAAM,UAAU,WAAW,CAAC,EAuBT;;IAtBjB,IAAA,cAAc,oBAAA,EACM,eAAe,yBAAA,EAC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ACrB,IAAI,QAAQ;wBAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;iBAC/B;qBAAM;oBACL,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;iBACjC;YACH,CAAC,EACD,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,UAAC,GAAG;gBACP,YAAY,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;gBAC5B,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC5B,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KAEX,QAAQ,CACF;QACT,6BAAK,SAAS,EAAC,wBAAwB;YACrC,oBAAC,oBAAoB,OAAG,CACpB,CACF,CACP,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,oBAAC,UAAU,IACT,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,IAEb,KAAK,CACK,CACd,CAAC;KACH;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { Colors, CommonComponentProps, ModifierProps, Spacing } from '../types';
2
+ import type { Colors, CommonComponentProps, ModifierClassProp, Spacing } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface SeparatorProps extends CommonComponentProps, ModifierProps {
4
+ interface SeparatorProps extends CommonComponentProps, ModifierClassProp {
5
5
  color?: Colors;
6
6
  getRef?: GetRef<HTMLSpanElement | HTMLHRElement>;
7
7
  height?: number | string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { Colors, CommonComponentProps, ModifierProps } from '../types';
2
+ import type { Colors, CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
- interface SpeechBubbleProps extends CommonComponentProps, ModifierProps {
4
+ interface SpeechBubbleProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  bgColor?: Colors;
6
6
  children?: React.ReactNode;
7
7
  getRef?: GetRef<HTMLDivElement>;
@@ -9,5 +9,5 @@ interface SpeechBubbleProps extends CommonComponentProps, ModifierProps {
9
9
  tail?: 'left' | 'right' | 'none';
10
10
  textColor?: Colors;
11
11
  }
12
- export declare function SpeechBubble({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, bgColor, children, getRef, id, tail, textColor, ...rest }: SpeechBubbleProps): React.JSX.Element;
12
+ export declare function SpeechBubble({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, bgColor, children, getRef, id, margin, tail, textColor, ...rest }: SpeechBubbleProps): React.JSX.Element;
13
13
  export {};
@@ -23,8 +23,9 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import classNames from '../utils/class_names';
25
25
  import getDataAttributes from '../utils/data_attributes';
26
+ import { getMarginClass } from '../utils/modifier_classes';
26
27
  export function SpeechBubble(_a) {
27
- var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], _b = _a.bgColor, bgColor = _b === void 0 ? 'dscout' : _b, children = _a.children, getRef = _a.getRef, id = _a.id, _c = _a.tail, tail = _c === void 0 ? 'left' : _c, _d = _a.textColor, textColor = _d === void 0 ? 'invert' : _d, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "bgColor", "children", "getRef", "id", "tail", "textColor"]);
28
+ var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], _b = _a.bgColor, bgColor = _b === void 0 ? 'dscout' : _b, children = _a.children, getRef = _a.getRef, id = _a.id, margin = _a.margin, _c = _a.tail, tail = _c === void 0 ? 'left' : _c, _d = _a.textColor, textColor = _d === void 0 ? 'invert' : _d, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "bgColor", "children", "getRef", "id", "margin", "tail", "textColor"]);
28
29
  // We ran into a specifity issue when trying to clean up the css class nesting for this component
29
30
  // Our solution for it was to not set tai/arrow's border color directly, but have it be
30
31
  // inherited from its parent's text color. So we apply a `color--#{bgColor}` on the speech bubble
@@ -35,7 +36,7 @@ export function SpeechBubble(_a) {
35
36
  return React.createElement("div", { className: tailClassNames });
36
37
  }
37
38
  }
38
- return (React.createElement("div", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: classNames('Speech-Bubble', 'line-wrap', "color--".concat(bgColor), _modifierClass), id: id, ref: getRef }, getDataAttributes(rest)),
39
+ return (React.createElement("div", __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: classNames('Speech-Bubble', 'line-wrap', "color--".concat(bgColor), getMarginClass(margin), _modifierClass), id: id, ref: getRef }, getDataAttributes(rest)),
39
40
  React.createElement("div", { className: "Speech-Bubble__Text bg-color--".concat(bgColor, " color--").concat(textColor) }, children),
40
41
  maybeRenderTail()));
41
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"speech_bubble.js","sourceRoot":"","sources":["../../../src/components/speech_bubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAWzD,MAAM,UAAU,YAAY,CAAC,EAYT;IAXlB,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,eAAkB,EAAlB,OAAO,mBAAG,QAAQ,KAAA,EAClB,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,YAAa,EAAb,IAAI,mBAAG,MAAM,KAAA,EACb,iBAAoB,EAApB,SAAS,mBAAG,QAAQ,KAAA,EACjB,IAAI,cAXoB,mIAY5B,CADQ;IAEP,iGAAiG;IACjG,uFAAuF;IACvF,kGAAkG;IAClG,6DAA6D;IAC7D,SAAS,eAAe;QACtB,IAAI,IAAI,KAAK,MAAM,EAAE;YACnB,IAAM,cAAc,GAAG,UAAU,CAC/B,qBAAqB,EACrB,+BAAwB,IAAI,CAAE,CAC/B,CAAC;YAEF,OAAO,6BAAK,SAAS,EAAE,cAAc,GAAI,CAAC;SAC3C;IACH,CAAC;IAED,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,UAAU,CACnB,eAAe,EACf,WAAW,EACX,iBAAU,OAAO,CAAE,EACnB,cAAc,CACf,EACD,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC;QAE3B,6BACE,SAAS,EAAE,wCAAiC,OAAO,qBAAW,SAAS,CAAE,IAExE,QAAQ,CACL;QACL,eAAe,EAAE,CACd,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"speech_bubble.js","sourceRoot":"","sources":["../../../src/components/speech_bubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAc3D,MAAM,UAAU,YAAY,CAAC,EAaT;IAZlB,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,eAAkB,EAAlB,OAAO,mBAAG,QAAQ,KAAA,EAClB,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,MAAM,YAAA,EACN,YAAa,EAAb,IAAI,mBAAG,MAAM,KAAA,EACb,iBAAoB,EAApB,SAAS,mBAAG,QAAQ,KAAA,EACjB,IAAI,cAZoB,6IAa5B,CADQ;IAEP,iGAAiG;IACjG,uFAAuF;IACvF,kGAAkG;IAClG,6DAA6D;IAC7D,SAAS,eAAe;QACtB,IAAI,IAAI,KAAK,MAAM,EAAE;YACnB,IAAM,cAAc,GAAG,UAAU,CAC/B,qBAAqB,EACrB,+BAAwB,IAAI,CAAE,CAC/B,CAAC;YAEF,OAAO,6BAAK,SAAS,EAAE,cAAc,GAAI,CAAC;SAC3C;IACH,CAAC;IAED,OAAO,CACL,oDACc,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,UAAU,CACnB,eAAe,EACf,WAAW,EACX,iBAAU,OAAO,CAAE,EACnB,cAAc,CAAC,MAAM,CAAC,EACtB,cAAc,CACf,EACD,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,IACP,iBAAiB,CAAC,IAAI,CAAC;QAE3B,6BACE,SAAS,EAAE,wCAAiC,OAAO,qBAAW,SAAS,CAAE,IAExE,QAAQ,CACL;QACL,eAAe,EAAE,CACd,CACP,CAAC;AACJ,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React, { Component } from 'react';
2
- import type { CommonComponentProps, ModifierProps, Dimensions } from '../types';
2
+ import type { CommonComponentProps, MarginModifierProp, Dimensions, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
4
  type TshirtSize = 'small' | 'medium' | 'large';
5
- interface TagsInputProps<Tag = unknown> extends CommonComponentProps, ModifierProps {
5
+ interface TagsInputProps<Tag = unknown> extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
6
6
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
7
7
  autoComplete?: string;
8
8
  getRef?: GetRef<HTMLDivElement>;
@@ -40,6 +40,7 @@ import React, { Component } from 'react';
40
40
  import { handleGetRef } from '../utils/refs';
41
41
  import classNames from '../utils/class_names';
42
42
  import getDataAttributes from '../utils/data_attributes';
43
+ import { getMarginClass } from '../utils/modifier_classes';
43
44
  var ENTER_KEY = 'Enter';
44
45
  var TAB_KEY = 'Tab';
45
46
  var BACKSPACE_KEY = 'Backspace';
@@ -93,8 +94,8 @@ var TagsInput = /** @class */ (function (_super) {
93
94
  var focused = this.state.focused;
94
95
  var _a = this.props,
95
96
  // eslint-disable-next-line @typescript-eslint/naming-convention
96
- _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], autoComplete = _a.autoComplete, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, maxHeight = _a.maxHeight, name = _a.name, placeholder = _a.placeholder, tags = _a.tags, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "autoComplete", "getRef", "id", "invalid", "maxHeight", "name", "placeholder", "tags", "tabIndex", "value"]);
97
- var className = classNames('Tags-Input__Container', 'Input', maxHeightClassName(maxHeight), _modifierClass, {
97
+ _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], autoComplete = _a.autoComplete, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, maxHeight = _a.maxHeight, name = _a.name, placeholder = _a.placeholder, tags = _a.tags, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', "autoComplete", "getRef", "id", "invalid", "margin", "maxHeight", "name", "placeholder", "tags", "tabIndex", "value"]);
98
+ var className = classNames('Tags-Input__Container', 'Input', maxHeightClassName(maxHeight), getMarginClass(margin), _modifierClass, {
98
99
  'Input--focused': focused,
99
100
  'Input--invalid': invalid
100
101
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tags_input.js","sourceRoot":"","sources":["../../../src/components/tags_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAAsF;AACtF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AA4BzD,IAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,IAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAM,aAAa,GAAG,WAAW,CAAC;AAElC,IAAM,kBAAkB,GAAmC;IACzD,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,IAAI;CACZ,CAAC;AAEF,SAAS,YAAY,CACnB,SAAsC;IAEtC,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,kBAAkB,CAAC,SAAsC;IAChE,IAAM,aAAa,GAAG,YAAY,CAAC,SAAS,CAAC;QAC3C,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC;QAC/B,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,aAAa,IAAI,sBAAe,aAAa,CAAE,CAAC;AACzD,CAAC;AAED;IAA+B,6BAAyC;IAKtE,mBAAY,KAAqB;QAAjC,YACE,kBAAM,KAAK,CAAC,SAMb;QAJC,KAAI,CAAC,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAEhC,KAAI,CAAC,oBAAoB,GAAG,KAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;QACjE,KAAI,C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KAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;gBACpC,CAAC,EACD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,OAAO,EAAE;oBACP,KAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;gBACnC,CAAC,EACD,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,UAAC,GAAG;oBACP,IAAI,GAAG;wBAAE,KAAI,CAAC,KAAK,GAAG,GAAG,CAAC;gBAC5B,CAAC,EACD,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,IACZ,CACE,CACP,CAAC;IACJ,CAAC;IACH,gBAAC;AAAD,CAAC,AAxHD,CAA+B,SAAS,GAwHvC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { GetRef } from '../utils/refs';
3
- import type { CommonComponentProps, ModifierProps } from '../types';
4
- interface TextInputProps extends CommonComponentProps, ModifierProps {
3
+ import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
4
+ interface TextInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
5
5
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
6
6
  'aria-required'?: React.AriaAttributes['aria-required'];
7
7
  autoComplete?: string;
@@ -27,5 +27,5 @@ interface TextInputProps extends CommonComponentProps, ModifierProps {
27
27
  tabIndex?: number;
28
28
  value?: number | string;
29
29
  }
30
- export declare function TextInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, maxLength, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, prefix, readOnly, required, suffix, tabIndex, value, ...rest }: TextInputProps): React.JSX.Element;
30
+ export declare function TextInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, margin, maxLength, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, prefix, readOnly, required, suffix, tabIndex, value, ...rest }: TextInputProps): React.JSX.Element;
31
31
  export {};
@@ -24,7 +24,7 @@ import React from 'react';
24
24
  import getDataAttributes from '../utils/data_attributes';
25
25
  import { CommonInput } from './common_input';
26
26
  export function TextInput(_a) {
27
- var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, maxLength = _a.maxLength, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, placeholder = _a.placeholder, prefix = _a.prefix, readOnly = _a.readOnly, required = _a.required, suffix = _a.suffix, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "maxLength", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "prefix", "readOnly", "required", "suffix", "tabIndex", "value"]);
28
- return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, maxLength: maxLength, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, placeholder: placeholder, prefix: prefix, readOnly: readOnly, required: required, suffix: suffix, tabIndex: tabIndex, type: "text", value: value })));
27
+ var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, maxLength = _a.maxLength, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, placeholder = _a.placeholder, prefix = _a.prefix, readOnly = _a.readOnly, required = _a.required, suffix = _a.suffix, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "margin", "maxLength", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "prefix", "readOnly", "required", "suffix", "tabIndex", "value"]);
28
+ return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, margin: margin, maxLength: maxLength, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, placeholder: placeholder, prefix: prefix, readOnly: readOnly, required: required, suffix: suffix, tabIndex: tabIndex, type: "text", value: value })));
29
29
  }
30
30
  //# sourceMappingURL=text_input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text_input.js","sourceRoot":"","sources":["../../../src/components/text_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA6B7C,MAAM,UAAU,SAAS,CAAC,EA8BT;IA7Bf,IAAA,cAAc,oBAAA,EACM,eAAe,yBAAA,EACnB,WAAW,qBAAA,EACb,SAAS,mBAAA,EACJ,cAAc,wBAAA,EAChB,YAAY,sBAAA,EAC7B,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,OAAO,aAAA,EACP,SAAS,eAAA,EACT,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,SAAS,eAAA,EACT,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,KAAK,WAAA,EACF,IAAI,cA7BiB,kWA8BzB,CADQ;IAEP,OAAO,CACL,oBAAC,WAAW,eACN,iBAAiB,CAAC,IAAI,CAAC,IAC3B,cAAc,EAAE,cAAc,sBACZ,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,mBAChB,YAAY,EAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,E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,WAAA,EACF,IAAI,cA9BiB,4WA+BzB,CADQ;IAEP,OAAO,CACL,oBAAC,WAAW,eACN,iBAAiB,CAAC,IAAI,CAAC,IAC3B,cAAc,EAAE,cAAc,sBACZ,eAAe,kBACnB,WAAW,gBACb,SAAS,qBACJ,cAAc,mBAChB,YAAY,EAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import type { CommonComponentProps, Dimensions, ModifierProps } from '../types';
2
+ import type { CommonComponentProps, Dimensions, MarginModifierProp, ModifierClassProp } from '../types';
3
3
  import type { GetRef } from '../utils/refs';
4
4
  type TshirtSize = 'small' | 'medium' | 'large';
5
- interface TextareaProps extends CommonComponentProps, ModifierProps {
5
+ interface TextareaProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
6
6
  'aria-invalid'?: React.AriaAttributes['aria-invalid'];
7
+ 'aria-required'?: React.AriaAttributes['aria-required'];
7
8
  autoComplete?: string;
8
9
  autoFocus?: boolean;
9
10
  defaultValue?: string;
@@ -22,7 +23,8 @@ interface TextareaProps extends CommonComponentProps, ModifierProps {
22
23
  onPaste?: React.ClipboardEventHandler<HTMLTextAreaElement>;
23
24
  placeholder?: string;
24
25
  readOnly?: boolean;
26
+ required?: boolean;
25
27
  value?: string;
26
28
  }
27
- export declare function Textarea({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, autoComplete, autoFocus, defaultValue, disabled, getRef, height, id, invalid, maxLength, name, onBlur, onChange, onCut, onFocus, onKeyDown, onPaste, placeholder, readOnly, value, ...rest }: TextareaProps): React.JSX.Element;
29
+ export declare function Textarea({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, height, id, invalid, margin, maxLength, name, onBlur, onChange, onCut, onFocus, onKeyDown, onPaste, placeholder, readOnly, required, value, ...rest }: TextareaProps): React.JSX.Element;
28
30
  export {};