@roadtrip/components 3.32.4 → 3.33.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 (284) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/road-badge_14.cjs.entry.js +17 -15
  3. package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
  4. package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
  5. package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
  6. package/dist/cjs/road-phone-number-input.cjs.entry.js +26 -61
  7. package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
  8. package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
  9. package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
  10. package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
  11. package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
  12. package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
  13. package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
  14. package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
  15. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  16. package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
  17. package/dist/cjs/road-radio.cjs.entry.js +1 -1
  18. package/dist/cjs/road-range.cjs.entry.js +2 -2
  19. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  20. package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
  21. package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
  22. package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
  23. package/dist/cjs/road-select-filter.cjs.entry.js +2 -2
  24. package/dist/cjs/road-select.cjs.entry.js +1 -1
  25. package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
  26. package/dist/cjs/road-spinner.cjs.entry.js +1 -1
  27. package/dist/cjs/road-switch.cjs.entry.js +2 -2
  28. package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
  29. package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
  30. package/dist/cjs/road-tab.cjs.entry.js +2 -2
  31. package/dist/cjs/road-table.cjs.entry.js +1 -1
  32. package/dist/cjs/road-tabs.cjs.entry.js +1 -1
  33. package/dist/cjs/road-tag.cjs.entry.js +1 -1
  34. package/dist/cjs/road-text.cjs.entry.js +1 -1
  35. package/dist/cjs/road-textarea.cjs.entry.js +1 -1
  36. package/dist/cjs/road-toast.cjs.entry.js +1 -1
  37. package/dist/cjs/road-toggle.cjs.entry.js +2 -2
  38. package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
  39. package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
  40. package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
  41. package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
  42. package/dist/cjs/roadtrip.cjs.js +1 -1
  43. package/dist/collection/components/accordion/accordion.stories.js +38 -4
  44. package/dist/collection/components/alert/alert.stories.js +7 -0
  45. package/dist/collection/components/asset/asset.stories.js +6 -0
  46. package/dist/collection/components/autocomplete/autocomplete.stories.js +43 -47
  47. package/dist/collection/components/avatar/avatar.stories.js +6 -0
  48. package/dist/collection/components/badge/badge.stories.js +6 -0
  49. package/dist/collection/components/banner/banner.stories.js +33 -3
  50. package/dist/collection/components/button/button.stories.js +58 -67
  51. package/dist/collection/components/button-floating/button-floating.stories.js +32 -23
  52. package/dist/collection/components/card/card.stories.js +25 -15
  53. package/dist/collection/components/carousel/carousel.stories.js +72 -280
  54. package/dist/collection/components/checkbox/checkbox.stories.js +54 -33
  55. package/dist/collection/components/chip/chip.stories.js +32 -47
  56. package/dist/collection/components/collapse/collapse.stories.js +88 -78
  57. package/dist/collection/components/content-card/content-card.stories.js +30 -11
  58. package/dist/collection/components/counter/counter.stories.js +40 -11
  59. package/dist/collection/components/dialog/dialog.stories.js +37 -51
  60. package/dist/collection/components/drawer/drawer.css +9 -0
  61. package/dist/collection/components/drawer/drawer.js +34 -12
  62. package/dist/collection/components/drawer/drawer.js.map +1 -1
  63. package/dist/collection/components/drawer/drawer.stories.js +70 -134
  64. package/dist/collection/components/dropdown/dropdown.css +1 -1
  65. package/dist/collection/components/dropdown/dropdown.stories.js +69 -53
  66. package/dist/collection/components/duration/duration.stories.js +49 -45
  67. package/dist/collection/components/flap/flap.stories.js +22 -10
  68. package/dist/collection/components/input/input.stories.js +33 -0
  69. package/dist/collection/components/item/item.stories.js +25 -0
  70. package/dist/collection/components/list/list.stories.js +2 -0
  71. package/dist/collection/components/modal/modal.stories.js +14 -0
  72. package/dist/collection/components/navbar/navbar.stories.js +3 -0
  73. package/dist/collection/components/navbar-v2/navbar-v2.stories.js +4 -0
  74. package/dist/collection/components/phone-number-input/constants.js +3 -0
  75. package/dist/collection/components/phone-number-input/constants.js.map +1 -0
  76. package/dist/collection/components/phone-number-input/phone-number-input.css +198 -129
  77. package/dist/collection/components/phone-number-input/phone-number-input.js +23 -63
  78. package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
  79. package/dist/collection/components/phone-number-input/phone-number-input.stories.js +15 -1
  80. package/dist/collection/components/plate-number/plate-number.js +2 -2
  81. package/dist/collection/components/plate-number/plate-number.stories.js +13 -0
  82. package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
  83. package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +8 -0
  84. package/dist/collection/components/progress/progress.js +1 -1
  85. package/dist/collection/components/progress/progress.stories.js +12 -0
  86. package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
  87. package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.stories.js +8 -0
  88. package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
  89. package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +1 -0
  90. package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
  91. package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
  92. package/dist/collection/components/progress-tracker/progress-tracker.stories.js +1 -0
  93. package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
  94. package/dist/collection/components/radio/radio.js +1 -1
  95. package/dist/collection/components/radio/radio.stories.js +13 -0
  96. package/dist/collection/components/radio-group/radio-group.js +1 -1
  97. package/dist/collection/components/range/range.js +2 -2
  98. package/dist/collection/components/range/range.stories.js +11 -0
  99. package/dist/collection/components/rating/rating.js +1 -1
  100. package/dist/collection/components/rating/rating.stories.js +7 -0
  101. package/dist/collection/components/row/row.js +1 -1
  102. package/dist/collection/components/segmented-button/segmented-button.js +2 -2
  103. package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
  104. package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
  105. package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +2 -0
  106. package/dist/collection/components/select/select.js +1 -1
  107. package/dist/collection/components/select/select.stories.js +13 -0
  108. package/dist/collection/components/select-filter/select-filter.js +2 -2
  109. package/dist/collection/components/select-filter/select-filter.stories.js +5 -0
  110. package/dist/collection/components/skeleton/skeleton.js +1 -1
  111. package/dist/collection/components/skeleton/skeleton.stories.js +2 -0
  112. package/dist/collection/components/spinner/spinner.js +1 -1
  113. package/dist/collection/components/spinner/spinner.stories.js +2 -0
  114. package/dist/collection/components/switch/switch.js +2 -2
  115. package/dist/collection/components/tab/tab.js +2 -2
  116. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  117. package/dist/collection/components/tab-button/tab-button.js +2 -2
  118. package/dist/collection/components/table/table.js +1 -1
  119. package/dist/collection/components/table/table.stories.js +1 -0
  120. package/dist/collection/components/tabs/tabs.js +1 -1
  121. package/dist/collection/components/tabs/tabs.stories.js +2 -0
  122. package/dist/collection/components/tag/tag.js +1 -1
  123. package/dist/collection/components/tag/tag.stories.js +3 -0
  124. package/dist/collection/components/text/text.js +1 -1
  125. package/dist/collection/components/text/text.stories.js +2 -0
  126. package/dist/collection/components/textarea/textarea.js +1 -1
  127. package/dist/collection/components/textarea/textarea.stories.js +26 -0
  128. package/dist/collection/components/toast/toast.js +1 -1
  129. package/dist/collection/components/toast/toast.stories.js +6 -0
  130. package/dist/collection/components/toggle/toggle.js +2 -2
  131. package/dist/collection/components/toggle/toggle.stories.js +14 -0
  132. package/dist/collection/components/toolbar/toolbar.js +1 -1
  133. package/dist/collection/components/toolbar/toolbar.stories.js +6 -0
  134. package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
  135. package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
  136. package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
  137. package/dist/collection/components/toolbar-v2/toolbar-v2.stories.js +5 -0
  138. package/dist/collection/components/tooltip/tooltip.js +3 -3
  139. package/dist/collection/components/tooltip/tooltip.stories.js +11 -0
  140. package/dist/collection/components/utilities/text.stories.js +2 -0
  141. package/dist/collection/fonts/Muli-Black.woff +0 -0
  142. package/dist/collection/fonts/Muli-Black.woff2 +0 -0
  143. package/dist/collection/fonts/Muli-SemiBold.woff +0 -0
  144. package/dist/collection/fonts/Muli-SemiBold.woff2 +0 -0
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/road-badge_14.entry.js +17 -15
  147. package/dist/esm/road-badge_14.entry.js.map +1 -1
  148. package/dist/esm/road-dropdown.entry.js +1 -1
  149. package/dist/esm/road-dropdown.entry.js.map +1 -1
  150. package/dist/esm/road-phone-number-input.entry.js +26 -61
  151. package/dist/esm/road-phone-number-input.entry.js.map +1 -1
  152. package/dist/esm/road-plate-number.entry.js +2 -2
  153. package/dist/esm/road-profil-dropdown.entry.js +1 -1
  154. package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
  155. package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
  156. package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
  157. package/dist/esm/road-progress-tracker-item.entry.js +1 -1
  158. package/dist/esm/road-progress-tracker.entry.js +1 -1
  159. package/dist/esm/road-progress.entry.js +1 -1
  160. package/dist/esm/road-radio-group.entry.js +1 -1
  161. package/dist/esm/road-radio.entry.js +1 -1
  162. package/dist/esm/road-range.entry.js +2 -2
  163. package/dist/esm/road-rating.entry.js +1 -1
  164. package/dist/esm/road-segmented-button-bar.entry.js +1 -1
  165. package/dist/esm/road-segmented-button.entry.js +2 -2
  166. package/dist/esm/road-segmented-buttons.entry.js +1 -1
  167. package/dist/esm/road-select-filter.entry.js +2 -2
  168. package/dist/esm/road-select.entry.js +1 -1
  169. package/dist/esm/road-skeleton.entry.js +1 -1
  170. package/dist/esm/road-spinner.entry.js +1 -1
  171. package/dist/esm/road-switch.entry.js +2 -2
  172. package/dist/esm/road-tab-bar.entry.js +2 -2
  173. package/dist/esm/road-tab-button.entry.js +2 -2
  174. package/dist/esm/road-tab.entry.js +2 -2
  175. package/dist/esm/road-table.entry.js +1 -1
  176. package/dist/esm/road-tabs.entry.js +1 -1
  177. package/dist/esm/road-tag.entry.js +1 -1
  178. package/dist/esm/road-text.entry.js +1 -1
  179. package/dist/esm/road-textarea.entry.js +1 -1
  180. package/dist/esm/road-toast.entry.js +1 -1
  181. package/dist/esm/road-toggle.entry.js +2 -2
  182. package/dist/esm/road-toolbar-title-page.entry.js +1 -1
  183. package/dist/esm/road-toolbar-title.entry.js +1 -1
  184. package/dist/esm/road-toolbar-v2.entry.js +1 -1
  185. package/dist/esm/road-tooltip.entry.js +3 -3
  186. package/dist/esm/roadtrip.js +1 -1
  187. package/dist/html.html-data.json +4 -0
  188. package/dist/roadtrip/fonts/Muli-Black.woff +0 -0
  189. package/dist/roadtrip/fonts/Muli-Black.woff2 +0 -0
  190. package/dist/roadtrip/fonts/Muli-SemiBold.woff +0 -0
  191. package/dist/roadtrip/fonts/Muli-SemiBold.woff2 +0 -0
  192. package/dist/roadtrip/{p-c1e2aa67.entry.js → p-04913d58.entry.js} +2 -2
  193. package/dist/roadtrip/{p-494aab48.entry.js → p-06fbd2ea.entry.js} +2 -2
  194. package/dist/roadtrip/{p-2a4a0928.entry.js → p-167cd2fc.entry.js} +2 -2
  195. package/dist/roadtrip/p-215afdbd.entry.js +2 -0
  196. package/dist/roadtrip/{p-8f7375bc.entry.js → p-2e049c8e.entry.js} +2 -2
  197. package/dist/roadtrip/{p-8ca23318.entry.js → p-37430583.entry.js} +2 -2
  198. package/dist/roadtrip/{p-9fce16aa.entry.js → p-3dcaa947.entry.js} +2 -2
  199. package/dist/roadtrip/{p-1e61ca1f.entry.js → p-3f5dff96.entry.js} +2 -2
  200. package/dist/roadtrip/{p-f8817c0e.entry.js → p-449affa6.entry.js} +2 -2
  201. package/dist/roadtrip/p-4675ea6d.entry.js +2 -0
  202. package/dist/roadtrip/{p-4a47999a.entry.js → p-5fea6a74.entry.js} +2 -2
  203. package/dist/roadtrip/{p-f9754547.entry.js → p-60bd73ad.entry.js} +2 -2
  204. package/dist/roadtrip/p-65f9bd9c.entry.js +2 -0
  205. package/dist/roadtrip/{p-c68fc795.entry.js → p-6c617506.entry.js} +2 -2
  206. package/dist/roadtrip/{p-4e779fd6.entry.js → p-6ff3b37c.entry.js} +2 -2
  207. package/dist/roadtrip/p-85b1e505.entry.js +2 -0
  208. package/dist/roadtrip/{p-a990a8b6.entry.js → p-862c1831.entry.js} +2 -2
  209. package/dist/roadtrip/{p-a990a8b6.entry.js.map → p-862c1831.entry.js.map} +1 -1
  210. package/dist/roadtrip/p-8b04fc62.entry.js +2 -0
  211. package/dist/roadtrip/{p-e2a00f9c.entry.js → p-913b72de.entry.js} +3 -3
  212. package/dist/roadtrip/p-913b72de.entry.js.map +1 -0
  213. package/dist/roadtrip/{p-87c1ff76.entry.js → p-99a6faae.entry.js} +2 -2
  214. package/dist/roadtrip/{p-bba18327.entry.js → p-b5fa8c5a.entry.js} +2 -2
  215. package/dist/roadtrip/{p-db243855.entry.js → p-b8c5d292.entry.js} +2 -2
  216. package/dist/roadtrip/{p-d68e64a8.entry.js → p-c28e7add.entry.js} +2 -2
  217. package/dist/roadtrip/{p-10e65612.entry.js → p-c47ccbf2.entry.js} +2 -2
  218. package/dist/roadtrip/{p-c3ef32ef.entry.js → p-c6824205.entry.js} +2 -2
  219. package/dist/roadtrip/{p-833c1e78.entry.js → p-cfd2919e.entry.js} +2 -2
  220. package/dist/roadtrip/{p-a0a95c0a.entry.js → p-d80e7563.entry.js} +2 -2
  221. package/dist/roadtrip/p-db77c354.entry.js +2 -0
  222. package/dist/roadtrip/{p-5fab1bc3.entry.js.map → p-db77c354.entry.js.map} +1 -1
  223. package/dist/roadtrip/{p-0cacf829.entry.js → p-ddfe088f.entry.js} +2 -2
  224. package/dist/roadtrip/p-ddfe088f.entry.js.map +1 -0
  225. package/dist/roadtrip/{p-4bbc889b.entry.js → p-e6c4c576.entry.js} +2 -2
  226. package/dist/roadtrip/{p-01be5517.entry.js → p-e6e9882b.entry.js} +2 -2
  227. package/dist/roadtrip/{p-5a6fbd7f.entry.js → p-e75ec60f.entry.js} +2 -2
  228. package/dist/roadtrip/{p-edbbe884.entry.js → p-ea1a175d.entry.js} +2 -2
  229. package/dist/roadtrip/{p-2903bdc0.entry.js → p-eac313e4.entry.js} +2 -2
  230. package/dist/roadtrip/{p-fb26ed7e.entry.js → p-f1b53143.entry.js} +2 -2
  231. package/dist/roadtrip/{p-b18cda16.entry.js → p-fd3c58b6.entry.js} +2 -2
  232. package/dist/roadtrip/{p-32845e72.entry.js → p-fe40ab3d.entry.js} +2 -2
  233. package/dist/roadtrip/roadtrip.css +1 -1
  234. package/dist/roadtrip/roadtrip.esm.js +1 -1
  235. package/dist/roadtrip/roadtrip.esm.js.map +1 -1
  236. package/dist/types/components/drawer/drawer.d.ts +4 -1
  237. package/dist/types/components/phone-number-input/constants.d.ts +1 -0
  238. package/dist/types/components/phone-number-input/phone-number-input.d.ts +3 -9
  239. package/dist/types/components-react.d.ts +4 -4
  240. package/dist/types/components.d.ts +16 -0
  241. package/hydrate/index.js +305 -318
  242. package/hydrate/index.mjs +305 -318
  243. package/package.json +1 -1
  244. package/dist/roadtrip/p-0cacf829.entry.js.map +0 -1
  245. package/dist/roadtrip/p-427bd935.entry.js +0 -2
  246. package/dist/roadtrip/p-5fab1bc3.entry.js +0 -2
  247. package/dist/roadtrip/p-78b51033.entry.js +0 -2
  248. package/dist/roadtrip/p-9737182c.entry.js +0 -2
  249. package/dist/roadtrip/p-a925ff64.entry.js +0 -2
  250. package/dist/roadtrip/p-e2a00f9c.entry.js.map +0 -1
  251. package/dist/roadtrip/p-ee92b78d.entry.js +0 -2
  252. /package/dist/roadtrip/{p-c1e2aa67.entry.js.map → p-04913d58.entry.js.map} +0 -0
  253. /package/dist/roadtrip/{p-494aab48.entry.js.map → p-06fbd2ea.entry.js.map} +0 -0
  254. /package/dist/roadtrip/{p-2a4a0928.entry.js.map → p-167cd2fc.entry.js.map} +0 -0
  255. /package/dist/roadtrip/{p-427bd935.entry.js.map → p-215afdbd.entry.js.map} +0 -0
  256. /package/dist/roadtrip/{p-8f7375bc.entry.js.map → p-2e049c8e.entry.js.map} +0 -0
  257. /package/dist/roadtrip/{p-8ca23318.entry.js.map → p-37430583.entry.js.map} +0 -0
  258. /package/dist/roadtrip/{p-9fce16aa.entry.js.map → p-3dcaa947.entry.js.map} +0 -0
  259. /package/dist/roadtrip/{p-1e61ca1f.entry.js.map → p-3f5dff96.entry.js.map} +0 -0
  260. /package/dist/roadtrip/{p-f8817c0e.entry.js.map → p-449affa6.entry.js.map} +0 -0
  261. /package/dist/roadtrip/{p-ee92b78d.entry.js.map → p-4675ea6d.entry.js.map} +0 -0
  262. /package/dist/roadtrip/{p-4a47999a.entry.js.map → p-5fea6a74.entry.js.map} +0 -0
  263. /package/dist/roadtrip/{p-f9754547.entry.js.map → p-60bd73ad.entry.js.map} +0 -0
  264. /package/dist/roadtrip/{p-a925ff64.entry.js.map → p-65f9bd9c.entry.js.map} +0 -0
  265. /package/dist/roadtrip/{p-c68fc795.entry.js.map → p-6c617506.entry.js.map} +0 -0
  266. /package/dist/roadtrip/{p-4e779fd6.entry.js.map → p-6ff3b37c.entry.js.map} +0 -0
  267. /package/dist/roadtrip/{p-9737182c.entry.js.map → p-85b1e505.entry.js.map} +0 -0
  268. /package/dist/roadtrip/{p-78b51033.entry.js.map → p-8b04fc62.entry.js.map} +0 -0
  269. /package/dist/roadtrip/{p-87c1ff76.entry.js.map → p-99a6faae.entry.js.map} +0 -0
  270. /package/dist/roadtrip/{p-bba18327.entry.js.map → p-b5fa8c5a.entry.js.map} +0 -0
  271. /package/dist/roadtrip/{p-db243855.entry.js.map → p-b8c5d292.entry.js.map} +0 -0
  272. /package/dist/roadtrip/{p-d68e64a8.entry.js.map → p-c28e7add.entry.js.map} +0 -0
  273. /package/dist/roadtrip/{p-10e65612.entry.js.map → p-c47ccbf2.entry.js.map} +0 -0
  274. /package/dist/roadtrip/{p-c3ef32ef.entry.js.map → p-c6824205.entry.js.map} +0 -0
  275. /package/dist/roadtrip/{p-833c1e78.entry.js.map → p-cfd2919e.entry.js.map} +0 -0
  276. /package/dist/roadtrip/{p-a0a95c0a.entry.js.map → p-d80e7563.entry.js.map} +0 -0
  277. /package/dist/roadtrip/{p-4bbc889b.entry.js.map → p-e6c4c576.entry.js.map} +0 -0
  278. /package/dist/roadtrip/{p-01be5517.entry.js.map → p-e6e9882b.entry.js.map} +0 -0
  279. /package/dist/roadtrip/{p-5a6fbd7f.entry.js.map → p-e75ec60f.entry.js.map} +0 -0
  280. /package/dist/roadtrip/{p-edbbe884.entry.js.map → p-ea1a175d.entry.js.map} +0 -0
  281. /package/dist/roadtrip/{p-2903bdc0.entry.js.map → p-eac313e4.entry.js.map} +0 -0
  282. /package/dist/roadtrip/{p-fb26ed7e.entry.js.map → p-f1b53143.entry.js.map} +0 -0
  283. /package/dist/roadtrip/{p-b18cda16.entry.js.map → p-fd3c58b6.entry.js.map} +0 -0
  284. /package/dist/roadtrip/{p-32845e72.entry.js.map → p-fe40ab3d.entry.js.map} +0 -0
@@ -8,34 +8,45 @@ export default {
8
8
  argTypes: {
9
9
  color: {
10
10
  options: ['promo', 'exclu', 'info', 'ecology', 'blackfriday'],
11
- control: {
12
- type: 'select',
11
+ control: { type: 'select' },
12
+ description: 'Defines the color theme of the flap.',
13
+ table: {
14
+ defaultValue: { summary: 'promo' },
13
15
  },
14
16
  },
15
17
  size: {
16
18
  options: ['sm', 'md'],
17
- control: {
18
- type: 'select',
19
+ control: { type: 'select' },
20
+ description: 'Sets the size of the flap.',
21
+ table: {
22
+ defaultValue: { summary: 'md' },
19
23
  },
20
24
  },
21
25
  filled: {
22
26
  control: 'boolean',
27
+ description: 'Determines if the flap has a filled background.',
23
28
  },
24
29
  ' ': {
25
30
  control: 'text',
31
+ description: 'Content displayed inside the flap.',
26
32
  },
27
33
  },
28
34
  args: {
29
35
  color: 'promo',
36
+ size: 'md',
30
37
  ' ': 'Promo',
31
- filled: null,
38
+ filled: false,
32
39
  },
33
40
  };
34
41
 
35
42
  const Template = (args) => html`
36
- <road-flap color="${ifDefined(args.color)}" size="${ifDefined(args.size)}" filled="${ifDefined(args.filled)}">
37
- ${unsafeHTML(args[' '])}
38
- </road-flap>
43
+ <road-flap
44
+ color="${ifDefined(args.color)}"
45
+ size="${ifDefined(args.size)}"
46
+ ?filled="${args.filled}"
47
+ >
48
+ ${unsafeHTML(args[' '])}
49
+ </road-flap>
39
50
  `;
40
51
 
41
52
  export const Playground = Template.bind({});
@@ -61,12 +72,13 @@ Ecology.args = {
61
72
  export const BlackFriday = Template.bind({});
62
73
  BlackFriday.args = {
63
74
  color: 'blackfriday',
64
- ' ': 'BlackFriday',
75
+ ' ': 'Black Friday',
65
76
  };
66
77
 
67
78
  export const Sizes = Template.bind({});
68
79
  Sizes.args = {
69
- size: 'md',
80
+ size: 'sm',
81
+ ' ': 'Small Size',
70
82
  };
71
83
 
72
84
  export const Filled = Template.bind({});
@@ -12,113 +12,142 @@ export default {
12
12
  },
13
13
  argTypes: {
14
14
  disabled: {
15
+ description: "If `true`, the user cannot interact with the input.",
15
16
  control: 'boolean',
16
17
  },
17
18
  readonly: {
19
+ description: "If `true`, the user cannot modify the value.",
18
20
  control: 'boolean',
19
21
  },
20
22
  required: {
23
+ description: "If `true`, the user must fill in a value before submitting a form.",
21
24
  control: 'boolean',
22
25
  },
23
26
  autofocus: {
27
+ description: "This Boolean attribute lets you specify that a form control should have input focus when the page loads.",
24
28
  control: 'boolean',
25
29
  },
26
30
  spellcheck: {
31
+ description: "If `true`, the element will have its spelling and grammar checked.",
27
32
  control: 'boolean',
28
33
  },
29
34
  blockdecimal: {
35
+ description: "If `true`, block decimal.",
30
36
  control: 'boolean',
31
37
  },
32
38
  error: {
39
+ description: "Error message for the field",
33
40
  control: 'text',
34
41
  },
35
42
  helper: {
43
+ description: "Helper message for the field",
36
44
  control: 'text',
37
45
  },
38
46
  label: {
47
+ description: "Label for the field",
39
48
  control: 'text',
40
49
  },
41
50
  name: {
51
+ description: "The name of the control, which is submitted with the form data.",
42
52
  control: 'text',
43
53
  },
44
54
  placeholder: {
55
+ description: "Instructional text that shows before the input has a value.",
45
56
  control: 'text',
46
57
  },
47
58
  size: {
59
+ description: "The initial size of the control. This value is in pixels unless the value of the type attribute is `\"text\"` or `\"password\"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.",
48
60
  control: 'number',
49
61
  },
50
62
  min: {
63
+ description: "The minimum value, which must not be greater than its maximum (max attribute) value.",
51
64
  control: 'text',
52
65
  },
53
66
  minlength: {
67
+ description: "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.",
54
68
  control: 'number',
55
69
  },
56
70
  max: {
71
+ description: "The maximum value, which must not be less than its minimum (min attribute) value.",
57
72
  control: 'text',
58
73
  },
59
74
  maxlength: {
75
+ description: "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.",
60
76
  control: 'number',
61
77
  },
62
78
  step: {
79
+ description: "Works with the min and max attributes to limit the increments at which a value can be set.\nPossible values are: `\"any\"` or a positive floating point number.",
63
80
  control: 'number',
64
81
  },
65
82
  pattern: {
83
+ description: "A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.",
66
84
  control: 'text',
67
85
  },
68
86
  value: {
87
+ description: "The value of the input.(for dynamic use use v-model for vue instead)",
69
88
  control: 'text',
70
89
  },
71
90
  sizes: {
91
+ description: "The sizes of the input.",
72
92
  options: ['lg', 'xl'],
73
93
  control: {
74
94
  type: 'select',
75
95
  },
76
96
  },
77
97
  type: {
98
+ description: "The type of control to display. The default type is text.",
78
99
  options: ['date', 'email', 'number', 'password', 'search', 'tel', 'text', 'url', 'time'],
79
100
  control: {
80
101
  type: 'select',
81
102
  },
82
103
  },
83
104
  autocapitalize: {
105
+ description: "Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.",
84
106
  options: ['on', 'off'],
85
107
  control: {
86
108
  type: 'select',
87
109
  },
88
110
  },
89
111
  autocomplete: {
112
+ description: "Indicates whether the value of the control can be automatically completed by the browser.",
90
113
  options: ['on', 'off', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo'],
91
114
  control: {
92
115
  type: 'select',
93
116
  },
94
117
  },
95
118
  autocorrect: {
119
+ description: "Whether auto correction should be enabled when the user is entering/editing the text value.",
96
120
  options: ['on', 'off'],
97
121
  control: {
98
122
  type: 'select',
99
123
  },
100
124
  },
101
125
  enterkeyhint: {
126
+ description: "A hint to the browser for which enter key to display.\nPossible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n`\"previous\"`, `\"search\"`, and `\"send\"`.",
102
127
  options: ['enter', 'done', 'go', 'next', 'previous', 'search', 'send'],
103
128
  control: {
104
129
  type: 'select',
105
130
  },
106
131
  },
107
132
  inputmode: {
133
+ description: "A hint to the browser for which keyboard to display.\nThis attribute applies when the value of the type attribute is `\"text\"`, `\"password\"`, `\"email\"`, or `\"url\"`. Possible values are: `\"verbatim\"`, `\"latin\"`, `\"latin-name\"`, `\"latin-prose\"`, `\"full-width-latin\"`, `\"kana\"`, `\"katakana\"`, `\"numeric\"`, `\"tel\"`, `\"email\"`, `\"url\"`.",
108
134
  options: ['none', 'text', 'tel', 'url', 'email', 'numeric', 'decimal', 'search'],
109
135
  control: {
110
136
  type: 'select',
111
137
  },
112
138
  },
113
139
  checklistPassword: {
140
+ description: "Content the checklist Password exemple.\n`<div class=\"checklist-password mt-16\" slot=\"checklistPassword\">`\n`<span class=\"checklist-password-label\"><strong>Low Safety</strong></span>`\n`<road-progress color=\"danger\" value=\"25\" class=\"mt-8 mb-16\"></road-progress>`\n`<p class=\"text-medium mb-8\">For optimal safety your password must have at least :</p>`\n`<ul class=\"m-0 pl-16\">`\n`<li id=\"letter\" class=\"invalid mb-8\">1 lowercase and 1 uppercase</li>`\n`<li id=\"number\" class=\"invalid mb-8\">1 digit</li>`\n`<li id=\"length\" class=\"invalid\">8 characters minimum</li>`\n`</ul>`\n`</div>`",
114
141
  control: {
115
142
  type: 'text',
116
143
  },
117
144
  },
118
145
  debounce: {
146
+ description: "Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.",
119
147
  control: 'number',
120
148
  },
121
149
  'input-id': {
150
+ description: "The id of input",
122
151
  control: 'text',
123
152
  },
124
153
  roadblur: {
@@ -144,6 +173,7 @@ export default {
144
173
  },
145
174
  },
146
175
  '--height': {
176
+ description: "height of the field",
147
177
  table: {
148
178
  defaultValue: { summary: '3rem' },
149
179
  },
@@ -152,6 +182,7 @@ export default {
152
182
  },
153
183
  },
154
184
  '--border-radius': {
185
+ description: "Border radius of the field",
155
186
  table: {
156
187
  defaultValue: { summary: '0.25rem' },
157
188
  },
@@ -160,6 +191,7 @@ export default {
160
191
  },
161
192
  },
162
193
  '--input-text-align': {
194
+ description: "align the content of the field",
163
195
  table: {
164
196
  defaultValue: { summary: 'left' },
165
197
  },
@@ -168,6 +200,7 @@ export default {
168
200
  },
169
201
  },
170
202
  '--margin-bottom': {
203
+ description: "Bottom margin of the field",
171
204
  table: {
172
205
  defaultValue: { summary: '1rem' },
173
206
  },
@@ -45,76 +45,94 @@ Playground.args = {
45
45
  };
46
46
  Playground.argTypes = {
47
47
  button: {
48
+ description: "If `true`, a button tag will be rendered and the item will be tappable.",
48
49
  control: 'boolean',
49
50
  },
50
51
  detail: {
52
+ description: "If `true`, a detail arrow will appear on the item. Defaults to `false` unless the `mode`\nis `ios` and an `href` or `button` property is present.",
51
53
  control: 'boolean',
52
54
  },
53
55
  active: {
56
+ description: "If `true`, display an active state item",
54
57
  control: 'boolean',
55
58
  },
56
59
  layout: {
60
+ description: "How the bottom border should be displayed on the item.",
57
61
  options: ['horizontal', 'vertical'],
58
62
  control: {
59
63
  type: 'radio',
60
64
  },
61
65
  },
62
66
  lines: {
67
+ description: "How the bottom border should be displayed on the item.",
63
68
  options: ['full', 'inset', 'none'],
64
69
  control: {
65
70
  type: 'radio',
66
71
  },
67
72
  },
68
73
  'detail-icon': {
74
+ description: "The icon to use when `detail` is set to `true`.",
69
75
  options: list,
70
76
  control: {
71
77
  type: 'select',
72
78
  },
73
79
  },
74
80
  disabled: {
81
+ description: "If `true`, the user cannot interact with the item.",
75
82
  control: 'boolean',
76
83
  },
77
84
  download: {
85
+ description: "This attribute instructs browsers to download a URL instead of navigating to\nit, so the user will be prompted to save it as a local file. If the attribute\nhas a value, it is used as the pre-filled file name in the Save prompt\n(the user can still change the file name if they want).",
78
86
  control: {
79
87
  type: null,
80
88
  },
81
89
  },
82
90
  'title-item': {
91
+ description: "Title for the item",
83
92
  control: 'text',
84
93
  },
85
94
  text: {
95
+ description: "Description for the item",
86
96
  control: 'text',
87
97
  },
88
98
  href: {
99
+ description: "Contains a URL or a URL fragment that the hyperlink points to.\nIf this property is set, an anchor tag will be rendered.",
89
100
  control: {
90
101
  type: null,
91
102
  },
92
103
  },
93
104
  rel: {
105
+ description: "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).",
94
106
  control: {
95
107
  type: null,
96
108
  },
97
109
  },
98
110
  target: {
111
+ description: "Specifies where to display the linked URL.\nOnly applies when an `href` is provided.\nSpecial keywords: `\"_blank\"`, `\"_self\"`, `\"_parent\"`, `\"_top\"`.",
99
112
  control: {
100
113
  type: null,
101
114
  },
102
115
  },
103
116
  type: {
117
+ description: "The type of the button. Only used when an `onclick` or `button` property is present.",
104
118
  control: {
105
119
  type: null,
106
120
  },
107
121
  },
108
122
  start: {
123
+ description: "Placed to the left of all other content.",
109
124
  control: 'text',
110
125
  },
111
126
  ' ': {
127
+ description: "Content of the item.",
112
128
  control: 'text',
113
129
  },
114
130
  end: {
131
+ description: "Placed to the right of all other content.",
115
132
  control: 'text',
116
133
  },
117
134
  '--border-radius': {
135
+ description: "Radius of the item border",
118
136
  table: {
119
137
  defaultValue: { summary: '0.25rem' },
120
138
  },
@@ -123,6 +141,7 @@ Playground.argTypes = {
123
141
  },
124
142
  },
125
143
  '--background-color': {
144
+ description: "Background of the item",
126
145
  table: {
127
146
  defaultValue: { summary: 'transparent' },
128
147
  },
@@ -131,6 +150,7 @@ Playground.argTypes = {
131
150
  },
132
151
  },
133
152
  '--border-color': {
153
+ description: "Border of the item button",
134
154
  table: {
135
155
  defaultValue: { summary: 'var(--road-outline-variant)' },
136
156
  },
@@ -139,6 +159,7 @@ Playground.argTypes = {
139
159
  },
140
160
  },
141
161
  '--detail-color': {
162
+ description: "color of the detail icon",
142
163
  table: {
143
164
  defaultValue: { summary: 'var(--road-grey-900)' },
144
165
  },
@@ -147,6 +168,7 @@ Playground.argTypes = {
147
168
  },
148
169
  },
149
170
  '--inner-padding': {
171
+ description: "inner padding of the item",
150
172
  table: {
151
173
  defaultValue: { summary: '1rem 0.5rem 1rem 0' },
152
174
  },
@@ -155,6 +177,7 @@ Playground.argTypes = {
155
177
  },
156
178
  },
157
179
  '--min-height': {
180
+ description: "Minimum height of the item",
158
181
  table: {
159
182
  defaultValue: { summary: '3.5rem' },
160
183
  },
@@ -163,6 +186,7 @@ Playground.argTypes = {
163
186
  },
164
187
  },
165
188
  '--padding-left': {
189
+ description: "Padding left of the native element",
166
190
  table: {
167
191
  defaultValue: { summary: '1rem' },
168
192
  },
@@ -171,6 +195,7 @@ Playground.argTypes = {
171
195
  },
172
196
  },
173
197
  native: {
198
+ description: "The native HTML button, anchor or div element that wraps all child elements.",
174
199
  control: {
175
200
  type: null,
176
201
  },
@@ -12,12 +12,14 @@ export default {
12
12
  },
13
13
  argTypes: {
14
14
  lines: {
15
+ description: "How the bottom border should be displayed on all items.",
15
16
  options: ['full', 'inset', 'none'],
16
17
  control: {
17
18
  type: 'radio',
18
19
  },
19
20
  },
20
21
  ' ': {
22
+ description: "Content of the list, it should be road-item elements.",
21
23
  control: 'text',
22
24
  },
23
25
  },
@@ -13,30 +13,44 @@ export default {
13
13
  },
14
14
  argTypes: {
15
15
  'is-open': {
16
+ description: "Set isOpen propertie to true to show the modal",
16
17
  control: 'boolean',
17
18
  },
18
19
  'has-close-icon': {
20
+ description: "Show / hide close icon",
19
21
  control: 'boolean',
22
+ table: {
23
+ defaultValue: { summary: 'true' },
24
+ },
20
25
  },
21
26
  'has-inverse-header': {
27
+ description: "inverse header colors",
22
28
  control: 'boolean',
23
29
  },
24
30
  'max-width': {
31
+ description: "Max width of the modal on desktop",
25
32
  control: 'number',
26
33
  min: 0,
34
+ table: {
35
+ defaultValue: { summary: '696' },
36
+ },
27
37
  },
28
38
  'modal-title': {
39
+ description: "Title of the modal in the header bar",
29
40
  control: 'text',
30
41
  },
31
42
  ' ': {
43
+ description: "Content of the modal.",
32
44
  control: 'text',
33
45
  },
34
46
  close: {
47
+ description: "Indicate when closing the modal",
35
48
  control: {
36
49
  type: null,
37
50
  },
38
51
  },
39
52
  '--z-index': {
53
+ description: "The z-index of the Modal.",
40
54
  table: {
41
55
  defaultValue: { summary: '3' },
42
56
  },
@@ -20,12 +20,15 @@ export default {
20
20
  },
21
21
  argTypes: {
22
22
  ' ': {
23
+ description: "Content of the navbar, it should be road-navbar-item elements. Max 5 items on Mobile",
23
24
  control: 'text',
24
25
  },
25
26
  'selected-tab': {
27
+ description: "The selected tab component",
26
28
  control: 'text',
27
29
  },
28
30
  '--z-index': {
31
+ description: "The z-index of the Navbar.",
29
32
  table: {
30
33
  defaultValue: { summary: '10' },
31
34
  },
@@ -20,15 +20,19 @@ export default {
20
20
  },
21
21
  argTypes: {
22
22
  ' ': {
23
+ description: "Content of the navbar, it should be road-navbar-item elements. Max 5 items on Mobile",
23
24
  control: 'text',
24
25
  },
25
26
  'selected-tab': {
27
+ description: "The selected tab component",
26
28
  control: 'text',
27
29
  },
28
30
  compact: {
31
+ description: "Set to `true` for a compact navbar.",
29
32
  control: 'boolean',
30
33
  },
31
34
  '--z-index': {
35
+ description: "The z-index of the Navbar.",
32
36
  table: {
33
37
  defaultValue: { summary: '10' },
34
38
  },
@@ -0,0 +1,3 @@
1
+ // list of forbidden characters
2
+ export const forbiddenChars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '=', '[', ']', '{', '}', '|', ';', ':', "'", '"', ',', '.', '<', '>', '/', '?'];
3
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/phone-number-input/constants.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC","sourcesContent":["// list of forbidden characters\nexport const forbiddenChars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z','!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '=', '[', ']', '{', '}', '|', ';', ':', \"'\", '\"', ',', '.', '<', '>', '/', '?'];\n"]}