@roadtrip/components 2.23.0 → 2.25.1

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 (538) hide show
  1. package/dist/cjs/{app-dd3d5c6d.js → app-79994847.js} +1 -1
  2. package/dist/cjs/{css-shim-17741caa.js → css-shim-9a05bb86.js} +1 -1
  3. package/dist/cjs/{dom-500ce210.js → dom-417ccd20.js} +1 -1
  4. package/dist/cjs/{index-c72934e6.js → index-9b63596c.js} +81 -72
  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 +2 -2
  10. package/dist/cjs/road-avatar.cjs.entry.js +2 -2
  11. package/dist/cjs/road-badge_11.cjs.entry.js +17 -9
  12. package/dist/cjs/road-card.cjs.entry.js +2 -2
  13. package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
  14. package/dist/cjs/road-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/road-checkbox.cjs.entry.js +2 -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 +4 -4
  19. package/dist/cjs/road-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/road-dropdown.cjs.entry.js +29 -0
  21. package/dist/cjs/road-flap.cjs.entry.js +1 -1
  22. package/dist/cjs/road-img.cjs.entry.js +1 -1
  23. package/dist/cjs/road-input-group.cjs.entry.js +2 -2
  24. package/dist/cjs/road-input.cjs.entry.js +3 -3
  25. package/dist/cjs/road-modal.cjs.entry.js +1 -1
  26. package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
  27. package/dist/cjs/road-navbar.cjs.entry.js +1 -1
  28. package/dist/cjs/road-plate-number.cjs.entry.js +7 -4
  29. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  30. package/dist/cjs/road-radio-group.cjs.entry.js +2 -2
  31. package/dist/cjs/road-radio.cjs.entry.js +1 -1
  32. package/dist/cjs/road-range.cjs.entry.js +2 -2
  33. package/dist/cjs/road-rating.cjs.entry.js +2 -2
  34. package/dist/cjs/road-select-filter.cjs.entry.js +1794 -4
  35. package/dist/cjs/road-select.cjs.entry.js +1 -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 +4 -4
  39. package/dist/cjs/road-tab-bar.cjs.entry.js +1 -1
  40. package/dist/cjs/road-tab-button.cjs.entry.js +1 -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 +1 -1
  44. package/dist/cjs/road-text.cjs.entry.js +1 -1
  45. package/dist/cjs/road-textarea.cjs.entry.js +6 -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-d8ee70b1.js → shadow-css-432b27e3.js} +9 -10
  51. package/dist/cjs/{utils-6ec63290.js → utils-90171b88.js} +1 -1
  52. package/dist/collection/collection-manifest.json +3 -2
  53. package/dist/collection/components/accordion/accordion.css +10 -11
  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.css +10 -16
  57. package/dist/collection/components/alert/alert.stories.js +51 -45
  58. package/dist/collection/components/autocomplete/autocomplete.css +0 -3
  59. package/dist/collection/components/autocomplete/autocomplete.js +1 -1
  60. package/dist/collection/components/autocomplete/autocomplete.stories.js +50 -20
  61. package/dist/collection/components/avatar/avatar.css +18 -0
  62. package/dist/collection/components/avatar/avatar.js +2 -3
  63. package/dist/collection/components/avatar/avatar.stories.js +39 -14
  64. package/dist/collection/components/badge/badge.css +9 -10
  65. package/dist/collection/components/badge/badge.stories.js +33 -35
  66. package/dist/collection/components/button/button.css +33 -33
  67. package/dist/collection/components/button/button.js +16 -6
  68. package/dist/collection/components/button/button.stories.js +161 -70
  69. package/dist/collection/components/card/card.css +12 -7
  70. package/dist/collection/components/card/card.js +2 -2
  71. package/dist/collection/components/carousel/carousel.css +22 -2
  72. package/dist/collection/components/carousel/carousel.js +22 -22
  73. package/dist/collection/components/carousel/carousel.stories.js +317 -73
  74. package/dist/collection/components/carousel-item/carousel-item.css +14 -0
  75. package/dist/collection/components/checkbox/checkbox.css +4 -5
  76. package/dist/collection/components/checkbox/checkbox.js +4 -4
  77. package/dist/collection/components/checkbox/checkbox.stories.js +88 -63
  78. package/dist/collection/components/chip/chip.js +6 -6
  79. package/dist/collection/components/chip/chip.stories.js +58 -82
  80. package/dist/collection/components/col/col.js +2 -3
  81. package/dist/collection/components/collapse/collapse.css +0 -1
  82. package/dist/collection/components/collapse/collapse.js +7 -7
  83. package/dist/collection/components/collapse/collapse.stories.js +141 -126
  84. package/dist/collection/components/counter/counter.css +0 -1
  85. package/dist/collection/components/counter/counter.js +9 -10
  86. package/dist/collection/components/counter/counter.stories.js +64 -30
  87. package/dist/collection/components/dialog/dialog.css +14 -15
  88. package/dist/collection/components/dialog/dialog.stories.js +81 -37
  89. package/dist/collection/components/drawer/drawer.dark.css +28 -26
  90. package/dist/collection/components/drawer/drawer.light.css +28 -26
  91. package/dist/collection/components/drawer/drawer.stories.js +195 -72
  92. package/dist/collection/components/dropdown/dropdown.css +63 -0
  93. package/dist/collection/components/dropdown/dropdown.js +54 -0
  94. package/dist/collection/components/dropdown/dropdown.stories.js +71 -0
  95. package/dist/collection/components/flap/flap.stories.js +35 -31
  96. package/dist/collection/components/grid/grid.js +2 -3
  97. package/dist/collection/components/grid/grid.stories.js +5 -5
  98. package/dist/collection/components/icon/icon.css +12 -3
  99. package/dist/collection/components/icon/icon.stories.js +88 -62
  100. package/dist/collection/components/icon/svg/app.svg +1 -1
  101. package/dist/collection/components/icon/svg/archive-outline-color.svg +1 -0
  102. package/dist/collection/components/icon/svg/archive-outline.svg +1 -0
  103. package/dist/collection/components/icon/svg/archive.svg +1 -0
  104. package/dist/collection/components/icon/svg/attachment.svg +1 -0
  105. package/dist/collection/components/icon/svg/brake-color.svg +1 -1
  106. package/dist/collection/components/icon/svg/check-list-color.svg +1 -0
  107. package/dist/collection/components/icon/svg/check-list.svg +1 -0
  108. package/dist/collection/components/icon/svg/data-bar-color.svg +1 -0
  109. package/dist/collection/components/icon/svg/data-bar.svg +1 -0
  110. package/dist/collection/components/icon/svg/fuse-color.svg +1 -0
  111. package/dist/collection/components/icon/svg/location-pin-all-outline-color.svg +1 -0
  112. package/dist/collection/components/icon/svg/location-pin-all-outline.svg +1 -0
  113. package/dist/collection/components/icon/svg/location-pin-all.svg +1 -1
  114. package/dist/collection/components/icon/svg/navigation-app.svg +1 -0
  115. package/dist/collection/components/icon/svg/secure-level-first-color.svg +1 -0
  116. package/dist/collection/components/icon/svg/secure-level-first.svg +1 -0
  117. package/dist/collection/components/icon/svg/secure-level-hours-color.svg +1 -0
  118. package/dist/collection/components/icon/svg/secure-level-hours.svg +1 -0
  119. package/dist/collection/components/icon/svg/secure-level-minute-color.svg +1 -0
  120. package/dist/collection/components/icon/svg/secure-level-minute.svg +1 -0
  121. package/dist/collection/components/icon/svg/secure-level-night-and-day-color.svg +1 -0
  122. package/dist/collection/components/icon/svg/secure-level-night-and-day.svg +1 -0
  123. package/dist/collection/components/icon/svg/secure-level-second-color.svg +1 -0
  124. package/dist/collection/components/icon/svg/secure-level-second.svg +1 -0
  125. package/dist/collection/components/icon/svg/secure-level-third-color.svg +1 -0
  126. package/dist/collection/components/icon/svg/secure-level-third.svg +1 -0
  127. package/dist/collection/components/icon/svg/star-half.svg +1 -0
  128. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  129. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline.svg +1 -0
  130. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  131. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  132. package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline-color.svg +1 -0
  133. package/dist/collection/components/icon/svg/vehicle-car-bodywork-outline.svg +1 -0
  134. package/dist/collection/components/icon/svg/vehicle-car-bodywork.svg +1 -1
  135. package/dist/collection/components/icon/svg/vehicle-delevery-outline.svg +1 -0
  136. package/dist/collection/components/icon/svg/vehicle-delevery-van.svg +1 -1
  137. package/dist/collection/components/icon/svg/vehicle-delevery.svg +1 -1
  138. package/dist/collection/components/icon/svg/windscreen-wiper-color.svg +1 -1
  139. package/dist/collection/components/icon/svg/windscreen-wiper.svg +1 -1
  140. package/dist/collection/components/icon/svg/windscreen-wipers-color.svg +1 -1
  141. package/dist/collection/components/icon/svg/windscreen-wipers-left-color.svg +1 -1
  142. package/dist/collection/components/icon/svg/windscreen-wipers-left.svg +1 -1
  143. package/dist/collection/components/icon/svg/windscreen-wipers-right-color.svg +1 -1
  144. package/dist/collection/components/icon/svg/windscreen-wipers-right.svg +1 -1
  145. package/dist/collection/components/icon/svg/windscreen-wipers.svg +1 -1
  146. package/dist/collection/components/icon/svg/work-order-awaiting-approval-color.svg +1 -0
  147. package/dist/collection/components/icon/svg/work-order-awaiting-approval-outline.svg +1 -0
  148. package/dist/collection/components/icon/svg/work-order-awaiting-approval.svg +1 -0
  149. package/dist/collection/components/img/img.css +2 -3
  150. package/dist/collection/components/input/input.css +8 -9
  151. package/dist/collection/components/input/input.js +1 -1
  152. package/dist/collection/components/input/input.stories.js +192 -126
  153. package/dist/collection/components/input-group/input-group.css +5 -4
  154. package/dist/collection/components/input-group/input-group.stories.js +44 -35
  155. package/dist/collection/components/item/item.css +15 -16
  156. package/dist/collection/components/item/item.stories.js +118 -24
  157. package/dist/collection/components/label/label.css +5 -0
  158. package/dist/collection/components/label/label.js +2 -3
  159. package/dist/collection/components/list/list.css +5 -3
  160. package/dist/collection/components/list/list.stories.js +48 -46
  161. package/dist/collection/components/modal/modal.css +10 -11
  162. package/dist/collection/components/modal/modal.stories.js +46 -30
  163. package/dist/collection/components/navbar/navbar.js +2 -2
  164. package/dist/collection/components/navbar/navbar.stories.js +40 -23
  165. package/dist/collection/components/navbar-item/navbar-item.css +6 -7
  166. package/dist/collection/components/navbar-item/navbar-item.js +2 -2
  167. package/dist/collection/components/plate-number/plate-number.css +41 -2
  168. package/dist/collection/components/plate-number/plate-number.js +28 -7
  169. package/dist/collection/components/plate-number/plate-number.stories.js +39 -7
  170. package/dist/collection/components/progress/progress.css +2 -2
  171. package/dist/collection/components/progress/progress.stories.js +3 -3
  172. package/dist/collection/components/radio/radio.css +4 -5
  173. package/dist/collection/components/radio/radio.stories.js +47 -30
  174. package/dist/collection/components/radio-group/radio-group.css +22 -3
  175. package/dist/collection/components/range/range.css +1 -2
  176. package/dist/collection/components/range/range.js +5 -6
  177. package/dist/collection/components/range/range.stories.js +39 -32
  178. package/dist/collection/components/rating/rating.css +19 -1
  179. package/dist/collection/components/rating/rating.stories.js +40 -31
  180. package/dist/collection/components/select/select.css +4 -5
  181. package/dist/collection/components/select/select.stories.js +81 -89
  182. package/dist/collection/components/select-filter/select-filter.css +0 -1
  183. package/dist/collection/components/select-filter/select-filter.js +34 -3
  184. package/dist/collection/components/select-filter/select-filter.stories.js +95 -85
  185. package/dist/collection/components/skeleton/skeleton.css +2 -3
  186. package/dist/collection/components/skeleton/skeleton.js +2 -3
  187. package/dist/collection/components/spinner/spinner.css +4 -5
  188. package/dist/collection/components/spinner/spinner.js +3 -4
  189. package/dist/collection/components/switch/switch.css +9 -10
  190. package/dist/collection/components/switch/switch.js +8 -8
  191. package/dist/collection/components/switch/switch.stories.js +94 -82
  192. package/dist/collection/components/tab/tab.js +2 -2
  193. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  194. package/dist/collection/components/tab-button/tab-button.css +12 -11
  195. package/dist/collection/components/tab-button/tab-button.js +2 -2
  196. package/dist/collection/components/table/table.css +1 -0
  197. package/dist/collection/components/table/table.js +2 -3
  198. package/dist/collection/components/table/table.stories.js +15 -6
  199. package/dist/collection/components/tabs/tabs.css +5 -0
  200. package/dist/collection/components/tabs/tabs.js +4 -4
  201. package/dist/collection/components/tabs/tabs.stories.js +106 -57
  202. package/dist/collection/components/text/text.css +52 -1
  203. package/dist/collection/components/text/text.stories.js +8 -4
  204. package/dist/collection/components/textarea/textarea.css +5 -6
  205. package/dist/collection/components/textarea/textarea.js +12 -12
  206. package/dist/collection/components/textarea/textarea.stories.js +132 -110
  207. package/dist/collection/components/toast/toast.css +5 -6
  208. package/dist/collection/components/toast/toast.js +4 -4
  209. package/dist/collection/components/toast/toast.stories.js +60 -46
  210. package/dist/collection/components/toolbar/toolbar.css +8 -9
  211. package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
  212. package/dist/collection/components/toolbar-title/toolbar-title.css +5 -0
  213. package/dist/collection/components/toolbar-title/toolbar-title.js +3 -4
  214. package/dist/collection/components/tooltip/tooltip.css +16 -5
  215. package/dist/collection/components/tooltip/tooltip.js +4 -4
  216. package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
  217. package/dist/esm/{app-292fcdfa.js → app-a32f9d74.js} +1 -1
  218. package/dist/esm/{css-shim-09c9cbdc.js → css-shim-17041dc7.js} +1 -1
  219. package/dist/esm/{dom-db0073f0.js → dom-ba83fb9d.js} +1 -1
  220. package/dist/esm/{index-ca0a4edb.js → index-0c8a0e04.js} +81 -72
  221. package/dist/esm/index.js +2 -2
  222. package/dist/esm/loader.js +5 -5
  223. package/dist/esm/road-accordion.entry.js +3 -3
  224. package/dist/esm/road-alert.entry.js +1 -1
  225. package/dist/esm/road-autocomplete.entry.js +2 -2
  226. package/dist/esm/road-avatar.entry.js +2 -2
  227. package/dist/esm/road-badge_11.entry.js +17 -9
  228. package/dist/esm/road-card.entry.js +2 -2
  229. package/dist/esm/road-carousel-item.entry.js +1 -1
  230. package/dist/esm/road-carousel.entry.js +1 -1
  231. package/dist/esm/road-checkbox.entry.js +2 -2
  232. package/dist/esm/road-chip.entry.js +4 -4
  233. package/dist/esm/road-collapse.entry.js +4 -4
  234. package/dist/esm/road-counter.entry.js +4 -4
  235. package/dist/esm/road-dialog.entry.js +1 -1
  236. package/dist/esm/road-dropdown.entry.js +25 -0
  237. package/dist/esm/road-flap.entry.js +1 -1
  238. package/dist/esm/road-img.entry.js +1 -1
  239. package/dist/esm/road-input-group.entry.js +2 -2
  240. package/dist/esm/road-input.entry.js +3 -3
  241. package/dist/esm/road-modal.entry.js +1 -1
  242. package/dist/esm/road-navbar-item.entry.js +1 -1
  243. package/dist/esm/road-navbar.entry.js +1 -1
  244. package/dist/esm/road-plate-number.entry.js +7 -4
  245. package/dist/esm/road-progress.entry.js +1 -1
  246. package/dist/esm/road-radio-group.entry.js +2 -2
  247. package/dist/esm/road-radio.entry.js +1 -1
  248. package/dist/esm/road-range.entry.js +2 -2
  249. package/dist/esm/road-rating.entry.js +2 -2
  250. package/dist/esm/road-select-filter.entry.js +1794 -4
  251. package/dist/esm/road-select.entry.js +1 -1
  252. package/dist/esm/road-skeleton.entry.js +2 -2
  253. package/dist/esm/road-spinner.entry.js +2 -2
  254. package/dist/esm/road-switch.entry.js +4 -4
  255. package/dist/esm/road-tab-bar.entry.js +1 -1
  256. package/dist/esm/road-tab-button.entry.js +1 -1
  257. package/dist/esm/road-tab.entry.js +1 -1
  258. package/dist/esm/road-table.entry.js +2 -2
  259. package/dist/esm/road-tabs.entry.js +1 -1
  260. package/dist/esm/road-text.entry.js +1 -1
  261. package/dist/esm/road-textarea.entry.js +6 -6
  262. package/dist/esm/road-toast.entry.js +3 -3
  263. package/dist/esm/road-toolbar-title.entry.js +2 -2
  264. package/dist/esm/road-tooltip.entry.js +3 -3
  265. package/dist/esm/roadtrip.js +5 -5
  266. package/dist/esm/{shadow-css-c1fdfa9f.js → shadow-css-bfd5796e.js} +9 -10
  267. package/dist/esm/{utils-38991a7b.js → utils-39de47f7.js} +1 -1
  268. package/dist/esm-es5/app-a32f9d74.js +1 -0
  269. package/dist/esm-es5/{css-shim-09c9cbdc.js → css-shim-17041dc7.js} +0 -0
  270. package/dist/esm-es5/{dom-db0073f0.js → dom-ba83fb9d.js} +0 -0
  271. package/dist/esm-es5/index-0c8a0e04.js +1 -0
  272. package/dist/esm-es5/index.js +1 -1
  273. package/dist/esm-es5/loader.js +1 -1
  274. package/dist/esm-es5/road-accordion.entry.js +1 -1
  275. package/dist/esm-es5/road-alert.entry.js +1 -1
  276. package/dist/esm-es5/road-autocomplete.entry.js +1 -1
  277. package/dist/esm-es5/road-avatar.entry.js +1 -1
  278. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  279. package/dist/esm-es5/road-card.entry.js +1 -1
  280. package/dist/esm-es5/road-carousel-item.entry.js +1 -1
  281. package/dist/esm-es5/road-carousel.entry.js +1 -1
  282. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  283. package/dist/esm-es5/road-chip.entry.js +1 -1
  284. package/dist/esm-es5/road-collapse.entry.js +1 -1
  285. package/dist/esm-es5/road-counter.entry.js +1 -1
  286. package/dist/esm-es5/road-dialog.entry.js +1 -1
  287. package/dist/esm-es5/road-dropdown.entry.js +1 -0
  288. package/dist/esm-es5/road-flap.entry.js +1 -1
  289. package/dist/esm-es5/road-img.entry.js +1 -1
  290. package/dist/esm-es5/road-input-group.entry.js +1 -1
  291. package/dist/esm-es5/road-input.entry.js +1 -1
  292. package/dist/esm-es5/road-modal.entry.js +1 -1
  293. package/dist/esm-es5/road-navbar-item.entry.js +1 -1
  294. package/dist/esm-es5/road-navbar.entry.js +1 -1
  295. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  296. package/dist/esm-es5/road-progress.entry.js +1 -1
  297. package/dist/esm-es5/road-radio-group.entry.js +1 -1
  298. package/dist/esm-es5/road-radio.entry.js +1 -1
  299. package/dist/esm-es5/road-range.entry.js +1 -1
  300. package/dist/esm-es5/road-rating.entry.js +1 -1
  301. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  302. package/dist/esm-es5/road-select.entry.js +1 -1
  303. package/dist/esm-es5/road-skeleton.entry.js +1 -1
  304. package/dist/esm-es5/road-spinner.entry.js +1 -1
  305. package/dist/esm-es5/road-switch.entry.js +1 -1
  306. package/dist/esm-es5/road-tab-bar.entry.js +1 -1
  307. package/dist/esm-es5/road-tab-button.entry.js +1 -1
  308. package/dist/esm-es5/road-tab.entry.js +1 -1
  309. package/dist/esm-es5/road-table.entry.js +1 -1
  310. package/dist/esm-es5/road-tabs.entry.js +1 -1
  311. package/dist/esm-es5/road-text.entry.js +1 -1
  312. package/dist/esm-es5/road-textarea.entry.js +1 -1
  313. package/dist/esm-es5/road-toast.entry.js +1 -1
  314. package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
  315. package/dist/esm-es5/road-tooltip.entry.js +1 -1
  316. package/dist/esm-es5/roadtrip.js +1 -1
  317. package/dist/esm-es5/shadow-css-bfd5796e.js +12 -0
  318. package/dist/esm-es5/{utils-38991a7b.js → utils-39de47f7.js} +1 -1
  319. package/dist/html.html-data.json +50 -20
  320. package/dist/icons/icons.svg +1 -1
  321. package/dist/icons/index.d.ts +35 -2
  322. package/dist/icons/index.js +49 -16
  323. package/dist/roadtrip/index.esm.js +1 -1
  324. package/dist/roadtrip/{p-db7b669e.system.js → p-05961c88.system.js} +1 -1
  325. package/dist/roadtrip/{p-52b55f44.system.entry.js → p-06a743b4.system.entry.js} +1 -1
  326. package/dist/roadtrip/{p-741d9d7d.system.entry.js → p-093a2288.system.entry.js} +1 -1
  327. package/dist/roadtrip/p-0a5f2c0f.entry.js +1 -0
  328. package/dist/roadtrip/{p-ccdb9902.system.entry.js → p-0b4b6077.system.entry.js} +1 -1
  329. package/dist/roadtrip/{p-3af119c3.entry.js → p-0e5cecff.entry.js} +1 -1
  330. package/dist/roadtrip/{p-5f20bd78.entry.js → p-0f8da68b.entry.js} +1 -1
  331. package/dist/roadtrip/p-102d3882.system.js +1 -0
  332. package/dist/roadtrip/{p-3919001a.entry.js → p-1347a27e.entry.js} +1 -1
  333. package/dist/roadtrip/{p-dbe915df.system.entry.js → p-13c18cec.system.entry.js} +1 -1
  334. package/dist/roadtrip/{p-f92085f7.entry.js → p-16a1b3cb.entry.js} +1 -1
  335. package/dist/roadtrip/{p-f90c7a6e.entry.js → p-194b2934.entry.js} +1 -1
  336. package/dist/roadtrip/{p-2087071d.system.entry.js → p-19c89e8f.system.entry.js} +1 -1
  337. package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
  338. package/dist/roadtrip/p-1ef8acf8.system.entry.js +1 -0
  339. package/dist/roadtrip/{p-39f45672.entry.js → p-24234448.entry.js} +1 -1
  340. package/dist/roadtrip/{p-438be30d.system.entry.js → p-25c303d8.system.entry.js} +1 -1
  341. package/dist/roadtrip/p-26b3aa33.system.entry.js +1 -0
  342. package/dist/roadtrip/{p-355be3ad.system.entry.js → p-2740d308.system.entry.js} +1 -1
  343. package/dist/roadtrip/p-287f1612.system.entry.js +1 -0
  344. package/dist/roadtrip/{p-57a5b6ee.js → p-33e38a04.js} +1 -1
  345. package/dist/roadtrip/p-3683fe49.system.js +13 -0
  346. package/dist/roadtrip/p-3cb3107f.entry.js +1 -0
  347. package/dist/roadtrip/{p-45589dc8.entry.js → p-44576eac.entry.js} +1 -1
  348. package/dist/roadtrip/p-46c22946.js +1 -0
  349. package/dist/roadtrip/p-4742a822.system.entry.js +1 -0
  350. package/dist/roadtrip/{p-e4f0bdc9.entry.js → p-4ef3684e.entry.js} +1 -1
  351. package/dist/roadtrip/{p-b0d85186.system.entry.js → p-52f05a7c.system.entry.js} +1 -1
  352. package/dist/roadtrip/{p-86d407db.system.entry.js → p-54635daa.system.entry.js} +1 -1
  353. package/dist/roadtrip/p-5bcd3e1f.entry.js +1 -0
  354. package/dist/roadtrip/{p-07a0be0c.system.entry.js → p-5e8571d3.system.entry.js} +1 -1
  355. package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
  356. package/dist/roadtrip/{p-c68c4c08.entry.js → p-63aa411f.entry.js} +1 -1
  357. package/dist/roadtrip/p-68af3047.entry.js +1 -0
  358. package/dist/roadtrip/p-6a123e72.system.entry.js +1 -0
  359. package/dist/roadtrip/{p-fcd6d9ee.system.entry.js → p-6cf85ea2.system.entry.js} +1 -1
  360. package/dist/roadtrip/{p-a4f564ff.entry.js → p-6f744bd8.entry.js} +1 -1
  361. package/dist/roadtrip/{p-d266b343.system.js → p-7154119b.system.js} +0 -0
  362. package/dist/roadtrip/{p-5e0abf8a.system.entry.js → p-74218654.system.entry.js} +1 -1
  363. package/dist/roadtrip/{p-4db46d4e.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
  364. package/dist/roadtrip/p-76885294.system.entry.js +1 -0
  365. package/dist/roadtrip/p-768d1a90.entry.js +1 -0
  366. package/dist/roadtrip/{p-ce911622.system.entry.js → p-76f26f2b.system.entry.js} +1 -1
  367. package/dist/roadtrip/{p-907af5c4.entry.js → p-78315356.entry.js} +1 -1
  368. package/dist/roadtrip/{p-7a3cc989.js → p-7b733694.js} +1 -1
  369. package/dist/roadtrip/{p-5457d69f.entry.js → p-7fe4f8f3.entry.js} +1 -1
  370. package/dist/roadtrip/{p-7e6d339b.entry.js → p-82a07b27.entry.js} +1 -1
  371. package/dist/roadtrip/{p-b743a929.system.entry.js → p-835d550a.system.entry.js} +1 -1
  372. package/dist/roadtrip/{p-1879601d.entry.js → p-8d18ebce.entry.js} +1 -1
  373. package/dist/roadtrip/p-8e21df57.system.entry.js +1 -0
  374. package/dist/roadtrip/{p-f470f97c.entry.js → p-92300d3f.entry.js} +1 -1
  375. package/dist/roadtrip/p-93345613.system.entry.js +1 -0
  376. package/dist/roadtrip/{p-1327abae.entry.js → p-93ccfda6.entry.js} +1 -1
  377. package/dist/roadtrip/p-93dab753.js +12 -0
  378. package/dist/roadtrip/{p-5b2de675.entry.js → p-9567d161.entry.js} +1 -1
  379. package/dist/roadtrip/{p-8934d5fc.entry.js → p-9a1a293c.entry.js} +1 -1
  380. package/dist/roadtrip/p-9a36bd11.system.entry.js +1 -0
  381. package/dist/roadtrip/{p-7e528855.entry.js → p-9dd72bfa.entry.js} +1 -1
  382. package/dist/roadtrip/p-a1168bd5.system.entry.js +1 -0
  383. package/dist/roadtrip/{p-5f4c4992.system.entry.js → p-a1628953.system.entry.js} +1 -1
  384. package/dist/roadtrip/p-a3bc0e5b.entry.js +1 -0
  385. package/dist/roadtrip/{p-d1d86108.system.entry.js → p-a467913d.system.entry.js} +1 -1
  386. package/dist/roadtrip/p-a61e04a1.entry.js +1 -0
  387. package/dist/roadtrip/p-a64c67ad.system.entry.js +1 -0
  388. package/dist/roadtrip/{p-e1ecf3e2.entry.js → p-a7dc1c0c.entry.js} +1 -1
  389. package/dist/roadtrip/{p-48e5ee18.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
  390. package/dist/roadtrip/p-a9c74737.entry.js +1 -0
  391. package/dist/roadtrip/{p-9e2990f1.js → p-ac0761c3.js} +0 -0
  392. package/dist/roadtrip/{p-870401c7.system.js → p-ad92df4f.system.js} +1 -1
  393. package/dist/roadtrip/p-adbaa790.entry.js +1 -0
  394. package/dist/roadtrip/{p-e10e3018.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
  395. package/dist/roadtrip/{p-92a913e8.entry.js → p-b0ed748a.entry.js} +1 -1
  396. package/dist/roadtrip/p-b205281e.system.js +1 -0
  397. package/dist/roadtrip/{p-71cd56c1.entry.js → p-b501c4b2.entry.js} +1 -1
  398. package/dist/roadtrip/{p-ba19e220.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
  399. package/dist/roadtrip/p-b6e60fca.system.entry.js +1 -0
  400. package/dist/roadtrip/{p-f10ecc10.entry.js → p-bba29599.entry.js} +1 -1
  401. package/dist/roadtrip/{p-4e11546d.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
  402. package/dist/roadtrip/{p-9e689ce3.system.entry.js → p-c0429d42.system.entry.js} +1 -1
  403. package/dist/roadtrip/{p-770605d6.entry.js → p-ced4c451.entry.js} +1 -1
  404. package/dist/roadtrip/{p-d8c05f0b.system.entry.js → p-cf4b48af.system.entry.js} +1 -1
  405. package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
  406. package/dist/roadtrip/{p-e0990af2.system.entry.js → p-d861032d.system.entry.js} +1 -1
  407. package/dist/roadtrip/{p-fb2e1da0.entry.js → p-dcfc236e.entry.js} +1 -1
  408. package/dist/roadtrip/{p-634bb469.system.entry.js → p-de1a3a53.system.entry.js} +1 -1
  409. package/dist/roadtrip/{p-f63b910b.entry.js → p-e4b0578a.entry.js} +1 -1
  410. package/dist/roadtrip/p-e56b3c0f.system.entry.js +1 -0
  411. package/dist/roadtrip/p-e5756d79.entry.js +1 -0
  412. package/dist/roadtrip/p-e70b2a21.entry.js +1 -0
  413. package/dist/roadtrip/p-e9a6f1fb.entry.js +1 -0
  414. package/dist/roadtrip/{p-ff0c3182.system.entry.js → p-eaf8ddaf.system.entry.js} +1 -1
  415. package/dist/roadtrip/p-ed2dbf57.entry.js +1 -0
  416. package/dist/roadtrip/{p-e956996a.system.js → p-efa19d38.system.js} +0 -0
  417. package/dist/roadtrip/{p-33c4dca7.entry.js → p-f0ec3a64.entry.js} +1 -1
  418. package/dist/roadtrip/p-f22c63b7.entry.js +1 -0
  419. package/dist/roadtrip/p-f2593f4b.system.entry.js +1 -0
  420. package/dist/roadtrip/{p-c2373cf9.system.js → p-f33e4ac5.system.js} +1 -1
  421. package/dist/roadtrip/{p-f38a8df4.js → p-f6631560.js} +0 -0
  422. package/dist/roadtrip/roadtrip.esm.js +1 -1
  423. package/dist/roadtrip/roadtrip.js +1 -1
  424. package/dist/roadtrip/svg/app.svg +1 -1
  425. package/dist/roadtrip/svg/archive-outline-color.svg +1 -0
  426. package/dist/roadtrip/svg/archive-outline.svg +1 -0
  427. package/dist/roadtrip/svg/archive.svg +1 -0
  428. package/dist/roadtrip/svg/attachment.svg +1 -0
  429. package/dist/roadtrip/svg/brake-color.svg +1 -1
  430. package/dist/roadtrip/svg/check-list-color.svg +1 -0
  431. package/dist/roadtrip/svg/check-list.svg +1 -0
  432. package/dist/roadtrip/svg/data-bar-color.svg +1 -0
  433. package/dist/roadtrip/svg/data-bar.svg +1 -0
  434. package/dist/roadtrip/svg/fuse-color.svg +1 -0
  435. package/dist/roadtrip/svg/location-pin-all-outline-color.svg +1 -0
  436. package/dist/roadtrip/svg/location-pin-all-outline.svg +1 -0
  437. package/dist/roadtrip/svg/location-pin-all.svg +1 -1
  438. package/dist/roadtrip/svg/navigation-app.svg +1 -0
  439. package/dist/roadtrip/svg/secure-level-first-color.svg +1 -0
  440. package/dist/roadtrip/svg/secure-level-first.svg +1 -0
  441. package/dist/roadtrip/svg/secure-level-hours-color.svg +1 -0
  442. package/dist/roadtrip/svg/secure-level-hours.svg +1 -0
  443. package/dist/roadtrip/svg/secure-level-minute-color.svg +1 -0
  444. package/dist/roadtrip/svg/secure-level-minute.svg +1 -0
  445. package/dist/roadtrip/svg/secure-level-night-and-day-color.svg +1 -0
  446. package/dist/roadtrip/svg/secure-level-night-and-day.svg +1 -0
  447. package/dist/roadtrip/svg/secure-level-second-color.svg +1 -0
  448. package/dist/roadtrip/svg/secure-level-second.svg +1 -0
  449. package/dist/roadtrip/svg/secure-level-third-color.svg +1 -0
  450. package/dist/roadtrip/svg/secure-level-third.svg +1 -0
  451. package/dist/roadtrip/svg/star-half.svg +1 -0
  452. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  453. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline.svg +1 -0
  454. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  455. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  456. package/dist/roadtrip/svg/vehicle-car-bodywork-outline-color.svg +1 -0
  457. package/dist/roadtrip/svg/vehicle-car-bodywork-outline.svg +1 -0
  458. package/dist/roadtrip/svg/vehicle-car-bodywork.svg +1 -1
  459. package/dist/roadtrip/svg/vehicle-delevery-outline.svg +1 -0
  460. package/dist/roadtrip/svg/vehicle-delevery-van.svg +1 -1
  461. package/dist/roadtrip/svg/vehicle-delevery.svg +1 -1
  462. package/dist/roadtrip/svg/windscreen-wiper-color.svg +1 -1
  463. package/dist/roadtrip/svg/windscreen-wiper.svg +1 -1
  464. package/dist/roadtrip/svg/windscreen-wipers-color.svg +1 -1
  465. package/dist/roadtrip/svg/windscreen-wipers-left-color.svg +1 -1
  466. package/dist/roadtrip/svg/windscreen-wipers-left.svg +1 -1
  467. package/dist/roadtrip/svg/windscreen-wipers-right-color.svg +1 -1
  468. package/dist/roadtrip/svg/windscreen-wipers-right.svg +1 -1
  469. package/dist/roadtrip/svg/windscreen-wipers.svg +1 -1
  470. package/dist/roadtrip/svg/work-order-awaiting-approval-color.svg +1 -0
  471. package/dist/roadtrip/svg/work-order-awaiting-approval-outline.svg +1 -0
  472. package/dist/roadtrip/svg/work-order-awaiting-approval.svg +1 -0
  473. package/dist/types/components/accordion/accordion.d.ts +1 -1
  474. package/dist/types/components/button/button.d.ts +2 -2
  475. package/dist/types/components/checkbox/checkbox.d.ts +3 -3
  476. package/dist/types/components/chip/chip.d.ts +3 -3
  477. package/dist/types/components/collapse/collapse.d.ts +4 -4
  478. package/dist/types/components/counter/counter.d.ts +2 -2
  479. package/dist/types/components/dropdown/dropdown.d.ts +15 -0
  480. package/dist/types/components/plate-number/plate-number.d.ts +4 -0
  481. package/dist/types/components/select-filter/select-filter.d.ts +5 -0
  482. package/dist/types/components/switch/switch.d.ts +5 -5
  483. package/dist/types/components/textarea/textarea.d.ts +8 -8
  484. package/dist/types/components/toast/toast.d.ts +2 -2
  485. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  486. package/dist/types/components.d.ts +88 -51
  487. package/dist/types/stencil-public-runtime.d.ts +6 -4
  488. package/icons/icons.svg +1 -1
  489. package/icons/index.d.ts +35 -2
  490. package/icons/index.js +49 -16
  491. package/loader/cdn.js +3 -0
  492. package/loader/index.cjs.js +3 -0
  493. package/loader/index.d.ts +12 -0
  494. package/loader/index.es2017.js +3 -0
  495. package/loader/index.js +4 -0
  496. package/loader/package.json +10 -0
  497. package/package.json +11 -8
  498. package/dist/collection/components/icon/svg/vehicle-car-outline-side.svg +0 -1
  499. package/dist/collection/components/icon/svg/vehicle-delevery-privilege.svg +0 -1
  500. package/dist/esm-es5/app-292fcdfa.js +0 -1
  501. package/dist/esm-es5/index-ca0a4edb.js +0 -1
  502. package/dist/esm-es5/shadow-css-c1fdfa9f.js +0 -12
  503. package/dist/roadtrip/p-01135bcf.system.entry.js +0 -1
  504. package/dist/roadtrip/p-0599269b.system.entry.js +0 -1
  505. package/dist/roadtrip/p-07e0e430.js +0 -1
  506. package/dist/roadtrip/p-08b5f69e.entry.js +0 -1
  507. package/dist/roadtrip/p-09c241ad.entry.js +0 -1
  508. package/dist/roadtrip/p-114c8027.entry.js +0 -1
  509. package/dist/roadtrip/p-1df09c8b.system.entry.js +0 -1
  510. package/dist/roadtrip/p-28d034bb.entry.js +0 -1
  511. package/dist/roadtrip/p-2a02e7ca.system.entry.js +0 -1
  512. package/dist/roadtrip/p-3a2bd53d.system.entry.js +0 -1
  513. package/dist/roadtrip/p-4972df5f.system.entry.js +0 -1
  514. package/dist/roadtrip/p-4ed66188.entry.js +0 -1
  515. package/dist/roadtrip/p-4ef32250.system.entry.js +0 -1
  516. package/dist/roadtrip/p-5d801a6d.entry.js +0 -1
  517. package/dist/roadtrip/p-5db7ec05.system.entry.js +0 -1
  518. package/dist/roadtrip/p-6fd29998.system.entry.js +0 -1
  519. package/dist/roadtrip/p-858200a0.system.entry.js +0 -1
  520. package/dist/roadtrip/p-90069a64.entry.js +0 -1
  521. package/dist/roadtrip/p-93468129.entry.js +0 -1
  522. package/dist/roadtrip/p-9b7fa180.system.js +0 -1
  523. package/dist/roadtrip/p-a51ceef7.system.entry.js +0 -1
  524. package/dist/roadtrip/p-a6bf7d9a.entry.js +0 -1
  525. package/dist/roadtrip/p-accf62b5.entry.js +0 -1
  526. package/dist/roadtrip/p-b32c5fc9.entry.js +0 -1
  527. package/dist/roadtrip/p-b3da87d9.entry.js +0 -1
  528. package/dist/roadtrip/p-b6750852.entry.js +0 -1
  529. package/dist/roadtrip/p-bb3dd068.system.entry.js +0 -1
  530. package/dist/roadtrip/p-bd3cee80.system.js +0 -1
  531. package/dist/roadtrip/p-c257e55b.system.entry.js +0 -1
  532. package/dist/roadtrip/p-c8a2384d.system.entry.js +0 -1
  533. package/dist/roadtrip/p-ce6bd79c.entry.js +0 -1
  534. package/dist/roadtrip/p-ea858ec9.system.entry.js +0 -1
  535. package/dist/roadtrip/p-f4d979bb.system.js +0 -13
  536. package/dist/roadtrip/p-f566887e.js +0 -12
  537. package/dist/roadtrip/svg/vehicle-car-outline-side.svg +0 -1
  538. package/dist/roadtrip/svg/vehicle-delevery-privilege.svg +0 -1
@@ -1,12 +1,13 @@
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: {
@@ -15,13 +16,73 @@ export default {
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
+ };
@@ -1,46 +1,97 @@
1
- /* TEXT COLORS
1
+ /*
2
+ * Text
3
+ *
4
+ * Index
5
+ * - Colors
6
+ */
7
+
8
+ /* COLORS
2
9
  -------------------- */
3
10
 
11
+ /**
12
+ * Primary
13
+ */
14
+
4
15
  :host(.text-primary) {
5
16
  color: var(--primary);
6
17
  }
7
18
 
19
+ /**
20
+ * Secondary
21
+ */
22
+
8
23
  :host(.text-secondary) {
9
24
  color: var(--secondary);
10
25
  }
11
26
 
27
+ /**
28
+ * Accent
29
+ */
30
+
12
31
  :host(.text-accent) {
13
32
  color: var(--accent);
14
33
  }
15
34
 
35
+ /**
36
+ * Info
37
+ */
38
+
16
39
  :host(.text-info) {
17
40
  color: var(--info);
18
41
  }
19
42
 
43
+ /**
44
+ * Success
45
+ */
46
+
20
47
  :host(.text-success) {
21
48
  color: var(--success);
22
49
  }
23
50
 
51
+ /**
52
+ * Warning
53
+ */
54
+
24
55
  :host(.text-warning) {
25
56
  color: var(--warning);
26
57
  }
27
58
 
59
+ /**
60
+ * Danger
61
+ */
62
+
28
63
  :host(.text-danger) {
29
64
  color: var(--danger);
30
65
  }
31
66
 
67
+ /**
68
+ * Default
69
+ */
70
+
32
71
  :host(.text-default) {
33
72
  color: var(--text);
34
73
  }
35
74
 
75
+ /**
76
+ * Default second
77
+ */
78
+
36
79
  :host(.text-default-second) {
37
80
  color: var(--text-second);
38
81
  }
39
82
 
83
+ /**
84
+ * Disabled
85
+ */
86
+
40
87
  :host(.text-disabled) {
41
88
  color: var(--text-disabled);
42
89
  }
43
90
 
91
+ /**
92
+ * White
93
+ */
94
+
44
95
  :host(.text-white) {
45
96
  color: var(--white);
46
97
  }
@@ -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
  };
@@ -1,12 +1,11 @@
1
1
  /*
2
- * Input
2
+ * Textarea
3
3
  *
4
4
  * Index
5
5
  * - Input
6
6
  * - Textarea
7
- * - Input label
8
- * - Input error
9
- *
7
+ * - Label
8
+ * - Error
10
9
  */
11
10
 
12
11
 
@@ -96,7 +95,7 @@
96
95
  }
97
96
 
98
97
 
99
- /* INPUT LABEL
98
+ /* LABEL
100
99
  -------------------- */
101
100
 
102
101
  .form-label {
@@ -112,7 +111,7 @@
112
111
  transform-origin: 0 0;
113
112
  }
114
113
 
115
- /* INPUT ERROR
114
+ /* ERROR
116
115
  -------------------- */
117
116
 
118
117
  .invalid-feedback {
@@ -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
  /**
@@ -56,7 +56,7 @@ export class Textarea {
56
56
  };
57
57
  }
58
58
  /**
59
- * Update the native input element when the value changes
59
+ * Update the native textarea element when the value changes
60
60
  */
61
61
  valueChanged() {
62
62
  this.roadChange.emit({ value: this.value });
@@ -95,7 +95,7 @@ export class Textarea {
95
95
  "optional": false,
96
96
  "docs": {
97
97
  "tags": [],
98
- "text": "The id of input"
98
+ "text": "The id of textarea"
99
99
  },
100
100
  "attribute": "textarea-id",
101
101
  "reflect": false,
@@ -131,7 +131,7 @@ export class Textarea {
131
131
  "optional": false,
132
132
  "docs": {
133
133
  "tags": [],
134
- "text": "This Boolean attribute lets you specify that a form control should have input focus when the page loads."
134
+ "text": "This Boolean attribute lets you specify that a form control should have focus when the page loads."
135
135
  },
136
136
  "attribute": "autofocus",
137
137
  "reflect": false,
@@ -149,7 +149,7 @@ export class Textarea {
149
149
  "optional": false,
150
150
  "docs": {
151
151
  "tags": [],
152
- "text": "If `true`, the user cannot interact with the input."
152
+ "text": "If `true`, the user cannot interact with the textarea."
153
153
  },
154
154
  "attribute": "disabled",
155
155
  "reflect": false,
@@ -253,7 +253,7 @@ export class Textarea {
253
253
  "optional": true,
254
254
  "docs": {
255
255
  "tags": [],
256
- "text": "Instructional text that shows before the input has a value."
256
+ "text": "Instructional text that shows before the textarea has a value."
257
257
  },
258
258
  "attribute": "placeholder",
259
259
  "reflect": false
@@ -375,7 +375,7 @@ export class Textarea {
375
375
  "optional": true,
376
376
  "docs": {
377
377
  "tags": [],
378
- "text": "The value of the input."
378
+ "text": "The value of the textarea."
379
379
  },
380
380
  "attribute": "value",
381
381
  "reflect": false,
@@ -459,7 +459,7 @@ export class Textarea {
459
459
  "composed": true,
460
460
  "docs": {
461
461
  "tags": [],
462
- "text": "Emitted when the input loses focus."
462
+ "text": "Emitted when the textarea loses focus."
463
463
  },
464
464
  "complexType": {
465
465
  "original": "void",
@@ -474,7 +474,7 @@ export class Textarea {
474
474
  "composed": true,
475
475
  "docs": {
476
476
  "tags": [],
477
- "text": "Emitted when the input has focus."
477
+ "text": "Emitted when the textarea has focus."
478
478
  },
479
479
  "complexType": {
480
480
  "original": "void",