@dscout/particle 0.46.2 → 1.0.0-alpha.2

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 (401) hide show
  1. package/CHANGELOG.md +125 -11
  2. package/lib/components/advanced_options.js +92 -3
  3. package/lib/components/attribute_input.js +215 -0
  4. package/lib/components/attribute_selector.js +106 -22
  5. package/lib/components/avatar.js +98 -7
  6. package/lib/components/blitz.js +118 -8
  7. package/lib/components/button.js +261 -2
  8. package/lib/components/button_control.js +108 -2
  9. package/lib/components/button_icon.js +192 -0
  10. package/lib/components/button_mode.js +174 -2
  11. package/lib/components/button_plain.js +187 -0
  12. package/lib/components/card.js +237 -4
  13. package/lib/components/card_body.js +58 -1
  14. package/lib/components/card_footer.js +76 -2
  15. package/lib/components/cards.js +58 -1
  16. package/lib/components/checkbox_input.js +141 -6
  17. package/lib/components/chip.js +184 -0
  18. package/lib/components/collapsible.js +45 -10
  19. package/lib/components/collapsible_content.js +92 -9
  20. package/lib/components/collapsing_menu.js +102 -4
  21. package/lib/components/column.js +72 -1
  22. package/lib/components/common_button.js +172 -0
  23. package/lib/components/common_input.js +221 -18
  24. package/lib/components/common_menu_item.js +160 -9
  25. package/lib/components/container.js +65 -1
  26. package/lib/components/container_header.js +81 -1
  27. package/lib/components/container_inner.js +50 -1
  28. package/lib/components/controls.js +57 -0
  29. package/lib/components/drag_and_drop.js +173 -10
  30. package/lib/components/dropdown.js +228 -13
  31. package/lib/components/dropdown_input_toggle.js +127 -9
  32. package/lib/components/editing_container.js +157 -14
  33. package/lib/components/email_input.js +207 -0
  34. package/lib/components/file_input.js +125 -3
  35. package/lib/components/flex.js +216 -28
  36. package/lib/components/focus_intent.js +84 -10
  37. package/lib/components/focus_trap.js +103 -2
  38. package/lib/components/footnote.js +60 -1
  39. package/lib/components/formatted_text.js +61 -0
  40. package/lib/components/heading.js +219 -3
  41. package/lib/components/input_addon.js +115 -0
  42. package/lib/components/input_group.js +81 -0
  43. package/lib/components/input_group_item.js +132 -0
  44. package/lib/components/list.js +92 -3
  45. package/lib/components/list_inline.js +91 -3
  46. package/lib/components/media_query.js +52 -5
  47. package/lib/components/menu.js +91 -2
  48. package/lib/components/menu_item.js +116 -1
  49. package/lib/components/menu_item_li.js +152 -11
  50. package/lib/components/menu_link.js +162 -1
  51. package/lib/components/menu_list.js +79 -4
  52. package/lib/components/menu_section.js +66 -2
  53. package/lib/components/menu_title.js +58 -1
  54. package/lib/components/modal.js +223 -22
  55. package/lib/components/modifier.js +241 -14
  56. package/lib/components/number_input.js +215 -0
  57. package/lib/components/password_input.js +207 -0
  58. package/lib/components/pill.js +96 -1
  59. package/lib/components/radio_input.js +133 -5
  60. package/lib/components/range_input.js +128 -5
  61. package/lib/components/row.js +86 -1
  62. package/lib/components/search_input.js +175 -0
  63. package/lib/components/segmented_controls.js +58 -1
  64. package/lib/components/select_input.js +173 -15
  65. package/lib/components/separator.js +137 -6
  66. package/lib/components/speech_bubble.js +126 -8
  67. package/lib/components/swappable_content.js +99 -9
  68. package/lib/components/tags_input.js +199 -15
  69. package/lib/components/text_input.js +207 -0
  70. package/lib/components/textarea.js +187 -11
  71. package/lib/components/theme_provider.js +172 -0
  72. package/lib/components/thumbnail.js +94 -8
  73. package/lib/components/togglable_fieldset.js +110 -14
  74. package/lib/components/toggle.js +93 -1
  75. package/lib/components/tooltip.js +144 -4
  76. package/lib/components/tooltip_container.js +144 -5
  77. package/lib/components/with_addons.js +121 -0
  78. package/lib/icons/alert.js +6 -0
  79. package/lib/icons/amazing_emoticon.js +6 -0
  80. package/lib/icons/analysis.js +6 -0
  81. package/lib/icons/approve_payment.js +6 -0
  82. package/lib/icons/archive.js +6 -0
  83. package/lib/icons/arrow_up.js +6 -0
  84. package/lib/icons/autotag.js +88 -0
  85. package/lib/icons/bell.js +6 -0
  86. package/lib/icons/bookmark.js +26 -2
  87. package/lib/icons/camera.js +6 -0
  88. package/lib/icons/checkbox_check.js +44 -2
  89. package/lib/icons/checkbox_indeterminate.js +44 -2
  90. package/lib/icons/checkmark.js +6 -0
  91. package/lib/icons/{speaker_on.js → checkpoint.js} +14 -13
  92. package/lib/icons/chevron.js +6 -0
  93. package/lib/icons/choice.js +6 -0
  94. package/lib/icons/circle.js +6 -0
  95. package/lib/icons/circle_checkmark.js +88 -0
  96. package/lib/icons/circle_chevron.js +6 -0
  97. package/lib/icons/circle_clone.js +6 -0
  98. package/lib/icons/circle_i.js +6 -0
  99. package/lib/icons/circle_minus.js +6 -0
  100. package/lib/icons/circle_plus.js +6 -0
  101. package/lib/icons/circle_question.js +6 -0
  102. package/lib/icons/circle_x.js +6 -0
  103. package/lib/icons/clip.js +122 -34
  104. package/lib/icons/clock.js +93 -1
  105. package/lib/icons/clone.js +6 -0
  106. package/lib/icons/column.js +81 -0
  107. package/lib/icons/common_svg.js +172 -19
  108. package/lib/icons/download.js +6 -0
  109. package/lib/icons/drag_dots.js +6 -0
  110. package/lib/icons/dscout.js +6 -0
  111. package/lib/icons/edit.js +6 -0
  112. package/lib/icons/email.js +6 -0
  113. package/lib/icons/export.js +6 -0
  114. package/lib/icons/express_mission.js +11 -1
  115. package/lib/icons/express_mission_card.js +6 -0
  116. package/lib/icons/external_link.js +6 -0
  117. package/lib/icons/eye.js +95 -0
  118. package/lib/icons/file_type_text.js +6 -0
  119. package/lib/icons/filter.js +6 -0
  120. package/lib/icons/fit.js +6 -0
  121. package/lib/icons/folder.js +88 -0
  122. package/lib/icons/good_emoticon.js +6 -0
  123. package/lib/icons/grid.js +6 -0
  124. package/lib/icons/grip.js +6 -0
  125. package/lib/icons/heart.js +95 -0
  126. package/lib/icons/highlighter.js +6 -0
  127. package/lib/icons/icon_with_count.js +82 -5
  128. package/lib/icons/image_file.js +6 -0
  129. package/lib/icons/key.js +6 -0
  130. package/lib/icons/knockout.js +6 -0
  131. package/lib/icons/link.js +6 -0
  132. package/lib/icons/live_mission.js +11 -1
  133. package/lib/icons/live_mission_card.js +6 -0
  134. package/lib/icons/live_notes.js +88 -0
  135. package/lib/icons/location.js +88 -0
  136. package/lib/icons/lock.js +88 -0
  137. package/lib/icons/map.js +6 -0
  138. package/lib/icons/media.js +6 -0
  139. package/lib/icons/media_upload.js +6 -0
  140. package/lib/icons/mic.js +95 -0
  141. package/lib/icons/minus.js +6 -0
  142. package/lib/icons/mission.js +11 -1
  143. package/lib/icons/mission_card.js +6 -0
  144. package/lib/icons/mobile.js +88 -0
  145. package/lib/icons/more.js +6 -0
  146. package/lib/icons/note.js +88 -0
  147. package/lib/icons/number.js +6 -0
  148. package/lib/icons/observer.js +6 -0
  149. package/lib/icons/open_ended.js +6 -0
  150. package/lib/icons/payment.js +6 -0
  151. package/lib/icons/pen.js +6 -0
  152. package/lib/icons/pin.js +88 -0
  153. package/lib/icons/play.js +6 -0
  154. package/lib/icons/plus.js +6 -0
  155. package/lib/icons/poor_emoticon.js +6 -0
  156. package/lib/icons/power.js +6 -0
  157. package/lib/icons/profile.js +6 -0
  158. package/lib/icons/prop_types.js +9 -6
  159. package/lib/icons/quotation_mark.js +6 -0
  160. package/lib/icons/radio_circle.js +87 -0
  161. package/lib/icons/randomize.js +6 -0
  162. package/lib/icons/remote.js +6 -0
  163. package/lib/icons/responses.js +6 -0
  164. package/lib/icons/rocket.js +6 -0
  165. package/lib/icons/round_arrow_down_left.js +6 -0
  166. package/lib/icons/round_arrow_right.js +6 -0
  167. package/lib/icons/row.js +81 -0
  168. package/lib/icons/scale.js +6 -0
  169. package/lib/icons/screen.js +95 -0
  170. package/lib/icons/screen_share.js +6 -0
  171. package/lib/icons/screener.js +11 -1
  172. package/lib/icons/screener_card.js +6 -0
  173. package/lib/icons/screener_small.js +6 -0
  174. package/lib/icons/send_payment.js +6 -0
  175. package/lib/icons/settings.js +6 -0
  176. package/lib/icons/settings_alt.js +6 -0
  177. package/lib/icons/share.js +6 -0
  178. package/lib/icons/sidebar.js +6 -0
  179. package/lib/icons/skip_end.js +6 -0
  180. package/lib/icons/sort_asc.js +6 -0
  181. package/lib/icons/sort_desc.js +6 -0
  182. package/lib/icons/speech_bubble.js +95 -0
  183. package/lib/icons/spinner.js +88 -0
  184. package/lib/icons/spinner_progress.js +6 -0
  185. package/lib/icons/spreadsheet_file.js +6 -0
  186. package/lib/icons/stacked_missions.js +6 -0
  187. package/lib/icons/star.js +95 -0
  188. package/lib/icons/stim.js +88 -0
  189. package/lib/icons/summary.js +6 -0
  190. package/lib/icons/tag.js +95 -0
  191. package/lib/icons/tag_group.js +81 -0
  192. package/lib/icons/team.js +6 -0
  193. package/lib/icons/thumbs_down.js +6 -0
  194. package/lib/icons/thumbs_up.js +6 -0
  195. package/lib/icons/translate.js +6 -0
  196. package/lib/icons/trash.js +6 -0
  197. package/lib/icons/triangle_inverted.js +90 -0
  198. package/lib/icons/type_video.js +6 -0
  199. package/lib/icons/upload.js +6 -0
  200. package/lib/icons/video_fast_forward.js +85 -0
  201. package/lib/icons/video_next.js +85 -0
  202. package/lib/icons/video_pause.js +85 -0
  203. package/lib/icons/video_play.js +85 -0
  204. package/lib/icons/video_skip.js +85 -0
  205. package/lib/icons/videocamera.js +95 -0
  206. package/lib/icons/wand.js +6 -0
  207. package/lib/icons/wifi.js +6 -0
  208. package/lib/icons/x.js +6 -0
  209. package/lib/index.js +64 -68
  210. package/lib/stylesheets/particle.css +3710 -4065
  211. package/lib/stylesheets/particle.min.css +1 -2
  212. package/lib/stylesheets/particle.min.css.gz +0 -0
  213. package/lib/utils/class_names.js +8 -4
  214. package/lib/utils/dom.js +8 -4
  215. package/lib/utils/props.js +26 -2
  216. package/lib/utils/strings.js +6 -0
  217. package/lib/utils/types.js +1 -1
  218. package/package.json +10 -6
  219. package/styles/_base.scss +57 -9
  220. package/styles/_mixins.scss +10 -290
  221. package/styles/_reset.scss +12 -21
  222. package/styles/_theme_builder.scss +356 -0
  223. package/styles/_variables.scss +67 -36
  224. package/styles/components/_focus-intent.scss +3 -3
  225. package/styles/components/_icons.scss +0 -7
  226. package/styles/components/_links.scss +0 -36
  227. package/styles/components/attribute_selector/_base.scss +60 -0
  228. package/styles/components/attribute_selector/themes/_bandit.scss +18 -0
  229. package/styles/components/attribute_selector/themes/_researcher.scss +6 -0
  230. package/styles/components/attribute_selector/themes/_theme_builder.scss +33 -0
  231. package/styles/components/{_avatar.scss → avatar/_base.scss} +8 -10
  232. package/styles/components/avatar/themes/_bandit.scss +5 -0
  233. package/styles/components/avatar/themes/_researcher.scss +5 -0
  234. package/styles/components/avatar/themes/_theme_builder.scss +7 -0
  235. package/styles/components/{_blitz.scss → blitz/_base.scss} +14 -10
  236. package/styles/components/blitz/themes/_bandit.scss +5 -0
  237. package/styles/components/blitz/themes/_researcher.scss +6 -0
  238. package/styles/components/blitz/themes/_theme_builder.scss +1 -0
  239. package/styles/components/buttons/_base.scss +510 -0
  240. package/styles/components/buttons/themes/_bandit.scss +25 -0
  241. package/styles/components/buttons/themes/_researcher.scss +6 -0
  242. package/styles/components/buttons/themes/_theme_builder.scss +89 -0
  243. package/styles/components/card/_base.scss +88 -0
  244. package/styles/components/card/themes/_bandit.scss +5 -0
  245. package/styles/components/card/themes/_researcher.scss +5 -0
  246. package/styles/components/card/themes/_theme_builder.scss +25 -0
  247. package/styles/components/chip/_base.scss +38 -0
  248. package/styles/components/chip/themes/_bandit.scss +12 -0
  249. package/styles/components/chip/themes/_researcher.scss +5 -0
  250. package/styles/components/chip/themes/_theme_builder.scss +19 -0
  251. package/styles/components/collapsible/_base.scss +33 -0
  252. package/styles/components/collapsible/themes/_bandit.scss +5 -0
  253. package/styles/components/collapsible/themes/_researcher.scss +5 -0
  254. package/styles/components/collapsible/themes/_theme_builder.scss +1 -0
  255. package/styles/components/container/_base.scss +49 -0
  256. package/styles/components/container/themes/_bandit.scss +6 -0
  257. package/styles/components/container/themes/_researcher.scss +6 -0
  258. package/styles/components/container/themes/_theme_builder.scss +15 -0
  259. package/styles/components/drag_and_drop/_base.scss +46 -0
  260. package/styles/components/drag_and_drop/themes/_bandit.scss +7 -0
  261. package/styles/components/drag_and_drop/themes/_researcher.scss +6 -0
  262. package/styles/components/drag_and_drop/themes/_theme_builder.scss +21 -0
  263. package/styles/components/dropdown/_base.scss +62 -0
  264. package/styles/components/dropdown/themes/_bandit.scss +7 -0
  265. package/styles/components/dropdown/themes/_researcher.scss +6 -0
  266. package/styles/components/dropdown/themes/_theme_builder.scss +5 -0
  267. package/styles/components/footnote/_base.scss +11 -0
  268. package/styles/components/footnote/themes/_bandit.scss +5 -0
  269. package/styles/components/footnote/themes/_researcher.scss +5 -0
  270. package/styles/components/footnote/themes/_theme_builder.scss +1 -0
  271. package/styles/components/grid/_base.scss +41 -0
  272. package/styles/components/grid/themes/_bandit.scss +5 -0
  273. package/styles/components/grid/themes/_researcher.scss +5 -0
  274. package/styles/components/grid/themes/_theme_builder.scss +1 -0
  275. package/styles/components/input_group/_base.scss +74 -0
  276. package/styles/components/input_group/themes/_bandit.scss +7 -0
  277. package/styles/components/input_group/themes/_researcher.scss +6 -0
  278. package/styles/components/input_group/themes/_theme_builder.scss +5 -0
  279. package/styles/components/inputs/_base.scss +84 -0
  280. package/styles/components/inputs/themes/_bandit.scss +30 -0
  281. package/styles/components/inputs/themes/_researcher.scss +6 -0
  282. package/styles/components/inputs/themes/_theme_builder.scss +62 -0
  283. package/styles/components/{_list.scss → list/_base.scss} +39 -47
  284. package/styles/components/list/themes/_bandit.scss +5 -0
  285. package/styles/components/list/themes/_researcher.scss +6 -0
  286. package/styles/components/list/themes/_theme_builder.scss +1 -0
  287. package/styles/components/menu/_base.scss +184 -0
  288. package/styles/components/menu/themes/_bandit.scss +6 -0
  289. package/styles/components/menu/themes/_researcher.scss +6 -0
  290. package/styles/components/menu/themes/_theme_builder.scss +13 -0
  291. package/styles/components/modal/base.scss +69 -0
  292. package/styles/components/modal/themes/_bandit.scss +5 -0
  293. package/styles/components/modal/themes/_researcher.scss +6 -0
  294. package/styles/components/modal/themes/_theme_builder.scss +9 -0
  295. package/styles/components/pill/_base.scss +42 -0
  296. package/styles/components/pill/themes/_bandit.scss +6 -0
  297. package/styles/components/pill/themes/_researcher.scss +6 -0
  298. package/styles/components/pill/themes/_theme_builder.scss +11 -0
  299. package/styles/components/range/_base.scss +85 -0
  300. package/styles/components/range/themes/_bandit.scss +15 -0
  301. package/styles/components/range/themes/_researcher.scss +6 -0
  302. package/styles/components/range/themes/_theme_builder.scss +35 -0
  303. package/styles/components/segmented_controls/_base.scss +71 -0
  304. package/styles/components/segmented_controls/themes/_bandit.scss +6 -0
  305. package/styles/components/segmented_controls/themes/_researcher.scss +6 -0
  306. package/styles/components/segmented_controls/themes/_theme_builder.scss +1 -0
  307. package/styles/components/selectors/_base.scss +153 -0
  308. package/styles/components/selectors/themes/_bandit.scss +49 -0
  309. package/styles/components/selectors/themes/_researcher.scss +6 -0
  310. package/styles/components/selectors/themes/_theme_builder.scss +93 -0
  311. package/styles/components/separator/_base.scss +11 -0
  312. package/styles/components/separator/themes/_bandit.scss +5 -0
  313. package/styles/components/separator/themes/_researcher.scss +6 -0
  314. package/styles/components/separator/themes/_theme_builder.scss +1 -0
  315. package/styles/components/speech_bubble/_base.scss +34 -0
  316. package/styles/components/speech_bubble/themes/_bandit.scss +5 -0
  317. package/styles/components/speech_bubble/themes/_researcher.scss +6 -0
  318. package/styles/components/speech_bubble/themes/_theme_builder.scss +1 -0
  319. package/styles/components/swappable/_base.scss +41 -0
  320. package/styles/components/swappable/themes/_bandit.scss +5 -0
  321. package/styles/components/swappable/themes/_researcher.scss +6 -0
  322. package/styles/components/swappable/themes/_theme_builder.scss +1 -0
  323. package/styles/components/tags/_base.scss +27 -0
  324. package/styles/components/tags/themes/_bandit.scss +5 -0
  325. package/styles/components/tags/themes/_researcher.scss +6 -0
  326. package/styles/components/tags/themes/_theme_builder.scss +1 -0
  327. package/styles/components/thumbnail/_base.scss +32 -0
  328. package/styles/components/thumbnail/themes/_bandit.scss +5 -0
  329. package/styles/components/thumbnail/themes/_researcher.scss +5 -0
  330. package/styles/components/thumbnail/themes/_theme_builder.scss +5 -0
  331. package/styles/components/toggle/_base.scss +83 -0
  332. package/styles/components/toggle/themes/_bandit.scss +26 -0
  333. package/styles/components/toggle/themes/_researcher.scss +6 -0
  334. package/styles/components/toggle/themes/_theme_builder.scss +51 -0
  335. package/styles/components/tooltip/_base.scss +127 -0
  336. package/styles/components/tooltip/themes/_bandit.scss +5 -0
  337. package/styles/components/tooltip/themes/_researcher.scss +6 -0
  338. package/styles/components/tooltip/themes/_theme_builder.scss +1 -0
  339. package/styles/css_variables/_bandit.scss +45 -0
  340. package/styles/css_variables/_researcher.scss +5 -0
  341. package/styles/particle.scss +48 -36
  342. package/styles/themes/_bandit.scss +9 -0
  343. package/styles/themes/_researcher.scss +9 -0
  344. package/styles/utilities/_alignment.scss +199 -0
  345. package/styles/utilities/_borders.scss +50 -0
  346. package/styles/utilities/_colors.scss +606 -0
  347. package/styles/utilities/_dimensions.scss +265 -0
  348. package/styles/utilities/_display.scss +71 -0
  349. package/styles/utilities/_overflow.scss +74 -0
  350. package/styles/utilities/_position.scss +107 -0
  351. package/styles/utilities/_radii.scss +70 -0
  352. package/styles/utilities/_resizing.scss +42 -0
  353. package/styles/utilities/_shadows.scss +74 -0
  354. package/styles/utilities/_spacing.scss +579 -0
  355. package/styles/utilities/_typography.scss +409 -0
  356. package/styles/utilities/_visibility.scss +36 -0
  357. package/styles/utilities/_z_index.scss +24 -0
  358. package/lib/components/bug.js +0 -61
  359. package/lib/components/button_group.js +0 -55
  360. package/lib/components/button_link.js +0 -70
  361. package/lib/components/button_primary.js +0 -112
  362. package/lib/components/button_secondary.js +0 -93
  363. package/lib/components/fieldset.js +0 -59
  364. package/lib/components/scene.js +0 -68
  365. package/lib/components/validation_message.js +0 -49
  366. package/lib/components/with_affix.js +0 -114
  367. package/lib/icons/checkpoint/_checkpoint_filled.js +0 -32
  368. package/lib/icons/checkpoint/_checkpoint_unfilled.js +0 -29
  369. package/lib/icons/checkpoint/checkpoint.js +0 -57
  370. package/lib/utils/colors.js +0 -32
  371. package/styles/_borders.scss +0 -204
  372. package/styles/_colors.scss +0 -847
  373. package/styles/_helpers.scss +0 -660
  374. package/styles/_spacing.scss +0 -753
  375. package/styles/_typography.scss +0 -340
  376. package/styles/components/_affix.scss +0 -74
  377. package/styles/components/_attribute-selector.scss +0 -38
  378. package/styles/components/_bug.scss +0 -285
  379. package/styles/components/_buttons.scss +0 -1366
  380. package/styles/components/_card.scss +0 -113
  381. package/styles/components/_collapsible.scss +0 -30
  382. package/styles/components/_container.scss +0 -62
  383. package/styles/components/_drag_and_drop.scss +0 -42
  384. package/styles/components/_dropdown-input.scss +0 -45
  385. package/styles/components/_dropdown.scss +0 -31
  386. package/styles/components/_file-input.scss +0 -11
  387. package/styles/components/_flex.scss +0 -130
  388. package/styles/components/_footnote.scss +0 -15
  389. package/styles/components/_forms.scss +0 -474
  390. package/styles/components/_grid.scss +0 -90
  391. package/styles/components/_menu.scss +0 -183
  392. package/styles/components/_modal.scss +0 -74
  393. package/styles/components/_pill.scss +0 -101
  394. package/styles/components/_preview.scss +0 -30
  395. package/styles/components/_scene.scss +0 -46
  396. package/styles/components/_segmented-controls.scss +0 -51
  397. package/styles/components/_separator.scss +0 -48
  398. package/styles/components/_speech-bubble.scss +0 -29
  399. package/styles/components/_swappable.scss +0 -38
  400. package/styles/components/_tags.scss +0 -20
  401. package/styles/components/_tooltip.scss +0 -135
package/CHANGELOG.md CHANGED
@@ -5,18 +5,130 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
- ## [Unreleased]
8
+ ## [Unreleased alpha]
9
+
10
+ ## [1.0.0-alpha.2]
11
+
12
+ ### Fixed
13
+ - Bandit theme `--shadow--s` is now a valid `box-shadow` value
14
+ - Spacing and dimension enums in `<Flex />` component proptypes
15
+ - Calc statement causing parsing errors in some `postcss-values-parser` versions
9
16
 
10
- ## [0.46.2]
17
+ ## [1.0.0-alpha.1]
11
18
 
12
19
  ### Added
13
- - Added `<IconSpeakerOn />`
20
+ - Added `<AttributeInput />`
21
+ - `<InputGroup />`, `<InputGroupItem />`, and `<InputAddon />`
22
+
23
+ ### Changed
24
+ - `<AttributeSelector />` is now themeable.
25
+ - `<AttributeSelector />` is now renders radio inputs with the `<AttributeInput />` component instead of buttons.
26
+ - `<Avatar />` is now themeable.
27
+ - `<Blitz />` is now themeable.
28
+ - `<Blitz />` now accepts `coaching` as a `type` prop.
29
+ - `<Cards />`, `<Card />`, `<Thumbnail />`, `<CardBody />`, and `<CardFooter />` are now themeable.
30
+ - `<CollapsingMenu />` is now themeable.
31
+ - `<DragAndDrop />` is now themeable.
32
+ - `<Dropdown />` and `<DropdownInputToggle />` are now themeable.
33
+ - `<FileInput />` is now themeable.
34
+ - `<Footnote> />` is now themeable.
35
+ - Additionally, the `aside` element is no longer styled to look like a `<Footnote />` by default.
36
+ - `<List />` and `<ListInline />` are now themeable.
37
+ - `<Pill />` is now themeable.
38
+ - `<Row />` and `<Column />` are now themeable.
39
+ - `<Separator >` is now themeable.
40
+ - `<SpeechBubble />` is now themable.
41
+ - `<SpeechBubble/>` now supports a tail prop of `none`.
42
+ - `<SpeechBubble/>` also now supports most color classes for background and text color options.
43
+ - `<SwappableContent />` is now themeable.
44
+ - `<SegmentedControls />` and `<ButtonControl />` are now themeable.
45
+ - `<TagsInput />` are now themeable.
46
+ - `<TooltipContainer />` and `<Tooltip />` are now themable.
47
+ - Breaking: Width, height, margin, padding, and position utility classes have been renamed to follow a consistent naming convention, with enums representing em values in a revised spacing scale.
48
+ - Width and height utility classes are available for the following enums: `0.25`, `0.5`, `0.75`, `1`, `1.5`, `2`, `3`, `4`, `5`, `6`, `8`, `10`, `12`, `14`, `16`, `18`, `20`, `22`, `24`, `26`, `28`, `30`, `32`, `36`, `40`, `48`, `60`.
49
+ - Margin, padding, and position utility classes are available from `0.25` through `4`.
50
+ - The old t-shirt sized enums map to the em-based enums in the following way: `xs`->`0.25`, `s`->`0.75`, `m`->`1`, `base`->`2`, `l`->`3`, `xl`->`4`. For example, `margin--s` is now `margin--0.75`.
51
+ - The old numeric enums map to double the original number (they previously represented multiples of 2em but now represent multiples of 1em). For example, `width--10` is now `width--20`.
52
+ - Breaking: `<Bug />` component
53
+ - renamed to `<Chip />`
54
+ - accepts any color enum
55
+ - sets colors based on inherited text color when no color is specified
56
+ - accepts a new `textColor` prop to set the text color independently of the background or outline color.
57
+ - Breaking: Input components no longer accept `onPrefixClick` and `onSuffixClick` props. An `<InputGroup />` should be used to compose an input and a button component instead.
14
58
 
15
- ## [0.46.1]
59
+ ### Fixed
60
+ - Fixed a bug where `<SegmentedControls />` did not apply the corner radii to the first and last `<ButtonControl />` under certain conditions.
61
+ - `<SelectInput />` and `<DropdownToggleInput />` now correctly handle text truncation, apply the correct icon spacing in the `mini` state, and apply the correct disabled stying to the icon.
62
+ - `<AttributeInput />` now has a focus outline for keyboard accessibility.
63
+ - `<AttributeSelector />` now sets the same name on each `<AttributeInput />` for keyboard accessibility.
64
+ - `<Toggle />` renders with correct opacity when disabled.
16
65
 
17
- ### Changed
18
- - `<IconCheckpoint />` now accepts the `filled` prop.
19
- - Updated the `<IconClip />`
66
+ ### Removed
67
+ - `<Scene />` component. "Scene" styles were an early attempt at theming for different color schemes, which we plan to reimplement via CSS variables at a later date.
68
+ - Removed `gutter--none`, `gutter--xs`, `gutter--s` and `gutter--custom` classes.
69
+ - Gutter spacing for grids is now defined with the `columnGap` prop on `<Row />`.
70
+
71
+ ## [1.0.0-alpha.0]
72
+
73
+ ### Added
74
+
75
+ - Spacing utility classes to define margins between direct descendants (e.g. `spacing-h--m`).
76
+
77
+ ### Changed
78
+
79
+ - Flex align, direction, justify, and wrap utility classes are no longer scoped to the `.flex` class, so they now have less specificity.
80
+ - `<Flex />` now accepts a `spacing` prop
81
+ - `<Button />` component is now themeable.
82
+ - `<Textarea />`, `<TextInput />`, `<NumberInput />`, `<PasswordInput />`, `<EmailInput />`, `<SearchInput />`, and `<SelectInput />` are now themeable.
83
+ - `<Toggle />` is now themeable
84
+ - `<CheckboxInput />` and `<RadioInput />` are now themeable
85
+ - `<RangeInput />` is now themeable
86
+ - `<Menu />`, `<MenuItem />`, `<MenuList />`, `<MenuItemLI />` and `MenuLink` are now themeable.
87
+ - `<Modal />` is now themeable.
88
+ - `<TextInput />`, `<NumberInput />`, `<PasswordInput />`, `<EmailInput />`, `<Textarea />`, `<SelectInput />`, and `<TagsInput />` now accept `invalid` prop to render invalid styles.
89
+ - Breaking: Grayscale colors have been renamed to `gray-1` (formerly `main-light`), `gray-2` (formerly `dem`), `gray-3` (formerly `disabled`), `gray-4` (formerly `line`), `gray-5` (formerly `faint`), and `gray-6` (formerly `min`).
90
+ - Grayscale colors no longer apply transparency
91
+ - Breaking: Border utility class `.border--n` has been renamed to `.border--none` for naming consistency.
92
+ - Breaking: `<Flex />` `height`, `spacing`, and `width` props updated to use sizing class names.
93
+ - Breaking: `.no-underline` utility renamed to `.text-decoration--none`.
94
+ - Breaking: `.font-weight--b` renamed to `.font-weight--bold`.
95
+ - Breaking: `<Separator />` no longer accepts `solid` prop. Instead, it accepts `color` prop to provide more flexibility (replace `solid` with `color="line-s"`).
96
+ - Breaking: `<main />` element no longer has default styles that set max width, horizontal margins, and padding.
97
+ - Breaking: `<ContainerHeader />` no longer inherits edit/view styles from the `.container` class. Use the `isEditing` prop in sync with the `<EditingContainer />` instead.
98
+ - Breaking: Container component classes have been renamed to follow a new naming convention.
99
+ - Breaking: Button component classes have been renamed to follow a new naming convention.
100
+ - Breaking: Input component classes have been renamed to follow a new naming convention.
101
+ - Breaking: Toggle component classes have been renamed to follow a new naming convention.
102
+ - Breaking: Radio and checkbox component classes have been renamed to follow a new naming convention.
103
+ - Breaking: Range input component classes have been renamed to follow a new naming convention.
104
+ - Breaking: `<Modal />` component's `padding` prop is no longer a boolean. It now accepts an enum value to give it a custom padding amount in the 0-4ems range.
105
+ - Breaking: `<Button />` component no longer accepts `tiny` size because it was never used.
106
+ - Breaking: `<ButtonLink />` renamed to `<ButtonPlain />`
107
+ - Breaking: Sequential button components no longer have spacing automatically applied between them. Wrap with `<Flex spacing="s"> />` or an element with `.spacing-h--s` instead.
108
+ - Breaking: `menu--divider`, `menu--sortable`, `menu--dragging` and `menu--ghost` classes renamed to `Menu__Divider`, `Menu__Item--sortable`, `Menu__Item--dragging`, and `Menu__Item--ghost`.
109
+ - Breaking: The `white` enum for button colors has been renamed to the color-scheme-agnostic `invert`.
110
+
111
+ ### Removed
112
+
113
+ - Float and clearfix utilities. We don’t use floats anymore now that flex layouts exist.
114
+ - `.text-space--n` utility class, which is now `.white-space--nowrap`.
115
+ - `.col--` utility classes (for CSS Grid columns). We would need more Grid-specific utility classes to make these useful, so I’m planning on removing these for now until we can think about grid layouts more holistically.
116
+ - `.em`, `.i`, `.b`, `.strong`, `.strike`, `.u`, `.underline`, `.small`, `.mark` classes. Semantically, the corresponding HTML elements should typically be used. If not, a more descriptive utility class (e.g. `font-weight--bold` or `.font-size--s`) should be used.
117
+ - `.big`, `.dem` classes. We should use color and font-size utility classes instead.
118
+ - Aliases supporting incorrectly named spacing utility classes. E.g.: `margin--b-s`, `padding--h-base`.
119
+ - `$color--code-highlight` SCSS variable because it's never been used.
120
+ - `left`, `right`, `top` and `bottom` enums for flex utility classes. These have been deprecated since v0.33.0.
121
+ - `<ButtonPrimary />` (use `<Button />` and configure the `color` and `variant` props to match original designs)
122
+ - `<ButtonSecondary />` (use `<Button size="small" />` and configure the `color` and `variant` props to match original designs)
123
+ - `<ButtonGroup />` (use `<Flex spacing="s" />` and configure the `justify` prop to match original alignment)
124
+ - "scene"- and "hue"- specific classes for button styles.
125
+ - `.btn--accent-` and `.btn--roll-` classes because they have never been used. These can be replaced by `hover:` utility classes.
126
+ - `<Fieldset />` component. The only concern this component handled that couldn't be handled with a plain `<fieldset />` was setting invalid styles on nested form elements. Invalid styling concerns have been moved to the input components themselves, leaving the `<Fieldset />` useless.
127
+ - `<ValidationMessage />` component. It didn't provide anything useful other than red text, and we don't have clearly-enough defined form validation patterns to justify encapsulating them in a Particle component.
128
+ - `edit-state` color and utility classes
129
+ - Solid-variant utility classes for grayscale colors. For example, `color--main-light-s`. Grayscale colors no longer apply transparency.
130
+
131
+ ## [Unreleased]
20
132
 
21
133
  ## [0.46.0]
22
134
 
@@ -39,7 +151,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
39
151
  ### Changed
40
152
 
41
153
  - `<IconPayment />` now accepts the `filled` prop.
42
- - Updated the `<IconThumbsUp />` and `<IconThumbsDown />` to a newer design.
154
+ - Updated the `<IconThumbsUp />` and `<IconThumbsDown />` to a newer design.
43
155
  - Updated the `<IconFilter />`.
44
156
 
45
157
  ### Fixed
@@ -1342,9 +1454,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1342
1454
 
1343
1455
  - First usable version of particle
1344
1456
 
1345
- [Unreleased]: https://github.com/dscout/particle/compare/v0.46.2...HEAD
1346
- [0.46.2]: https://github.com/dscout/particle/compare/v0.46.1...v0.46.2
1347
- [0.46.1]: https://github.com/dscout/particle/compare/v0.46.0...v0.46.1
1457
+ [Unreleased alpha]: https://github.com/dscout/particle/compare/v1.0.0-alpha.2...v1
1458
+ [1.0.0-alpha.2]: https://github.com/dscout/particle/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
1459
+ [1.0.0-alpha.1]: https://github.com/dscout/particle/compare/v1.0.0-alpha.0...v1.0.0-alpha.1
1460
+ [1.0.0-alpha.0]: https://github.com/dscout/particle/compare/main...v1.0.0-alpha.0
1461
+ [Unreleased]: https://github.com/dscout/particle/compare/v0.46.0...HEAD
1348
1462
  [0.46.0]: https://github.com/dscout/particle/compare/v0.45.3...v0.46.0
1349
1463
  [0.45.3]: https://github.com/dscout/particle/compare/v0.45.2...v0.45.3
1350
1464
  [0.45.2]: https://github.com/dscout/particle/compare/v0.45.1...v0.45.2
@@ -13,7 +13,7 @@ var _class_names = _interopRequireDefault(require("../utils/class_names"));
13
13
 
14
14
  var _refs = require("../utils/refs");
15
15
 
16
- var _button_link = _interopRequireDefault(require("./button_link"));
16
+ var _button_plain = _interopRequireDefault(require("./button_plain"));
17
17
 
18
18
  var _collapsible_content = _interopRequireDefault(require("./collapsible_content"));
19
19
 
@@ -65,9 +65,9 @@ function AdvancedOptions(_ref) {
65
65
  ref: getRef
66
66
  }, _react.default.createElement(_modifier.default, {
67
67
  margin: {
68
- bottom: 's'
68
+ bottom: '0.75'
69
69
  }
70
- }, _react.default.createElement(_button_link.default, {
70
+ }, _react.default.createElement(_button_plain.default, {
71
71
  "aria-controls": ariaControlsId,
72
72
  "aria-expanded": !isCollapsed,
73
73
  "aria-label": ariaLabel,
@@ -87,5 +87,94 @@ function AdvancedOptions(_ref) {
87
87
  }
88
88
 
89
89
  AdvancedOptions.propTypes = propTypes;
90
+ AdvancedOptions.__docgenInfo = {
91
+ "description": "",
92
+ "methods": [],
93
+ "displayName": "AdvancedOptions",
94
+ "props": {
95
+ "initialCollapsed": {
96
+ "defaultValue": {
97
+ "value": "true",
98
+ "computed": false
99
+ },
100
+ "type": {
101
+ "name": "bool"
102
+ },
103
+ "required": false,
104
+ "description": ""
105
+ },
106
+ "_modifierClass": {
107
+ "type": {
108
+ "name": "string"
109
+ },
110
+ "required": false,
111
+ "description": ""
112
+ },
113
+ "aria-label": {
114
+ "type": {
115
+ "name": "string"
116
+ },
117
+ "required": false,
118
+ "description": ""
119
+ },
120
+ "aria-labelledby": {
121
+ "type": {
122
+ "name": "string"
123
+ },
124
+ "required": false,
125
+ "description": ""
126
+ },
127
+ "aria-describedby": {
128
+ "type": {
129
+ "name": "string"
130
+ },
131
+ "required": false,
132
+ "description": ""
133
+ },
134
+ "children": {
135
+ "type": {
136
+ "name": "node"
137
+ },
138
+ "required": false,
139
+ "description": ""
140
+ },
141
+ "disabled": {
142
+ "type": {
143
+ "name": "bool"
144
+ },
145
+ "required": false,
146
+ "description": ""
147
+ },
148
+ "getRef": {
149
+ "type": {
150
+ "name": "custom",
151
+ "raw": "getRefPropType"
152
+ },
153
+ "required": false,
154
+ "description": ""
155
+ },
156
+ "id": {
157
+ "type": {
158
+ "name": "string"
159
+ },
160
+ "required": false,
161
+ "description": ""
162
+ },
163
+ "name": {
164
+ "type": {
165
+ "name": "string"
166
+ },
167
+ "required": false,
168
+ "description": ""
169
+ },
170
+ "title": {
171
+ "type": {
172
+ "name": "node"
173
+ },
174
+ "required": false,
175
+ "description": ""
176
+ }
177
+ }
178
+ };
90
179
  var _default = AdvancedOptions;
91
180
  exports.default = _default;
@@ -0,0 +1,215 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _class_names = _interopRequireDefault(require("../utils/class_names"));
13
+
14
+ var _refs = require("../utils/refs");
15
+
16
+ var _forms = require("../utils/forms");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ var propTypes = {
21
+ _modifierClass: _propTypes.default.string,
22
+ 'aria-describedby': _propTypes.default.string,
23
+ 'aria-invalid': _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
24
+ 'aria-label': _propTypes.default.string,
25
+ 'aria-labelledby': _propTypes.default.string,
26
+ checked: _propTypes.default.bool,
27
+ disabled: _propTypes.default.bool,
28
+ getRef: _refs.getRefPropType,
29
+ id: _propTypes.default.string,
30
+ label: _propTypes.default.node,
31
+ name: _propTypes.default.string,
32
+ onChange: _propTypes.default.func,
33
+ readOnly: _propTypes.default.bool,
34
+ tabIndex: _propTypes.default.number,
35
+ value: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
36
+ };
37
+
38
+ function determineIdValue(id, label) {
39
+ if (id) return id;
40
+ return (0, _forms.looksUnique)(label) ? label : (0, _forms.unique)(label);
41
+ }
42
+
43
+ function AttributeInput(_ref) {
44
+ var _modifierClass = _ref._modifierClass,
45
+ ariaDescribedby = _ref['aria-describedby'],
46
+ ariaInvalid = _ref['aria-invalid'],
47
+ ariaLabel = _ref['aria-label'],
48
+ ariaLabelledby = _ref['aria-labelledby'],
49
+ checked = _ref.checked,
50
+ disabled = _ref.disabled,
51
+ getRef = _ref.getRef,
52
+ id = _ref.id,
53
+ label = _ref.label,
54
+ name = _ref.name,
55
+ value = _ref.value,
56
+ onChange = _ref.onChange,
57
+ readOnly = _ref.readOnly,
58
+ tabIndex = _ref.tabIndex;
59
+ var attributeId = determineIdValue(id, label);
60
+ var selectorClassName = (0, _class_names.default)('Attribute', _modifierClass, {
61
+ 'Attribute--with-label': label
62
+ });
63
+ var labelClassName = (0, _class_names.default)('Attribute__Label', {
64
+ 'Attribute__Label--selected': checked
65
+ });
66
+ return _react.default.createElement("div", {
67
+ className: selectorClassName
68
+ }, _react.default.createElement("input", {
69
+ id: attributeId,
70
+ name: name,
71
+ "aria-label": ariaLabel,
72
+ "aria-labelledby": ariaLabelledby,
73
+ "aria-invalid": ariaInvalid,
74
+ "aria-describedby": ariaDescribedby,
75
+ ref: getRef,
76
+ checked: checked,
77
+ className: "Attribute__Input",
78
+ onChange: onChange,
79
+ type: "radio",
80
+ value: value,
81
+ tabIndex: tabIndex,
82
+ readOnly: readOnly,
83
+ disabled: disabled
84
+ }), _react.default.createElement("label", {
85
+ className: labelClassName,
86
+ htmlFor: attributeId
87
+ }, label));
88
+ }
89
+
90
+ AttributeInput.propTypes = propTypes;
91
+ AttributeInput.__docgenInfo = {
92
+ "description": "",
93
+ "methods": [],
94
+ "displayName": "AttributeInput",
95
+ "props": {
96
+ "_modifierClass": {
97
+ "type": {
98
+ "name": "string"
99
+ },
100
+ "required": false,
101
+ "description": ""
102
+ },
103
+ "aria-describedby": {
104
+ "type": {
105
+ "name": "string"
106
+ },
107
+ "required": false,
108
+ "description": ""
109
+ },
110
+ "aria-invalid": {
111
+ "type": {
112
+ "name": "union",
113
+ "value": [{
114
+ "name": "bool"
115
+ }, {
116
+ "name": "string"
117
+ }]
118
+ },
119
+ "required": false,
120
+ "description": ""
121
+ },
122
+ "aria-label": {
123
+ "type": {
124
+ "name": "string"
125
+ },
126
+ "required": false,
127
+ "description": ""
128
+ },
129
+ "aria-labelledby": {
130
+ "type": {
131
+ "name": "string"
132
+ },
133
+ "required": false,
134
+ "description": ""
135
+ },
136
+ "checked": {
137
+ "type": {
138
+ "name": "bool"
139
+ },
140
+ "required": false,
141
+ "description": ""
142
+ },
143
+ "disabled": {
144
+ "type": {
145
+ "name": "bool"
146
+ },
147
+ "required": false,
148
+ "description": ""
149
+ },
150
+ "getRef": {
151
+ "type": {
152
+ "name": "custom",
153
+ "raw": "getRefPropType"
154
+ },
155
+ "required": false,
156
+ "description": ""
157
+ },
158
+ "id": {
159
+ "type": {
160
+ "name": "string"
161
+ },
162
+ "required": false,
163
+ "description": ""
164
+ },
165
+ "label": {
166
+ "type": {
167
+ "name": "node"
168
+ },
169
+ "required": false,
170
+ "description": ""
171
+ },
172
+ "name": {
173
+ "type": {
174
+ "name": "string"
175
+ },
176
+ "required": false,
177
+ "description": ""
178
+ },
179
+ "onChange": {
180
+ "type": {
181
+ "name": "func"
182
+ },
183
+ "required": false,
184
+ "description": ""
185
+ },
186
+ "readOnly": {
187
+ "type": {
188
+ "name": "bool"
189
+ },
190
+ "required": false,
191
+ "description": ""
192
+ },
193
+ "tabIndex": {
194
+ "type": {
195
+ "name": "number"
196
+ },
197
+ "required": false,
198
+ "description": ""
199
+ },
200
+ "value": {
201
+ "type": {
202
+ "name": "union",
203
+ "value": [{
204
+ "name": "number"
205
+ }, {
206
+ "name": "string"
207
+ }]
208
+ },
209
+ "required": false,
210
+ "description": ""
211
+ }
212
+ }
213
+ };
214
+ var _default = AttributeInput;
215
+ exports.default = _default;
@@ -13,6 +13,8 @@ var _class_names = _interopRequireDefault(require("../utils/class_names"));
13
13
 
14
14
  var _refs = require("../utils/refs");
15
15
 
16
+ var _attribute_input = _interopRequireDefault(require("./attribute_input"));
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
20
  var propTypes = {
@@ -28,11 +30,6 @@ var propTypes = {
28
30
  selected: _propTypes.default.string
29
31
  };
30
32
 
31
- function getName(name, attribute) {
32
- if (name) return "".concat(name, "[").concat(attribute, "]");
33
- return attribute;
34
- }
35
-
36
33
  function AttributeSelector(_ref) {
37
34
  var _modifierClass = _ref._modifierClass,
38
35
  ariaLabel = _ref['aria-label'],
@@ -41,32 +38,119 @@ function AttributeSelector(_ref) {
41
38
  attributes = _ref.attributes,
42
39
  getRef = _ref.getRef,
43
40
  id = _ref.id,
44
- name = _ref.name,
45
- _onClick = _ref.onClick,
41
+ _ref$name = _ref.name,
42
+ name = _ref$name === void 0 ? 'attributes' : _ref$name,
43
+ onClick = _ref.onClick,
46
44
  selected = _ref.selected;
45
+
46
+ function handleAttributeSelected(_ref2) {
47
+ var target = _ref2.target;
48
+ if (onClick) onClick(target.value);
49
+ }
50
+
51
+ function renderAttribute(attribute) {
52
+ return _react.default.createElement(_attribute_input.default, {
53
+ key: attribute,
54
+ onChange: handleAttributeSelected,
55
+ checked: attribute === selected,
56
+ label: attributes[attribute],
57
+ name: name,
58
+ value: attribute
59
+ });
60
+ }
61
+
47
62
  return _react.default.createElement("div", {
48
63
  "aria-label": ariaLabel,
49
64
  "aria-labelledby": ariaLabelledby,
50
65
  "aria-describedby": ariaDescribedby,
51
- className: (0, _class_names.default)('attribute-selector', _modifierClass),
66
+ className: (0, _class_names.default)('Attribute__Selector spacing-h--0.25', _modifierClass),
52
67
  id: id,
53
68
  ref: getRef
54
- }, Object.keys(attributes).map(function (attribute) {
55
- var className = (0, _class_names.default)('attribute', {
56
- selected: attribute === selected
57
- });
58
- return _react.default.createElement("button", {
59
- key: attribute,
60
- className: className,
61
- name: getName(name, attribute),
62
- onClick: function onClick() {
63
- return _onClick(attribute);
64
- },
65
- type: "button"
66
- }, attributes[attribute]);
67
- }));
69
+ }, Object.keys(attributes).map(renderAttribute));
68
70
  }
69
71
 
70
72
  AttributeSelector.propTypes = propTypes;
73
+ AttributeSelector.__docgenInfo = {
74
+ "description": "",
75
+ "methods": [],
76
+ "displayName": "AttributeSelector",
77
+ "props": {
78
+ "name": {
79
+ "defaultValue": {
80
+ "value": "'attributes'",
81
+ "computed": false
82
+ },
83
+ "type": {
84
+ "name": "string"
85
+ },
86
+ "required": false,
87
+ "description": ""
88
+ },
89
+ "_modifierClass": {
90
+ "type": {
91
+ "name": "string"
92
+ },
93
+ "required": false,
94
+ "description": ""
95
+ },
96
+ "aria-label": {
97
+ "type": {
98
+ "name": "string"
99
+ },
100
+ "required": false,
101
+ "description": ""
102
+ },
103
+ "aria-labelledby": {
104
+ "type": {
105
+ "name": "string"
106
+ },
107
+ "required": false,
108
+ "description": ""
109
+ },
110
+ "aria-describedby": {
111
+ "type": {
112
+ "name": "string"
113
+ },
114
+ "required": false,
115
+ "description": ""
116
+ },
117
+ "attributes": {
118
+ "type": {
119
+ "name": "object"
120
+ },
121
+ "required": true,
122
+ "description": ""
123
+ },
124
+ "getRef": {
125
+ "type": {
126
+ "name": "custom",
127
+ "raw": "getRefPropType"
128
+ },
129
+ "required": false,
130
+ "description": ""
131
+ },
132
+ "id": {
133
+ "type": {
134
+ "name": "string"
135
+ },
136
+ "required": false,
137
+ "description": ""
138
+ },
139
+ "onClick": {
140
+ "type": {
141
+ "name": "func"
142
+ },
143
+ "required": true,
144
+ "description": ""
145
+ },
146
+ "selected": {
147
+ "type": {
148
+ "name": "string"
149
+ },
150
+ "required": false,
151
+ "description": ""
152
+ }
153
+ }
154
+ };
71
155
  var _default = AttributeSelector;
72
156
  exports.default = _default;