@roadtrip/components 2.24.1 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/dist/cjs/{app-04553107.js → app-79994847.js} +1 -1
  2. package/dist/cjs/{css-shim-cf2d8057.js → css-shim-9a05bb86.js} +1 -1
  3. package/dist/cjs/{dom-ba87b185.js → dom-417ccd20.js} +1 -1
  4. package/dist/cjs/{index-d47fa3c0.js → index-9b63596c.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +5 -5
  7. package/dist/cjs/road-accordion.cjs.entry.js +3 -3
  8. package/dist/cjs/road-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/road-autocomplete.cjs.entry.js +7 -2
  10. package/dist/cjs/road-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/road-badge_11.cjs.entry.js +19 -7
  12. package/dist/cjs/road-card.cjs.entry.js +9 -4
  13. package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
  14. package/dist/cjs/road-carousel.cjs.entry.js +33 -33
  15. package/dist/cjs/road-checkbox.cjs.entry.js +11 -2
  16. package/dist/cjs/road-chip.cjs.entry.js +4 -4
  17. package/dist/cjs/road-collapse.cjs.entry.js +4 -4
  18. package/dist/cjs/road-counter.cjs.entry.js +8 -4
  19. package/dist/cjs/road-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/road-dropdown.cjs.entry.js +2 -2
  21. package/dist/cjs/road-duration.cjs.entry.js +60 -0
  22. package/dist/cjs/road-flap.cjs.entry.js +1 -1
  23. package/dist/cjs/road-img.cjs.entry.js +7 -1
  24. package/dist/cjs/road-input-group.cjs.entry.js +1 -1
  25. package/dist/cjs/road-input.cjs.entry.js +12 -3
  26. package/dist/cjs/road-modal.cjs.entry.js +1 -1
  27. package/dist/cjs/road-navbar-item.cjs.entry.js +7 -1
  28. package/dist/cjs/road-navbar.cjs.entry.js +5 -1
  29. package/dist/cjs/road-plate-number.cjs.entry.js +11 -3
  30. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  31. package/dist/cjs/road-radio-group.cjs.entry.js +3 -1
  32. package/dist/cjs/road-radio.cjs.entry.js +5 -1
  33. package/dist/cjs/road-range.cjs.entry.js +4 -2
  34. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  35. package/dist/cjs/road-select-filter.cjs.entry.js +1798 -3
  36. package/dist/cjs/road-select.cjs.entry.js +9 -1
  37. package/dist/cjs/road-skeleton.cjs.entry.js +2 -2
  38. package/dist/cjs/road-spinner.cjs.entry.js +2 -2
  39. package/dist/cjs/road-switch.cjs.entry.js +13 -4
  40. package/dist/cjs/road-tab-bar.cjs.entry.js +5 -1
  41. package/dist/cjs/road-tab-button.cjs.entry.js +7 -1
  42. package/dist/cjs/road-tab.cjs.entry.js +1 -1
  43. package/dist/cjs/road-table.cjs.entry.js +2 -2
  44. package/dist/cjs/road-tabs.cjs.entry.js +3 -1
  45. package/dist/cjs/road-text.cjs.entry.js +1 -1
  46. package/dist/cjs/road-textarea.cjs.entry.js +14 -6
  47. package/dist/cjs/road-toast.cjs.entry.js +3 -3
  48. package/dist/cjs/road-toolbar-title.cjs.entry.js +2 -2
  49. package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
  50. package/dist/cjs/roadtrip.cjs.js +5 -5
  51. package/dist/cjs/{shadow-css-7fb0b43f.js → shadow-css-432b27e3.js} +1 -1
  52. package/dist/cjs/{utils-ade59127.js → utils-90171b88.js} +1 -1
  53. package/dist/collection/collection-manifest.json +2 -1
  54. package/dist/collection/components/accordion/accordion.css +6 -6
  55. package/dist/collection/components/accordion/accordion.js +2 -2
  56. package/dist/collection/components/accordion/accordion.stories.js +81 -37
  57. package/dist/collection/components/alert/alert.stories.js +51 -45
  58. package/dist/collection/components/autocomplete/autocomplete.js +31 -3
  59. package/dist/collection/components/autocomplete/autocomplete.stories.js +51 -21
  60. package/dist/collection/components/avatar/avatar.js +2 -3
  61. package/dist/collection/components/avatar/avatar.stories.js +39 -14
  62. package/dist/collection/components/badge/badge.stories.js +33 -35
  63. package/dist/collection/components/button/button.css +4 -4
  64. package/dist/collection/components/button/button.js +57 -9
  65. package/dist/collection/components/button/button.stories.js +162 -71
  66. package/dist/collection/components/card/card.js +28 -6
  67. package/dist/collection/components/card/card.stories.js +3 -3
  68. package/dist/collection/components/carousel/carousel.css +2 -2
  69. package/dist/collection/components/carousel/carousel.js +48 -48
  70. package/dist/collection/components/carousel/carousel.stories.js +332 -88
  71. package/dist/collection/components/checkbox/checkbox.js +67 -7
  72. package/dist/collection/components/checkbox/checkbox.stories.js +89 -64
  73. package/dist/collection/components/chip/chip.js +6 -6
  74. package/dist/collection/components/chip/chip.stories.js +58 -82
  75. package/dist/collection/components/col/col.js +2 -3
  76. package/dist/collection/components/collapse/collapse.js +7 -7
  77. package/dist/collection/components/collapse/collapse.stories.js +141 -126
  78. package/dist/collection/components/counter/counter.js +50 -13
  79. package/dist/collection/components/counter/counter.stories.js +65 -31
  80. package/dist/collection/components/dialog/dialog.stories.js +81 -37
  81. package/dist/collection/components/drawer/drawer.stories.js +187 -79
  82. package/dist/collection/components/dropdown/dropdown.js +2 -2
  83. package/dist/collection/components/dropdown/dropdown.stories.js +41 -20
  84. package/dist/collection/components/duration/duration.css +31 -0
  85. package/dist/collection/components/duration/duration.js +212 -0
  86. package/dist/collection/components/duration/duration.stories.js +108 -0
  87. package/dist/collection/components/flap/flap.stories.js +35 -31
  88. package/dist/collection/components/grid/grid.js +2 -3
  89. package/dist/collection/components/grid/grid.stories.js +5 -5
  90. package/dist/collection/components/icon/icon.stories.js +88 -62
  91. package/dist/collection/components/icon/svg/attachment.svg +1 -0
  92. package/dist/collection/components/icon/svg/check-list-color.svg +1 -0
  93. package/dist/collection/components/icon/svg/check-list.svg +1 -0
  94. package/dist/collection/components/icon/svg/device-smartphone-music-color.svg +1 -0
  95. package/dist/collection/components/icon/svg/device-smartphone-music.svg +1 -0
  96. package/dist/collection/components/icon/svg/mic-off-outline-color.svg +1 -0
  97. package/dist/collection/components/icon/svg/mic-off-outline.svg +1 -0
  98. package/dist/collection/components/icon/svg/mic-off.svg +1 -0
  99. package/dist/collection/components/icon/svg/people-community-outline-color.svg +1 -0
  100. package/dist/collection/components/icon/svg/people-community-outline.svg +1 -0
  101. package/dist/collection/components/icon/svg/people-community.svg +1 -0
  102. package/dist/collection/components/icon/svg/people-coworker-color.svg +1 -1
  103. package/dist/collection/components/icon/svg/people-coworker.svg +1 -1
  104. package/dist/collection/components/icon/svg/player-radio-music-outline-color.svg +1 -0
  105. package/dist/collection/components/icon/svg/player-radio-music-outline.svg +1 -0
  106. package/dist/collection/components/icon/svg/station-electric-outline-color.svg +1 -0
  107. package/dist/collection/components/icon/svg/station-electric-outline.svg +1 -0
  108. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  109. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline.svg +1 -0
  110. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  111. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  112. package/dist/collection/components/icon/svg/{vehicle-car-bodyworkoutline-color.svg → vehicle-car-bodywork-outline-color.svg} +0 -0
  113. package/dist/collection/components/img/img.js +61 -4
  114. package/dist/collection/components/img/img.stories.js +1 -1
  115. package/dist/collection/components/input/input.css +4 -4
  116. package/dist/collection/components/input/input.js +89 -8
  117. package/dist/collection/components/input/input.stories.js +195 -129
  118. package/dist/collection/components/input-group/input-group.stories.js +44 -35
  119. package/dist/collection/components/item/item.css +2 -2
  120. package/dist/collection/components/item/item.stories.js +118 -24
  121. package/dist/collection/components/label/label.js +2 -3
  122. package/dist/collection/components/list/list.stories.js +48 -46
  123. package/dist/collection/components/modal/modal.stories.js +46 -30
  124. package/dist/collection/components/navbar/navbar.js +27 -0
  125. package/dist/collection/components/navbar/navbar.stories.js +41 -24
  126. package/dist/collection/components/navbar-item/navbar-item.js +30 -1
  127. package/dist/collection/components/plate-number/plate-number.js +99 -20
  128. package/dist/collection/components/plate-number/plate-number.stories.js +36 -17
  129. package/dist/collection/components/progress/progress.stories.js +3 -3
  130. package/dist/collection/components/radio/radio.js +47 -3
  131. package/dist/collection/components/radio/radio.stories.js +50 -33
  132. package/dist/collection/components/radio-group/radio-group.js +21 -2
  133. package/dist/collection/components/range/range.js +26 -8
  134. package/dist/collection/components/range/range.stories.js +40 -33
  135. package/dist/collection/components/rating/rating.stories.js +40 -31
  136. package/dist/collection/components/select/select.js +64 -5
  137. package/dist/collection/components/select/select.stories.js +82 -90
  138. package/dist/collection/components/select-filter/select-filter.js +69 -4
  139. package/dist/collection/components/select-filter/select-filter.stories.js +82 -106
  140. package/dist/collection/components/skeleton/skeleton.js +2 -3
  141. package/dist/collection/components/spinner/spinner.js +3 -4
  142. package/dist/collection/components/switch/switch.js +71 -11
  143. package/dist/collection/components/switch/switch.stories.js +96 -84
  144. package/dist/collection/components/tab-bar/tab-bar.js +21 -0
  145. package/dist/collection/components/tab-button/tab-button.js +30 -1
  146. package/dist/collection/components/table/table.js +2 -3
  147. package/dist/collection/components/table/table.stories.js +15 -6
  148. package/dist/collection/components/tabs/tabs.js +39 -3
  149. package/dist/collection/components/tabs/tabs.stories.js +107 -58
  150. package/dist/collection/components/text/text.stories.js +8 -4
  151. package/dist/collection/components/textarea/textarea.js +97 -17
  152. package/dist/collection/components/textarea/textarea.stories.js +135 -113
  153. package/dist/collection/components/toast/toast.js +4 -4
  154. package/dist/collection/components/toast/toast.stories.js +60 -46
  155. package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
  156. package/dist/collection/components/toolbar-title/toolbar-title.js +3 -4
  157. package/dist/collection/components/tooltip/tooltip.js +4 -4
  158. package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
  159. package/dist/esm/{app-6a43d362.js → app-a32f9d74.js} +1 -1
  160. package/dist/esm/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +1 -1
  161. package/dist/esm/{dom-c7604576.js → dom-ba83fb9d.js} +1 -1
  162. package/dist/esm/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  163. package/dist/esm/index.js +2 -2
  164. package/dist/esm/loader.js +5 -5
  165. package/dist/esm/road-accordion.entry.js +3 -3
  166. package/dist/esm/road-alert.entry.js +1 -1
  167. package/dist/esm/road-autocomplete.entry.js +7 -2
  168. package/dist/esm/road-avatar.entry.js +2 -2
  169. package/dist/esm/road-badge_11.entry.js +19 -7
  170. package/dist/esm/road-card.entry.js +9 -4
  171. package/dist/esm/road-carousel-item.entry.js +1 -1
  172. package/dist/esm/road-carousel.entry.js +33 -33
  173. package/dist/esm/road-checkbox.entry.js +11 -2
  174. package/dist/esm/road-chip.entry.js +4 -4
  175. package/dist/esm/road-collapse.entry.js +4 -4
  176. package/dist/esm/road-counter.entry.js +8 -4
  177. package/dist/esm/road-dialog.entry.js +1 -1
  178. package/dist/esm/road-dropdown.entry.js +2 -2
  179. package/dist/esm/road-duration.entry.js +56 -0
  180. package/dist/esm/road-flap.entry.js +1 -1
  181. package/dist/esm/road-img.entry.js +7 -1
  182. package/dist/esm/road-input-group.entry.js +1 -1
  183. package/dist/esm/road-input.entry.js +12 -3
  184. package/dist/esm/road-modal.entry.js +1 -1
  185. package/dist/esm/road-navbar-item.entry.js +7 -1
  186. package/dist/esm/road-navbar.entry.js +5 -1
  187. package/dist/esm/road-plate-number.entry.js +11 -3
  188. package/dist/esm/road-progress.entry.js +1 -1
  189. package/dist/esm/road-radio-group.entry.js +3 -1
  190. package/dist/esm/road-radio.entry.js +5 -1
  191. package/dist/esm/road-range.entry.js +4 -2
  192. package/dist/esm/road-rating.entry.js +1 -1
  193. package/dist/esm/road-select-filter.entry.js +1798 -3
  194. package/dist/esm/road-select.entry.js +9 -1
  195. package/dist/esm/road-skeleton.entry.js +2 -2
  196. package/dist/esm/road-spinner.entry.js +2 -2
  197. package/dist/esm/road-switch.entry.js +13 -4
  198. package/dist/esm/road-tab-bar.entry.js +5 -1
  199. package/dist/esm/road-tab-button.entry.js +7 -1
  200. package/dist/esm/road-tab.entry.js +1 -1
  201. package/dist/esm/road-table.entry.js +2 -2
  202. package/dist/esm/road-tabs.entry.js +3 -1
  203. package/dist/esm/road-text.entry.js +1 -1
  204. package/dist/esm/road-textarea.entry.js +14 -6
  205. package/dist/esm/road-toast.entry.js +3 -3
  206. package/dist/esm/road-toolbar-title.entry.js +2 -2
  207. package/dist/esm/road-tooltip.entry.js +3 -3
  208. package/dist/esm/roadtrip.js +5 -5
  209. package/dist/esm/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +1 -1
  210. package/dist/esm/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  211. package/dist/esm-es5/app-a32f9d74.js +1 -0
  212. package/dist/esm-es5/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +0 -0
  213. package/dist/esm-es5/{dom-c7604576.js → dom-ba83fb9d.js} +0 -0
  214. package/dist/esm-es5/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  215. package/dist/esm-es5/index.js +1 -1
  216. package/dist/esm-es5/loader.js +1 -1
  217. package/dist/esm-es5/road-accordion.entry.js +1 -1
  218. package/dist/esm-es5/road-alert.entry.js +1 -1
  219. package/dist/esm-es5/road-autocomplete.entry.js +1 -1
  220. package/dist/esm-es5/road-avatar.entry.js +1 -1
  221. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  222. package/dist/esm-es5/road-card.entry.js +1 -1
  223. package/dist/esm-es5/road-carousel-item.entry.js +1 -1
  224. package/dist/esm-es5/road-carousel.entry.js +1 -1
  225. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  226. package/dist/esm-es5/road-chip.entry.js +1 -1
  227. package/dist/esm-es5/road-collapse.entry.js +1 -1
  228. package/dist/esm-es5/road-counter.entry.js +1 -1
  229. package/dist/esm-es5/road-dialog.entry.js +1 -1
  230. package/dist/esm-es5/road-dropdown.entry.js +1 -1
  231. package/dist/esm-es5/road-duration.entry.js +1 -0
  232. package/dist/esm-es5/road-flap.entry.js +1 -1
  233. package/dist/esm-es5/road-img.entry.js +1 -1
  234. package/dist/esm-es5/road-input-group.entry.js +1 -1
  235. package/dist/esm-es5/road-input.entry.js +1 -1
  236. package/dist/esm-es5/road-modal.entry.js +1 -1
  237. package/dist/esm-es5/road-navbar-item.entry.js +1 -1
  238. package/dist/esm-es5/road-navbar.entry.js +1 -1
  239. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  240. package/dist/esm-es5/road-progress.entry.js +1 -1
  241. package/dist/esm-es5/road-radio-group.entry.js +1 -1
  242. package/dist/esm-es5/road-radio.entry.js +1 -1
  243. package/dist/esm-es5/road-range.entry.js +1 -1
  244. package/dist/esm-es5/road-rating.entry.js +1 -1
  245. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  246. package/dist/esm-es5/road-select.entry.js +1 -1
  247. package/dist/esm-es5/road-skeleton.entry.js +1 -1
  248. package/dist/esm-es5/road-spinner.entry.js +1 -1
  249. package/dist/esm-es5/road-switch.entry.js +1 -1
  250. package/dist/esm-es5/road-tab-bar.entry.js +1 -1
  251. package/dist/esm-es5/road-tab-button.entry.js +1 -1
  252. package/dist/esm-es5/road-tab.entry.js +1 -1
  253. package/dist/esm-es5/road-table.entry.js +1 -1
  254. package/dist/esm-es5/road-tabs.entry.js +1 -1
  255. package/dist/esm-es5/road-text.entry.js +1 -1
  256. package/dist/esm-es5/road-textarea.entry.js +1 -1
  257. package/dist/esm-es5/road-toast.entry.js +1 -1
  258. package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
  259. package/dist/esm-es5/road-tooltip.entry.js +1 -1
  260. package/dist/esm-es5/roadtrip.js +1 -1
  261. package/dist/esm-es5/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +0 -0
  262. package/dist/esm-es5/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  263. package/dist/html.html-data.json +63 -21
  264. package/dist/icons/icons.svg +1 -1
  265. package/dist/icons/index.d.ts +20 -1
  266. package/dist/icons/index.js +22 -3
  267. package/dist/roadtrip/index.esm.js +1 -1
  268. package/dist/roadtrip/p-01cebe6a.entry.js +1 -0
  269. package/dist/roadtrip/p-04deac86.system.entry.js +1 -0
  270. package/dist/roadtrip/{p-05373846.system.js → p-05961c88.system.js} +1 -1
  271. package/dist/roadtrip/{p-2cf6206e.system.entry.js → p-06921946.system.entry.js} +1 -1
  272. package/dist/roadtrip/p-0ada8d41.entry.js +1 -0
  273. package/dist/roadtrip/{p-13b46f63.system.entry.js → p-0be273e0.system.entry.js} +1 -1
  274. package/dist/roadtrip/{p-cedaf396.system.entry.js → p-0cfc0efd.system.entry.js} +1 -1
  275. package/dist/roadtrip/{p-9bbeb646.entry.js → p-0e5cecff.entry.js} +1 -1
  276. package/dist/roadtrip/p-0e645dfb.system.entry.js +1 -0
  277. package/dist/roadtrip/p-0f532f30.system.entry.js +1 -0
  278. package/dist/roadtrip/p-102d3882.system.js +1 -0
  279. package/dist/roadtrip/{p-79a745a7.entry.js → p-1347a27e.entry.js} +1 -1
  280. package/dist/roadtrip/{p-f62ebe3f.system.entry.js → p-13c18cec.system.entry.js} +1 -1
  281. package/dist/roadtrip/p-1481edc3.entry.js +1 -0
  282. package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
  283. package/dist/roadtrip/p-20a7a848.system.entry.js +1 -0
  284. package/dist/roadtrip/{p-1d83535a.entry.js → p-24234448.entry.js} +1 -1
  285. package/dist/roadtrip/{p-45b87537.system.entry.js → p-26b3aa33.system.entry.js} +1 -1
  286. package/dist/roadtrip/{p-e5eda362.system.entry.js → p-2740d308.system.entry.js} +1 -1
  287. package/dist/roadtrip/p-287f1612.system.entry.js +1 -0
  288. package/dist/roadtrip/p-299ecdd3.entry.js +1 -0
  289. package/dist/roadtrip/{p-b1a05290.system.entry.js → p-2f2dc4a0.system.entry.js} +1 -1
  290. package/dist/roadtrip/{p-8cb74e64.js → p-33e38a04.js} +1 -1
  291. package/dist/roadtrip/p-354107fa.entry.js +1 -0
  292. package/dist/roadtrip/{p-c7895d95.system.js → p-3683fe49.system.js} +0 -0
  293. package/dist/roadtrip/p-3ee7ff2a.system.entry.js +1 -0
  294. package/dist/roadtrip/{p-388a7f61.system.entry.js → p-42ccd4a2.system.entry.js} +1 -1
  295. package/dist/roadtrip/{p-8374797d.entry.js → p-44576eac.entry.js} +1 -1
  296. package/dist/roadtrip/p-46c22946.js +1 -0
  297. package/dist/roadtrip/{p-41bcd21c.system.entry.js → p-4742a822.system.entry.js} +1 -1
  298. package/dist/roadtrip/p-5bcd3e1f.entry.js +1 -0
  299. package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
  300. package/dist/roadtrip/{p-9b04e0cb.system.entry.js → p-646e75cf.system.entry.js} +1 -1
  301. package/dist/roadtrip/p-6a123e72.system.entry.js +1 -0
  302. package/dist/roadtrip/p-6bc4c517.system.entry.js +1 -0
  303. package/dist/roadtrip/p-6deb1943.system.entry.js +1 -0
  304. package/dist/roadtrip/p-6def92c3.entry.js +1 -0
  305. package/dist/roadtrip/p-6f248970.entry.js +1 -0
  306. package/dist/roadtrip/p-7070c8b5.system.entry.js +1 -0
  307. package/dist/roadtrip/p-7130ff47.entry.js +1 -0
  308. package/dist/roadtrip/{p-8649dccc.system.js → p-7154119b.system.js} +0 -0
  309. package/dist/roadtrip/p-7304b650.system.entry.js +1 -0
  310. package/dist/roadtrip/{p-a1f59f11.system.entry.js → p-74218654.system.entry.js} +1 -1
  311. package/dist/roadtrip/{p-085aad0a.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
  312. package/dist/roadtrip/{p-628f5836.system.entry.js → p-76885294.system.entry.js} +1 -1
  313. package/dist/roadtrip/p-7765931a.system.entry.js +1 -0
  314. package/dist/roadtrip/{p-923c9893.entry.js → p-78315356.entry.js} +1 -1
  315. package/dist/roadtrip/p-7a07a70f.entry.js +1 -0
  316. package/dist/roadtrip/p-7b733694.js +1 -0
  317. package/dist/roadtrip/{p-ad3b839e.entry.js → p-7fe4f8f3.entry.js} +1 -1
  318. package/dist/roadtrip/{p-6688d8f8.system.entry.js → p-835d550a.system.entry.js} +1 -1
  319. package/dist/roadtrip/p-83f8960f.entry.js +1 -0
  320. package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
  321. package/dist/roadtrip/p-8e21df57.system.entry.js +1 -0
  322. package/dist/roadtrip/{p-356163fb.js → p-93dab753.js} +0 -0
  323. package/dist/roadtrip/{p-39dd9c7f.entry.js → p-9567d161.entry.js} +1 -1
  324. package/dist/roadtrip/{p-a671df87.entry.js → p-9a1a293c.entry.js} +1 -1
  325. package/dist/roadtrip/{p-ffd2a5c1.system.entry.js → p-9afcfc7c.system.entry.js} +1 -1
  326. package/dist/roadtrip/{p-be0b7289.entry.js → p-9dd72bfa.entry.js} +1 -1
  327. package/dist/roadtrip/p-a1168bd5.system.entry.js +1 -0
  328. package/dist/roadtrip/p-a61e04a1.entry.js +1 -0
  329. package/dist/roadtrip/p-a7ddae1b.system.entry.js +1 -0
  330. package/dist/roadtrip/{p-8fc0f477.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
  331. package/dist/roadtrip/{p-0626f8a2.system.entry.js → p-a8db6630.system.entry.js} +1 -1
  332. package/dist/roadtrip/{p-ad4a83f1.js → p-ac0761c3.js} +0 -0
  333. package/dist/roadtrip/{p-b862fe1a.system.js → p-ad92df4f.system.js} +1 -1
  334. package/dist/roadtrip/p-b0e17e68.entry.js +1 -0
  335. package/dist/roadtrip/{p-84578822.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
  336. package/dist/roadtrip/{p-17ed8237.entry.js → p-b0ed748a.entry.js} +1 -1
  337. package/dist/roadtrip/p-b205281e.system.js +1 -0
  338. package/dist/roadtrip/{p-b6ea7ba9.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
  339. package/dist/roadtrip/p-b6e60fca.system.entry.js +1 -0
  340. package/dist/roadtrip/p-bcf74e54.system.entry.js +1 -0
  341. package/dist/roadtrip/{p-d3e3af9e.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
  342. package/dist/roadtrip/p-bd4a114b.entry.js +1 -0
  343. package/dist/roadtrip/p-bebdee1e.entry.js +1 -0
  344. package/dist/roadtrip/{p-f907849c.system.entry.js → p-c0429d42.system.entry.js} +1 -1
  345. package/dist/roadtrip/p-c637a847.entry.js +1 -0
  346. package/dist/roadtrip/{p-f10872aa.entry.js → p-ced4c451.entry.js} +1 -1
  347. package/dist/roadtrip/{p-cb2bebde.entry.js → p-d06202e7.entry.js} +1 -1
  348. package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
  349. package/dist/roadtrip/{p-790067ad.system.entry.js → p-d861032d.system.entry.js} +1 -1
  350. package/dist/roadtrip/{p-f6d6d227.entry.js → p-dcfc236e.entry.js} +1 -1
  351. package/dist/roadtrip/p-e4f0f0d7.entry.js +1 -0
  352. package/dist/roadtrip/p-e5756d79.entry.js +1 -0
  353. package/dist/roadtrip/p-e6664bbe.entry.js +1 -0
  354. package/dist/roadtrip/{p-82d3347b.entry.js → p-e70b2a21.entry.js} +1 -1
  355. package/dist/roadtrip/{p-2d8ba6be.entry.js → p-e9a6f1fb.entry.js} +1 -1
  356. package/dist/roadtrip/p-ea45d823.entry.js +1 -0
  357. package/dist/roadtrip/p-ed2dbf57.entry.js +1 -0
  358. package/dist/roadtrip/{p-72b3db6d.system.js → p-efa19d38.system.js} +0 -0
  359. package/dist/roadtrip/{p-9233dfbe.entry.js → p-f0ec3a64.entry.js} +1 -1
  360. package/dist/roadtrip/p-f20a3658.entry.js +1 -0
  361. package/dist/roadtrip/p-f22c63b7.entry.js +1 -0
  362. package/dist/roadtrip/p-f233746c.system.entry.js +1 -0
  363. package/dist/roadtrip/{p-2b0d3888.system.js → p-f33e4ac5.system.js} +1 -1
  364. package/dist/roadtrip/{p-41aa7a41.system.entry.js → p-f4f42d5c.system.entry.js} +1 -1
  365. package/dist/roadtrip/{p-112e8d3f.js → p-f6631560.js} +0 -0
  366. package/dist/roadtrip/p-fa68c113.entry.js +1 -0
  367. package/dist/roadtrip/p-fce355f6.entry.js +1 -0
  368. package/dist/roadtrip/roadtrip.esm.js +1 -1
  369. package/dist/roadtrip/roadtrip.js +1 -1
  370. package/dist/roadtrip/svg/attachment.svg +1 -0
  371. package/dist/roadtrip/svg/check-list-color.svg +1 -0
  372. package/dist/roadtrip/svg/check-list.svg +1 -0
  373. package/dist/roadtrip/svg/device-smartphone-music-color.svg +1 -0
  374. package/dist/roadtrip/svg/device-smartphone-music.svg +1 -0
  375. package/dist/roadtrip/svg/mic-off-outline-color.svg +1 -0
  376. package/dist/roadtrip/svg/mic-off-outline.svg +1 -0
  377. package/dist/roadtrip/svg/mic-off.svg +1 -0
  378. package/dist/roadtrip/svg/people-community-outline-color.svg +1 -0
  379. package/dist/roadtrip/svg/people-community-outline.svg +1 -0
  380. package/dist/roadtrip/svg/people-community.svg +1 -0
  381. package/dist/roadtrip/svg/people-coworker-color.svg +1 -1
  382. package/dist/roadtrip/svg/people-coworker.svg +1 -1
  383. package/dist/roadtrip/svg/player-radio-music-outline-color.svg +1 -0
  384. package/dist/roadtrip/svg/player-radio-music-outline.svg +1 -0
  385. package/dist/roadtrip/svg/station-electric-outline-color.svg +1 -0
  386. package/dist/roadtrip/svg/station-electric-outline.svg +1 -0
  387. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  388. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline.svg +1 -0
  389. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  390. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  391. package/dist/roadtrip/svg/{vehicle-car-bodyworkoutline-color.svg → vehicle-car-bodywork-outline-color.svg} +0 -0
  392. package/dist/types/components/accordion/accordion.d.ts +1 -1
  393. package/dist/types/components/autocomplete/autocomplete.d.ts +5 -0
  394. package/dist/types/components/button/button.d.ts +6 -2
  395. package/dist/types/components/card/card.d.ts +5 -0
  396. package/dist/types/components/carousel/carousel.d.ts +16 -16
  397. package/dist/types/components/checkbox/checkbox.d.ts +12 -3
  398. package/dist/types/components/chip/chip.d.ts +3 -3
  399. package/dist/types/components/collapse/collapse.d.ts +4 -4
  400. package/dist/types/components/counter/counter.d.ts +8 -4
  401. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  402. package/dist/types/components/duration/duration.d.ts +44 -0
  403. package/dist/types/components/img/img.d.ts +15 -3
  404. package/dist/types/components/input/input.d.ts +10 -0
  405. package/dist/types/components/navbar/navbar.d.ts +2 -0
  406. package/dist/types/components/navbar-item/navbar-item.d.ts +2 -0
  407. package/dist/types/components/plate-number/plate-number.d.ts +10 -0
  408. package/dist/types/components/radio/radio.d.ts +4 -0
  409. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  410. package/dist/types/components/range/range.d.ts +4 -0
  411. package/dist/types/components/select/select.d.ts +8 -0
  412. package/dist/types/components/select-filter/select-filter.d.ts +10 -0
  413. package/dist/types/components/switch/switch.d.ts +14 -5
  414. package/dist/types/components/tab-bar/tab-bar.d.ts +2 -0
  415. package/dist/types/components/tab-button/tab-button.d.ts +2 -0
  416. package/dist/types/components/tabs/tabs.d.ts +8 -0
  417. package/dist/types/components/textarea/textarea.d.ts +18 -8
  418. package/dist/types/components/toast/toast.d.ts +2 -2
  419. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  420. package/dist/types/components.d.ts +185 -109
  421. package/dist/types/stencil-public-runtime.d.ts +6 -4
  422. package/icons/icons.svg +1 -1
  423. package/icons/index.d.ts +20 -1
  424. package/icons/index.js +22 -3
  425. package/loader/cdn.js +3 -0
  426. package/loader/index.cjs.js +3 -0
  427. package/loader/index.d.ts +12 -0
  428. package/loader/index.es2017.js +3 -0
  429. package/loader/index.js +4 -0
  430. package/loader/package.json +10 -0
  431. package/package.json +10 -7
  432. package/dist/esm-es5/app-6a43d362.js +0 -1
  433. package/dist/roadtrip/p-0205d149.entry.js +0 -1
  434. package/dist/roadtrip/p-0245b436.system.entry.js +0 -1
  435. package/dist/roadtrip/p-06049c44.entry.js +0 -1
  436. package/dist/roadtrip/p-0de3a4c8.system.entry.js +0 -1
  437. package/dist/roadtrip/p-10cc8504.system.entry.js +0 -1
  438. package/dist/roadtrip/p-16bce6f9.system.entry.js +0 -1
  439. package/dist/roadtrip/p-2965ce57.entry.js +0 -1
  440. package/dist/roadtrip/p-36a7c233.system.js +0 -1
  441. package/dist/roadtrip/p-3c7147c6.system.entry.js +0 -1
  442. package/dist/roadtrip/p-3d2cf159.entry.js +0 -1
  443. package/dist/roadtrip/p-3e56faf1.entry.js +0 -1
  444. package/dist/roadtrip/p-404509c1.entry.js +0 -1
  445. package/dist/roadtrip/p-464814f7.system.entry.js +0 -1
  446. package/dist/roadtrip/p-48a0df03.system.entry.js +0 -1
  447. package/dist/roadtrip/p-55c19c46.system.entry.js +0 -1
  448. package/dist/roadtrip/p-57e9b50d.entry.js +0 -1
  449. package/dist/roadtrip/p-5cfcbccd.system.entry.js +0 -1
  450. package/dist/roadtrip/p-674922e2.system.entry.js +0 -1
  451. package/dist/roadtrip/p-694eee8e.system.entry.js +0 -1
  452. package/dist/roadtrip/p-70b2bc5a.entry.js +0 -1
  453. package/dist/roadtrip/p-70d0fb28.entry.js +0 -1
  454. package/dist/roadtrip/p-726b0209.system.entry.js +0 -1
  455. package/dist/roadtrip/p-78143a79.system.entry.js +0 -1
  456. package/dist/roadtrip/p-89fb8799.entry.js +0 -1
  457. package/dist/roadtrip/p-96f5d0f6.entry.js +0 -1
  458. package/dist/roadtrip/p-9846103f.entry.js +0 -1
  459. package/dist/roadtrip/p-9d3921a8.system.js +0 -1
  460. package/dist/roadtrip/p-9faa50e1.system.entry.js +0 -1
  461. package/dist/roadtrip/p-a082797b.entry.js +0 -1
  462. package/dist/roadtrip/p-a0cbd965.system.entry.js +0 -1
  463. package/dist/roadtrip/p-a6827ec2.entry.js +0 -1
  464. package/dist/roadtrip/p-aa63d5e9.system.entry.js +0 -1
  465. package/dist/roadtrip/p-acc76968.entry.js +0 -1
  466. package/dist/roadtrip/p-af6faf9b.system.entry.js +0 -1
  467. package/dist/roadtrip/p-b0c6bcbf.entry.js +0 -1
  468. package/dist/roadtrip/p-bf18c600.system.entry.js +0 -1
  469. package/dist/roadtrip/p-c6b70e6f.js +0 -1
  470. package/dist/roadtrip/p-c9b37cd7.entry.js +0 -1
  471. package/dist/roadtrip/p-cd0efcac.system.entry.js +0 -1
  472. package/dist/roadtrip/p-d11931f0.js +0 -1
  473. package/dist/roadtrip/p-d39f805b.entry.js +0 -1
  474. package/dist/roadtrip/p-dad9d770.entry.js +0 -1
  475. package/dist/roadtrip/p-dd6c27c5.entry.js +0 -1
  476. package/dist/roadtrip/p-ded9cf97.entry.js +0 -1
  477. package/dist/roadtrip/p-eadfbbbb.entry.js +0 -1
  478. package/dist/roadtrip/p-f7547337.entry.js +0 -1
  479. package/dist/roadtrip/p-f80248b1.entry.js +0 -1
  480. package/dist/roadtrip/p-fe45a922.entry.js +0 -1
  481. package/dist/roadtrip/p-ffacdd19.entry.js +0 -1
@@ -1,49 +1,93 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
4
 
3
5
  export default {
4
6
  title: 'Expand/Accordion',
5
7
  component: 'road-accordion',
6
- };
7
-
8
- export const Playground = (args) => html`
9
- <road-accordion
10
- is-open="${args['is-open']}"
11
- style="--icon-color: ${args['--icon-color']}"
12
- >
13
- <div slot="header">${args.header}</div>
14
- ${args['']}
15
- </road-accordion>
16
- `;
17
- Playground.args = {
18
- 'is-open': false,
19
- header: 'Accordion',
20
- '': 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.',
21
- };
22
- Playground.argTypes = {
23
- 'is-open': {
24
- control: 'boolean',
25
- },
26
- header: {
27
- control: 'text',
28
- },
29
- '': {
30
- control: 'text',
8
+ argTypes: {
9
+ 'is-open': {
10
+ control: 'boolean',
11
+ },
12
+ header: {
13
+ control: 'text',
14
+ },
15
+ ' ': {
16
+ control: 'text',
17
+ },
18
+ '--accordion-header-border': {
19
+ table: {
20
+ defaultValue: { summary: '1px' },
21
+ },
22
+ control: {
23
+ type: null,
24
+ },
25
+ },
26
+ '--content-margin': {
27
+ table: {
28
+ defaultValue: { summary: '0 1rem 1rem' },
29
+ },
30
+ control: {
31
+ type: null,
32
+ },
33
+ },
34
+ '--content-padding': {
35
+ table: {
36
+ defaultValue: { summary: '1rem 0.5rem 0' },
37
+ },
38
+ control: {
39
+ type: null,
40
+ },
41
+ },
42
+ '--header-padding': {
43
+ table: {
44
+ defaultValue: { summary: '1rem 0.5rem 1rem 1rem' },
45
+ },
46
+ control: {
47
+ type: null,
48
+ },
49
+ },
50
+ '--icon-color': {
51
+ table: {
52
+ defaultValue: { summary: 'var(--icon)' },
53
+ },
54
+ control: {
55
+ type: null,
56
+ },
57
+ },
58
+ '--max-height': {
59
+ table: {
60
+ defaultValue: { summary: '800px' },
61
+ },
62
+ control: {
63
+ type: null,
64
+ },
65
+ },
31
66
  },
32
- '--icon-color': {
33
- control: 'color',
67
+ args: {
68
+ 'is-open': null,
69
+ header: `Accordion`,
70
+ ' ': `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.`,
34
71
  },
35
72
  };
36
73
 
37
- export const Closed = () => html`
38
- <road-accordion>
39
- <div slot="header">Accordion link</div>
40
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.
74
+ const Template = (args) => html`
75
+ <road-accordion is-open="${ifDefined(args['is-open'])}">
76
+ <div slot="header">
77
+ ${unsafeHTML(args.header)}
78
+ </div>
79
+ ${unsafeHTML(args[' '])}
41
80
  </road-accordion>
42
81
  `;
43
82
 
44
- export const Open = () => html`
45
- <road-accordion is-open>
46
- <div slot="header">Accordion link</div>
47
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.
48
- </road-accordion>
49
- `;
83
+ export const Playground = Template.bind({});
84
+
85
+ export const Closed = Template.bind({});
86
+ Closed.args = {
87
+ 'is-open': false,
88
+ };
89
+
90
+ export const Open = Template.bind({});
91
+ Open.args = {
92
+ 'is-open': true,
93
+ };
@@ -1,60 +1,66 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
4
+ import { list } from '../../../.storybook/list';
2
5
 
3
6
  export default {
4
7
  title: 'Indicators/Alert',
5
8
  component: 'road-alert',
6
- };
7
-
8
- export const Playground = (args) => html`
9
- <road-alert color="${args.color}">
10
- <road-icon slot="icon" name="${args.icon}"></road-icon>
11
- ${args['']}
12
- </road-alert>
13
- `;
14
- Playground.args = {
15
- color: 'info',
16
- icon: 'alert-info',
17
- '': 'Information',
18
- };
19
- Playground.argTypes = {
20
- color: {
21
- options: ['info', 'success', 'warning', 'danger'],
22
- control: {
23
- type: 'radio',
9
+ argTypes: {
10
+ color: {
11
+ options: ['info', 'success', 'warning', 'danger'],
12
+ control: {
13
+ type: 'radio',
14
+ },
15
+ },
16
+ icon: {
17
+ options: list,
18
+ control: {
19
+ type: 'select',
20
+ },
21
+ },
22
+ ' ': {
23
+ control: 'text',
24
24
  },
25
25
  },
26
- icon: {
27
- control: 'text',
28
- },
29
- '': {
30
- control: 'text',
26
+ args: {
27
+ color: 'info',
28
+ icon: `alert-info`,
29
+ ' ': `Information`,
31
30
  },
32
31
  };
33
32
 
34
- export const Info = () => html`
35
- <road-alert>
36
- <road-icon slot="icon" name="alert-info"></road-icon>
37
- Information
33
+ const Template = (args) => html`
34
+ <road-alert color="${ifDefined(args.color)}">
35
+ <road-icon slot="icon" name="${ifDefined(args.icon)}"></road-icon>
36
+ ${unsafeHTML(args[' '])}
38
37
  </road-alert>
39
38
  `;
40
39
 
41
- export const Success = () => html`
42
- <road-alert color="success">
43
- <road-icon slot="icon" name="alert-success"></road-icon>
44
- Success
45
- </road-alert>
46
- `;
40
+ export const Playground = Template.bind({});
41
+ Playground.args = {
42
+ color: 'info',
43
+ icon: `alert-info`,
44
+ ' ': `Information`,
45
+ };
47
46
 
48
- export const Warning = () => html`
49
- <road-alert color="warning">
50
- <road-icon slot="icon" name="alert-warning"></road-icon>
51
- Warning
52
- </road-alert>
53
- `;
47
+ export const Success = Template.bind({});
48
+ Success.args = {
49
+ color: 'success',
50
+ icon: `alert-success`,
51
+ ' ': `Success`,
52
+ };
54
53
 
55
- export const Danger = () => html`
56
- <road-alert color="danger">
57
- <road-icon slot="icon" name="alert-danger"></road-icon>
58
- Danger
59
- </road-alert>
60
- `;
54
+ export const Warning = Template.bind({});
55
+ Warning.args = {
56
+ color: 'warning',
57
+ icon: `alert-warning`,
58
+ ' ': `Warning`,
59
+ };
60
+
61
+ export const Danger = Template.bind({});
62
+ Danger.args = {
63
+ color: 'danger',
64
+ icon: `alert-danger`,
65
+ ' ': `Danger`,
66
+ };
@@ -12,9 +12,13 @@ export class Autocomplete {
12
12
  this.onClick = (value, label) => {
13
13
  this.el.querySelector('road-input').value = value;
14
14
  this.visible = false;
15
+ this.roadselected.emit({
16
+ value: value.toString(),
17
+ label: label,
18
+ });
15
19
  this.roadSelected.emit({
16
20
  value: value.toString(),
17
- label: label
21
+ label: label,
18
22
  });
19
23
  };
20
24
  }
@@ -66,8 +70,8 @@ export class Autocomplete {
66
70
  "visible": {}
67
71
  }; }
68
72
  static get events() { return [{
69
- "method": "roadSelected",
70
- "name": "roadSelected",
73
+ "method": "roadselected",
74
+ "name": "roadselected",
71
75
  "bubbles": true,
72
76
  "cancelable": true,
73
77
  "composed": true,
@@ -80,6 +84,24 @@ export class Autocomplete {
80
84
  "resolved": "{ value: string | null | undefined; label: string; }",
81
85
  "references": {}
82
86
  }
87
+ }, {
88
+ "method": "roadSelected",
89
+ "name": "roadSelected",
90
+ "bubbles": true,
91
+ "cancelable": true,
92
+ "composed": true,
93
+ "docs": {
94
+ "tags": [{
95
+ "name": "internal",
96
+ "text": undefined
97
+ }],
98
+ "text": ""
99
+ },
100
+ "complexType": {
101
+ "original": "{\n value: string | undefined | null,\n label: string\n }",
102
+ "resolved": "{ value: string | null | undefined; label: string; }",
103
+ "references": {}
104
+ }
83
105
  }]; }
84
106
  static get elementRef() { return "el"; }
85
107
  static get listeners() { return [{
@@ -88,6 +110,12 @@ export class Autocomplete {
88
110
  "target": undefined,
89
111
  "capture": false,
90
112
  "passive": false
113
+ }, {
114
+ "name": "roadfocus",
115
+ "method": "handleFocus",
116
+ "target": undefined,
117
+ "capture": false,
118
+ "passive": false
91
119
  }, {
92
120
  "name": "click",
93
121
  "method": "onClickOutside",
@@ -1,16 +1,48 @@
1
1
  import { html } from 'lit-html';
2
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
3
 
3
4
  export default {
4
5
  title: 'Forms/Autocomplete',
5
6
  component: 'road-autocomplete',
6
7
  parameters: {
7
8
  actions: {
8
- handles: ['roadChange', 'roadBlur', 'roadFocus'],
9
+ handles: ['roadchange', 'roadblur', 'roadfocus'],
9
10
  },
10
11
  },
12
+ argTypes: {
13
+ ' ': {
14
+ control: 'text',
15
+ },
16
+ roadselected: {
17
+ action: 'roadselected',
18
+ control: {
19
+ type: null,
20
+ },
21
+ },
22
+ },
23
+ args: {
24
+ options: [
25
+ { value: 'value1', label: 'value1' },
26
+ { value: 'value2', label: 'value2' },
27
+ { value: 'value3', label: 'value3' }
28
+ ],
29
+ },
11
30
  };
12
31
 
13
- export const Playground = (args) => {
32
+ export const Playground = (args) => html`
33
+ <road-autocomplete .options=${args.options} @roadselected=${event => args.roadselected(event.detail)}>
34
+ ${unsafeHTML(args[' '])}
35
+ </road-autocomplete>
36
+ `;
37
+ Playground.args = {
38
+ ' ': `<road-input
39
+ class="mb-0"
40
+ input-id="country"
41
+ label="Country"
42
+ debounce="500"></road-input>`,
43
+ };
44
+
45
+ export const Example = (args) => {
14
46
  const getCountry = (event) => {
15
47
  fetch(`https://photon.komoot.io/api/?q=${event.detail.value}&osm_tag=place:country&limit=10&lang=en`)
16
48
  .then(res => res.json())
@@ -19,30 +51,28 @@ export const Playground = (args) => {
19
51
  document.querySelector('road-autocomplete').options = result.features.map(item => {
20
52
  return {
21
53
  value: item.properties.country,
22
- label:item.properties.country
54
+ label:item.properties.country,
23
55
  };
24
56
  });
25
- })
26
- }
57
+ });
58
+ };
27
59
 
28
60
  return html`
29
- <road-autocomplete @roadSelected=${event => args.roadSelected(event.detail)}>
30
- <road-input
31
- class="mb-0"
32
- input-id="country"
33
- label="Country"
34
- debounce="500"
35
- @roadChange=${event => getCountry(event)}
36
-
37
- ></road-input>
38
- </road-autocomplete>
39
-
40
- <!-- br are here only until we find how to add a margin only for Storybook docs block, do not copy them -->
41
- <br><br><br><br><br><br><br><br><br><br><br><br><br>
61
+ <road-autocomplete @roadselected=${event => args.roadselected(event.detail)}>
62
+ <road-input
63
+ class="mb-0"
64
+ input-id="country"
65
+ label="Country"
66
+ debounce="500"
67
+ @roadchange=${event => getCountry(event)}
68
+ ></road-input>
69
+ </road-autocomplete>
42
70
  `;
43
71
  };
44
- Playground.argTypes = {
45
- roadSelected: {
46
- action: 'roadSelected',
72
+ Example.parameters = {
73
+ docs: {
74
+ source: {
75
+ type: 'code',
76
+ },
47
77
  },
48
78
  };
@@ -1,11 +1,10 @@
1
- import { Component, Host, h } from '@stencil/core';
1
+ import { Component, h } from '@stencil/core';
2
2
  /**
3
3
  * @slot - Image of the avatar.
4
4
  */
5
5
  export class Avatar {
6
6
  render() {
7
- return (h(Host, null,
8
- h("slot", null)));
7
+ return (h("slot", null));
9
8
  }
10
9
  static get is() { return "road-avatar"; }
11
10
  static get encapsulation() { return "shadow"; }
@@ -1,25 +1,50 @@
1
1
  import { html } from 'lit-html';
2
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
3
 
3
4
  export default {
4
5
  title: 'Media/Avatar',
5
6
  component: 'road-avatar',
7
+ argTypes: {
8
+ ' ': {
9
+ control: 'text',
10
+ },
11
+ '--avatar-background': {
12
+ table: {
13
+ defaultValue: { summary: 'var(--background-second)' },
14
+ },
15
+ control: {
16
+ type: null,
17
+ },
18
+ },
19
+ '--avatar-width': {
20
+ table: {
21
+ defaultValue: { summary: '3rem' },
22
+ },
23
+ control: {
24
+ type: null,
25
+ },
26
+ },
27
+ },
28
+ args: {
29
+ ' ': `<road-img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar"></road-img>`,
30
+ },
6
31
  };
7
32
 
8
- export const Image = () => html`
9
- <road-avatar>
10
- <road-img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar"></road-img>
33
+ const Template = (args) => html`
34
+ <road-avatar>
35
+ ${unsafeHTML(args[' '])}
11
36
  </road-avatar>
12
37
  `;
13
38
 
14
- export const withNotification = () => html`
15
- <road-avatar>
16
- <road-img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar"></road-img>
17
- <road-badge>1</road-badge>
18
- </road-avatar>
19
- `;
39
+ export const Playground = Template.bind({});
20
40
 
21
- export const Icon = () => html`
22
- <road-avatar>
23
- <road-icon name="people-group"></road-icon>
24
- </road-avatar>
25
- `;
41
+ export const withNotification = Template.bind({});
42
+ withNotification.args = {
43
+ ' ': `<road-img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar"></road-img>
44
+ <road-badge>1</road-badge>`,
45
+ };
46
+
47
+ export const Icon = Template.bind({});
48
+ Icon.args = {
49
+ ' ': `<road-icon name="people-group"></road-icon>`,
50
+ };
@@ -1,52 +1,50 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
4
 
3
5
  export default {
4
6
  title: 'Indicators/Badge',
5
7
  component: 'road-badge',
6
- };
7
-
8
- export const Playground = (args) => html`
9
- <a class="text-content d-inline-flex">
10
- <road-icon name="alert-notification-outline"></road-icon>
11
- <sup>
12
- <road-badge color="${args.color}" bubble="${args.bubble}">${args['']}</road-badge>
13
- </sup>
14
- </a>
15
- `;
16
- Playground.args = {
17
- bubble: false,
18
- color: 'accent',
19
- '': '1',
20
- };
21
- Playground.argTypes = {
22
- color: {
23
- options: ['primary', 'secondary', 'accent', 'info', 'success', 'warning', 'danger'],
24
- control: {
25
- type: 'select',
8
+ argTypes: {
9
+ color: {
10
+ options: ['primary', 'secondary', 'accent', 'info', 'success', 'warning', 'danger'],
11
+ control: {
12
+ type: 'select',
13
+ },
14
+ },
15
+ bubble: {
16
+ control: 'boolean',
17
+ },
18
+ ' ': {
19
+ control: 'text',
26
20
  },
27
21
  },
28
- bubble: {
29
- control: 'boolean',
30
- },
31
- '': {
32
- control: 'number',
22
+ args: {
23
+ bubble: null,
24
+ ' ': `1`,
33
25
  },
34
26
  };
35
27
 
36
- export const Notification = () => html`
28
+ const Template = (args) => html`
37
29
  <a class="text-content d-inline-flex">
38
30
  <road-icon name="alert-notification-outline"></road-icon>
39
31
  <sup>
40
- <road-badge color="accent">1</road-badge>
32
+ <road-badge color="${ifDefined(args.color)}" bubble="${ifDefined(args.bubble)}">${unsafeHTML(args[' '])}</road-badge>
41
33
  </sup>
42
34
  </a>
43
35
  `;
44
36
 
45
- export const Bubble = () => html`
46
- <a class="text-content d-inline-flex">
47
- <road-icon name="people-outline"></road-icon>
48
- <sup class="badge-sup">
49
- <road-badge color="accent" bubble></road-badge>
50
- </sup>
51
- </a>
52
- `;
37
+ export const Playground = Template.bind({});
38
+
39
+ export const Notification = Template.bind({});
40
+ Notification.args = {
41
+ color: 'accent',
42
+ ' ': `10`,
43
+ };
44
+
45
+ export const Bubble = Template.bind({});
46
+ Bubble.args = {
47
+ color: 'accent',
48
+ bubble: true,
49
+ ' ': ``,
50
+ };
@@ -16,10 +16,10 @@
16
16
 
17
17
  /**
18
18
  * @prop --border-radius: Border radius of the button
19
+ * @prop --font-size: Font size of the text button
20
+ * @prop --margin-bottom: Bottom margin of the button
19
21
  * @prop --padding-start: Left padding of the button
20
22
  * @prop --padding-end: Right padding of the button
21
- * @prop --margin-bottom: Bottom margin of the button
22
- * @prop --font-size: Font size of the text button
23
23
  */
24
24
 
25
25
 
@@ -27,11 +27,11 @@
27
27
  -------------------- */
28
28
 
29
29
  :host {
30
- --margin-bottom: 1rem;
31
30
  --border-radius: 0.25rem;
31
+ --font-size: 1rem;
32
+ --margin-bottom: 1rem;
32
33
  --padding-start: 1rem;
33
34
  --padding-end: 1rem;
34
- --font-size: 1rem;
35
35
 
36
36
  box-sizing: border-box;
37
37
  display: inline-flex;