@roadtrip/components 2.25.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 (355) 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 +4 -4
  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 +1 -1
  10. package/dist/cjs/road-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/road-badge_11.cjs.entry.js +12 -4
  12. package/dist/cjs/road-card.cjs.entry.js +1 -1
  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 +3 -3
  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 +1 -1
  23. package/dist/cjs/road-input-group.cjs.entry.js +1 -1
  24. package/dist/cjs/road-input.cjs.entry.js +2 -2
  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 +1 -1
  29. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  30. package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
  31. package/dist/cjs/road-radio.cjs.entry.js +1 -1
  32. package/dist/cjs/road-range.cjs.entry.js +1 -1
  33. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  34. package/dist/cjs/road-select-filter.cjs.entry.js +44 -47
  35. package/dist/cjs/road-select.cjs.entry.js +1 -1
  36. package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
  37. package/dist/cjs/road-spinner.cjs.entry.js +1 -1
  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 +1 -1
  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 +1 -1
  48. package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
  49. package/dist/cjs/roadtrip.cjs.js +4 -4
  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.stories.js +50 -18
  58. package/dist/collection/components/avatar/avatar.stories.js +39 -14
  59. package/dist/collection/components/badge/badge.stories.js +33 -35
  60. package/dist/collection/components/button/button.css +4 -4
  61. package/dist/collection/components/button/button.js +16 -6
  62. package/dist/collection/components/button/button.stories.js +161 -70
  63. package/dist/collection/components/carousel/carousel.css +2 -2
  64. package/dist/collection/components/carousel/carousel.stories.js +317 -73
  65. package/dist/collection/components/checkbox/checkbox.js +4 -4
  66. package/dist/collection/components/checkbox/checkbox.stories.js +88 -63
  67. package/dist/collection/components/chip/chip.js +6 -6
  68. package/dist/collection/components/chip/chip.stories.js +58 -82
  69. package/dist/collection/components/collapse/collapse.js +7 -7
  70. package/dist/collection/components/collapse/collapse.stories.js +141 -126
  71. package/dist/collection/components/counter/counter.js +4 -4
  72. package/dist/collection/components/counter/counter.stories.js +64 -30
  73. package/dist/collection/components/dialog/dialog.stories.js +81 -37
  74. package/dist/collection/components/drawer/drawer.stories.js +187 -79
  75. package/dist/collection/components/dropdown/dropdown.js +2 -2
  76. package/dist/collection/components/dropdown/dropdown.stories.js +41 -21
  77. package/dist/collection/components/flap/flap.stories.js +35 -31
  78. package/dist/collection/components/grid/grid.stories.js +5 -5
  79. package/dist/collection/components/icon/icon.stories.js +88 -62
  80. package/dist/collection/components/icon/svg/attachment.svg +1 -0
  81. package/dist/collection/components/icon/svg/check-list-color.svg +1 -0
  82. package/dist/collection/components/icon/svg/check-list.svg +1 -0
  83. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  84. package/dist/collection/components/icon/svg/vehicle-car-all-authorize-outline.svg +1 -0
  85. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  86. package/dist/collection/components/icon/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  87. package/dist/collection/components/input/input.css +4 -4
  88. package/dist/collection/components/input/input.stories.js +192 -126
  89. package/dist/collection/components/input-group/input-group.stories.js +44 -35
  90. package/dist/collection/components/item/item.css +2 -2
  91. package/dist/collection/components/item/item.stories.js +118 -24
  92. package/dist/collection/components/list/list.stories.js +48 -46
  93. package/dist/collection/components/modal/modal.stories.js +46 -30
  94. package/dist/collection/components/navbar/navbar.stories.js +40 -23
  95. package/dist/collection/components/plate-number/plate-number.stories.js +33 -14
  96. package/dist/collection/components/progress/progress.stories.js +3 -3
  97. package/dist/collection/components/radio/radio.stories.js +47 -30
  98. package/dist/collection/components/range/range.stories.js +39 -32
  99. package/dist/collection/components/rating/rating.stories.js +40 -31
  100. package/dist/collection/components/select/select.stories.js +81 -89
  101. package/dist/collection/components/select-filter/select-filter.stories.js +81 -100
  102. package/dist/collection/components/switch/switch.js +8 -8
  103. package/dist/collection/components/switch/switch.stories.js +94 -82
  104. package/dist/collection/components/table/table.stories.js +15 -6
  105. package/dist/collection/components/tabs/tabs.stories.js +106 -57
  106. package/dist/collection/components/text/text.stories.js +8 -4
  107. package/dist/collection/components/textarea/textarea.js +12 -12
  108. package/dist/collection/components/textarea/textarea.stories.js +132 -110
  109. package/dist/collection/components/toast/toast.js +4 -4
  110. package/dist/collection/components/toast/toast.stories.js +60 -46
  111. package/dist/collection/components/toolbar/toolbar.stories.js +50 -13
  112. package/dist/collection/components/tooltip/tooltip.js +4 -4
  113. package/dist/collection/components/tooltip/tooltip.stories.js +78 -11
  114. package/dist/esm/{app-6a43d362.js → app-a32f9d74.js} +1 -1
  115. package/dist/esm/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +1 -1
  116. package/dist/esm/{dom-c7604576.js → dom-ba83fb9d.js} +1 -1
  117. package/dist/esm/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  118. package/dist/esm/index.js +2 -2
  119. package/dist/esm/loader.js +4 -4
  120. package/dist/esm/road-accordion.entry.js +3 -3
  121. package/dist/esm/road-alert.entry.js +1 -1
  122. package/dist/esm/road-autocomplete.entry.js +1 -1
  123. package/dist/esm/road-avatar.entry.js +1 -1
  124. package/dist/esm/road-badge_11.entry.js +12 -4
  125. package/dist/esm/road-card.entry.js +1 -1
  126. package/dist/esm/road-carousel-item.entry.js +1 -1
  127. package/dist/esm/road-carousel.entry.js +1 -1
  128. package/dist/esm/road-checkbox.entry.js +2 -2
  129. package/dist/esm/road-chip.entry.js +4 -4
  130. package/dist/esm/road-collapse.entry.js +4 -4
  131. package/dist/esm/road-counter.entry.js +3 -3
  132. package/dist/esm/road-dialog.entry.js +1 -1
  133. package/dist/esm/road-dropdown.entry.js +2 -2
  134. package/dist/esm/road-flap.entry.js +1 -1
  135. package/dist/esm/road-img.entry.js +1 -1
  136. package/dist/esm/road-input-group.entry.js +1 -1
  137. package/dist/esm/road-input.entry.js +2 -2
  138. package/dist/esm/road-modal.entry.js +1 -1
  139. package/dist/esm/road-navbar-item.entry.js +1 -1
  140. package/dist/esm/road-navbar.entry.js +1 -1
  141. package/dist/esm/road-plate-number.entry.js +1 -1
  142. package/dist/esm/road-progress.entry.js +1 -1
  143. package/dist/esm/road-radio-group.entry.js +1 -1
  144. package/dist/esm/road-radio.entry.js +1 -1
  145. package/dist/esm/road-range.entry.js +1 -1
  146. package/dist/esm/road-rating.entry.js +1 -1
  147. package/dist/esm/road-select-filter.entry.js +44 -47
  148. package/dist/esm/road-select.entry.js +1 -1
  149. package/dist/esm/road-skeleton.entry.js +1 -1
  150. package/dist/esm/road-spinner.entry.js +1 -1
  151. package/dist/esm/road-switch.entry.js +4 -4
  152. package/dist/esm/road-tab-bar.entry.js +1 -1
  153. package/dist/esm/road-tab-button.entry.js +1 -1
  154. package/dist/esm/road-tab.entry.js +1 -1
  155. package/dist/esm/road-table.entry.js +1 -1
  156. package/dist/esm/road-tabs.entry.js +1 -1
  157. package/dist/esm/road-text.entry.js +1 -1
  158. package/dist/esm/road-textarea.entry.js +6 -6
  159. package/dist/esm/road-toast.entry.js +3 -3
  160. package/dist/esm/road-toolbar-title.entry.js +1 -1
  161. package/dist/esm/road-tooltip.entry.js +3 -3
  162. package/dist/esm/roadtrip.js +4 -4
  163. package/dist/esm/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +1 -1
  164. package/dist/esm/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  165. package/dist/esm-es5/app-a32f9d74.js +1 -0
  166. package/dist/esm-es5/{css-shim-aea0f6cc.js → css-shim-17041dc7.js} +0 -0
  167. package/dist/esm-es5/{dom-c7604576.js → dom-ba83fb9d.js} +0 -0
  168. package/dist/esm-es5/{index-4e5ea092.js → index-0c8a0e04.js} +1 -1
  169. package/dist/esm-es5/index.js +1 -1
  170. package/dist/esm-es5/loader.js +1 -1
  171. package/dist/esm-es5/road-accordion.entry.js +1 -1
  172. package/dist/esm-es5/road-alert.entry.js +1 -1
  173. package/dist/esm-es5/road-autocomplete.entry.js +1 -1
  174. package/dist/esm-es5/road-avatar.entry.js +1 -1
  175. package/dist/esm-es5/road-badge_11.entry.js +1 -1
  176. package/dist/esm-es5/road-card.entry.js +1 -1
  177. package/dist/esm-es5/road-carousel-item.entry.js +1 -1
  178. package/dist/esm-es5/road-carousel.entry.js +1 -1
  179. package/dist/esm-es5/road-checkbox.entry.js +1 -1
  180. package/dist/esm-es5/road-chip.entry.js +1 -1
  181. package/dist/esm-es5/road-collapse.entry.js +1 -1
  182. package/dist/esm-es5/road-counter.entry.js +1 -1
  183. package/dist/esm-es5/road-dialog.entry.js +1 -1
  184. package/dist/esm-es5/road-dropdown.entry.js +1 -1
  185. package/dist/esm-es5/road-flap.entry.js +1 -1
  186. package/dist/esm-es5/road-img.entry.js +1 -1
  187. package/dist/esm-es5/road-input-group.entry.js +1 -1
  188. package/dist/esm-es5/road-input.entry.js +1 -1
  189. package/dist/esm-es5/road-modal.entry.js +1 -1
  190. package/dist/esm-es5/road-navbar-item.entry.js +1 -1
  191. package/dist/esm-es5/road-navbar.entry.js +1 -1
  192. package/dist/esm-es5/road-plate-number.entry.js +1 -1
  193. package/dist/esm-es5/road-progress.entry.js +1 -1
  194. package/dist/esm-es5/road-radio-group.entry.js +1 -1
  195. package/dist/esm-es5/road-radio.entry.js +1 -1
  196. package/dist/esm-es5/road-range.entry.js +1 -1
  197. package/dist/esm-es5/road-rating.entry.js +1 -1
  198. package/dist/esm-es5/road-select-filter.entry.js +1 -1
  199. package/dist/esm-es5/road-select.entry.js +1 -1
  200. package/dist/esm-es5/road-skeleton.entry.js +1 -1
  201. package/dist/esm-es5/road-spinner.entry.js +1 -1
  202. package/dist/esm-es5/road-switch.entry.js +1 -1
  203. package/dist/esm-es5/road-tab-bar.entry.js +1 -1
  204. package/dist/esm-es5/road-tab-button.entry.js +1 -1
  205. package/dist/esm-es5/road-tab.entry.js +1 -1
  206. package/dist/esm-es5/road-table.entry.js +1 -1
  207. package/dist/esm-es5/road-tabs.entry.js +1 -1
  208. package/dist/esm-es5/road-text.entry.js +1 -1
  209. package/dist/esm-es5/road-textarea.entry.js +1 -1
  210. package/dist/esm-es5/road-toast.entry.js +1 -1
  211. package/dist/esm-es5/road-toolbar-title.entry.js +1 -1
  212. package/dist/esm-es5/road-tooltip.entry.js +1 -1
  213. package/dist/esm-es5/roadtrip.js +1 -1
  214. package/dist/esm-es5/{shadow-css-83bb1d14.js → shadow-css-bfd5796e.js} +0 -0
  215. package/dist/esm-es5/{utils-23aa19c1.js → utils-39de47f7.js} +1 -1
  216. package/dist/html.html-data.json +24 -21
  217. package/dist/icons/icons.svg +1 -1
  218. package/dist/icons/index.d.ts +7 -0
  219. package/dist/icons/index.js +7 -0
  220. package/dist/roadtrip/index.esm.js +1 -1
  221. package/dist/roadtrip/{p-05373846.system.js → p-05961c88.system.js} +1 -1
  222. package/dist/roadtrip/{p-b1a05290.system.entry.js → p-06a743b4.system.entry.js} +1 -1
  223. package/dist/roadtrip/{p-78143a79.system.entry.js → p-093a2288.system.entry.js} +1 -1
  224. package/dist/roadtrip/{p-88179272.entry.js → p-0a5f2c0f.entry.js} +1 -1
  225. package/dist/roadtrip/{p-aa63d5e9.system.entry.js → p-0b4b6077.system.entry.js} +1 -1
  226. package/dist/roadtrip/{p-9bbeb646.entry.js → p-0e5cecff.entry.js} +1 -1
  227. package/dist/roadtrip/{p-cb2bebde.entry.js → p-0f8da68b.entry.js} +1 -1
  228. package/dist/roadtrip/p-102d3882.system.js +1 -0
  229. package/dist/roadtrip/{p-79a745a7.entry.js → p-1347a27e.entry.js} +1 -1
  230. package/dist/roadtrip/{p-f62ebe3f.system.entry.js → p-13c18cec.system.entry.js} +1 -1
  231. package/dist/roadtrip/{p-d39f805b.entry.js → p-16a1b3cb.entry.js} +1 -1
  232. package/dist/roadtrip/{p-0205d149.entry.js → p-194b2934.entry.js} +1 -1
  233. package/dist/roadtrip/{p-0245b436.system.entry.js → p-19c89e8f.system.entry.js} +1 -1
  234. package/dist/roadtrip/p-1c0851b0.entry.js +1 -0
  235. package/dist/roadtrip/{p-bc8a92cf.system.entry.js → p-1ef8acf8.system.entry.js} +1 -1
  236. package/dist/roadtrip/{p-1d83535a.entry.js → p-24234448.entry.js} +1 -1
  237. package/dist/roadtrip/{p-cedaf396.system.entry.js → p-25c303d8.system.entry.js} +1 -1
  238. package/dist/roadtrip/{p-45b87537.system.entry.js → p-26b3aa33.system.entry.js} +1 -1
  239. package/dist/roadtrip/{p-e5eda362.system.entry.js → p-2740d308.system.entry.js} +1 -1
  240. package/dist/roadtrip/{p-d5da11ca.system.entry.js → p-287f1612.system.entry.js} +1 -1
  241. package/dist/roadtrip/{p-8cb74e64.js → p-33e38a04.js} +1 -1
  242. package/dist/roadtrip/{p-c7895d95.system.js → p-3683fe49.system.js} +0 -0
  243. package/dist/roadtrip/p-3cb3107f.entry.js +1 -0
  244. package/dist/roadtrip/{p-8374797d.entry.js → p-44576eac.entry.js} +1 -1
  245. package/dist/roadtrip/p-46c22946.js +1 -0
  246. package/dist/roadtrip/{p-41bcd21c.system.entry.js → p-4742a822.system.entry.js} +1 -1
  247. package/dist/roadtrip/{p-a082797b.entry.js → p-4ef3684e.entry.js} +1 -1
  248. package/dist/roadtrip/{p-5cfcbccd.system.entry.js → p-52f05a7c.system.entry.js} +1 -1
  249. package/dist/roadtrip/{p-41aa7a41.system.entry.js → p-54635daa.system.entry.js} +1 -1
  250. package/dist/roadtrip/{p-adfa74db.entry.js → p-5bcd3e1f.entry.js} +1 -1
  251. package/dist/roadtrip/{p-694eee8e.system.entry.js → p-5e8571d3.system.entry.js} +1 -1
  252. package/dist/roadtrip/p-6195c41f.system.entry.js +1 -0
  253. package/dist/roadtrip/{p-c9b37cd7.entry.js → p-63aa411f.entry.js} +1 -1
  254. package/dist/roadtrip/{p-3d2cf159.entry.js → p-68af3047.entry.js} +1 -1
  255. package/dist/roadtrip/{p-43da88c6.system.entry.js → p-6a123e72.system.entry.js} +1 -1
  256. package/dist/roadtrip/{p-0626f8a2.system.entry.js → p-6cf85ea2.system.entry.js} +1 -1
  257. package/dist/roadtrip/{p-fe45a922.entry.js → p-6f744bd8.entry.js} +1 -1
  258. package/dist/roadtrip/{p-8649dccc.system.js → p-7154119b.system.js} +0 -0
  259. package/dist/roadtrip/{p-a1f59f11.system.entry.js → p-74218654.system.entry.js} +1 -1
  260. package/dist/roadtrip/{p-085aad0a.system.entry.js → p-766f8a2a.system.entry.js} +1 -1
  261. package/dist/roadtrip/{p-628f5836.system.entry.js → p-76885294.system.entry.js} +1 -1
  262. package/dist/roadtrip/{p-8b445fbd.entry.js → p-768d1a90.entry.js} +1 -1
  263. package/dist/roadtrip/{p-ffd2a5c1.system.entry.js → p-76f26f2b.system.entry.js} +1 -1
  264. package/dist/roadtrip/{p-923c9893.entry.js → p-78315356.entry.js} +1 -1
  265. package/dist/roadtrip/p-7b733694.js +1 -0
  266. package/dist/roadtrip/{p-ad3b839e.entry.js → p-7fe4f8f3.entry.js} +1 -1
  267. package/dist/roadtrip/{p-89fb8799.entry.js → p-82a07b27.entry.js} +1 -1
  268. package/dist/roadtrip/{p-6688d8f8.system.entry.js → p-835d550a.system.entry.js} +1 -1
  269. package/dist/roadtrip/{p-acc76968.entry.js → p-8d18ebce.entry.js} +1 -1
  270. package/dist/roadtrip/{p-11db7868.system.entry.js → p-8e21df57.system.entry.js} +1 -1
  271. package/dist/roadtrip/{p-dad9d770.entry.js → p-92300d3f.entry.js} +1 -1
  272. package/dist/roadtrip/{p-8067c254.system.entry.js → p-93345613.system.entry.js} +1 -1
  273. package/dist/roadtrip/{p-9846103f.entry.js → p-93ccfda6.entry.js} +1 -1
  274. package/dist/roadtrip/{p-356163fb.js → p-93dab753.js} +0 -0
  275. package/dist/roadtrip/{p-39dd9c7f.entry.js → p-9567d161.entry.js} +1 -1
  276. package/dist/roadtrip/{p-a671df87.entry.js → p-9a1a293c.entry.js} +1 -1
  277. package/dist/roadtrip/p-9a36bd11.system.entry.js +1 -0
  278. package/dist/roadtrip/{p-be0b7289.entry.js → p-9dd72bfa.entry.js} +1 -1
  279. package/dist/roadtrip/{p-25ea233f.system.entry.js → p-a1168bd5.system.entry.js} +1 -1
  280. package/dist/roadtrip/{p-2cf6206e.system.entry.js → p-a1628953.system.entry.js} +1 -1
  281. package/dist/roadtrip/p-a3bc0e5b.entry.js +1 -0
  282. package/dist/roadtrip/{p-3c7147c6.system.entry.js → p-a467913d.system.entry.js} +1 -1
  283. package/dist/roadtrip/{p-a567cedb.entry.js → p-a61e04a1.entry.js} +1 -1
  284. package/dist/roadtrip/{p-85aa4543.system.entry.js → p-a64c67ad.system.entry.js} +1 -1
  285. package/dist/roadtrip/{p-06049c44.entry.js → p-a7dc1c0c.entry.js} +1 -1
  286. package/dist/roadtrip/{p-8fc0f477.system.entry.js → p-a87e8b19.system.entry.js} +1 -1
  287. package/dist/roadtrip/{p-f95a155f.entry.js → p-a9c74737.entry.js} +1 -1
  288. package/dist/roadtrip/{p-ad4a83f1.js → p-ac0761c3.js} +0 -0
  289. package/dist/roadtrip/{p-b862fe1a.system.js → p-ad92df4f.system.js} +1 -1
  290. package/dist/roadtrip/{p-d0a42614.entry.js → p-adbaa790.entry.js} +1 -1
  291. package/dist/roadtrip/{p-84578822.system.entry.js → p-b0ec7122.system.entry.js} +1 -1
  292. package/dist/roadtrip/{p-17ed8237.entry.js → p-b0ed748a.entry.js} +1 -1
  293. package/dist/roadtrip/{p-36a7c233.system.js → p-b205281e.system.js} +1 -1
  294. package/dist/roadtrip/{p-a6827ec2.entry.js → p-b501c4b2.entry.js} +1 -1
  295. package/dist/roadtrip/{p-b6ea7ba9.system.entry.js → p-b591a3f7.system.entry.js} +1 -1
  296. package/dist/roadtrip/{p-c873409a.system.entry.js → p-b6e60fca.system.entry.js} +1 -1
  297. package/dist/roadtrip/{p-ffacdd19.entry.js → p-bba29599.entry.js} +1 -1
  298. package/dist/roadtrip/{p-d3e3af9e.system.entry.js → p-bd2a89d4.system.entry.js} +1 -1
  299. package/dist/roadtrip/{p-f907849c.system.entry.js → p-c0429d42.system.entry.js} +1 -1
  300. package/dist/roadtrip/{p-f10872aa.entry.js → p-ced4c451.entry.js} +1 -1
  301. package/dist/roadtrip/{p-9b04e0cb.system.entry.js → p-cf4b48af.system.entry.js} +1 -1
  302. package/dist/roadtrip/p-d5607a82.system.entry.js +1 -0
  303. package/dist/roadtrip/{p-790067ad.system.entry.js → p-d861032d.system.entry.js} +1 -1
  304. package/dist/roadtrip/{p-f6d6d227.entry.js → p-dcfc236e.entry.js} +1 -1
  305. package/dist/roadtrip/{p-13b46f63.system.entry.js → p-de1a3a53.system.entry.js} +1 -1
  306. package/dist/roadtrip/{p-3e56faf1.entry.js → p-e4b0578a.entry.js} +1 -1
  307. package/dist/roadtrip/{p-f0704f07.system.entry.js → p-e56b3c0f.system.entry.js} +1 -1
  308. package/dist/roadtrip/{p-0bc3262d.entry.js → p-e5756d79.entry.js} +1 -1
  309. package/dist/roadtrip/{p-82d3347b.entry.js → p-e70b2a21.entry.js} +1 -1
  310. package/dist/roadtrip/{p-2d8ba6be.entry.js → p-e9a6f1fb.entry.js} +1 -1
  311. package/dist/roadtrip/{p-388a7f61.system.entry.js → p-eaf8ddaf.system.entry.js} +1 -1
  312. package/dist/roadtrip/{p-e719a34e.entry.js → p-ed2dbf57.entry.js} +1 -1
  313. package/dist/roadtrip/{p-72b3db6d.system.js → p-efa19d38.system.js} +0 -0
  314. package/dist/roadtrip/{p-9233dfbe.entry.js → p-f0ec3a64.entry.js} +1 -1
  315. package/dist/roadtrip/{p-8a9626cc.entry.js → p-f22c63b7.entry.js} +1 -1
  316. package/dist/roadtrip/p-f2593f4b.system.entry.js +1 -0
  317. package/dist/roadtrip/{p-2b0d3888.system.js → p-f33e4ac5.system.js} +1 -1
  318. package/dist/roadtrip/{p-112e8d3f.js → p-f6631560.js} +0 -0
  319. package/dist/roadtrip/roadtrip.esm.js +1 -1
  320. package/dist/roadtrip/roadtrip.js +1 -1
  321. package/dist/roadtrip/svg/attachment.svg +1 -0
  322. package/dist/roadtrip/svg/check-list-color.svg +1 -0
  323. package/dist/roadtrip/svg/check-list.svg +1 -0
  324. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline-color.svg +1 -0
  325. package/dist/roadtrip/svg/vehicle-car-all-authorize-outline.svg +1 -0
  326. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline-color.svg +1 -0
  327. package/dist/roadtrip/svg/vehicle-car-all-unauthorize-outline.svg +1 -0
  328. package/dist/types/components/accordion/accordion.d.ts +1 -1
  329. package/dist/types/components/button/button.d.ts +2 -2
  330. package/dist/types/components/checkbox/checkbox.d.ts +3 -3
  331. package/dist/types/components/chip/chip.d.ts +3 -3
  332. package/dist/types/components/collapse/collapse.d.ts +4 -4
  333. package/dist/types/components/counter/counter.d.ts +2 -2
  334. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  335. package/dist/types/components/switch/switch.d.ts +5 -5
  336. package/dist/types/components/textarea/textarea.d.ts +8 -8
  337. package/dist/types/components/toast/toast.d.ts +2 -2
  338. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  339. package/dist/types/components.d.ts +53 -53
  340. package/dist/types/stencil-public-runtime.d.ts +6 -4
  341. package/icons/icons.svg +1 -1
  342. package/icons/index.d.ts +7 -0
  343. package/icons/index.js +7 -0
  344. package/package.json +7 -6
  345. package/dist/esm-es5/app-6a43d362.js +0 -1
  346. package/dist/roadtrip/p-10cc8504.system.entry.js +0 -1
  347. package/dist/roadtrip/p-55c19c46.system.entry.js +0 -1
  348. package/dist/roadtrip/p-70d0fb28.entry.js +0 -1
  349. package/dist/roadtrip/p-95dd1ee4.system.entry.js +0 -1
  350. package/dist/roadtrip/p-9d3921a8.system.js +0 -1
  351. package/dist/roadtrip/p-c6b70e6f.js +0 -1
  352. package/dist/roadtrip/p-c94f70de.entry.js +0 -1
  353. package/dist/roadtrip/p-d11931f0.js +0 -1
  354. package/dist/roadtrip/p-da3ea4e5.entry.js +0 -1
  355. package/dist/roadtrip/p-fe70fb94.system.entry.js +0 -1
@@ -1,4 +1,6 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
4
 
3
5
  export default {
4
6
  title: 'Forms/Chip',
@@ -8,96 +10,70 @@ export default {
8
10
  default: 'grey',
9
11
  },
10
12
  },
11
- };
12
-
13
- export const Playground = (args) => html`
14
- <road-chip
15
- outline="${args.outline}"
16
- has-close-icon="${args['has-close-icon']}"
17
- size="${args.size}"
18
- color="${args.color}"
19
- >
20
- ${args['']}
21
- </road-chip>
22
- `;
23
- Playground.args = {
24
- '': 'Label',
25
- outline: true,
26
- 'has-close-icon': true,
27
- size: 'md',
28
- color: 'default',
29
- };
30
- Playground.argTypes = {
31
- '': {
32
- control: 'text',
33
- },
34
- outline: {
35
- control: 'boolean',
36
- },
37
- 'has-close-icon': {
38
- control: 'boolean',
39
- },
40
- size: {
41
- options: ['md', 'lg'],
42
- control: {
43
- type: 'select',
13
+ argTypes: {
14
+ ' ': {
15
+ control: 'text',
44
16
  },
45
- },
46
- color: {
47
- options: ['default', 'secondary'],
48
- control: {
49
- type: 'select',
17
+ outline: {
18
+ control: 'boolean',
19
+ },
20
+ 'has-close-icon': {
21
+ control: 'boolean',
22
+ },
23
+ size: {
24
+ options: ['md', 'lg'],
25
+ control: {
26
+ type: 'select',
27
+ },
28
+ },
29
+ color: {
30
+ options: ['default', 'secondary'],
31
+ control: {
32
+ type: 'select',
33
+ },
50
34
  },
51
35
  },
36
+ args: {
37
+ outline: null,
38
+ 'has-close-icon': null,
39
+ ' ': `Label`,
40
+ },
52
41
  };
53
42
 
54
- export const FilterChips = () => html`
55
- <road-chip outline has-close-icon>
56
- Summer
57
- </road-chip>
58
-
59
- <road-chip outline has-close-icon>
60
- Michelin
61
- </road-chip>
62
-
63
- <road-chip outline has-close-icon>
64
- 20 € - 50 €
65
- </road-chip>
66
- `;
67
-
68
- export const LeadingIcon = () => html`
69
- <road-chip outline has-close-icon>
70
- <road-icon name="petrol" size="sm"></road-icon>
71
- A
72
- </road-chip>
73
-
74
- <road-chip outline has-close-icon>
75
- <road-icon name="weather-rain" size="sm"></road-icon>
76
- B
77
- </road-chip>
78
-
79
- <road-chip outline has-close-icon>
80
- <road-icon name="sound-2" size="sm"></road-icon>
81
- 66
43
+ const Template = (args) => html`
44
+ <road-chip
45
+ outline="${ifDefined(args.outline)}"
46
+ has-close-icon="${ifDefined(args['has-close-icon'])}"
47
+ size="${ifDefined(args.size)}"
48
+ color="${ifDefined(args.color)}"
49
+ >
50
+ ${unsafeHTML(args[' '])}
82
51
  </road-chip>
83
52
  `;
84
53
 
85
- export const ResetFilterChip = () => html`
86
- <road-chip color="secondary">
87
- Reset
88
- </road-chip>
89
- `;
54
+ export const Playground = Template.bind({});
55
+ Playground.args = {
56
+ outline: true,
57
+ 'has-close-icon': true,
58
+ };
90
59
 
91
- export const TagChips = () => html`
92
- <road-chip outline size="lg">
93
- Revision
94
- </road-chip>
60
+ export const withIcon = Template.bind({});
61
+ withIcon.args = {
62
+ outline: true,
63
+ 'has-close-icon': true,
64
+ ' ': `<road-icon name="weather-rain" class="mr-4" size="sm"></road-icon>
65
+ B`,
66
+ };
95
67
 
96
- <road-chip outline size="lg">
97
- Number plate
98
- </road-chip>
68
+ export const Color = Template.bind({});
69
+ Color.args = {
70
+ color: 'secondary',
71
+ ' ': `Reset`,
72
+ };
99
73
 
100
- <road-chip outline size="lg">
101
- Car registration
102
- </road-chip>
103
- `;
74
+ export const Size = Template.bind({});
75
+ Size.args = {
76
+ outline: true,
77
+ size: 'lg',
78
+ ' ': `Revision`,
79
+ };
@@ -1,12 +1,12 @@
1
1
  import { Component, Host, h, Prop } from '@stencil/core';
2
2
  /**
3
3
  * @slot - Content visible when collapsed.
4
- * @slot collapsed-content - content invisible when collapsed.
4
+ * @slot collapsed-content - content not visible when collapsed.
5
5
  */
6
6
  export class Collapse {
7
7
  constructor() {
8
8
  /**
9
- * Set open to true to show the accordion element and to false to hide it.
9
+ * Set to `true` to display the collapsed part and to `false` to hide it.
10
10
  */
11
11
  this.isOpen = false;
12
12
  /**
@@ -14,11 +14,11 @@ export class Collapse {
14
14
  */
15
15
  this.showMore = 'show more';
16
16
  /**
17
- * Text displayed in the button when the content is collapsed
17
+ * Text displayed in the button when the content is not collapsed
18
18
  */
19
19
  this.showLess = 'show less';
20
20
  /**
21
- * if "`true`" the button will be centered
21
+ * if `true` the button will be centered
22
22
  */
23
23
  this.centered = false;
24
24
  /**
@@ -60,7 +60,7 @@ export class Collapse {
60
60
  "optional": false,
61
61
  "docs": {
62
62
  "tags": [],
63
- "text": "Set open to true to show the accordion element and to false to hide it."
63
+ "text": "Set to `true` to display the collapsed part and to `false` to hide it."
64
64
  },
65
65
  "attribute": "is-open",
66
66
  "reflect": false,
@@ -96,7 +96,7 @@ export class Collapse {
96
96
  "optional": false,
97
97
  "docs": {
98
98
  "tags": [],
99
- "text": "Text displayed in the button when the content is collapsed"
99
+ "text": "Text displayed in the button when the content is not collapsed"
100
100
  },
101
101
  "attribute": "show-less",
102
102
  "reflect": false,
@@ -114,7 +114,7 @@ export class Collapse {
114
114
  "optional": false,
115
115
  "docs": {
116
116
  "tags": [],
117
- "text": "if \"`true`\" the button will be centered"
117
+ "text": "if `true` the button will be centered"
118
118
  },
119
119
  "attribute": "centered",
120
120
  "reflect": false,
@@ -1,155 +1,170 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
2
4
 
3
5
  export default {
4
6
  title: 'Expand/Collapse',
5
7
  component: 'road-collapse',
6
- };
7
-
8
- export const Playground = (args) => html`
9
- <road-collapse is-open="${args['is-open']}" show-more="${args['show-more']}" show-less="${args['show-less']}" centered="${args.centered}">
10
- <ul class="m-0">
11
- <li>Car tire 205/55 R16 91 V</li>
12
- <li>Good traction on dry and wet soils.</li>
13
- <li>Reduced risk of aquaplaning.</li>
14
- <li>Reduced braking distances.</li>
15
- </ul>
16
- <div slot="collapsed-content">
17
- <ul class="m-0">
18
- <li>Specific Homologation : <b>non</b></li>
19
- <li>XL : <b>non</b></li>
20
- <li>Runflat : <b>non</b></li>
21
- <li>Seal : <b>non</b></li>
22
- <li>Various tire characteristics : <b>MFS</b></li>
23
- <li>Tire profile : <b>Energy saver</b></li>
24
- </ul>
25
- </div>
26
- </road-collapse>
27
- `;
28
- Playground.args = {
29
- 'is-open': false,
30
- centered: false,
31
- 'show-less': 'show less',
32
- 'show-more': 'show more',
33
- };
34
- Playground.argTypes = {
35
- 'is-open': {
36
- control: 'boolean',
37
- },
38
- centered: {
39
- control: 'boolean',
8
+ argTypes: {
9
+ 'is-open': {
10
+ control: 'boolean',
11
+ },
12
+ centered: {
13
+ control: 'boolean',
14
+ },
15
+ 'show-less': {
16
+ control: 'text',
17
+ },
18
+ 'show-more': {
19
+ control: 'text',
20
+ },
21
+ ' ': {
22
+ control: 'text',
23
+ },
24
+ 'collapsed-content': {
25
+ control: 'text',
26
+ },
27
+ '--btn-padding-start': {
28
+ table: {
29
+ defaultValue: { summary: '1rem' },
30
+ },
31
+ control: {
32
+ type: null,
33
+ },
34
+ },
35
+ '--btn-padding-end': {
36
+ table: {
37
+ defaultValue: { summary: '1rem' },
38
+ },
39
+ control: {
40
+ type: null,
41
+ },
42
+ },
43
+ '--btn-margin-bottom': {
44
+ table: {
45
+ defaultValue: { summary: '1rem' },
46
+ },
47
+ control: {
48
+ type: null,
49
+ },
50
+ },
51
+ '--btn-font-size': {
52
+ table: {
53
+ defaultValue: { summary: '1rem' },
54
+ },
55
+ control: {
56
+ type: null,
57
+ },
58
+ },
59
+ '--max-height': {
60
+ table: {
61
+ defaultValue: { summary: '500px' },
62
+ },
63
+ control: {
64
+ type: null,
65
+ },
66
+ },
40
67
  },
41
- 'show-less': {
42
- control: 'text',
43
- },
44
- 'show-more': {
45
- control: 'text',
68
+ args: {
69
+ 'is-open': null,
70
+ centered: null,
71
+ 'show-less': 'show less',
72
+ 'show-more': 'show more',
73
+ ' ': `<ul class="m-0">
74
+ <li>Car tire 205/55 R16 91 V</li>
75
+ <li>Good traction on dry and wet soils.</li>
76
+ <li>Reduced risk of aquaplaning.</li>
77
+ <li>Reduced braking distances.</li>
78
+ </ul>`,
79
+ 'collapsed-content': `<ul class="m-0">
80
+ <li>Specific Homologation : <b>non</b></li>
81
+ <li>XL : <b>non</b></li>
82
+ <li>Runflat : <b>non</b></li>
83
+ <li>Seal : <b>non</b></li>
84
+ <li>Various tire characteristics : <b>MFS</b></li>
85
+ <li>Tire profile : <b>Energy saver</b></li>
86
+ </ul>`,
46
87
  },
47
88
  };
48
89
 
49
- export const Default = () => html`
50
- <road-collapse show-more="show more" show-less="show less">
51
- <ul class="m-0">
52
- <li>Car tire 205/55 R16 91 V</li>
53
- <li>Good traction on dry and wet soils.</li>
54
- <li>Reduced risk of aquaplaning.</li>
55
- <li>Reduced braking distances.</li>
56
- </ul>
57
- <div slot="collapsed-content">
58
- <ul class="m-0">
59
- <li>Specific Homologation : <b>non</b></li>
60
- <li>XL : <b>non</b></li>
61
- <li>Runflat : <b>non</b></li>
62
- <li>Seal : <b>non</b></li>
63
- <li>Various tire characteristics : <b>MFS</b></li>
64
- <li>Tire profile : <b>Energy saver</b></li>
65
- </ul>
66
- </div>
67
- </road-collapse>
90
+ const Template = (args) => html`
91
+ <road-collapse is-open="${ifDefined(args['is-open'])}" centered="${ifDefined(args.centered)}" show-more="${args['show-more']}" show-less="${args['show-less']}">
92
+ ${unsafeHTML(args[' '])}
93
+ <div slot="collapsed-content">
94
+ ${unsafeHTML(args['collapsed-content'])}
95
+ </div>
96
+ </road-collapse>
68
97
  `;
69
98
 
70
- export const Open = () => html`
71
- <road-collapse is-open showMore="show more" showLess="show less">
72
- <ul class="m-0">
73
- <li>Car tire 205/55 R16 91 V</li>
74
- <li>Good traction on dry and wet soils.</li>
75
- <li>Reduced risk of aquaplaning.</li>
76
- <li>Reduced braking distances.</li>
77
- </ul>
78
- <div slot="collapsed-content">
79
- <ul class="m-0">
80
- <li>Specific Homologation : <b>non</b></li>
81
- <li>XL : <b>non</b></li>
82
- <li>Runflat : <b>non</b></li>
83
- <li>Seal : <b>non</b></li>
84
- <li>Various tire characteristics : <b>MFS</b></li>
85
- <li>Tire profile : <b>Energy saver</b></li>
86
- </ul>
87
- </div>
88
- </road-collapse>
89
- `;
99
+ export const Playground = Template.bind({});
100
+
101
+ export const Open = Template.bind({});
102
+ Open.args = {
103
+ 'is-open': true,
104
+ };
90
105
 
91
- export const VehicleTypes = () => html`
92
- <road-collapse centered showMore="show more" showLess="show less">
93
- <road-grid>
106
+ export const VehicleTypes = Template.bind({});
107
+ VehicleTypes.args = {
108
+ centered: true,
109
+ 'show-less': 'show less',
110
+ 'show-more': 'show more',
111
+ ' ': `<road-grid>
112
+ <road-row>
113
+ <road-col class="col-6 col-md-4 col-lg-3">
114
+ <road-card button value="car">
115
+ <road-icon name="vehicle-car" size="3x"></road-icon>
116
+ <road-label>Car</road-label>
117
+ </road-card>
118
+ </road-col>
119
+ <road-col class="col-6 col-md-4 col-lg-3">
120
+ <road-card button value="4x4">
121
+ <road-icon name="vehicle-suv" size="3x"></road-icon>
122
+ <road-label>4x4</road-label>
123
+ </road-card>
124
+ </road-col>
125
+ <road-col class="col-6 col-md-4 col-lg-3">
126
+ <road-card button value="truck">
127
+ <road-icon name="vehicle-pickup-van" size="3x"></road-icon>
128
+ <road-label>Truck</road-label>
129
+ </road-card>
130
+ </road-col>
131
+ <road-col class="col-6 col-md-4 col-lg-3">
132
+ <road-card button value="bike">
133
+ <road-icon name="vehicle-moto" size="3x"></road-icon>
134
+ <road-label>Bike</road-label>
135
+ </road-card>
136
+ </road-col>
137
+ </road-row>
138
+ </road-grid>`,
139
+ 'collapsed-content': `<road-grid>
94
140
  <road-row>
95
141
  <road-col class="col-6 col-md-4 col-lg-3">
96
- <road-card button value="car">
97
- <road-icon name="vehicle-car" size="3x"></road-icon>
98
- <road-label>Car</road-label>
142
+ <road-card button value="scooter">
143
+ <road-icon name="vehicle-scooter" size="3x"></road-icon>
144
+ <road-label>Scooter</road-label>
99
145
  </road-card>
100
146
  </road-col>
101
147
  <road-col class="col-6 col-md-4 col-lg-3">
102
- <road-card button value="4x4">
103
- <road-icon name="vehicle-suv" size="3x"></road-icon>
104
- <road-label>4x4</road-label>
148
+ <road-card button value="competition">
149
+ <road-icon name="vehicle-rally" size="3x"></road-icon>
150
+ <road-label>Compétition</road-label>
105
151
  </road-card>
106
152
  </road-col>
107
153
  <road-col class="col-6 col-md-4 col-lg-3">
108
- <road-card button value="truck">
109
- <road-icon name="vehicle-pickup-van" size="3x"></road-icon>
110
- <road-label>Truck</road-label>
154
+ <road-card button value="colletion">
155
+ <road-icon name="vehicle-collector" size="3x"></road-icon>
156
+ <road-label>Colletion</road-label>
111
157
  </road-card>
112
158
  </road-col>
113
159
  <road-col class="col-6 col-md-4 col-lg-3">
114
- <road-card button value="bike">
115
- <road-icon name="vehicle-moto" size="3x"></road-icon>
116
- <road-label>Bike</road-label>
160
+ <road-card button value="quad">
161
+ <road-icon name="vehicle-quad" size="3x"></road-icon>
162
+ <road-label>Quad</road-label>
117
163
  </road-card>
118
164
  </road-col>
119
165
  </road-row>
120
- </road-grid>
121
- <div slot="collapsed-content">
122
- <road-grid>
123
- <road-row>
124
- <road-col class="col-6 col-md-4 col-lg-3">
125
- <road-card button value="scooter">
126
- <road-icon name="vehicle-scooter" size="3x"></road-icon>
127
- <road-label>Scooter</road-label>
128
- </road-card>
129
- </road-col>
130
- <road-col class="col-6 col-md-4 col-lg-3">
131
- <road-card button value="competition">
132
- <road-icon name="vehicle-rally" size="3x"></road-icon>
133
- <road-label>Compétition</road-label>
134
- </road-card>
135
- </road-col>
136
- <road-col class="col-6 col-md-4 col-lg-3">
137
- <road-card button value="colletion">
138
- <road-icon name="vehicle-collector" size="3x"></road-icon>
139
- <road-label>Colletion</road-label>
140
- </road-card>
141
- </road-col>
142
- <road-col class="col-6 col-md-4 col-lg-3">
143
- <road-card button value="quad">
144
- <road-icon name="vehicle-quad" size="3x"></road-icon>
145
- <road-label>Quad</road-label>
146
- </road-card>
147
- </road-col>
148
- </road-row>
149
- </road-grid>
150
- </div>
151
- </road-collapse>
152
- `;
166
+ </road-grid>`,
167
+ },
153
168
  VehicleTypes.parameters = {
154
169
  backgrounds: {
155
170
  default: 'grey',
@@ -2,11 +2,11 @@ import { Component, h, Prop, Element, Event } from '@stencil/core';
2
2
  export class Counter {
3
3
  constructor() {
4
4
  /**
5
- * The id of input
5
+ * The id of counter
6
6
  */
7
7
  this.inputId = `road-counter-${counterIds++}`;
8
8
  /**
9
- * The value of the input.
9
+ * The value of the counter.
10
10
  */
11
11
  this.value = 1;
12
12
  this.increase = () => {
@@ -45,7 +45,7 @@ export class Counter {
45
45
  "optional": false,
46
46
  "docs": {
47
47
  "tags": [],
48
- "text": "The id of input"
48
+ "text": "The id of counter"
49
49
  },
50
50
  "attribute": "input-id",
51
51
  "reflect": false,
@@ -114,7 +114,7 @@ export class Counter {
114
114
  "optional": false,
115
115
  "docs": {
116
116
  "tags": [],
117
- "text": "The value of the input."
117
+ "text": "The value of the counter."
118
118
  },
119
119
  "attribute": "value",
120
120
  "reflect": false,
@@ -1,4 +1,5 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
2
3
 
3
4
  export default {
4
5
  title: 'Forms/Counter',
@@ -8,41 +9,74 @@ export default {
8
9
  handles: ['roadChange', 'roadInput', 'roadBlur', 'roadFocus', 'roadIncrease', 'roadDecrease'],
9
10
  },
10
11
  },
12
+ argTypes: {
13
+ 'input-id': {
14
+ control: 'text',
15
+ },
16
+ size: {
17
+ options: ['sm', 'md'],
18
+ control: {
19
+ type: 'select',
20
+ },
21
+ },
22
+ min: {
23
+ control: 'number',
24
+ },
25
+ max: {
26
+ control: 'number',
27
+ },
28
+ step: {
29
+ control: 'number',
30
+ },
31
+ value: {
32
+ control: 'number',
33
+ },
34
+ roadDecrease: {
35
+ control: {
36
+ type: null,
37
+ },
38
+ },
39
+ roadIncrease: {
40
+ control: {
41
+ type: null,
42
+ },
43
+ },
44
+ '--counter-margin-bottom': {
45
+ table: {
46
+ defaultValue: { summary: '1rem' },
47
+ },
48
+ control: {
49
+ type: null,
50
+ },
51
+ },
52
+ },
53
+ args: {
54
+ min: 1,
55
+ max: 20,
56
+ step: 1,
57
+ value: 1,
58
+ },
11
59
  };
12
60
 
13
- export const Playground = ({min, max, step, value}) => html`
61
+ const Template = (args) => html`
14
62
  <road-counter
15
- min="${min}"
16
- max="${max}"
17
- step="${step}"
18
- value="${value}"
63
+ size="${ifDefined(args.size)}"
64
+ min="${ifDefined(args.min)}"
65
+ max="${ifDefined(args.max)}"
66
+ step="${ifDefined(args.step)}"
67
+ value="${ifDefined(args.value)}"
68
+ input-id="${ifDefined(args['input-id'])}"
19
69
  ></road-counter>
20
70
  `;
21
- Playground.args = {
22
- min: 1,
23
- max: 20,
24
- step: 1,
25
- value: 1,
26
- };
27
- Playground.argTypes = {
28
- min: {
29
- control: 'number',
30
- },
31
- max: {
32
- control: 'number',
33
- },
34
- step: {
35
- control: 'number',
36
- },
37
- value: {
38
- control: 'number',
39
- },
40
- };
41
71
 
42
- export const sizes = () => html`
43
- <road-counter></road-counter>
72
+ export const Playground = Template.bind({});
44
73
 
45
- <road-counter size="md"></road-counter>
74
+ export const Medium = Template.bind({});
75
+ Medium.args = {
76
+ size: 'md',
77
+ };
46
78
 
47
- <road-counter size="sm"></road-counter>
48
- `;
79
+ export const Small = Template.bind({});
80
+ Small.args = {
81
+ size: 'sm',
82
+ };