@infineon/infineon-design-system-stencil 30.9.2--canary.1640.e43988106d4b26dd629292540be9d5e4b6980d07.0 → 30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.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 (291) hide show
  1. package/dist/cjs/ifx-accordion_2.cjs.entry.js +7 -7
  2. package/dist/cjs/ifx-accordion_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +2 -2
  4. package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js.map +1 -1
  5. package/dist/cjs/ifx-breadcrumb.cjs.entry.js +3 -3
  6. package/dist/cjs/ifx-breadcrumb.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ifx-chip_3.cjs.entry.js +22 -20
  8. package/dist/cjs/ifx-chip_3.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ifx-modal.cjs.entry.js +8 -8
  10. package/dist/cjs/ifx-modal.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ifx-multiselect_2.cjs.entry.js +5 -5
  12. package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ifx-navbar.cjs.entry.js +3 -3
  14. package/dist/cjs/ifx-navbar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ifx-search-bar.cjs.entry.js +5 -5
  16. package/dist/cjs/ifx-search-bar.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ifx-sidebar-item.cjs.entry.js +10 -9
  18. package/dist/cjs/ifx-sidebar-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ifx-table.cjs.entry.js +20 -22
  20. package/dist/cjs/ifx-table.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ifx-tabs.cjs.entry.js +6 -6
  22. package/dist/cjs/ifx-tabs.cjs.entry.js.map +1 -1
  23. package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/collection/components/accordion/accordion.js +2 -2
  26. package/dist/collection/components/accordion/accordion.js.map +1 -1
  27. package/dist/collection/components/accordion/accordion.stories.js +7 -81
  28. package/dist/collection/components/accordion/accordion.stories.js.map +1 -1
  29. package/dist/collection/components/accordion/accordionItem.js +10 -10
  30. package/dist/collection/components/accordion/accordionItem.js.map +1 -1
  31. package/dist/collection/components/alert/alert.stories.js +12 -45
  32. package/dist/collection/components/alert/alert.stories.js.map +1 -1
  33. package/dist/collection/components/badge/badge.stories.js +7 -28
  34. package/dist/collection/components/badge/badge.stories.js.map +1 -1
  35. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js +4 -4
  36. package/dist/collection/components/breadcrumb/breadcrumb-item-label.js.map +1 -1
  37. package/dist/collection/components/breadcrumb/breadcrumb.js +3 -3
  38. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
  39. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +13 -87
  40. package/dist/collection/components/breadcrumb/breadcrumb.stories.js.map +1 -1
  41. package/dist/collection/components/button/button.stories.js +9 -101
  42. package/dist/collection/components/button/button.stories.js.map +1 -1
  43. package/dist/collection/components/card/card.stories.js +3 -84
  44. package/dist/collection/components/card/card.stories.js.map +1 -1
  45. package/dist/collection/components/checkbox/checkbox.stories.js +14 -72
  46. package/dist/collection/components/checkbox/checkbox.stories.js.map +1 -1
  47. package/dist/collection/components/chip/chip-item/chip-item.js +4 -4
  48. package/dist/collection/components/chip/chip-item/chip-item.js.map +1 -1
  49. package/dist/collection/components/chip/chip.js +16 -16
  50. package/dist/collection/components/chip/chip.js.map +1 -1
  51. package/dist/collection/components/chip/chip.stories.js +26 -18
  52. package/dist/collection/components/chip/chip.stories.js.map +1 -1
  53. package/dist/collection/components/chip/interfaces.js.map +1 -1
  54. package/dist/collection/components/content-switcher/content-switcher.stories.js +3 -65
  55. package/dist/collection/components/content-switcher/content-switcher.stories.js.map +1 -1
  56. package/dist/collection/components/date-picker/date-picker.stories.js +7 -95
  57. package/dist/collection/components/date-picker/date-picker.stories.js.map +1 -1
  58. package/dist/collection/components/dropdown/dropdown.stories.js +64 -222
  59. package/dist/collection/components/dropdown/dropdown.stories.js.map +1 -1
  60. package/dist/collection/components/footer/footer.stories.js +1 -7
  61. package/dist/collection/components/footer/footer.stories.js.map +1 -1
  62. package/dist/collection/components/icon/infineonIconStencil.stories.js +2 -7
  63. package/dist/collection/components/icon/infineonIconStencil.stories.js.map +1 -1
  64. package/dist/collection/components/icon-button/icon-button.stories.js +5 -61
  65. package/dist/collection/components/icon-button/icon-button.stories.js.map +1 -1
  66. package/dist/collection/components/link/link.stories.js +4 -53
  67. package/dist/collection/components/link/link.stories.js.map +1 -1
  68. package/dist/collection/components/modal/modal.js +10 -10
  69. package/dist/collection/components/modal/modal.js.map +1 -1
  70. package/dist/collection/components/modal/modal.stories.js +19 -96
  71. package/dist/collection/components/modal/modal.stories.js.map +1 -1
  72. package/dist/collection/components/navigation/navbar/navbar.js +4 -4
  73. package/dist/collection/components/navigation/navbar/navbar.js.map +1 -1
  74. package/dist/collection/components/navigation/navbar/navbar.stories.js +12 -176
  75. package/dist/collection/components/navigation/navbar/navbar.stories.js.map +1 -1
  76. package/dist/collection/components/navigation/sidebar/sidebar-item.js +32 -11
  77. package/dist/collection/components/navigation/sidebar/sidebar-item.js.map +1 -1
  78. package/dist/collection/components/navigation/sidebar/sidebar.stories.js +19 -183
  79. package/dist/collection/components/navigation/sidebar/sidebar.stories.js.map +1 -1
  80. package/dist/collection/components/notification/notification.stories.js +8 -55
  81. package/dist/collection/components/notification/notification.stories.js.map +1 -1
  82. package/dist/collection/components/number-indicator/number-indicator.stories.js +0 -19
  83. package/dist/collection/components/number-indicator/number-indicator.stories.js.map +1 -1
  84. package/dist/collection/components/pagination/pagination.js +31 -1
  85. package/dist/collection/components/pagination/pagination.js.map +1 -1
  86. package/dist/collection/components/pagination/pagination.stories.js +14 -19
  87. package/dist/collection/components/pagination/pagination.stories.js.map +1 -1
  88. package/dist/collection/components/progress-bar/progress-bar.stories.js +8 -31
  89. package/dist/collection/components/progress-bar/progress-bar.stories.js.map +1 -1
  90. package/dist/collection/components/radio-button/radio-button.stories.js +13 -66
  91. package/dist/collection/components/radio-button/radio-button.stories.js.map +1 -1
  92. package/dist/collection/components/search-bar/search-bar.js +6 -6
  93. package/dist/collection/components/search-bar/search-bar.js.map +1 -1
  94. package/dist/collection/components/search-bar/search-bar.stories.js +9 -58
  95. package/dist/collection/components/search-bar/search-bar.stories.js.map +1 -1
  96. package/dist/collection/components/search-field/search-field.stories.js +8 -54
  97. package/dist/collection/components/search-field/search-field.stories.js.map +1 -1
  98. package/dist/collection/components/segmented-control/segmented-control.stories.js +10 -1
  99. package/dist/collection/components/segmented-control/segmented-control.stories.js.map +1 -1
  100. package/dist/collection/components/select/multi-select/multiselect.js +6 -6
  101. package/dist/collection/components/select/multi-select/multiselect.js.map +1 -1
  102. package/dist/collection/components/select/multi-select/multiselect.stories.js +5 -131
  103. package/dist/collection/components/select/multi-select/multiselect.stories.js.map +1 -1
  104. package/dist/collection/components/select/single-select/select.stories.js +26 -83
  105. package/dist/collection/components/select/single-select/select.stories.js.map +1 -1
  106. package/dist/collection/components/slider/slider.stories.js +13 -97
  107. package/dist/collection/components/slider/slider.stories.js.map +1 -1
  108. package/dist/collection/components/spinner/spinner.stories.js +2 -34
  109. package/dist/collection/components/spinner/spinner.stories.js.map +1 -1
  110. package/dist/collection/components/status/status.stories.js +1 -25
  111. package/dist/collection/components/status/status.stories.js.map +1 -1
  112. package/dist/collection/components/stepper/stepper.stories.js +25 -54
  113. package/dist/collection/components/stepper/stepper.stories.js.map +1 -1
  114. package/dist/collection/components/switch/switch.stories.js +4 -51
  115. package/dist/collection/components/switch/switch.stories.js.map +1 -1
  116. package/dist/collection/components/table-advanced-version/table.js +21 -23
  117. package/dist/collection/components/table-advanced-version/table.js.map +1 -1
  118. package/dist/collection/components/table-advanced-version/table.stories.js +39 -124
  119. package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
  120. package/dist/collection/components/table-basic-version/table.stories.js +3 -30
  121. package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
  122. package/dist/collection/components/tabs/tabs.js +7 -7
  123. package/dist/collection/components/tabs/tabs.js.map +1 -1
  124. package/dist/collection/components/tabs/tabs.stories.js +29 -104
  125. package/dist/collection/components/tabs/tabs.stories.js.map +1 -1
  126. package/dist/collection/components/tag/tag.stories.js +0 -18
  127. package/dist/collection/components/tag/tag.stories.js.map +1 -1
  128. package/dist/collection/components/text-field/text-field.stories.js +13 -116
  129. package/dist/collection/components/text-field/text-field.stories.js.map +1 -1
  130. package/dist/collection/components/textarea/textarea.stories.js +3 -1
  131. package/dist/collection/components/textarea/textarea.stories.js.map +1 -1
  132. package/dist/collection/components/tooltip/tooltip.stories.js +4 -48
  133. package/dist/collection/components/tooltip/tooltip.stories.js.map +1 -1
  134. package/dist/components/ifx-accordion-item.js +1 -1
  135. package/dist/components/ifx-accordion.js +1 -1
  136. package/dist/components/ifx-breadcrumb-item-label.js +3 -3
  137. package/dist/components/ifx-breadcrumb-item-label.js.map +1 -1
  138. package/dist/components/ifx-breadcrumb.js +3 -3
  139. package/dist/components/ifx-breadcrumb.js.map +1 -1
  140. package/dist/components/ifx-chip-item.js +1 -1
  141. package/dist/components/ifx-chip.js +1 -1
  142. package/dist/components/ifx-faq.js +2 -2
  143. package/dist/components/ifx-modal.js +8 -8
  144. package/dist/components/ifx-modal.js.map +1 -1
  145. package/dist/components/ifx-multiselect.js +1 -1
  146. package/dist/components/ifx-navbar.js +4 -4
  147. package/dist/components/ifx-navbar.js.map +1 -1
  148. package/dist/components/ifx-pagination.js +1 -1
  149. package/dist/components/ifx-search-bar.js +5 -5
  150. package/dist/components/ifx-search-bar.js.map +1 -1
  151. package/dist/components/ifx-set-filter.js +1 -1
  152. package/dist/components/ifx-sidebar-item.js +13 -11
  153. package/dist/components/ifx-sidebar-item.js.map +1 -1
  154. package/dist/components/ifx-table.js +24 -26
  155. package/dist/components/ifx-table.js.map +1 -1
  156. package/dist/components/ifx-tabs.js +6 -6
  157. package/dist/components/ifx-tabs.js.map +1 -1
  158. package/dist/components/{p-cf8fd0f4.js → p-04b73e62.js} +6 -6
  159. package/dist/components/p-04b73e62.js.map +1 -0
  160. package/dist/components/{p-3baaa460.js → p-094bb435.js} +3 -3
  161. package/dist/components/{p-3baaa460.js.map → p-094bb435.js.map} +1 -1
  162. package/dist/components/{p-7b5e297f.js → p-23cdd5a7.js} +5 -5
  163. package/dist/components/p-23cdd5a7.js.map +1 -0
  164. package/dist/components/{p-b85fba0e.js → p-2f1e7628.js} +4 -2
  165. package/dist/components/p-2f1e7628.js.map +1 -0
  166. package/dist/components/{p-053d42ef.js → p-b2439194.js} +8 -8
  167. package/dist/components/{p-053d42ef.js.map → p-b2439194.js.map} +1 -1
  168. package/dist/components/{p-793d89e7.js → p-c1f3a68c.js} +16 -16
  169. package/dist/components/p-c1f3a68c.js.map +1 -0
  170. package/dist/esm/ifx-accordion_2.entry.js +7 -7
  171. package/dist/esm/ifx-accordion_2.entry.js.map +1 -1
  172. package/dist/esm/ifx-breadcrumb-item-label.entry.js +2 -2
  173. package/dist/esm/ifx-breadcrumb-item-label.entry.js.map +1 -1
  174. package/dist/esm/ifx-breadcrumb.entry.js +3 -3
  175. package/dist/esm/ifx-breadcrumb.entry.js.map +1 -1
  176. package/dist/esm/ifx-chip_3.entry.js +22 -20
  177. package/dist/esm/ifx-chip_3.entry.js.map +1 -1
  178. package/dist/esm/ifx-modal.entry.js +8 -8
  179. package/dist/esm/ifx-modal.entry.js.map +1 -1
  180. package/dist/esm/ifx-multiselect_2.entry.js +5 -5
  181. package/dist/esm/ifx-multiselect_2.entry.js.map +1 -1
  182. package/dist/esm/ifx-navbar.entry.js +3 -3
  183. package/dist/esm/ifx-navbar.entry.js.map +1 -1
  184. package/dist/esm/ifx-search-bar.entry.js +5 -5
  185. package/dist/esm/ifx-search-bar.entry.js.map +1 -1
  186. package/dist/esm/ifx-sidebar-item.entry.js +10 -9
  187. package/dist/esm/ifx-sidebar-item.entry.js.map +1 -1
  188. package/dist/esm/ifx-table.entry.js +20 -22
  189. package/dist/esm/ifx-table.entry.js.map +1 -1
  190. package/dist/esm/ifx-tabs.entry.js +6 -6
  191. package/dist/esm/ifx-tabs.entry.js.map +1 -1
  192. package/dist/esm/infineon-design-system-stencil.js +1 -1
  193. package/dist/esm/loader.js +1 -1
  194. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
  195. package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
  196. package/dist/infineon-design-system-stencil/{p-602edb1f.entry.js → p-00d6e46e.entry.js} +2 -2
  197. package/dist/infineon-design-system-stencil/p-00d6e46e.entry.js.map +1 -0
  198. package/dist/infineon-design-system-stencil/p-222c1af9.entry.js +2 -0
  199. package/dist/infineon-design-system-stencil/p-222c1af9.entry.js.map +1 -0
  200. package/dist/infineon-design-system-stencil/p-28fb795b.entry.js +2 -0
  201. package/dist/infineon-design-system-stencil/{p-26df4dfe.entry.js.map → p-28fb795b.entry.js.map} +1 -1
  202. package/dist/infineon-design-system-stencil/p-436babb8.entry.js +2 -0
  203. package/dist/infineon-design-system-stencil/p-436babb8.entry.js.map +1 -0
  204. package/dist/infineon-design-system-stencil/p-7bef9272.entry.js +2 -0
  205. package/dist/infineon-design-system-stencil/p-7bef9272.entry.js.map +1 -0
  206. package/dist/infineon-design-system-stencil/p-89c7209f.entry.js +2 -0
  207. package/dist/infineon-design-system-stencil/p-89c7209f.entry.js.map +1 -0
  208. package/dist/infineon-design-system-stencil/{p-df5cd362.entry.js → p-91f91586.entry.js} +2 -2
  209. package/dist/infineon-design-system-stencil/p-91f91586.entry.js.map +1 -0
  210. package/dist/infineon-design-system-stencil/p-9481adc8.entry.js +2 -0
  211. package/dist/infineon-design-system-stencil/p-9481adc8.entry.js.map +1 -0
  212. package/dist/infineon-design-system-stencil/p-ad3db607.entry.js +2 -0
  213. package/dist/infineon-design-system-stencil/p-ad3db607.entry.js.map +1 -0
  214. package/dist/infineon-design-system-stencil/{p-d93eb561.entry.js → p-bc8a4226.entry.js} +2 -2
  215. package/dist/infineon-design-system-stencil/p-bc8a4226.entry.js.map +1 -0
  216. package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js +2 -0
  217. package/dist/infineon-design-system-stencil/p-dc7deb14.entry.js.map +1 -0
  218. package/dist/types/components/accordion/accordion.stories.d.ts +1 -67
  219. package/dist/types/components/accordion/accordionItem.d.ts +3 -3
  220. package/dist/types/components/alert/alert.stories.d.ts +11 -38
  221. package/dist/types/components/badge/badge.stories.d.ts +3 -23
  222. package/dist/types/components/breadcrumb/breadcrumb-item-label.d.ts +1 -1
  223. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +1 -83
  224. package/dist/types/components/button/button.stories.d.ts +16 -92
  225. package/dist/types/components/card/card.stories.d.ts +1 -95
  226. package/dist/types/components/checkbox/checkbox.stories.d.ts +10 -65
  227. package/dist/types/components/chip/chip-item/chip-item.d.ts +1 -1
  228. package/dist/types/components/chip/chip.d.ts +1 -1
  229. package/dist/types/components/chip/chip.stories.d.ts +4 -11
  230. package/dist/types/components/chip/interfaces.d.ts +1 -1
  231. package/dist/types/components/content-switcher/content-switcher.stories.d.ts +0 -66
  232. package/dist/types/components/date-picker/date-picker.stories.d.ts +2 -88
  233. package/dist/types/components/dropdown/dropdown.stories.d.ts +33 -90
  234. package/dist/types/components/footer/footer.stories.d.ts +0 -4
  235. package/dist/types/components/icon/infineonIconStencil.stories.d.ts +0 -5
  236. package/dist/types/components/icon-button/icon-button.stories.d.ts +8 -56
  237. package/dist/types/components/link/link.stories.d.ts +6 -49
  238. package/dist/types/components/modal/modal.d.ts +2 -2
  239. package/dist/types/components/modal/modal.stories.d.ts +3 -77
  240. package/dist/types/components/navigation/navbar/navbar.stories.d.ts +6 -222
  241. package/dist/types/components/navigation/sidebar/sidebar-item.d.ts +3 -2
  242. package/dist/types/components/navigation/sidebar/sidebar.stories.d.ts +7 -158
  243. package/dist/types/components/notification/notification.stories.d.ts +2 -46
  244. package/dist/types/components/number-indicator/number-indicator.stories.d.ts +0 -19
  245. package/dist/types/components/pagination/pagination.d.ts +2 -0
  246. package/dist/types/components/pagination/pagination.stories.d.ts +7 -12
  247. package/dist/types/components/progress-bar/progress-bar.stories.d.ts +4 -25
  248. package/dist/types/components/radio-button/radio-button.stories.d.ts +8 -59
  249. package/dist/types/components/search-bar/search-bar.d.ts +1 -1
  250. package/dist/types/components/search-bar/search-bar.stories.d.ts +3 -60
  251. package/dist/types/components/search-field/search-field.stories.d.ts +6 -45
  252. package/dist/types/components/segmented-control/segmented-control.stories.d.ts +3 -0
  253. package/dist/types/components/select/multi-select/multiselect.d.ts +1 -1
  254. package/dist/types/components/select/multi-select/multiselect.stories.d.ts +0 -125
  255. package/dist/types/components/select/single-select/select.stories.d.ts +24 -67
  256. package/dist/types/components/slider/slider.stories.d.ts +0 -110
  257. package/dist/types/components/spinner/spinner.stories.d.ts +0 -32
  258. package/dist/types/components/status/status.stories.d.ts +2 -24
  259. package/dist/types/components/stepper/stepper.stories.d.ts +6 -30
  260. package/dist/types/components/switch/switch.stories.d.ts +1 -47
  261. package/dist/types/components/table-advanced-version/table.stories.d.ts +11 -50
  262. package/dist/types/components/table-basic-version/table.stories.d.ts +1 -21
  263. package/dist/types/components/tabs/tabs.d.ts +1 -1
  264. package/dist/types/components/tabs/tabs.stories.d.ts +9 -88
  265. package/dist/types/components/tag/tag.stories.d.ts +0 -20
  266. package/dist/types/components/text-field/text-field.stories.d.ts +10 -106
  267. package/dist/types/components/tooltip/tooltip.stories.d.ts +6 -41
  268. package/dist/types/components.d.ts +26 -20
  269. package/package.json +1 -1
  270. package/dist/components/p-793d89e7.js.map +0 -1
  271. package/dist/components/p-7b5e297f.js.map +0 -1
  272. package/dist/components/p-b85fba0e.js.map +0 -1
  273. package/dist/components/p-cf8fd0f4.js.map +0 -1
  274. package/dist/infineon-design-system-stencil/p-26df4dfe.entry.js +0 -2
  275. package/dist/infineon-design-system-stencil/p-355cea09.entry.js +0 -2
  276. package/dist/infineon-design-system-stencil/p-355cea09.entry.js.map +0 -1
  277. package/dist/infineon-design-system-stencil/p-602edb1f.entry.js.map +0 -1
  278. package/dist/infineon-design-system-stencil/p-60dcd508.entry.js +0 -2
  279. package/dist/infineon-design-system-stencil/p-60dcd508.entry.js.map +0 -1
  280. package/dist/infineon-design-system-stencil/p-68752789.entry.js +0 -2
  281. package/dist/infineon-design-system-stencil/p-68752789.entry.js.map +0 -1
  282. package/dist/infineon-design-system-stencil/p-6a274db4.entry.js +0 -2
  283. package/dist/infineon-design-system-stencil/p-6a274db4.entry.js.map +0 -1
  284. package/dist/infineon-design-system-stencil/p-71fda335.entry.js +0 -2
  285. package/dist/infineon-design-system-stencil/p-71fda335.entry.js.map +0 -1
  286. package/dist/infineon-design-system-stencil/p-7741e81d.entry.js +0 -2
  287. package/dist/infineon-design-system-stencil/p-7741e81d.entry.js.map +0 -1
  288. package/dist/infineon-design-system-stencil/p-d93eb561.entry.js.map +0 -1
  289. package/dist/infineon-design-system-stencil/p-df5cd362.entry.js.map +0 -1
  290. package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js +0 -2
  291. package/dist/infineon-design-system-stencil/p-df6cadc1.entry.js.map +0 -1
@@ -1,77 +1,18 @@
1
1
  import { action } from "@storybook/addon-actions";
2
- import { icons } from "@infineon/infineon-icons";
3
2
  export default {
4
3
  title: 'Components/Content Switcher',
5
4
  tags: ['autodocs'],
6
5
  args: {
7
6
  amountOfItems: 4,
8
- label: 'Item',
9
- value: 'item',
10
- selected: false,
11
- icon: 'applications-16'
12
7
  },
13
8
  argTypes: {
14
9
  amountOfItems: {
15
- name: 'Amount of Items',
16
10
  control: { type: 'number' },
17
- description: 'Set the number of content-switcher-items to be rendered.',
18
- table: {
19
- category: 'story controls',
20
- type: {
21
- summary: 'number'
22
- }
23
- }
24
- },
25
- label: {
26
- name: 'Label of Content Switcher Item',
27
- control: { type: 'text' },
28
- description: 'Set the label of the *<ifx-content-switcher-item>*.',
29
- table: {
30
- category: 'story controls',
31
- type: {
32
- summary: 'string'
33
- }
34
- }
35
- },
36
- value: {
37
- control: { type: 'text' },
38
- description: 'Set the value of the content-switcher-item.',
39
- table: {
40
- category: 'content-switcher-item props',
41
- type: {
42
- summary: 'string'
43
- }
44
- }
45
- },
46
- selected: {
47
- control: { type: 'boolean' },
48
- description: 'Set the selected state of the content-switcher-item. Only one item can be selected at the time. If there initially exists more than one selected item, then only the first item will be selected.',
49
- table: {
50
- category: 'content-switcher-item props',
51
- defaultValue: {
52
- summary: 'false'
53
- },
54
- type: {
55
- summary: 'boolean'
56
- }
57
- }
58
- },
59
- icon: {
60
- description: 'The icon of the content-switcher-item.',
61
- options: Object.values(icons).map(i => i['name']),
62
- control: { type: 'select' },
63
- table: {
64
- category: 'ifx-icon props',
65
- type: {
66
- summary: 'string'
67
- }
68
- }
69
11
  },
70
12
  ifxChange: {
71
13
  action: 'ifxChange',
72
14
  description: 'Custom event emitted when a different content-switcher-item gets selected. Contains the value of the previous and the new selected item.',
73
15
  table: {
74
- category: 'custom events',
75
16
  type: {
76
17
  summary: 'Framework integration',
77
18
  detail: 'React: onIfxChange={handleChange}\nVue:@ifxChange="handleChange"\nAngular:(ifxChange)="handleChange()"\nVanillaJs:.addEventListener("ifxChange", (event) => {//handle change});',
@@ -80,17 +21,14 @@ export default {
80
21
  }
81
22
  },
82
23
  };
83
- const DefaultTemplate = ({ amountOfItems, label, value, icon, selected }) => {
24
+ const DefaultTemplate = ({ amountOfItems }) => {
84
25
  const element = document.createElement('ifx-content-switcher');
85
26
  for (let i = 0; i < amountOfItems; i++) {
86
27
  const item = document.createElement('ifx-content-switcher-item');
87
- item.setAttribute('value', `${value} ${i + 1}`);
28
+ item.setAttribute('value', `item-${i + 1}`);
88
29
  item.innerHTML = `
89
- <ifx-icon icon="${icon}"></ifx-icon> ${label} ${i + 1}
30
+ <ifx-icon icon="applications-16"></ifx-icon>Item ${i + 1}
90
31
  `;
91
- if (i === 1 && selected) {
92
- item.setAttribute('selected', 'true');
93
- }
94
32
  element.appendChild(item);
95
33
  }
96
34
  element.addEventListener('ifxChange', action('ifxChange'));
@@ -1 +1 @@
1
- {"version":3,"file":"content-switcher.stories.js","sourceRoot":"","sources":["../../../src/components/content-switcher/content-switcher.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,iBAAiB;KAExB;IACD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,WAAW,EAAE,0DAA0D;YACvE,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;gBAC1B,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE;gBACL,QAAQ,EAAE,gBAAgB;gBAC1B,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,QAAQ,EAAE,6BAA6B;gBACvC,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBACl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AE,CAAC,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG;wBACG,IAAI,iBAAiB,KAAK,IAAI,CAAC,GAAG,CAAC;KACtD,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,IAAI,QAAQ,EAAE,CAAC;YACxB,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\nimport { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Content Switcher',\n tags: ['autodocs'],\n\n args: {\n amountOfItems: 4,\n label: 'Item',\n value: 'item',\n selected: false,\n icon: 'applications-16'\n\n },\n argTypes: {\n amountOfItems: {\n name: 'Amount of Items',\n control: { type: 'number' },\n description: 'Set the number of content-switcher-items to be rendered.',\n table: {\n category: 'story controls',\n type: {\n summary: 'number'\n }\n }\n },\n label: {\n name: 'Label of Content Switcher Item',\n control: { type: 'text' },\n description: 'Set the label of the *<ifx-content-switcher-item>*.',\n table: {\n category: 'story controls',\n type: {\n summary: 'string'\n }\n }\n },\n value: {\n control: { type: 'text' },\n description: 'Set the value of the content-switcher-item.',\n table: {\n category: 'content-switcher-item props',\n type: {\n summary: 'string'\n }\n }\n },\n selected: {\n control: { type: 'boolean' },\n description: 'Set the selected state of the content-switcher-item. Only one item can be selected at the time. If there initially exists more than one selected item, then only the first item will be selected.',\n table: {\n category: 'content-switcher-item props',\n defaultValue: {\n summary: 'false'\n },\n type: {\n summary: 'boolean'\n }\n }\n },\n icon: {\n description: 'The icon of the content-switcher-item.',\n options: Object.values(icons).map(i => i['name']),\n control: { type: 'select' },\n table: {\n category: 'ifx-icon props',\n type: {\n summary: 'string'\n }\n }\n },\n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted when a different content-switcher-item gets selected. Contains the value of the previous and the new selected item.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n }\n },\n};\n\nconst DefaultTemplate = ({ amountOfItems, label, value, icon, selected }) => {\n const element = document.createElement('ifx-content-switcher');\n\n for (let i = 0; i < amountOfItems; i++) {\n const item = document.createElement('ifx-content-switcher-item');\n item.setAttribute('value', `${value} ${i + 1}`);\n item.innerHTML = `\n <ifx-icon icon=\"${icon}\"></ifx-icon> ${label} ${i + 1}\n `;\n if (i === 1 && selected) {\n item.setAttribute('selected', 'true');\n }\n\n element.appendChild(item);\n }\n element.addEventListener('ifxChange', action('ifxChange'));\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});"]}
1
+ {"version":3,"file":"content-switcher.stories.js","sourceRoot":"","sources":["../../../src/components/content-switcher/content-switcher.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,aAAa,EAAE,CAAC;KAEjB;IACD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;QACD,SAAS,EAAE;YACT,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,0IAA0I;YACvJ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,uBAAuB;oBAChC,MAAM,EACJ,iLAAiL;iBACpL;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;IAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAE/D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;QACjE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG;yDACoC,CAAC,GAAG,CAAC;KACzD,CAAC;QAEF,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Content Switcher',\n tags: ['autodocs'],\n\n args: {\n amountOfItems: 4,\n\n },\n argTypes: {\n amountOfItems: {\n control: { type: 'number' },\n }, \n ifxChange: {\n action: 'ifxChange',\n description: 'Custom event emitted when a different content-switcher-item gets selected. Contains the value of the previous and the new selected item.', \n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxChange={handleChange}\\nVue:@ifxChange=\"handleChange\"\\nAngular:(ifxChange)=\"handleChange()\"\\nVanillaJs:.addEventListener(\"ifxChange\", (event) => {//handle change});',\n },\n },\n }\n },\n};\n\nconst DefaultTemplate = ({ amountOfItems }) => {\n const element = document.createElement('ifx-content-switcher');\n\n for (let i = 0; i < amountOfItems; i++) {\n const item = document.createElement('ifx-content-switcher-item');\n item.setAttribute('value', `item-${i + 1}`);\n item.innerHTML = `\n <ifx-icon icon=\"applications-16\"></ifx-icon>Item ${i + 1}\n `;\n\n element.appendChild(item);\n }\n\n element.addEventListener('ifxChange', action('ifxChange'));\n\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});"]}
@@ -12,110 +12,24 @@ export default {
12
12
  max: '',
13
13
  min: '',
14
14
  label: "Label Text",
15
- caption: "Caption text, description, error notification.",
16
- AriaLabel: 'Date Picker',
17
- required: false,
15
+ caption: "Caption text, description, error notification",
18
16
  },
19
17
  argTypes: {
20
- label: {
21
- description: 'Label of Date Picker.',
22
- table: {
23
- category: 'ifx-date-picker props',
24
- }
25
- },
26
- caption: {
27
- description: 'Caption text, description, error notification.',
28
- table: {
29
- category: 'ifx-date-picker props',
30
- }
31
- },
32
- min: {
33
- description: 'Minimum date that can be selected',
34
- table: {
35
- category: 'ifx-date-picker props',
36
- }
37
- },
38
- max: {
39
- description: 'The latest date that can be selected.',
40
- table: {
41
- category: 'ifx-date-picker props',
42
- }
43
- },
44
- disabled: {
45
- description: 'Disables the date picker',
46
- control: 'boolean',
47
- table: {
48
- category: 'ifx-date-picker props',
49
- defaultValue: {
50
- summary: false
51
- }
52
- }
53
- },
54
- success: {
55
- description: 'Indicates success in the date picker.',
56
- control: 'boolean',
57
- table: {
58
- category: 'ifx-date-picker props',
59
- defaultValue: {
60
- summary: false
61
- }
62
- }
63
- },
64
- error: {
65
- description: 'Indicates error in the date picker.',
66
- control: 'boolean',
67
- table: {
68
- category: 'ifx-date-picker props',
69
- defaultValue: {
70
- summary: false
71
- }
72
- }
73
- },
74
18
  size: {
75
- description: 'Sets the size of the date picker. Options: Height small (36px) and Height large (40px)',
76
- control: 'radio',
19
+ description: 'Size options: Height small (36px) and Height large (40px) - default: small',
77
20
  options: ['s', 'l'],
78
- table: {
79
- category: 'ifx-date-picker props',
80
- defaultValue: {
81
- summary: 's'
82
- }
83
- }
21
+ control: { type: 'radio' },
84
22
  },
85
23
  name: {
86
- description: 'Name of the element, that is used as reference when a form is submitted.',
87
- table: {
88
- category: 'ifx-date-picker props'
89
- }
24
+ description: 'Name of the element, that is used as reference when a form is submitted.'
90
25
  },
91
26
  value: {
92
- description: 'Displayed date is formatted based on the locale of the user`s browser, but the parsed value is always formatted yyyy-mm-dd',
93
- table: {
94
- category: 'ifx-date-picker props'
95
- }
96
- },
97
- AriaLabel: {
98
- control: { type: 'text' },
99
- description: 'Set the aria label of the date picker. Enhances accessibility.',
100
- table: {
101
- category: 'ifx-date-picker props'
102
- }
103
- },
104
- required: {
105
- description: 'Set the required attribute to true to make the date picker mandatory.',
106
- control: 'boolean',
107
- table: {
108
- category: 'ifx-date-picker props',
109
- defaultValue: {
110
- summary: false
111
- }
112
- }
27
+ description: 'Displayed date is formatted based on the locale of the user`s browser, but the parsed value is always formatted yyyy-mm-dd'
113
28
  },
114
29
  ifxDate: {
115
30
  action: 'ifxDate',
116
- description: 'A custom event emitted when a date in the calendar is being selected.',
31
+ description: 'Custom event',
117
32
  table: {
118
- category: 'custom events',
119
33
  type: {
120
34
  summary: 'Framework integration',
121
35
  detail: 'React: onIfxDate={handleInput}\nVue:@ifxDate="handleInput"\nAngular:(ifxDate)="handleInput()"\nVanillaJs:.addEventListener("ifxDate", (event) => {//handle input});',
@@ -124,7 +38,7 @@ export default {
124
38
  },
125
39
  },
126
40
  };
127
- const DefaultTemplate = ({ error, disabled, success, size, value, max, min, caption, label, AriaLabel, required }) => {
41
+ const DefaultTemplate = ({ error, disabled, success, size, value, max, min, caption, label }) => {
128
42
  const element = document.createElement('ifx-date-picker');
129
43
  element.setAttribute('error', error);
130
44
  element.setAttribute('disabled', disabled);
@@ -135,8 +49,6 @@ const DefaultTemplate = ({ error, disabled, success, size, value, max, min, capt
135
49
  element.setAttribute('min', min);
136
50
  element.setAttribute('label', label);
137
51
  element.setAttribute('caption', caption);
138
- element.setAttribute('AreaLabel', AriaLabel);
139
- element.setAttribute('required', required);
140
52
  element.addEventListener('ifxDate', action('ifxDate'));
141
53
  return element;
142
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.stories.js","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,gDAAgD;QACzD,SAAS,EAAE,aAAa;QACxB,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,uBAAuB;YACpC,KAAK,EAAE;gBACL,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,gDAAgD;YAC7D,KAAK,EAAE;gBACL,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,GAAG,EAAE;YACH,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE;gBACL,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,GAAG,EAAE;YACH,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE;gBACL,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE;gBACL,QAAQ,EAAE,uBAAuB;gBACjC,YAAY,EAAE;oBACZ,OAAO,EAAE,KAAK;iBACf;aACF;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE,SAAS;YAClB,K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F,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnH,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC1D,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Date Picker',\n tags: ['autodocs'],\n\n args: {\n disabled: false,\n size: 's',\n success: false,\n error: false,\n name: 'date-picker',\n value: '',\n max: '',\n min: '',\n label: \"Label Text\",\n caption: \"Caption text, description, error notification.\",\n AriaLabel: 'Date Picker',\n required: false,\n },\n argTypes: {\n label: {\n description: 'Label of Date Picker.',\n table: {\n category: 'ifx-date-picker props',\n }\n },\n caption: {\n description: 'Caption text, description, error notification.',\n table: {\n category: 'ifx-date-picker props',\n }\n },\n min: {\n description: 'Minimum date that can be selected',\n table: {\n category: 'ifx-date-picker props',\n }\n },\n max: {\n description: 'The latest date that can be selected.',\n table: {\n category: 'ifx-date-picker props',\n }\n },\n disabled: {\n description: 'Disables the date picker',\n control: 'boolean',\n table: {\n category: 'ifx-date-picker props',\n defaultValue: {\n summary: false\n }\n }\n },\n success: {\n description: 'Indicates success in the date picker.',\n control: 'boolean',\n table: {\n category: 'ifx-date-picker props',\n defaultValue: {\n summary: false\n }\n }\n },\n error: {\n description: 'Indicates error in the date picker.',\n control: 'boolean',\n table: {\n category: 'ifx-date-picker props',\n defaultValue: {\n summary: false\n }\n }\n },\n size: {\n description: 'Sets the size of the date picker. Options: Height small (36px) and Height large (40px)',\n control: 'radio',\n options: ['s', 'l'],\n table: {\n category: 'ifx-date-picker props',\n defaultValue: {\n summary: 's'\n }\n }\n },\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.',\n table: {\n category: 'ifx-date-picker props'\n }\n },\n value: {\n description: 'Displayed date is formatted based on the locale of the user`s browser, but the parsed value is always formatted yyyy-mm-dd',\n table: {\n category: 'ifx-date-picker props'\n }\n },\n AriaLabel: {\n control: { type: 'text' },\n description: 'Set the aria label of the date picker. Enhances accessibility.',\n table: {\n category: 'ifx-date-picker props'\n }\n },\n required: {\n description: 'Set the required attribute to true to make the date picker mandatory.',\n control: 'boolean',\n table: {\n category: 'ifx-date-picker props',\n defaultValue: {\n summary: false\n }\n }\n },\n ifxDate: {\n action: 'ifxDate',\n description: 'A custom event emitted when a date in the calendar is being selected.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxDate={handleInput}\\nVue:@ifxDate=\"handleInput\"\\nAngular:(ifxDate)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxDate\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = ({ error, disabled, success, size, value, max, min, caption, label, AriaLabel, required }) => {\n const element = document.createElement('ifx-date-picker');\n element.setAttribute('error', error);\n element.setAttribute('disabled', disabled);\n element.setAttribute('size', size);\n element.setAttribute('success', success);\n element.setAttribute('value', value);\n element.setAttribute('max', max);\n element.setAttribute('min', min);\n element.setAttribute('label', label);\n element.setAttribute('caption', caption);\n element.setAttribute('AreaLabel', AriaLabel);\n element.setAttribute('required', required);\n element.addEventListener('ifxDate', action('ifxDate'));\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});"]}
1
+ {"version":3,"file":"date-picker.stories.js","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,+CAA+C;KACzD;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE,6EAA6E;YAC1F,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YACnB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,0EAA0E;SACxF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,4HAA4H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tags: ['autodocs'],\n\n args: {\n disabled: false,\n size: 's',\n success: false,\n error: false,\n name: 'date-picker',\n value: '',\n max: '',\n min: '',\n label: \"Label Text\",\n caption: \"Caption text, description, error notification\",\n },\n argTypes: {\n size: {\n description: 'Size options: Height small (36px) and Height large (40px) - default: small',\n options: ['s', 'l'],\n control: { type: 'radio' },\n },\n name: {\n description: 'Name of the element, that is used as reference when a form is submitted.'\n },\n value: { \n description: 'Displayed date is formatted based on the locale of the user`s browser, but the parsed value is always formatted yyyy-mm-dd'\n },\n ifxDate: {\n action: 'ifxDate',\n description: 'Custom event',\n table: {\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxDate={handleInput}\\nVue:@ifxDate=\"handleInput\"\\nAngular:(ifxDate)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxDate\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = ({ error, disabled, success, size, value, max, min, caption, label }) => {\n const element = document.createElement('ifx-date-picker');\n element.setAttribute('error', error);\n element.setAttribute('disabled', disabled);\n element.setAttribute('size', size);\n element.setAttribute('success', success);\n element.setAttribute('value', value);\n element.setAttribute('max', max);\n element.setAttribute('min', min);\n element.setAttribute('label', label);\n element.setAttribute('caption', caption);\n element.addEventListener('ifxDate', action('ifxDate'));\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});"]}