@roadtrip/components 2.24.0 → 2.26.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 (535) 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 +21 -9
  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-flap.cjs.entry.js +1 -1
  22. package/dist/cjs/road-img.cjs.entry.js +7 -1
  23. package/dist/cjs/road-input-group.cjs.entry.js +2 -2
  24. package/dist/cjs/road-input.cjs.entry.js +12 -3
  25. package/dist/cjs/road-modal.cjs.entry.js +1 -1
  26. package/dist/cjs/road-navbar-item.cjs.entry.js +7 -1
  27. package/dist/cjs/road-navbar.cjs.entry.js +5 -1
  28. package/dist/cjs/road-plate-number.cjs.entry.js +11 -3
  29. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  30. package/dist/cjs/road-radio-group.cjs.entry.js +3 -1
  31. package/dist/cjs/road-radio.cjs.entry.js +5 -1
  32. package/dist/cjs/road-range.cjs.entry.js +4 -2
  33. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  34. package/dist/cjs/road-select-filter.cjs.entry.js +1798 -3
  35. package/dist/cjs/road-select.cjs.entry.js +9 -1
  36. package/dist/cjs/road-skeleton.cjs.entry.js +2 -2
  37. package/dist/cjs/road-spinner.cjs.entry.js +2 -2
  38. package/dist/cjs/road-switch.cjs.entry.js +13 -4
  39. package/dist/cjs/road-tab-bar.cjs.entry.js +5 -1
  40. package/dist/cjs/road-tab-button.cjs.entry.js +7 -1
  41. package/dist/cjs/road-tab.cjs.entry.js +1 -1
  42. package/dist/cjs/road-table.cjs.entry.js +2 -2
  43. package/dist/cjs/road-tabs.cjs.entry.js +3 -1
  44. package/dist/cjs/road-text.cjs.entry.js +1 -1
  45. package/dist/cjs/road-textarea.cjs.entry.js +14 -6
  46. package/dist/cjs/road-toast.cjs.entry.js +3 -3
  47. package/dist/cjs/road-toolbar-title.cjs.entry.js +2 -2
  48. package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
  49. package/dist/cjs/roadtrip.cjs.js +5 -5
  50. package/dist/cjs/{shadow-css-7fb0b43f.js → shadow-css-432b27e3.js} +1 -1
  51. package/dist/cjs/{utils-ade59127.js → utils-90171b88.js} +1 -1
  52. package/dist/collection/collection-manifest.json +1 -1
  53. package/dist/collection/components/accordion/accordion.css +6 -6
  54. package/dist/collection/components/accordion/accordion.js +2 -2
  55. package/dist/collection/components/accordion/accordion.stories.js +81 -37
  56. package/dist/collection/components/alert/alert.stories.js +51 -45
  57. package/dist/collection/components/autocomplete/autocomplete.js +31 -3
  58. package/dist/collection/components/autocomplete/autocomplete.stories.js +51 -21
  59. package/dist/collection/components/avatar/avatar.js +2 -3
  60. package/dist/collection/components/avatar/avatar.stories.js +39 -14
  61. package/dist/collection/components/badge/badge.stories.js +33 -35
  62. package/dist/collection/components/button/button.css +5 -4
  63. package/dist/collection/components/button/button.js +57 -9
  64. package/dist/collection/components/button/button.stories.js +162 -71
  65. package/dist/collection/components/card/card.js +28 -6
  66. package/dist/collection/components/card/card.stories.js +1 -1
  67. package/dist/collection/components/carousel/carousel.css +2 -2
  68. package/dist/collection/components/carousel/carousel.js +48 -48
  69. package/dist/collection/components/carousel/carousel.stories.js +332 -88
  70. package/dist/collection/components/checkbox/checkbox.js +67 -7
  71. package/dist/collection/components/checkbox/checkbox.stories.js +89 -64
  72. package/dist/collection/components/chip/chip.js +6 -6
  73. package/dist/collection/components/chip/chip.stories.js +58 -82
  74. package/dist/collection/components/col/col.js +2 -3
  75. package/dist/collection/components/collapse/collapse.js +7 -7
  76. package/dist/collection/components/collapse/collapse.stories.js +141 -126
  77. package/dist/collection/components/counter/counter.js +50 -13
  78. package/dist/collection/components/counter/counter.stories.js +65 -31
  79. package/dist/collection/components/dialog/dialog.stories.js +81 -37
  80. package/dist/collection/components/drawer/drawer.dark.css +9 -3
  81. package/dist/collection/components/drawer/drawer.light.css +9 -3
  82. package/dist/collection/components/drawer/drawer.stories.js +194 -75
  83. package/dist/collection/components/dropdown/dropdown.js +2 -2
  84. package/dist/collection/components/dropdown/dropdown.stories.js +41 -20
  85. package/dist/collection/components/flap/flap.stories.js +35 -31
  86. package/dist/collection/components/grid/grid.js +2 -3
  87. package/dist/collection/components/grid/grid.stories.js +5 -5
  88. package/dist/collection/components/icon/icon.stories.js +88 -62
  89. package/dist/collection/components/icon/svg/app.svg +1 -1
  90. package/dist/collection/components/icon/svg/archive-outline-color.svg +1 -0
  91. package/dist/collection/components/icon/svg/archive-outline.svg +1 -0
  92. package/dist/collection/components/icon/svg/archive.svg +1 -0
  93. package/dist/collection/components/icon/svg/attachment.svg +1 -0
  94. package/dist/collection/components/icon/svg/brake-color.svg +1 -1
  95. package/dist/collection/components/icon/svg/check-list-color.svg +1 -0
  96. package/dist/collection/components/icon/svg/check-list.svg +1 -0
  97. package/dist/collection/components/icon/svg/data-bar-color.svg +1 -0
  98. package/dist/collection/components/icon/svg/data-bar.svg +1 -0
  99. package/dist/collection/components/icon/svg/fuse-color.svg +1 -0
  100. package/dist/collection/components/icon/svg/location-pin-all-outline-color.svg +1 -0
  101. package/dist/collection/components/icon/svg/location-pin-all-outline.svg +1 -0
  102. package/dist/collection/components/icon/svg/location-pin-all.svg +1 -1
  103. package/dist/collection/components/icon/svg/navigation-app.svg +1 -0
  104. package/dist/collection/components/icon/svg/secure-level-first-color.svg +1 -0
  105. package/dist/collection/components/icon/svg/secure-level-first.svg +1 -0
  106. package/dist/collection/components/icon/svg/secure-level-hours-color.svg +1 -0
  107. package/dist/collection/components/icon/svg/secure-level-hours.svg +1 -0
  108. package/dist/collection/components/icon/svg/secure-level-minute-color.svg +1 -0
  109. package/dist/collection/components/icon/svg/secure-level-minute.svg +1 -0
  110. package/dist/collection/components/icon/svg/secure-level-night-and-day-color.svg +1 -0
  111. package/dist/collection/components/icon/svg/secure-level-night-and-day.svg +1 -0
  112. package/dist/collection/components/icon/svg/secure-level-second-color.svg +1 -0
  113. package/dist/collection/components/icon/svg/secure-level-second.svg +1 -0
  114. package/dist/collection/components/icon/svg/secure-level-third-color.svg +1 -0
  115. package/dist/collection/components/icon/svg/secure-level-third.svg +1 -0
  116. package/dist/collection/components/icon/svg/star-half.svg +1 -0
  117. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  118. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline.svg +1 -0
  119. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  120. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  121. package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline-color.svg +1 -0
  122. package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline.svg +1 -0
  123. package/dist/collection/components/icon/svg/vehicle-car-bodywork.svg +1 -1
  124. package/dist/collection/components/icon/svg/vehicle-delevery-outline.svg +1 -0
  125. package/dist/collection/components/icon/svg/vehicle-delevery-van.svg +1 -1
  126. package/dist/collection/components/icon/svg/vehicle-delevery.svg +1 -1
  127. package/dist/collection/components/icon/svg/windscreen-wiper-color.svg +1 -1
  128. package/dist/collection/components/icon/svg/windscreen-wiper.svg +1 -1
  129. package/dist/collection/components/icon/svg/windscreen-wipers-color.svg +1 -1
  130. package/dist/collection/components/icon/svg/windscreen-wipers-left-color.svg +1 -1
  131. package/dist/collection/components/icon/svg/windscreen-wipers-left.svg +1 -1
  132. package/dist/collection/components/icon/svg/windscreen-wipers-right-color.svg +1 -1
  133. package/dist/collection/components/icon/svg/windscreen-wipers-right.svg +1 -1
  134. package/dist/collection/components/icon/svg/windscreen-wipers.svg +1 -1
  135. package/dist/collection/components/icon/svg/work-order-awaiting-approval-color.svg +1 -0
  136. package/dist/collection/components/icon/svg/work-order-awaiting-approval-outline.svg +1 -0
  137. package/dist/collection/components/icon/svg/work-order-awaiting-approval.svg +1 -0
  138. package/dist/collection/components/img/img.js +61 -4
  139. package/dist/collection/components/img/img.stories.js +1 -1
  140. package/dist/collection/components/input/input.css +4 -4
  141. package/dist/collection/components/input/input.js +89 -8
  142. package/dist/collection/components/input/input.stories.js +195 -129
  143. package/dist/collection/components/input-group/input-group.css +4 -3
  144. package/dist/collection/components/input-group/input-group.stories.js +44 -35
  145. package/dist/collection/components/item/item.css +2 -2
  146. package/dist/collection/components/item/item.stories.js +118 -24
  147. package/dist/collection/components/label/label.js +2 -3
  148. package/dist/collection/components/list/list.stories.js +48 -46
  149. package/dist/collection/components/modal/modal.stories.js +46 -30
  150. package/dist/collection/components/navbar/navbar.js +27 -0
  151. package/dist/collection/components/navbar/navbar.stories.js +41 -24
  152. package/dist/collection/components/navbar-item/navbar-item.js +30 -1
  153. package/dist/collection/components/plate-number/plate-number.js +99 -20
  154. package/dist/collection/components/plate-number/plate-number.stories.js +36 -17
  155. package/dist/collection/components/progress/progress.stories.js +3 -3
  156. package/dist/collection/components/radio/radio.js +47 -3
  157. package/dist/collection/components/radio/radio.stories.js +50 -33
  158. package/dist/collection/components/radio-group/radio-group.js +21 -2
  159. package/dist/collection/components/range/range.js +26 -8
  160. package/dist/collection/components/range/range.stories.js +40 -33
  161. package/dist/collection/components/rating/rating.stories.js +40 -31
  162. package/dist/collection/components/select/select.js +64 -5
  163. package/dist/collection/components/select/select.stories.js +82 -90
  164. package/dist/collection/components/select-filter/select-filter.js +69 -4
  165. package/dist/collection/components/select-filter/select-filter.stories.js +82 -106
  166. package/dist/collection/components/skeleton/skeleton.js +2 -3
  167. package/dist/collection/components/spinner/spinner.js +3 -4
  168. package/dist/collection/components/switch/switch.js +71 -11
  169. package/dist/collection/components/switch/switch.stories.js +96 -84
  170. package/dist/collection/components/tab-bar/tab-bar.js +21 -0
  171. package/dist/collection/components/tab-button/tab-button.js +30 -1
  172. package/dist/collection/components/table/table.js +2 -3
  173. package/dist/collection/components/table/table.stories.js +15 -6
  174. package/dist/collection/components/tabs/tabs.js +39 -3
  175. package/dist/collection/components/tabs/tabs.stories.js +107 -58
  176. package/dist/collection/components/text/text.stories.js +8 -4
  177. package/dist/collection/components/textarea/textarea.js +97 -17
  178. package/dist/collection/components/textarea/textarea.stories.js +135 -113
  179. package/dist/collection/components/toast/toast.js +4 -4
  180. package/dist/collection/components/toast/toast.stories.js +60 -46
  181. package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
  182. package/dist/collection/components/toolbar-title/toolbar-title.js +3 -4
  183. package/dist/collection/components/tooltip/tooltip.js +4 -4
  184. package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
  185. package/dist/esm/{app-6a43d362.js → app-a32f9d74.js} +1 -1
  186. package/dist/esm/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +1 -1
  187. package/dist/esm/{dom-c7604576.js → dom-ba83fb9d.js} +1 -1
  188. package/dist/esm/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  189. package/dist/esm/index.js +2 -2
  190. package/dist/esm/loader.js +5 -5
  191. package/dist/esm/road-accordion.entry.js +3 -3
  192. package/dist/esm/road-alert.entry.js +1 -1
  193. package/dist/esm/road-autocomplete.entry.js +7 -2
  194. package/dist/esm/road-avatar.entry.js +2 -2
  195. package/dist/esm/road-badge_11.entry.js +21 -9
  196. package/dist/esm/road-card.entry.js +9 -4
  197. package/dist/esm/road-carousel-item.entry.js +1 -1
  198. package/dist/esm/road-carousel.entry.js +33 -33
  199. package/dist/esm/road-checkbox.entry.js +11 -2
  200. package/dist/esm/road-chip.entry.js +4 -4
  201. package/dist/esm/road-collapse.entry.js +4 -4
  202. package/dist/esm/road-counter.entry.js +8 -4
  203. package/dist/esm/road-dialog.entry.js +1 -1
  204. package/dist/esm/road-dropdown.entry.js +2 -2
  205. package/dist/esm/road-flap.entry.js +1 -1
  206. package/dist/esm/road-img.entry.js +7 -1
  207. package/dist/esm/road-input-group.entry.js +2 -2
  208. package/dist/esm/road-input.entry.js +12 -3
  209. package/dist/esm/road-modal.entry.js +1 -1
  210. package/dist/esm/road-navbar-item.entry.js +7 -1
  211. package/dist/esm/road-navbar.entry.js +5 -1
  212. package/dist/esm/road-plate-number.entry.js +11 -3
  213. package/dist/esm/road-progress.entry.js +1 -1
  214. package/dist/esm/road-radio-group.entry.js +3 -1
  215. package/dist/esm/road-radio.entry.js +5 -1
  216. package/dist/esm/road-range.entry.js +4 -2
  217. package/dist/esm/road-rating.entry.js +1 -1
  218. package/dist/esm/road-select-filter.entry.js +1798 -3
  219. package/dist/esm/road-select.entry.js +9 -1
  220. package/dist/esm/road-skeleton.entry.js +2 -2
  221. package/dist/esm/road-spinner.entry.js +2 -2
  222. package/dist/esm/road-switch.entry.js +13 -4
  223. package/dist/esm/road-tab-bar.entry.js +5 -1
  224. package/dist/esm/road-tab-button.entry.js +7 -1
  225. package/dist/esm/road-tab.entry.js +1 -1
  226. package/dist/esm/road-table.entry.js +2 -2
  227. package/dist/esm/road-tabs.entry.js +3 -1
  228. package/dist/esm/road-text.entry.js +1 -1
  229. package/dist/esm/road-textarea.entry.js +14 -6
  230. package/dist/esm/road-toast.entry.js +3 -3
  231. package/dist/esm/road-toolbar-title.entry.js +2 -2
  232. package/dist/esm/road-tooltip.entry.js +3 -3
  233. package/dist/esm/roadtrip.js +5 -5
  234. package/dist/esm/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +1 -1
  235. package/dist/esm/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  236. package/dist/esm-es5/app-a32f9d74.js +1 -0
  237. package/dist/esm-es5/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +0 -0
  238. package/dist/esm-es5/{dom-c7604576.js → dom-ba83fb9d.js} +0 -0
  239. package/dist/esm-es5/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  240. package/dist/esm-es5/index.js +1 -1
  241. package/dist/esm-es5/loader.js +1 -1
  242. package/dist/esm-es5/road-accordion.entry.js +1 -1
  243. package/dist/esm-es5/road-alert.entry.js +1 -1
  244. package/dist/esm-es5/road-autocomplete.entry.js +1 -1
  245. package/dist/esm-es5/road-avatar.entry.js +1 -1
  246. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  247. package/dist/esm-es5/road-card.entry.js +1 -1
  248. package/dist/esm-es5/road-carousel-item.entry.js +1 -1
  249. package/dist/esm-es5/road-carousel.entry.js +1 -1
  250. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  251. package/dist/esm-es5/road-chip.entry.js +1 -1
  252. package/dist/esm-es5/road-collapse.entry.js +1 -1
  253. package/dist/esm-es5/road-counter.entry.js +1 -1
  254. package/dist/esm-es5/road-dialog.entry.js +1 -1
  255. package/dist/esm-es5/road-dropdown.entry.js +1 -1
  256. package/dist/esm-es5/road-flap.entry.js +1 -1
  257. package/dist/esm-es5/road-img.entry.js +1 -1
  258. package/dist/esm-es5/road-input-group.entry.js +1 -1
  259. package/dist/esm-es5/road-input.entry.js +1 -1
  260. package/dist/esm-es5/road-modal.entry.js +1 -1
  261. package/dist/esm-es5/road-navbar-item.entry.js +1 -1
  262. package/dist/esm-es5/road-navbar.entry.js +1 -1
  263. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  264. package/dist/esm-es5/road-progress.entry.js +1 -1
  265. package/dist/esm-es5/road-radio-group.entry.js +1 -1
  266. package/dist/esm-es5/road-radio.entry.js +1 -1
  267. package/dist/esm-es5/road-range.entry.js +1 -1
  268. package/dist/esm-es5/road-rating.entry.js +1 -1
  269. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  270. package/dist/esm-es5/road-select.entry.js +1 -1
  271. package/dist/esm-es5/road-skeleton.entry.js +1 -1
  272. package/dist/esm-es5/road-spinner.entry.js +1 -1
  273. package/dist/esm-es5/road-switch.entry.js +1 -1
  274. package/dist/esm-es5/road-tab-bar.entry.js +1 -1
  275. package/dist/esm-es5/road-tab-button.entry.js +1 -1
  276. package/dist/esm-es5/road-tab.entry.js +1 -1
  277. package/dist/esm-es5/road-table.entry.js +1 -1
  278. package/dist/esm-es5/road-tabs.entry.js +1 -1
  279. package/dist/esm-es5/road-text.entry.js +1 -1
  280. package/dist/esm-es5/road-textarea.entry.js +1 -1
  281. package/dist/esm-es5/road-toast.entry.js +1 -1
  282. package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
  283. package/dist/esm-es5/road-tooltip.entry.js +1 -1
  284. package/dist/esm-es5/roadtrip.js +1 -1
  285. package/dist/esm-es5/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +0 -0
  286. package/dist/esm-es5/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  287. package/dist/html.html-data.json +28 -21
  288. package/dist/icons/icons.svg +1 -1
  289. package/dist/icons/index.d.ts +35 -2
  290. package/dist/icons/index.js +49 -16
  291. package/dist/roadtrip/index.esm.js +1 -1
  292. package/dist/roadtrip/p-01cebe6a.entry.js +1 -0
  293. package/dist/roadtrip/p-04deac86.system.entry.js +1 -0
  294. package/dist/roadtrip/{p-05373846.system.js → p-05961c88.system.js} +1 -1
  295. package/dist/roadtrip/{p-2cf6206e.system.entry.js → p-06921946.system.entry.js} +1 -1
  296. package/dist/roadtrip/p-0ada8d41.entry.js +1 -0
  297. package/dist/roadtrip/{p-13b46f63.system.entry.js → p-0be273e0.system.entry.js} +1 -1
  298. package/dist/roadtrip/{p-cedaf396.system.entry.js → p-0cfc0efd.system.entry.js} +1 -1
  299. package/dist/roadtrip/{p-9bbeb646.entry.js → p-0e5cecff.entry.js} +1 -1
  300. package/dist/roadtrip/p-0e645dfb.system.entry.js +1 -0
  301. package/dist/roadtrip/p-0f532f30.system.entry.js +1 -0
  302. package/dist/roadtrip/p-102d3882.system.js +1 -0
  303. package/dist/roadtrip/{p-79a745a7.entry.js → p-1347a27e.entry.js} +1 -1
  304. package/dist/roadtrip/{p-f62ebe3f.system.entry.js → p-13c18cec.system.entry.js} +1 -1
  305. package/dist/roadtrip/p-1481edc3.entry.js +1 -0
  306. package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
  307. package/dist/roadtrip/p-20a7a848.system.entry.js +1 -0
  308. package/dist/roadtrip/{p-1d83535a.entry.js → p-24234448.entry.js} +1 -1
  309. package/dist/roadtrip/{p-45b87537.system.entry.js → p-26b3aa33.system.entry.js} +1 -1
  310. package/dist/roadtrip/{p-e5eda362.system.entry.js → p-2740d308.system.entry.js} +1 -1
  311. package/dist/roadtrip/p-287f1612.system.entry.js +1 -0
  312. package/dist/roadtrip/p-299ecdd3.entry.js +1 -0
  313. package/dist/roadtrip/{p-b1a05290.system.entry.js → p-2f2dc4a0.system.entry.js} +1 -1
  314. package/dist/roadtrip/{p-8cb74e64.js → p-33e38a04.js} +1 -1
  315. package/dist/roadtrip/p-354107fa.entry.js +1 -0
  316. package/dist/roadtrip/{p-c7895d95.system.js → p-3683fe49.system.js} +0 -0
  317. package/dist/roadtrip/p-3ee7ff2a.system.entry.js +1 -0
  318. package/dist/roadtrip/{p-388a7f61.system.entry.js → p-42ccd4a2.system.entry.js} +1 -1
  319. package/dist/roadtrip/{p-8374797d.entry.js → p-44576eac.entry.js} +1 -1
  320. package/dist/roadtrip/p-46c22946.js +1 -0
  321. package/dist/roadtrip/p-4742a822.system.entry.js +1 -0
  322. package/dist/roadtrip/p-5bcd3e1f.entry.js +1 -0
  323. package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
  324. package/dist/roadtrip/{p-9b04e0cb.system.entry.js → p-646e75cf.system.entry.js} +1 -1
  325. package/dist/roadtrip/p-6a123e72.system.entry.js +1 -0
  326. package/dist/roadtrip/p-6deb1943.system.entry.js +1 -0
  327. package/dist/roadtrip/p-6def92c3.entry.js +1 -0
  328. package/dist/roadtrip/p-6f248970.entry.js +1 -0
  329. package/dist/roadtrip/p-7070c8b5.system.entry.js +1 -0
  330. package/dist/roadtrip/p-7130ff47.entry.js +1 -0
  331. package/dist/roadtrip/{p-8649dccc.system.js → p-7154119b.system.js} +0 -0
  332. package/dist/roadtrip/p-7304b650.system.entry.js +1 -0
  333. package/dist/roadtrip/{p-a1f59f11.system.entry.js → p-74218654.system.entry.js} +1 -1
  334. package/dist/roadtrip/{p-085aad0a.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
  335. package/dist/roadtrip/{p-628f5836.system.entry.js → p-76885294.system.entry.js} +1 -1
  336. package/dist/roadtrip/p-7765931a.system.entry.js +1 -0
  337. package/dist/roadtrip/{p-923c9893.entry.js → p-78315356.entry.js} +1 -1
  338. package/dist/roadtrip/p-7b733694.js +1 -0
  339. package/dist/roadtrip/{p-ad3b839e.entry.js → p-7fe4f8f3.entry.js} +1 -1
  340. package/dist/roadtrip/{p-6688d8f8.system.entry.js → p-835d550a.system.entry.js} +1 -1
  341. package/dist/roadtrip/p-83f8960f.entry.js +1 -0
  342. package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
  343. package/dist/roadtrip/p-8e21df57.system.entry.js +1 -0
  344. package/dist/roadtrip/{p-356163fb.js → p-93dab753.js} +0 -0
  345. package/dist/roadtrip/{p-39dd9c7f.entry.js → p-9567d161.entry.js} +1 -1
  346. package/dist/roadtrip/{p-a671df87.entry.js → p-9a1a293c.entry.js} +1 -1
  347. package/dist/roadtrip/{p-ffd2a5c1.system.entry.js → p-9afcfc7c.system.entry.js} +1 -1
  348. package/dist/roadtrip/{p-be0b7289.entry.js → p-9dd72bfa.entry.js} +1 -1
  349. package/dist/roadtrip/p-a1168bd5.system.entry.js +1 -0
  350. package/dist/roadtrip/p-a61e04a1.entry.js +1 -0
  351. package/dist/roadtrip/p-a7ddae1b.system.entry.js +1 -0
  352. package/dist/roadtrip/{p-8fc0f477.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
  353. package/dist/roadtrip/{p-0626f8a2.system.entry.js → p-a8db6630.system.entry.js} +1 -1
  354. package/dist/roadtrip/{p-ad4a83f1.js → p-ac0761c3.js} +0 -0
  355. package/dist/roadtrip/{p-b862fe1a.system.js → p-ad92df4f.system.js} +1 -1
  356. package/dist/roadtrip/p-b0e17e68.entry.js +1 -0
  357. package/dist/roadtrip/{p-84578822.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
  358. package/dist/roadtrip/{p-17ed8237.entry.js → p-b0ed748a.entry.js} +1 -1
  359. package/dist/roadtrip/p-b205281e.system.js +1 -0
  360. package/dist/roadtrip/{p-b6ea7ba9.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
  361. package/dist/roadtrip/p-b6e60fca.system.entry.js +1 -0
  362. package/dist/roadtrip/p-bcf74e54.system.entry.js +1 -0
  363. package/dist/roadtrip/{p-d3e3af9e.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
  364. package/dist/roadtrip/p-bd4a114b.entry.js +1 -0
  365. package/dist/roadtrip/p-bebdee1e.entry.js +1 -0
  366. package/dist/roadtrip/{p-f907849c.system.entry.js → p-c0429d42.system.entry.js} +1 -1
  367. package/dist/roadtrip/p-c637a847.entry.js +1 -0
  368. package/dist/roadtrip/{p-f10872aa.entry.js → p-ced4c451.entry.js} +1 -1
  369. package/dist/roadtrip/{p-cb2bebde.entry.js → p-d06202e7.entry.js} +1 -1
  370. package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
  371. package/dist/roadtrip/{p-790067ad.system.entry.js → p-d861032d.system.entry.js} +1 -1
  372. package/dist/roadtrip/{p-f6d6d227.entry.js → p-dcfc236e.entry.js} +1 -1
  373. package/dist/roadtrip/p-e4f0f0d7.entry.js +1 -0
  374. package/dist/roadtrip/p-e5756d79.entry.js +1 -0
  375. package/dist/roadtrip/p-e6664bbe.entry.js +1 -0
  376. package/dist/roadtrip/p-e70b2a21.entry.js +1 -0
  377. package/dist/roadtrip/{p-2d8ba6be.entry.js → p-e9a6f1fb.entry.js} +1 -1
  378. package/dist/roadtrip/p-ea45d823.entry.js +1 -0
  379. package/dist/roadtrip/p-ed2dbf57.entry.js +1 -0
  380. package/dist/roadtrip/{p-72b3db6d.system.js → p-efa19d38.system.js} +0 -0
  381. package/dist/roadtrip/{p-9233dfbe.entry.js → p-f0ec3a64.entry.js} +1 -1
  382. package/dist/roadtrip/p-f20a3658.entry.js +1 -0
  383. package/dist/roadtrip/p-f22c63b7.entry.js +1 -0
  384. package/dist/roadtrip/p-f233746c.system.entry.js +1 -0
  385. package/dist/roadtrip/{p-2b0d3888.system.js → p-f33e4ac5.system.js} +1 -1
  386. package/dist/roadtrip/{p-41aa7a41.system.entry.js → p-f4f42d5c.system.entry.js} +1 -1
  387. package/dist/roadtrip/{p-112e8d3f.js → p-f6631560.js} +0 -0
  388. package/dist/roadtrip/p-fa68c113.entry.js +1 -0
  389. package/dist/roadtrip/p-fce355f6.entry.js +1 -0
  390. package/dist/roadtrip/roadtrip.esm.js +1 -1
  391. package/dist/roadtrip/roadtrip.js +1 -1
  392. package/dist/roadtrip/svg/app.svg +1 -1
  393. package/dist/roadtrip/svg/archive-outline-color.svg +1 -0
  394. package/dist/roadtrip/svg/archive-outline.svg +1 -0
  395. package/dist/roadtrip/svg/archive.svg +1 -0
  396. package/dist/roadtrip/svg/attachment.svg +1 -0
  397. package/dist/roadtrip/svg/brake-color.svg +1 -1
  398. package/dist/roadtrip/svg/check-list-color.svg +1 -0
  399. package/dist/roadtrip/svg/check-list.svg +1 -0
  400. package/dist/roadtrip/svg/data-bar-color.svg +1 -0
  401. package/dist/roadtrip/svg/data-bar.svg +1 -0
  402. package/dist/roadtrip/svg/fuse-color.svg +1 -0
  403. package/dist/roadtrip/svg/location-pin-all-outline-color.svg +1 -0
  404. package/dist/roadtrip/svg/location-pin-all-outline.svg +1 -0
  405. package/dist/roadtrip/svg/location-pin-all.svg +1 -1
  406. package/dist/roadtrip/svg/navigation-app.svg +1 -0
  407. package/dist/roadtrip/svg/secure-level-first-color.svg +1 -0
  408. package/dist/roadtrip/svg/secure-level-first.svg +1 -0
  409. package/dist/roadtrip/svg/secure-level-hours-color.svg +1 -0
  410. package/dist/roadtrip/svg/secure-level-hours.svg +1 -0
  411. package/dist/roadtrip/svg/secure-level-minute-color.svg +1 -0
  412. package/dist/roadtrip/svg/secure-level-minute.svg +1 -0
  413. package/dist/roadtrip/svg/secure-level-night-and-day-color.svg +1 -0
  414. package/dist/roadtrip/svg/secure-level-night-and-day.svg +1 -0
  415. package/dist/roadtrip/svg/secure-level-second-color.svg +1 -0
  416. package/dist/roadtrip/svg/secure-level-second.svg +1 -0
  417. package/dist/roadtrip/svg/secure-level-third-color.svg +1 -0
  418. package/dist/roadtrip/svg/secure-level-third.svg +1 -0
  419. package/dist/roadtrip/svg/star-half.svg +1 -0
  420. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  421. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline.svg +1 -0
  422. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  423. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  424. package/dist/roadtrip/svg/vehicle-car-bodywork-outline-color.svg +1 -0
  425. package/dist/roadtrip/svg/vehicle-car-bodywork-outline.svg +1 -0
  426. package/dist/roadtrip/svg/vehicle-car-bodywork.svg +1 -1
  427. package/dist/roadtrip/svg/vehicle-delevery-outline.svg +1 -0
  428. package/dist/roadtrip/svg/vehicle-delevery-van.svg +1 -1
  429. package/dist/roadtrip/svg/vehicle-delevery.svg +1 -1
  430. package/dist/roadtrip/svg/windscreen-wiper-color.svg +1 -1
  431. package/dist/roadtrip/svg/windscreen-wiper.svg +1 -1
  432. package/dist/roadtrip/svg/windscreen-wipers-color.svg +1 -1
  433. package/dist/roadtrip/svg/windscreen-wipers-left-color.svg +1 -1
  434. package/dist/roadtrip/svg/windscreen-wipers-left.svg +1 -1
  435. package/dist/roadtrip/svg/windscreen-wipers-right-color.svg +1 -1
  436. package/dist/roadtrip/svg/windscreen-wipers-right.svg +1 -1
  437. package/dist/roadtrip/svg/windscreen-wipers.svg +1 -1
  438. package/dist/roadtrip/svg/work-order-awaiting-approval-color.svg +1 -0
  439. package/dist/roadtrip/svg/work-order-awaiting-approval-outline.svg +1 -0
  440. package/dist/roadtrip/svg/work-order-awaiting-approval.svg +1 -0
  441. package/dist/types/components/accordion/accordion.d.ts +1 -1
  442. package/dist/types/components/autocomplete/autocomplete.d.ts +5 -0
  443. package/dist/types/components/button/button.d.ts +6 -2
  444. package/dist/types/components/card/card.d.ts +5 -0
  445. package/dist/types/components/carousel/carousel.d.ts +16 -16
  446. package/dist/types/components/checkbox/checkbox.d.ts +12 -3
  447. package/dist/types/components/chip/chip.d.ts +3 -3
  448. package/dist/types/components/collapse/collapse.d.ts +4 -4
  449. package/dist/types/components/counter/counter.d.ts +8 -4
  450. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  451. package/dist/types/components/img/img.d.ts +15 -3
  452. package/dist/types/components/input/input.d.ts +10 -0
  453. package/dist/types/components/navbar/navbar.d.ts +2 -0
  454. package/dist/types/components/navbar-item/navbar-item.d.ts +2 -0
  455. package/dist/types/components/plate-number/plate-number.d.ts +10 -0
  456. package/dist/types/components/radio/radio.d.ts +4 -0
  457. package/dist/types/components/radio-group/radio-group.d.ts +4 -0
  458. package/dist/types/components/range/range.d.ts +4 -0
  459. package/dist/types/components/select/select.d.ts +8 -0
  460. package/dist/types/components/select-filter/select-filter.d.ts +10 -0
  461. package/dist/types/components/switch/switch.d.ts +14 -5
  462. package/dist/types/components/tab-bar/tab-bar.d.ts +2 -0
  463. package/dist/types/components/tab-button/tab-button.d.ts +2 -0
  464. package/dist/types/components/tabs/tabs.d.ts +8 -0
  465. package/dist/types/components/textarea/textarea.d.ts +18 -8
  466. package/dist/types/components/toast/toast.d.ts +2 -2
  467. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  468. package/dist/types/components.d.ts +117 -109
  469. package/dist/types/stencil-public-runtime.d.ts +6 -4
  470. package/icons/icons.svg +1 -1
  471. package/icons/index.d.ts +35 -2
  472. package/icons/index.js +49 -16
  473. package/loader/cdn.js +3 -0
  474. package/loader/index.cjs.js +3 -0
  475. package/loader/index.d.ts +12 -0
  476. package/loader/index.es2017.js +3 -0
  477. package/loader/index.js +4 -0
  478. package/loader/package.json +10 -0
  479. package/package.json +10 -7
  480. package/dist/collection/components/icon/svg/vehicle-car-outline-side.svg +0 -1
  481. package/dist/collection/components/icon/svg/vehicle-delevery-privilege.svg +0 -1
  482. package/dist/esm-es5/app-6a43d362.js +0 -1
  483. package/dist/roadtrip/p-0205d149.entry.js +0 -1
  484. package/dist/roadtrip/p-0245b436.system.entry.js +0 -1
  485. package/dist/roadtrip/p-06049c44.entry.js +0 -1
  486. package/dist/roadtrip/p-0de3a4c8.system.entry.js +0 -1
  487. package/dist/roadtrip/p-10cc8504.system.entry.js +0 -1
  488. package/dist/roadtrip/p-16bce6f9.system.entry.js +0 -1
  489. package/dist/roadtrip/p-2965ce57.entry.js +0 -1
  490. package/dist/roadtrip/p-36a7c233.system.js +0 -1
  491. package/dist/roadtrip/p-3c7147c6.system.entry.js +0 -1
  492. package/dist/roadtrip/p-3d2cf159.entry.js +0 -1
  493. package/dist/roadtrip/p-3e56faf1.entry.js +0 -1
  494. package/dist/roadtrip/p-404509c1.entry.js +0 -1
  495. package/dist/roadtrip/p-443dae1f.system.entry.js +0 -1
  496. package/dist/roadtrip/p-464814f7.system.entry.js +0 -1
  497. package/dist/roadtrip/p-48a0df03.system.entry.js +0 -1
  498. package/dist/roadtrip/p-55c19c46.system.entry.js +0 -1
  499. package/dist/roadtrip/p-57e9b50d.entry.js +0 -1
  500. package/dist/roadtrip/p-5cfcbccd.system.entry.js +0 -1
  501. package/dist/roadtrip/p-5f62ac72.system.entry.js +0 -1
  502. package/dist/roadtrip/p-674922e2.system.entry.js +0 -1
  503. package/dist/roadtrip/p-694eee8e.system.entry.js +0 -1
  504. package/dist/roadtrip/p-70d0fb28.entry.js +0 -1
  505. package/dist/roadtrip/p-726b0209.system.entry.js +0 -1
  506. package/dist/roadtrip/p-78143a79.system.entry.js +0 -1
  507. package/dist/roadtrip/p-89fb8799.entry.js +0 -1
  508. package/dist/roadtrip/p-96f5d0f6.entry.js +0 -1
  509. package/dist/roadtrip/p-9846103f.entry.js +0 -1
  510. package/dist/roadtrip/p-9d3921a8.system.js +0 -1
  511. package/dist/roadtrip/p-a082797b.entry.js +0 -1
  512. package/dist/roadtrip/p-a0cbd965.system.entry.js +0 -1
  513. package/dist/roadtrip/p-a6827ec2.entry.js +0 -1
  514. package/dist/roadtrip/p-aa63d5e9.system.entry.js +0 -1
  515. package/dist/roadtrip/p-acc76968.entry.js +0 -1
  516. package/dist/roadtrip/p-af6faf9b.system.entry.js +0 -1
  517. package/dist/roadtrip/p-b0c6bcbf.entry.js +0 -1
  518. package/dist/roadtrip/p-bf18c600.system.entry.js +0 -1
  519. package/dist/roadtrip/p-c6b70e6f.js +0 -1
  520. package/dist/roadtrip/p-c9b37cd7.entry.js +0 -1
  521. package/dist/roadtrip/p-cd0efcac.system.entry.js +0 -1
  522. package/dist/roadtrip/p-d11931f0.js +0 -1
  523. package/dist/roadtrip/p-d39f805b.entry.js +0 -1
  524. package/dist/roadtrip/p-d3f0016e.entry.js +0 -1
  525. package/dist/roadtrip/p-dad9d770.entry.js +0 -1
  526. package/dist/roadtrip/p-dd6c27c5.entry.js +0 -1
  527. package/dist/roadtrip/p-ded9cf97.entry.js +0 -1
  528. package/dist/roadtrip/p-eadfbbbb.entry.js +0 -1
  529. package/dist/roadtrip/p-f7547337.entry.js +0 -1
  530. package/dist/roadtrip/p-f80248b1.entry.js +0 -1
  531. package/dist/roadtrip/p-fa509d52.entry.js +0 -1
  532. package/dist/roadtrip/p-fe45a922.entry.js +0 -1
  533. package/dist/roadtrip/p-ffacdd19.entry.js +0 -1
  534. package/dist/roadtrip/svg/vehicle-car-outline-side.svg +0 -1
  535. package/dist/roadtrip/svg/vehicle-delevery-privilege.svg +0 -1
@@ -33,6 +33,11 @@ export class TabButton {
33
33
  }
34
34
  selectTab(ev) {
35
35
  if (this.tab !== undefined) {
36
+ this.roadtabbuttonclick.emit({
37
+ tab: this.tab,
38
+ href: this.href,
39
+ selected: this.selected,
40
+ });
36
41
  this.roadTabButtonClick.emit({
37
42
  tab: this.tab,
38
43
  href: this.href,
@@ -206,6 +211,24 @@ export class TabButton {
206
211
  }
207
212
  }; }
208
213
  static get events() { return [{
214
+ "method": "roadtabbuttonclick",
215
+ "name": "roadtabbuttonclick",
216
+ "bubbles": true,
217
+ "cancelable": true,
218
+ "composed": true,
219
+ "docs": {
220
+ "tags": [{
221
+ "name": "internal",
222
+ "text": undefined
223
+ }],
224
+ "text": "Emitted when the tab bar is clicked"
225
+ },
226
+ "complexType": {
227
+ "original": "any",
228
+ "resolved": "any",
229
+ "references": {}
230
+ }
231
+ }, {
209
232
  "method": "roadTabButtonClick",
210
233
  "name": "roadTabButtonClick",
211
234
  "bubbles": true,
@@ -216,7 +239,7 @@ export class TabButton {
216
239
  "name": "internal",
217
240
  "text": undefined
218
241
  }],
219
- "text": "Emitted when the tab bar is clicked"
242
+ "text": ""
220
243
  },
221
244
  "complexType": {
222
245
  "original": "any",
@@ -231,5 +254,11 @@ export class TabButton {
231
254
  "target": "window",
232
255
  "capture": false,
233
256
  "passive": false
257
+ }, {
258
+ "name": "roadTabbarchanged",
259
+ "method": "onTabBarChanged",
260
+ "target": "window",
261
+ "capture": false,
262
+ "passive": false
234
263
  }]; }
235
264
  }
@@ -1,11 +1,10 @@
1
- import { Component, Host, h } from '@stencil/core';
1
+ import { Component, h } from '@stencil/core';
2
2
  /**
3
3
  * @slot - Content of table, it should be an html table (https://developer.mozilla.org/fr/docs/Web/HTML/Element/table).
4
4
  */
5
5
  export class Table {
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-table"; }
11
10
  static get encapsulation() { return "scoped"; }
@@ -1,13 +1,16 @@
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: 'Layout/Table',
5
6
  component: 'road-table',
6
- };
7
-
8
- export const Default = () => html`
9
- <road-table>
10
- <table class="table">
7
+ argTypes: {
8
+ ' ': {
9
+ control: 'text',
10
+ },
11
+ },
12
+ args: {
13
+ ' ': `<table class="table">
11
14
  <thead>
12
15
  <tr>
13
16
  <th scope="col">Title</th>
@@ -37,6 +40,12 @@ export const Default = () => html`
37
40
  <td>Cell</td>
38
41
  </tr>
39
42
  </tbody>
40
- </table>
43
+ </table>`,
44
+ },
45
+ };
46
+
47
+ export const Playground = (args) => html`
48
+ <road-table>
49
+ ${unsafeHTML(args[' '])}
41
50
  </road-table>
42
51
  `;
@@ -103,14 +103,47 @@ export class Tabs {
103
103
  "selectedTab": {}
104
104
  }; }
105
105
  static get events() { return [{
106
+ "method": "roadtabswillchange",
107
+ "name": "roadtabswillchange",
108
+ "bubbles": false,
109
+ "cancelable": true,
110
+ "composed": true,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Emitted when the navigation is about to transition to a new component."
114
+ },
115
+ "complexType": {
116
+ "original": "{tab: string}",
117
+ "resolved": "{ tab: string; }",
118
+ "references": {}
119
+ }
120
+ }, {
106
121
  "method": "roadTabsWillChange",
107
122
  "name": "roadTabsWillChange",
108
123
  "bubbles": false,
109
124
  "cancelable": true,
110
125
  "composed": true,
126
+ "docs": {
127
+ "tags": [{
128
+ "name": "internal",
129
+ "text": undefined
130
+ }],
131
+ "text": ""
132
+ },
133
+ "complexType": {
134
+ "original": "{tab: string}",
135
+ "resolved": "{ tab: string; }",
136
+ "references": {}
137
+ }
138
+ }, {
139
+ "method": "roadtabsdidchange",
140
+ "name": "roadtabsdidchange",
141
+ "bubbles": false,
142
+ "cancelable": true,
143
+ "composed": true,
111
144
  "docs": {
112
145
  "tags": [],
113
- "text": "Emitted when the navigation is about to transition to a new component."
146
+ "text": "Emitted when the navigation has finished transitioning to a new component."
114
147
  },
115
148
  "complexType": {
116
149
  "original": "{tab: string}",
@@ -124,8 +157,11 @@ export class Tabs {
124
157
  "cancelable": true,
125
158
  "composed": true,
126
159
  "docs": {
127
- "tags": [],
128
- "text": "Emitted when the navigation has finished transitioning to a new component."
160
+ "tags": [{
161
+ "name": "internal",
162
+ "text": undefined
163
+ }],
164
+ "text": ""
129
165
  },
130
166
  "complexType": {
131
167
  "original": "{tab: string}",
@@ -1,27 +1,88 @@
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: 'Navigation/Tabs',
5
6
  component: 'road-tabs',
6
7
  subcomponents: {
7
- RoadTabBar: 'road-tab-bar',
8
- RoadTabButton: 'road-tab-button',
9
- RoadTab: 'road-tab',
8
+ 'road-tab-bar': 'road-tab-bar',
9
+ 'road-tab-button': 'road-tab-button',
10
+ 'road-tab': 'road-tab',
10
11
  },
11
12
  parameters: {
12
13
  actions: {
13
- handles: ['roadTabButtonClick'],
14
+ handles: ['roadtabbuttonclick'],
14
15
  },
15
16
  backgrounds: {
16
17
  default: 'grey',
17
18
  },
18
- layout: 'fullscreen',
19
+ },
20
+ argTypes: {
21
+ top: {
22
+ control: 'text',
23
+ },
24
+ ' ': {
25
+ control: 'text',
26
+ },
27
+ roadtabsdidchange: {
28
+ control: {
29
+ type: null,
30
+ },
31
+ },
32
+ roadtabswillchange: {
33
+ control: {
34
+ type: null,
35
+ },
36
+ },
37
+ getSelected : {
38
+ description: 'Get the currently selected tab.',
39
+ table: {
40
+ category: 'methods',
41
+ type: {
42
+ summary: 'getSelected() => Promise<string | undefined>',
43
+ },
44
+ },
45
+ defaultValue: {
46
+ summary: null,
47
+ },
48
+ },
49
+ getTab : {
50
+ description: 'Get a specific tab by the value of its `tab` property or an element reference.',
51
+ table: {
52
+ category: 'methods',
53
+ type: {
54
+ summary: 'getTab(tab: string | HTMLRoadTabElement) => Promise<HTMLRoadTabElement | undefined>',
55
+ },
56
+ },
57
+ defaultValue: {
58
+ summary: null,
59
+ },
60
+ },
61
+ select : {
62
+ description: 'Select a tab by the value of its `tab` property or an element reference.',
63
+ table: {
64
+ category: 'methods',
65
+ type: {
66
+ summary: 'select(tab: string | HTMLRoadTabElement) => Promise<boolean>',
67
+ },
68
+ },
69
+ defaultValue: {
70
+ summary: null,
71
+ },
72
+ },
19
73
  },
20
74
  };
21
75
 
22
- export const Default = () => html`
76
+ const Template = (args) => html`
23
77
  <road-tabs>
24
- <road-tab-bar slot="top" selected-tab="tab-description">
78
+ ${unsafeHTML(args.top)}
79
+ ${unsafeHTML(args[' '])}
80
+ </road-tabs>
81
+ `;
82
+
83
+ export const Playground = Template.bind({});
84
+ Playground.args = {
85
+ top: `<road-tab-bar slot="top" selected-tab="tab-description">
25
86
  <road-tab-button tab="tab-description">
26
87
  <road-label>Description</road-label>
27
88
  </road-tab-button>
@@ -29,21 +90,19 @@ export const Default = () => html`
29
90
  <road-tab-button tab="tab-services">
30
91
  <road-label>Service</road-label>
31
92
  </road-tab-button>
32
- </road-tab-bar>
33
-
34
- <road-tab tab="tab-description">
93
+ </road-tab-bar>`,
94
+ ' ': `<road-tab tab="tab-description">
35
95
  Description
36
96
  </road-tab>
37
97
 
38
98
  <road-tab tab="tab-services">
39
99
  Services
40
- </road-tab>
41
- </road-tabs>
42
- `;
100
+ </road-tab>`,
101
+ };
43
102
 
44
- export const Scrollable = () => html`
45
- <road-tabs>
46
- <road-tab-bar slot="top" selected-tab="tab-description">
103
+ export const Scrollable = Template.bind({});
104
+ Scrollable.args = {
105
+ top: `<road-tab-bar slot="top" selected-tab="tab-description">
47
106
  <road-tab-button tab="tab-description">
48
107
  <road-label>Description</road-label>
49
108
  </road-tab-button>
@@ -59,9 +118,8 @@ export const Scrollable = () => html`
59
118
  <road-tab-button tab="tab-reviews">
60
119
  <road-label>Reviews</road-label>
61
120
  </road-tab-button>
62
- </road-tab-bar>
63
-
64
- <road-tab tab="tab-description">
121
+ </road-tab-bar>`,
122
+ ' ': `<road-tab tab="tab-description">
65
123
  Description
66
124
  </road-tab>
67
125
 
@@ -75,13 +133,12 @@ export const Scrollable = () => html`
75
133
 
76
134
  <road-tab tab="tab-reviews">
77
135
  Reviews
78
- </road-tab>
79
- </road-tabs>
80
- `;
136
+ </road-tab>`,
137
+ };
81
138
 
82
- export const Center = () => html`
83
- <road-tabs>
84
- <road-tab-bar slot="top" center>
139
+ export const Center = Template.bind({});
140
+ Center.args = {
141
+ top: `<road-tab-bar slot="top" center="true">
85
142
  <road-tab-button tab="tab-list">
86
143
  <road-label>List</road-label>
87
144
  </road-tab-button>
@@ -89,21 +146,19 @@ export const Center = () => html`
89
146
  <road-tab-button tab="tab-map">
90
147
  <road-label>Map</road-label>
91
148
  </road-tab-button>
92
- </road-tab-bar>
93
-
94
- <road-tab tab="tab-list">
149
+ </road-tab-bar>`,
150
+ ' ': `<road-tab tab="tab-list">
95
151
  List
96
152
  </road-tab>
97
153
 
98
154
  <road-tab tab="tab-map">
99
155
  Map
100
- </road-tab>
101
- </road-tabs>
102
- `;
156
+ </road-tab>`,
157
+ };
103
158
 
104
- export const Expand = () => html`
105
- <road-tabs>
106
- <road-tab-bar slot="top" expand>
159
+ export const Expand = Template.bind({});
160
+ Expand.args = {
161
+ top: `<road-tab-bar slot="top" expand="true">
107
162
  <road-tab-button tab="tab-list">
108
163
  <road-label>List</road-label>
109
164
  </road-tab-button>
@@ -111,21 +166,19 @@ export const Expand = () => html`
111
166
  <road-tab-button tab="tab-map">
112
167
  <road-label>Map</road-label>
113
168
  </road-tab-button>
114
- </road-tab-bar>
115
-
116
- <road-tab tab="tab-list">
169
+ </road-tab-bar>`,
170
+ ' ': `<road-tab tab="tab-list">
117
171
  List
118
172
  </road-tab>
119
173
 
120
174
  <road-tab tab="tab-map">
121
175
  Map
122
- </road-tab>
123
- </road-tabs>
124
- `;
176
+ </road-tab>`,
177
+ };
125
178
 
126
- export const LeadingIcon = () => html`
127
- <road-tabs>
128
- <road-tab-bar slot="top" expand>
179
+ export const LeadingIcon = Template.bind({});
180
+ LeadingIcon.args = {
181
+ top: `<road-tab-bar slot="top" expand="true">
129
182
  <road-tab-button tab="tab-list">
130
183
  <road-icon name="garage"></road-icon>
131
184
  <road-label>List</road-label>
@@ -135,21 +188,19 @@ export const LeadingIcon = () => html`
135
188
  <road-icon name="location-pin-all"></road-icon>
136
189
  <road-label>Map</road-label>
137
190
  </road-tab-button>
138
- </road-tab-bar>
139
-
140
- <road-tab tab="tab-list">
191
+ </road-tab-bar>`,
192
+ ' ': `<road-tab tab="tab-list">
141
193
  List
142
194
  </road-tab>
143
195
 
144
196
  <road-tab tab="tab-map">
145
197
  Map
146
- </road-tab>
147
- </road-tabs>
148
- `;
198
+ </road-tab>`,
199
+ };
149
200
 
150
- export const TopIcon = () => html`
151
- <road-tabs>
152
- <road-tab-bar slot="top" expand>
201
+ export const TopIcon = Template.bind({});
202
+ TopIcon.args = {
203
+ top: `<road-tab-bar slot="top" expand="true">
153
204
  <road-tab-button tab="tab-shops" layout="icon-top">
154
205
  <road-icon name="shop"></road-icon>
155
206
  <road-label>Shops</road-label>
@@ -164,9 +215,8 @@ export const TopIcon = () => html`
164
215
  <road-icon name="factory"></road-icon>
165
216
  <road-label>Factories</road-label>
166
217
  </road-tab-button>
167
- </road-tab-bar>
168
-
169
- <road-tab tab="tab-shops">
218
+ </road-tab-bar>`,
219
+ ' ': `<road-tab tab="tab-shops">
170
220
  Shops
171
221
  </road-tab>
172
222
 
@@ -176,6 +226,5 @@ export const TopIcon = () => html`
176
226
 
177
227
  <road-tab tab="tab-factories">
178
228
  Factories
179
- </road-tab>
180
- </road-tabs>
181
- `;
229
+ </road-tab>`,
230
+ };
@@ -5,13 +5,14 @@ export default {
5
5
  component: 'road-text',
6
6
  };
7
7
 
8
- export const Playground = ({color}) => html`
9
- <road-text color="${color}">
10
- Text
11
- </road-text>
8
+ export const Playground = (args) => html`
9
+ <road-text color="${args.color}">
10
+ ${args[' ']}
11
+ </road-text>
12
12
  `;
13
13
  Playground.args = {
14
14
  color: 'info',
15
+ ' ': 'Text',
15
16
  };
16
17
  Playground.argTypes = {
17
18
  color: {
@@ -20,4 +21,7 @@ Playground.argTypes = {
20
21
  type: 'radio',
21
22
  },
22
23
  },
24
+ ' ': {
25
+ control: 'text',
26
+ },
23
27
  };
@@ -2,7 +2,7 @@ import { Component, Event, Host, Prop, Watch, h } from '@stencil/core';
2
2
  export class Textarea {
3
3
  constructor() {
4
4
  /**
5
- * The id of input
5
+ * The id of textarea
6
6
  */
7
7
  this.textareaId = `road-textarea-${textareaIds++}`;
8
8
  /**
@@ -10,11 +10,11 @@ export class Textarea {
10
10
  */
11
11
  this.autocapitalize = 'none';
12
12
  /**
13
- * This Boolean attribute lets you specify that a form control should have input focus when the page loads.
13
+ * This Boolean attribute lets you specify that a form control should have focus when the page loads.
14
14
  */
15
15
  this.autofocus = false;
16
16
  /**
17
- * If `true`, the user cannot interact with the input.
17
+ * If `true`, the user cannot interact with the textarea.
18
18
  */
19
19
  this.disabled = false;
20
20
  /**
@@ -34,7 +34,7 @@ export class Textarea {
34
34
  */
35
35
  this.spellcheck = false;
36
36
  /**
37
- * The value of the input.
37
+ * The value of the textarea.
38
38
  */
39
39
  this.value = '';
40
40
  /**
@@ -46,19 +46,23 @@ export class Textarea {
46
46
  if (input) {
47
47
  this.value = input.value || '';
48
48
  }
49
+ this.roadinput.emit(ev);
49
50
  this.roadInput.emit(ev);
50
51
  };
51
52
  this.onBlur = () => {
53
+ this.roadblur.emit();
52
54
  this.roadBlur.emit();
53
55
  };
54
56
  this.onFocus = () => {
57
+ this.roadfocus.emit();
55
58
  this.roadFocus.emit();
56
59
  };
57
60
  }
58
61
  /**
59
- * Update the native input element when the value changes
62
+ * Update the native textarea element when the value changes
60
63
  */
61
64
  valueChanged() {
65
+ this.roadchange.emit({ value: this.value });
62
66
  this.roadChange.emit({ value: this.value });
63
67
  }
64
68
  getValue() {
@@ -95,7 +99,7 @@ export class Textarea {
95
99
  "optional": false,
96
100
  "docs": {
97
101
  "tags": [],
98
- "text": "The id of input"
102
+ "text": "The id of textarea"
99
103
  },
100
104
  "attribute": "textarea-id",
101
105
  "reflect": false,
@@ -131,7 +135,7 @@ export class Textarea {
131
135
  "optional": false,
132
136
  "docs": {
133
137
  "tags": [],
134
- "text": "This Boolean attribute lets you specify that a form control should have input focus when the page loads."
138
+ "text": "This Boolean attribute lets you specify that a form control should have focus when the page loads."
135
139
  },
136
140
  "attribute": "autofocus",
137
141
  "reflect": false,
@@ -149,7 +153,7 @@ export class Textarea {
149
153
  "optional": false,
150
154
  "docs": {
151
155
  "tags": [],
152
- "text": "If `true`, the user cannot interact with the input."
156
+ "text": "If `true`, the user cannot interact with the textarea."
153
157
  },
154
158
  "attribute": "disabled",
155
159
  "reflect": false,
@@ -253,7 +257,7 @@ export class Textarea {
253
257
  "optional": true,
254
258
  "docs": {
255
259
  "tags": [],
256
- "text": "Instructional text that shows before the input has a value."
260
+ "text": "Instructional text that shows before the textarea has a value."
257
261
  },
258
262
  "attribute": "placeholder",
259
263
  "reflect": false
@@ -375,7 +379,7 @@ export class Textarea {
375
379
  "optional": true,
376
380
  "docs": {
377
381
  "tags": [],
378
- "text": "The value of the input."
382
+ "text": "The value of the textarea."
379
383
  },
380
384
  "attribute": "value",
381
385
  "reflect": false,
@@ -418,8 +422,8 @@ export class Textarea {
418
422
  }
419
423
  }; }
420
424
  static get events() { return [{
421
- "method": "roadInput",
422
- "name": "roadInput",
425
+ "method": "roadinput",
426
+ "name": "roadinput",
423
427
  "bubbles": true,
424
428
  "cancelable": true,
425
429
  "composed": true,
@@ -437,8 +441,30 @@ export class Textarea {
437
441
  }
438
442
  }
439
443
  }, {
440
- "method": "roadChange",
441
- "name": "roadChange",
444
+ "method": "roadInput",
445
+ "name": "roadInput",
446
+ "bubbles": true,
447
+ "cancelable": true,
448
+ "composed": true,
449
+ "docs": {
450
+ "tags": [{
451
+ "name": "internal",
452
+ "text": undefined
453
+ }],
454
+ "text": ""
455
+ },
456
+ "complexType": {
457
+ "original": "KeyboardEvent",
458
+ "resolved": "KeyboardEvent",
459
+ "references": {
460
+ "KeyboardEvent": {
461
+ "location": "global"
462
+ }
463
+ }
464
+ }
465
+ }, {
466
+ "method": "roadchange",
467
+ "name": "roadchange",
442
468
  "bubbles": true,
443
469
  "cancelable": true,
444
470
  "composed": true,
@@ -451,15 +477,66 @@ export class Textarea {
451
477
  "resolved": "{ value: string | null | undefined; }",
452
478
  "references": {}
453
479
  }
480
+ }, {
481
+ "method": "roadChange",
482
+ "name": "roadChange",
483
+ "bubbles": true,
484
+ "cancelable": true,
485
+ "composed": true,
486
+ "docs": {
487
+ "tags": [{
488
+ "name": "internal",
489
+ "text": undefined
490
+ }],
491
+ "text": ""
492
+ },
493
+ "complexType": {
494
+ "original": "{\n value: string | undefined | null\n }",
495
+ "resolved": "{ value: string | null | undefined; }",
496
+ "references": {}
497
+ }
498
+ }, {
499
+ "method": "roadblur",
500
+ "name": "roadblur",
501
+ "bubbles": true,
502
+ "cancelable": true,
503
+ "composed": true,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": "Emitted when the textarea loses focus."
507
+ },
508
+ "complexType": {
509
+ "original": "void",
510
+ "resolved": "void",
511
+ "references": {}
512
+ }
454
513
  }, {
455
514
  "method": "roadBlur",
456
515
  "name": "roadBlur",
457
516
  "bubbles": true,
458
517
  "cancelable": true,
459
518
  "composed": true,
519
+ "docs": {
520
+ "tags": [{
521
+ "name": "internal",
522
+ "text": undefined
523
+ }],
524
+ "text": ""
525
+ },
526
+ "complexType": {
527
+ "original": "void",
528
+ "resolved": "void",
529
+ "references": {}
530
+ }
531
+ }, {
532
+ "method": "roadfocus",
533
+ "name": "roadfocus",
534
+ "bubbles": true,
535
+ "cancelable": true,
536
+ "composed": true,
460
537
  "docs": {
461
538
  "tags": [],
462
- "text": "Emitted when the input loses focus."
539
+ "text": "Emitted when the textarea has focus."
463
540
  },
464
541
  "complexType": {
465
542
  "original": "void",
@@ -473,8 +550,11 @@ export class Textarea {
473
550
  "cancelable": true,
474
551
  "composed": true,
475
552
  "docs": {
476
- "tags": [],
477
- "text": "Emitted when the input has focus."
553
+ "tags": [{
554
+ "name": "internal",
555
+ "text": undefined
556
+ }],
557
+ "text": ""
478
558
  },
479
559
  "complexType": {
480
560
  "original": "void",