@bethinkpl/design-system 25.0.10 → 26.0.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 (550) hide show
  1. package/.github/workflows/build-to-review-on-trigger.yml +17 -0
  2. package/.github/workflows/storybook.yml +1 -0
  3. package/.storybook/main.ts +42 -0
  4. package/.storybook/{manager.js → manager.ts} +1 -1
  5. package/.storybook/preview-head.html +1 -0
  6. package/.storybook/preview.scss +3 -0
  7. package/.storybook/{preview.js → preview.ts} +11 -18
  8. package/.storybook/scss-preview-styles-plugin.ts +43 -0
  9. package/{lib/styles → .storybook}/storybook.scss +10 -10
  10. package/deploy_storybook_to_s3.sh +16 -1
  11. package/dist/design-system.umd.cjs +1032 -0
  12. package/dist/design-system.umd.cjs.map +1 -0
  13. package/dist/lib/js/components/BadgeScore/BadgeScore.vue.d.ts +33 -65
  14. package/dist/lib/js/components/BadgeScore/index.d.ts +2 -1
  15. package/dist/lib/js/components/Banner/Banner.vue.d.ts +265 -311
  16. package/dist/lib/js/components/Banner/index.d.ts +2 -1
  17. package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +258 -305
  18. package/dist/lib/js/components/Buttons/Button/index.d.ts +2 -1
  19. package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +274 -320
  20. package/dist/lib/js/components/Buttons/IconButton/index.d.ts +2 -1
  21. package/dist/lib/js/components/Cards/Card/Card.consts.d.ts +1 -0
  22. package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +92 -2
  23. package/dist/lib/js/components/Cards/Card/index.d.ts +2 -1
  24. package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +274 -258
  25. package/dist/lib/js/components/Cards/CardExpandable/index.d.ts +2 -1
  26. package/dist/lib/js/components/Chip/Chip.vue.d.ts +259 -306
  27. package/dist/lib/js/components/Chip/index.d.ts +2 -1
  28. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.consts.d.ts +1 -0
  29. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +1 -106
  30. package/dist/lib/js/components/DatePickers/DatePicker/index.d.ts +2 -1
  31. package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue.d.ts +1 -274
  32. package/dist/lib/js/components/DatePickers/DatePickerBox/index.d.ts +2 -1
  33. package/dist/lib/js/components/Divider/Divider.vue.d.ts +40 -26
  34. package/dist/lib/js/components/Divider/index.d.ts +2 -1
  35. package/dist/lib/js/components/Drawer/Drawer.vue.d.ts +34 -19
  36. package/dist/lib/js/components/Drawer/DrawerContent/DrawerContent.vue.d.ts +1 -3
  37. package/dist/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue.d.ts +24 -17
  38. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +2 -3
  39. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +226 -3
  40. package/dist/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue.d.ts +1 -3
  41. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +236 -302
  42. package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +129 -66
  43. package/dist/lib/js/components/Drawer/index.d.ts +2 -1
  44. package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +2 -66
  45. package/dist/lib/js/components/Dropdown/index.d.ts +2 -1
  46. package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +219 -239
  47. package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +219 -239
  48. package/dist/lib/js/components/Form/SelectionControl/SelectionControl.sb.shared.d.ts +2 -1
  49. package/dist/lib/js/components/Form/SelectionControl/SelectionControl.vue.d.ts +29 -66
  50. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +274 -316
  51. package/dist/lib/js/components/Headers/OverlayHeader/index.d.ts +2 -1
  52. package/dist/lib/js/components/Headers/PageHeader/PageHeader.vue.d.ts +12 -32
  53. package/dist/lib/js/components/Headers/PageHeader/index.d.ts +2 -1
  54. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.consts.d.ts +1 -0
  55. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +255 -333
  56. package/dist/lib/js/components/Headers/SectionHeader/index.d.ts +2 -1
  57. package/dist/lib/js/components/IconText/IconText.vue.d.ts +1 -71
  58. package/dist/lib/js/components/IconText/index.d.ts +2 -1
  59. package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue.d.ts +25 -48
  60. package/dist/lib/js/components/Icons/FeatureIcon/index.d.ts +2 -1
  61. package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +195 -194
  62. package/dist/lib/js/components/Icons/Icon/Icon.vue.d.ts +76 -44
  63. package/dist/lib/js/components/Icons/Icon/index.d.ts +2 -1
  64. package/dist/lib/js/components/Image/Image.vue.d.ts +3 -11
  65. package/dist/lib/js/components/Image/index.d.ts +2 -1
  66. package/dist/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue.d.ts +16 -46
  67. package/dist/lib/js/components/Layouts/ThreeColumnLayout/index.d.ts +2 -1
  68. package/dist/lib/js/components/LoadingBar/LoadingBar.consts.d.ts +1 -0
  69. package/dist/lib/js/components/LoadingBar/LoadingBar.vue.d.ts +37 -26
  70. package/dist/lib/js/components/LoadingBar/index.d.ts +2 -1
  71. package/dist/lib/js/components/Modal/Modal.vue.d.ts +235 -230
  72. package/dist/lib/js/components/Modal/index.d.ts +2 -1
  73. package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +275 -362
  74. package/dist/lib/js/components/Modals/Modal/index.d.ts +2 -1
  75. package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +20 -74
  76. package/dist/lib/js/components/Modals/ModalDialog/index.d.ts +2 -1
  77. package/dist/lib/js/components/NumberInCircle/index.d.ts +2 -1
  78. package/dist/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue.d.ts +24 -17
  79. package/dist/lib/js/components/Outline/OutlineDivider/index.d.ts +2 -1
  80. package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +231 -297
  81. package/dist/lib/js/components/Outline/OutlineItem/index.d.ts +2 -1
  82. package/dist/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue.d.ts +10 -8
  83. package/dist/lib/js/components/Outline/OutlineSectionHeader/index.d.ts +2 -1
  84. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +259 -288
  85. package/dist/lib/js/components/Pagination/index.d.ts +2 -1
  86. package/dist/lib/js/components/PopOver/index.d.ts +2 -1
  87. package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -301
  88. package/dist/lib/js/components/ProgressBar/index.d.ts +2 -1
  89. package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -253
  90. package/dist/lib/js/components/ProgressDonutChart/index.d.ts +2 -1
  91. package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +21 -135
  92. package/dist/lib/js/components/RichList/BasicRichListItem/index.d.ts +2 -1
  93. package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.consts.d.ts +1 -0
  94. package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue.d.ts +51 -30
  95. package/dist/lib/js/components/RichList/GroupRichListItem/index.d.ts +2 -1
  96. package/dist/lib/js/components/RichList/RichListItem/RichListItem.consts.d.ts +2 -0
  97. package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +254 -344
  98. package/dist/lib/js/components/RichList/RichListItem/index.d.ts +2 -1
  99. package/dist/lib/js/components/SectionTitle/SectionTitle.vue.d.ts +32 -2
  100. package/dist/lib/js/components/SelectList/SelectList.vue.d.ts +2 -3
  101. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +234 -3
  102. package/dist/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue.d.ts +1 -7
  103. package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +127 -65
  104. package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +21 -56
  105. package/dist/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue.d.ts +21 -13
  106. package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +197 -197
  107. package/dist/lib/js/components/SelectionTile/index.d.ts +2 -1
  108. package/dist/lib/js/components/Skeleton/Skeleton.vue.d.ts +42 -2
  109. package/dist/lib/js/components/Skeleton/index.d.ts +2 -1
  110. package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +227 -231
  111. package/dist/lib/js/components/Statuses/AccessStatus/index.d.ts +2 -1
  112. package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +227 -231
  113. package/dist/lib/js/components/Statuses/BlockadeStatus/index.d.ts +2 -1
  114. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +246 -3
  115. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/index.d.ts +2 -1
  116. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +2 -3
  117. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/index.d.ts +2 -1
  118. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue.d.ts +31 -21
  119. package/dist/lib/js/components/SurveyQuestions/index.d.ts +2 -1
  120. package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +39 -3
  121. package/dist/lib/js/components/SurveyToggle/index.d.ts +2 -1
  122. package/dist/lib/js/components/Switch/Switch.consts.d.ts +1 -0
  123. package/dist/lib/js/components/Switch/Switch.vue.d.ts +246 -296
  124. package/dist/lib/js/components/Switch/index.d.ts +2 -1
  125. package/dist/lib/js/components/TabItem/TabItem.vue.d.ts +1 -47
  126. package/dist/lib/js/components/TabItem/index.d.ts +2 -1
  127. package/dist/lib/js/components/TextGroup/TextGroup.vue.d.ts +7 -6
  128. package/dist/lib/js/components/TextGroup/index.d.ts +2 -1
  129. package/dist/lib/js/components/Tile/Tile.consts.d.ts +1 -0
  130. package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +195 -194
  131. package/dist/lib/js/components/Tile/Tile.shared.d.ts +1 -0
  132. package/dist/lib/js/components/Tile/Tile.vue.d.ts +342 -282
  133. package/dist/lib/js/components/Tile/index.d.ts +2 -1
  134. package/dist/lib/js/components/Toast/Toast.consts.d.ts +1 -0
  135. package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.vue.d.ts +21 -47
  136. package/dist/lib/js/components/Toggles/CounterToggle/index.d.ts +2 -1
  137. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.consts.d.ts +1 -0
  138. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +242 -301
  139. package/dist/lib/js/components/Toggles/ToggleButton/index.d.ts +2 -1
  140. package/dist/lib/js/components/Tooltip/Tooltip.vue.d.ts +4 -5
  141. package/dist/lib/js/components/Tooltip/index.d.ts +2 -1
  142. package/dist/lib/js/components/Well/index.d.ts +2 -1
  143. package/dist/lib/js/composables/hover-state.d.ts +11 -0
  144. package/dist/lib/js/icons/fontawesome.d.ts +195 -195
  145. package/dist/lib/js/index.d.ts +2 -1
  146. package/dist/lib/js/styles/TokenTypes.d.ts +1 -0
  147. package/dist/lib/js/utils/device.d.ts +1 -0
  148. package/docs/.nojekyll +0 -0
  149. package/docs/assets/AccessStatus-DVtD0BrS.js +1 -0
  150. package/docs/assets/AccessStatus.stories-CM9qms_d.js +9 -0
  151. package/docs/assets/BadgeScore-B0MHArlW.js +1 -0
  152. package/docs/assets/BadgeScore.stories-BsFc_8XV.js +40 -0
  153. package/docs/assets/Banner-Dkt_I8P3.js +1 -0
  154. package/docs/assets/Banner.stories-dLLxP9rS.js +62 -0
  155. package/docs/assets/BasicRichListItem-CCXQ4iJg.js +1 -0
  156. package/docs/assets/BasicRichListItem.stories-Bh_UBJkl.js +194 -0
  157. package/docs/assets/BlockadeStatus-9_pI8WM1.js +1 -0
  158. package/docs/assets/BlockedeStatus.stories-IunhqK0I.js +9 -0
  159. package/docs/assets/BorderSizes.stories-COOhe637.js +31 -0
  160. package/docs/assets/Button-CBZkgukP.js +1 -0
  161. package/docs/assets/Button.stories-BLj-_0Vw.js +47 -0
  162. package/docs/assets/Card-B7j8o0GU.js +1 -0
  163. package/docs/assets/Card.stories-KO99dol6.js +49 -0
  164. package/docs/assets/CardExpandable-XN3wcRwV.js +1 -0
  165. package/docs/assets/CardExpandable.stories-B9-JtWRG.js +37 -0
  166. package/docs/assets/Checkbox-D_geau8n.js +1 -0
  167. package/docs/assets/Checkbox.stories-DLfdA87Q.js +21 -0
  168. package/docs/assets/Chip-CBqrZ-va.js +1 -0
  169. package/docs/assets/Chip.stories-DQLbtbRo.js +43 -0
  170. package/docs/assets/Color-ERTF36HU-B622yQt4.js +1 -0
  171. package/docs/assets/Colors.stories-CRIOJbgv.js +11 -0
  172. package/docs/assets/ColorsThemes.stories-BVtVblv7.js +11 -0
  173. package/docs/assets/ColorsTokensLms.stories-Ds9sWwL0.js +11 -0
  174. package/docs/assets/ColorsTokensPrimaryBodywork.stories-D9nLEENe.js +11 -0
  175. package/docs/assets/ColorsTokensPrimaryWnl.stories-Cuz6HvAj.js +11 -0
  176. package/docs/assets/CounterToggle-BzxnFqH7.js +1 -0
  177. package/docs/assets/CounterToggle.stories-DdAjSFMr.js +19 -0
  178. package/docs/assets/DatePicker-CvT_E45n.js +2 -0
  179. package/docs/assets/DatePicker.stories-Ub_1x6To.js +91 -0
  180. package/docs/assets/Divider-D2yDhW46.js +1 -0
  181. package/docs/assets/Divider.stories-f9QUckyE.js +15 -0
  182. package/docs/assets/DocsRenderer-CFRXHY34-D5Eulb6H.js +639 -0
  183. package/docs/assets/Drawer-CH5Qyc5B.js +1 -0
  184. package/docs/assets/Drawer.stories-jrbLBaPT.js +21 -0
  185. package/docs/assets/DrawerContent-DGzdUSmd.js +1 -0
  186. package/docs/assets/DrawerContent.stories-CYzQPPIy.js +17 -0
  187. package/docs/assets/DrawerDivider-DNbYnPjf.js +1 -0
  188. package/docs/assets/DrawerDivider.stories-BG6MKk49.js +15 -0
  189. package/docs/assets/DrawerHeader-DOWojdwp.js +1 -0
  190. package/docs/assets/DrawerHeader.stories-CwaoQykQ.js +54 -0
  191. package/docs/assets/DrawerListItem-aepUTcTm.js +1 -0
  192. package/docs/assets/DrawerListItem.stories-vHXkwtyS.js +13 -0
  193. package/docs/assets/DrawerListItemGroup-CnH532Dv.js +1 -0
  194. package/docs/assets/DrawerListItemGroup.stories-D0DeZ6IG.js +20 -0
  195. package/docs/assets/DrawerSection-pMhA5dsS.js +1 -0
  196. package/docs/assets/DrawerSection.stories-BF7A4VyW.js +67 -0
  197. package/docs/assets/DrawerTile-W2mt6fAk.js +1 -0
  198. package/docs/assets/DrawerTile.stories-CUMznN1H.js +10 -0
  199. package/docs/assets/Dropdown-BfX0EVaK.js +1 -0
  200. package/docs/assets/Dropdown.stories-DrILA_TR.js +45 -0
  201. package/docs/assets/FeatureIcon-n65RPvyA.js +1 -0
  202. package/docs/assets/FeatureIcon.stories-DSUzxIPB.js +14 -0
  203. package/docs/assets/GroupRichListItem-DMiaeyaS.js +1 -0
  204. package/docs/assets/GroupRichListItem.stories-DCEq0Kil.js +137 -0
  205. package/docs/assets/Icon-BiVaixmr.js +762 -0
  206. package/docs/assets/Icon.stories-BFJuE2aE.js +27 -0
  207. package/docs/assets/IconButton-COzU-vlz.js +1 -0
  208. package/docs/assets/IconButton.stories-DGmn7bfg.js +119 -0
  209. package/docs/assets/IconText-DDrVXWHS.js +1 -0
  210. package/docs/assets/IconText.stories-CSt7q9Mf.js +32 -0
  211. package/docs/assets/Image-Drmyqqsn.js +1 -0
  212. package/docs/assets/Image.stories-DxQ22AFP.js +21 -0
  213. package/docs/assets/ItemsList-B-vw083o.js +1 -0
  214. package/docs/assets/LoadingBar-D0iVLCyJ.js +1 -0
  215. package/docs/assets/LoadingBar.stories-IJRD91mF.js +9 -0
  216. package/docs/assets/Modal-CJ0d6Je9.js +1 -0
  217. package/docs/assets/Modal.stories-q_qdiakg.js +53 -0
  218. package/docs/assets/ModalDialog-CbDAxfV_.js +1 -0
  219. package/docs/assets/ModalDialog.stories-CKcR8rIW.js +43 -0
  220. package/docs/assets/NumberInCircle-DV0Qrx8H.js +1 -0
  221. package/docs/assets/NumberInCircle.stories-DriLGDDl.js +9 -0
  222. package/docs/assets/OutlineDivider-Cez9NlcH.js +1 -0
  223. package/docs/assets/OutlineDivider.stories-D0zYoHBw.js +11 -0
  224. package/docs/assets/OutlineItem-CUHef8Bo.js +1 -0
  225. package/docs/assets/OutlineItem.stories-BgFzRhaY.js +41 -0
  226. package/docs/assets/OutlineSectionHeader-DSJ4uxfr.js +1 -0
  227. package/docs/assets/OutlineSectionHeader.stories-HOf2NwY-.js +9 -0
  228. package/docs/assets/OverlayHeader-jylszhPO.js +1 -0
  229. package/docs/assets/OverlayHeader.stories-bjFfL93l.js +67 -0
  230. package/docs/assets/PageHeader-CTbdU4IG.js +1 -0
  231. package/docs/assets/PageHeader.stories-DeNf1zoa.js +9 -0
  232. package/docs/assets/Pagination-dSOJSh7t.js +1 -0
  233. package/docs/assets/Pagination.stories-CMg8WaRV.js +31 -0
  234. package/docs/assets/PopOver-BPD1Ttq1.js +1 -0
  235. package/docs/assets/PopOver.stories-Cl1k59cl.js +15 -0
  236. package/docs/assets/ProgressBar-4gBRbr7a.js +1 -0
  237. package/docs/assets/ProgressBar.stories-9xVTh0RH.js +57 -0
  238. package/docs/assets/ProgressDonutChart-D5uvUZva.js +1 -0
  239. package/docs/assets/ProgressDonutChart.stories-DBpwl5Vn.js +17 -0
  240. package/docs/assets/RadioButton-BwCzYjOu.js +1 -0
  241. package/docs/assets/RadioButton.stories-CLWvDUrd.js +21 -0
  242. package/docs/assets/RichListItem.stories-DhkQky0J.js +182 -0
  243. package/docs/assets/SectionHeader-DVwe52kA.js +1 -0
  244. package/docs/assets/SectionHeader.stories-Dd3li5ER.js +24 -0
  245. package/docs/assets/SectionTitle-XTc-98O5.js +1 -0
  246. package/docs/assets/SectionTitle.stories-BFNagAeb.js +9 -0
  247. package/docs/assets/SelectList-CTXM5G8Z.js +1 -0
  248. package/docs/assets/SelectList.stories-B2Pq8auf.js +91 -0
  249. package/docs/assets/SelectListItem-_c4CA-YM.js +1 -0
  250. package/docs/assets/SelectListItem.stories-PSDnI18x.js +36 -0
  251. package/docs/assets/SelectListItemDivider-BOgD7wrO.js +1 -0
  252. package/docs/assets/SelectListItemDivider.stories-DvANKn2s.js +8 -0
  253. package/docs/assets/SelectListItemTile-BL3qYL_0.js +1 -0
  254. package/docs/assets/SelectListItemTile.stories-CVYmG0Ta.js +19 -0
  255. package/docs/assets/SelectListItemToggle-BjjMPWy0.js +1 -0
  256. package/docs/assets/SelectListItemToggle.stories-D5QL3Gd2.js +51 -0
  257. package/docs/assets/SelectListSectionTitle-FihJb1eM.js +1 -0
  258. package/docs/assets/SelectListSectionTitle.stories-DCyB86A1.js +16 -0
  259. package/docs/assets/SelectionControl-BxCh7N21.js +1 -0
  260. package/docs/assets/SelectionControl.sb.shared-BWifjoMU.js +2 -0
  261. package/docs/assets/SelectionTile-T03MPtEm.js +2 -0
  262. package/docs/assets/SelectionTile.stories-CEufLR64.js +47 -0
  263. package/docs/assets/Skeleton-BbafKE6W.js +179 -0
  264. package/docs/assets/Skeleton.stories-B_4TqUB5.js +15 -0
  265. package/docs/assets/Spacings.stories-DxxukMX7.js +43 -0
  266. package/docs/assets/SurveyQuestionOpenEnded-DRFBouQB.js +1 -0
  267. package/docs/assets/SurveyQuestionOpenEnded.stories-DW7tQU04.js +20 -0
  268. package/docs/assets/SurveyQuestionScale-nNC7H5k0.js +1 -0
  269. package/docs/assets/SurveyQuestionScale.stories-DC8qXbl8.js +72 -0
  270. package/docs/assets/SurveyToggle-DzZyc41b.js +1 -0
  271. package/docs/assets/SurveyToggle.stories-Yf0fJ_p2.js +14 -0
  272. package/docs/assets/Switch-BWGPo7tP.js +1 -0
  273. package/docs/assets/Switch.stories-BzeYFsr2.js +48 -0
  274. package/docs/assets/TabItem-Cx2nQ_YR.js +1 -0
  275. package/docs/assets/TabItem.stories-C-gV8JMj.js +15 -0
  276. package/docs/assets/TextGroup-DQmg5luv.js +1 -0
  277. package/docs/assets/TextGroup.stories-j5MNzn7U.js +48 -0
  278. package/docs/assets/ThreeColumnLayout-Lm3LIbid.js +1 -0
  279. package/docs/assets/ThreeColumnLayout.stories-C5cNwOWv.js +47 -0
  280. package/docs/assets/Tile-DnH9h0Kq.js +1 -0
  281. package/docs/assets/Tile.sb.shared-2W1FnncR.js +15 -0
  282. package/docs/assets/Tile.stories-Bj7yp21N.js +14 -0
  283. package/docs/assets/Toast.stories-Bad7itWi.js +58 -0
  284. package/docs/assets/ToggleButton-BZ0tVYFv.js +1 -0
  285. package/docs/assets/ToggleButton.stories-D0YPR0-y.js +42 -0
  286. package/docs/assets/Tooltip-BxZlo6cR.js +1 -0
  287. package/docs/assets/Tooltip.stories-CaTsoTim.js +119 -0
  288. package/docs/assets/TypographyTokensLms.stories-D-CrlX5A.js +11 -0
  289. package/docs/assets/TypographyVariables.stories-Bmxi44f1.js +11 -0
  290. package/docs/assets/Well-vFI2CbIA.js +1 -0
  291. package/docs/assets/Well.stories-Be73GX2h.js +6 -0
  292. package/docs/assets/_commonjsHelpers-Chg3vePA.js +1 -0
  293. package/docs/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
  294. package/docs/assets/decorator-CSnIf-k5.js +1 -0
  295. package/docs/assets/device-9fgosCm4.js +1 -0
  296. package/docs/assets/entry-preview-Dw8qwUcN.js +1 -0
  297. package/docs/assets/entry-preview-docs-BBVW7MF3.js +16 -0
  298. package/docs/assets/iframe-BosoHOVU.js +63 -0
  299. package/docs/assets/index-CBmJdl9t.js +5 -0
  300. package/docs/assets/index-CgF2Ctku.js +1 -0
  301. package/docs/assets/index-CqU62QSU.js +1 -0
  302. package/docs/assets/index-vG0co4wr.js +8 -0
  303. package/docs/assets/pl-Cy1N1vsP.js +1 -0
  304. package/docs/assets/preview-16ImHjAt.js +64 -0
  305. package/docs/assets/preview-B_ruAZiw.js +2 -0
  306. package/docs/assets/preview-DFmD0pui.js +1 -0
  307. package/docs/assets/preview-DFphXfmq.js +1 -0
  308. package/docs/assets/string-CxIy_vwz.js +1 -0
  309. package/docs/assets/user-DY5hg_iu.js +1 -0
  310. package/docs/assets/v4-BZawosSj.js +1 -0
  311. package/docs/assets/vue-popper-BJbr8Gin.js +24 -0
  312. package/docs/assets/vue.esm-bundler-BSCmGRHc.js +7 -0
  313. package/docs/favicon.svg +1 -0
  314. package/docs/iframe.html +332 -56
  315. package/docs/index.html +157 -51
  316. package/docs/index.json +1 -0
  317. package/docs/nunito-sans-bold-italic.woff2 +0 -0
  318. package/docs/nunito-sans-bold.woff2 +0 -0
  319. package/docs/nunito-sans-italic.woff2 +0 -0
  320. package/docs/nunito-sans-regular.woff2 +0 -0
  321. package/docs/preview.css +2993 -0
  322. package/docs/project.json +1 -1
  323. package/docs/sb-addons/actions-1/manager-bundle.js +3 -0
  324. package/docs/sb-addons/actions-1/manager-bundle.js.LEGAL.txt +0 -0
  325. package/docs/sb-addons/controls-3/manager-bundle.js +394 -0
  326. package/docs/sb-addons/controls-3/manager-bundle.js.LEGAL.txt +0 -0
  327. package/docs/sb-addons/designs-2/register-panel-bundle.js +665 -0
  328. package/docs/sb-addons/designs-2/register-panel-bundle.js.LEGAL.txt +127 -0
  329. package/docs/sb-addons/storybook-6/manager-bundle.js +3 -0
  330. package/docs/sb-addons/storybook-6/manager-bundle.js.LEGAL.txt +0 -0
  331. package/docs/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  332. package/docs/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  333. package/docs/sb-addons/storysource-4/manager-bundle.js +3 -0
  334. package/docs/sb-addons/storysource-4/manager-bundle.js.LEGAL.txt +0 -0
  335. package/docs/sb-addons/viewport-5/manager-bundle.js +3 -0
  336. package/docs/sb-addons/viewport-5/manager-bundle.js.LEGAL.txt +0 -0
  337. package/docs/sb-common-assets/favicon.svg +1 -0
  338. package/docs/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  339. package/docs/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  340. package/docs/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  341. package/docs/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  342. package/docs/sb-manager/globals-module-info.js +1006 -0
  343. package/docs/sb-manager/globals-runtime.js +54400 -0
  344. package/docs/sb-manager/globals.js +48 -0
  345. package/docs/sb-manager/runtime.js +12089 -0
  346. package/docs/sb-preview/globals.js +33 -0
  347. package/docs/sb-preview/runtime.js +9498 -0
  348. package/jest.config.js +14 -11
  349. package/lib/js/components/BadgeScore/BadgeScore.stories.ts +13 -10
  350. package/lib/js/components/BadgeScore/BadgeScore.vue +5 -5
  351. package/lib/js/components/Banner/Banner.stories.ts +58 -55
  352. package/lib/js/components/Banner/Banner.vue +3 -3
  353. package/lib/js/components/Buttons/Button/Button.stories.ts +31 -21
  354. package/lib/js/components/Buttons/Button/Button.vue +4 -6
  355. package/lib/js/components/Buttons/IconButton/IconButton.stories.ts +37 -34
  356. package/lib/js/components/Buttons/IconButton/IconButton.vue +14 -7
  357. package/lib/js/components/Cards/Card/Card.stories.ts +17 -14
  358. package/lib/js/components/Cards/Card/Card.vue +4 -3
  359. package/lib/js/components/Cards/CardExpandable/CardExpandable.stories.ts +8 -7
  360. package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +3 -2
  361. package/lib/js/components/Chip/Chip.stories.ts +13 -9
  362. package/lib/js/components/Chip/Chip.vue +3 -3
  363. package/lib/js/components/DatePickers/DatePicker/DatePicker.stories.ts +67 -64
  364. package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +3 -3
  365. package/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue +3 -3
  366. package/lib/js/components/Divider/Divider.stories.ts +5 -5
  367. package/lib/js/components/Divider/Divider.vue +4 -2
  368. package/lib/js/components/Drawer/Drawer.stories.ts +3 -3
  369. package/lib/js/components/Drawer/Drawer.vue +3 -3
  370. package/lib/js/components/Drawer/DrawerContent/DrawerContent.stories.ts +1 -1
  371. package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +4 -2
  372. package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.stories.ts +5 -5
  373. package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue +4 -2
  374. package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.stories.ts +16 -16
  375. package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +3 -3
  376. package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.stories.ts +4 -3
  377. package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +3 -3
  378. package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.stories.ts +1 -1
  379. package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue +4 -2
  380. package/lib/js/components/Drawer/DrawerSection/DrawerSection.stories.ts +60 -57
  381. package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +3 -3
  382. package/lib/js/components/Drawer/DrawerTile/DrawerTile.stories.ts +1 -1
  383. package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +4 -2
  384. package/lib/js/components/Dropdown/Dropdown.stories.ts +9 -9
  385. package/lib/js/components/Dropdown/Dropdown.vue +4 -2
  386. package/lib/js/components/Form/Checkbox/Checkbox.stories.ts +21 -14
  387. package/lib/js/components/Form/Checkbox/Checkbox.vue +3 -3
  388. package/lib/js/components/Form/RadioButton/RadioButton.stories.ts +21 -14
  389. package/lib/js/components/Form/RadioButton/RadioButton.vue +3 -3
  390. package/lib/js/components/Form/SelectionControl/SelectionControl.sb.shared.ts +13 -10
  391. package/lib/js/components/Form/SelectionControl/SelectionControl.vue +3 -3
  392. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.stories.ts +9 -9
  393. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +5 -3
  394. package/lib/js/components/Headers/PageHeader/PageHeader.stories.ts +11 -13
  395. package/lib/js/components/Headers/PageHeader/PageHeader.vue +4 -2
  396. package/lib/js/components/Headers/SectionHeader/SectionHeader.stories.ts +65 -63
  397. package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +6 -6
  398. package/lib/js/components/IconText/IconText.stories.ts +6 -5
  399. package/lib/js/components/IconText/IconText.vue +3 -3
  400. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.stories.ts +15 -11
  401. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +3 -3
  402. package/lib/js/components/Icons/Icon/Icon.stories.ts +10 -8
  403. package/lib/js/components/Icons/Icon/Icon.vue +3 -3
  404. package/lib/js/components/Image/Image.stories.ts +5 -5
  405. package/lib/js/components/Image/Image.vue +0 -11
  406. package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.stories.ts +8 -8
  407. package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +3 -3
  408. package/lib/js/components/LoadingBar/LoadingBar.stories.ts +5 -5
  409. package/lib/js/components/LoadingBar/LoadingBar.vue +3 -3
  410. package/lib/js/components/Modal/Modal.vue +4 -2
  411. package/lib/js/components/Modals/Modal/Modal.stories.ts +31 -31
  412. package/lib/js/components/Modals/Modal/Modal.vue +3 -3
  413. package/lib/js/components/Modals/ModalDialog/ModalDialog.stories.ts +20 -20
  414. package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +3 -3
  415. package/lib/js/components/NumberInCircle/NumberInCircle.stories.ts +5 -5
  416. package/lib/js/components/NumberInCircle/NumberInCircle.vue +4 -2
  417. package/lib/js/components/Outline/OutlineDivider/OutlineDivider.stories.ts +12 -7
  418. package/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue +4 -2
  419. package/lib/js/components/Outline/OutlineItem/OutlineItem.stories.ts +40 -29
  420. package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +4 -4
  421. package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.stories.ts +6 -4
  422. package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue +4 -2
  423. package/lib/js/components/Pagination/Pagination.stories.ts +34 -21
  424. package/lib/js/components/Pagination/Pagination.vue +3 -2
  425. package/lib/js/components/PopOver/PopOver.stories.ts +9 -9
  426. package/lib/js/components/PopOver/PopOver.vue +6 -4
  427. package/lib/js/components/ProgressBar/ProgressBar.stories.ts +48 -41
  428. package/lib/js/components/ProgressBar/ProgressBar.vue +3 -3
  429. package/lib/js/components/ProgressDonutChart/ProgressDonutChart.spec.ts +1 -1
  430. package/lib/js/components/ProgressDonutChart/ProgressDonutChart.stories.ts +28 -24
  431. package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +4 -3
  432. package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.stories.ts +82 -73
  433. package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +3 -3
  434. package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.stories.ts +26 -20
  435. package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +3 -3
  436. package/lib/js/components/RichList/RichListItem/RichListItem.consts.ts +5 -7
  437. package/lib/js/components/RichList/RichListItem/RichListItem.stories.ts +25 -18
  438. package/lib/js/components/RichList/RichListItem/RichListItem.vue +9 -5
  439. package/lib/js/components/SectionTitle/SectionTitle.stories.ts +5 -4
  440. package/lib/js/components/SectionTitle/SectionTitle.vue +3 -2
  441. package/lib/js/components/SelectList/SelectList.stories.ts +1 -1
  442. package/lib/js/components/SelectList/SelectList.vue +4 -2
  443. package/lib/js/components/SelectList/SelectListItem/SelectListItem.stories.ts +9 -5
  444. package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +3 -3
  445. package/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue +4 -2
  446. package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.stories.ts +5 -2
  447. package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue +4 -2
  448. package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.ts +51 -42
  449. package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +3 -3
  450. package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.stories.ts +11 -9
  451. package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue +4 -2
  452. package/lib/js/components/SelectionTile/SelectionTile.stories.ts +46 -38
  453. package/lib/js/components/Skeleton/Skeleton.stories.ts +5 -5
  454. package/lib/js/components/Statuses/AccessStatus/AccessStatus.stories.ts +3 -3
  455. package/lib/js/components/Statuses/AccessStatus/AccessStatus.vue +3 -2
  456. package/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue +4 -2
  457. package/lib/js/components/Statuses/BlockadeStatus/BlockedeStatus.stories.ts +3 -3
  458. package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.stories.ts +22 -17
  459. package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +4 -2
  460. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.stories.ts +73 -55
  461. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +3 -2
  462. package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +4 -2
  463. package/lib/js/components/SurveyToggle/SurveyToggle.stories.ts +19 -12
  464. package/lib/js/components/SurveyToggle/SurveyToggle.vue +4 -2
  465. package/lib/js/components/Switch/Switch.stories.ts +16 -14
  466. package/lib/js/components/Switch/Switch.vue +3 -3
  467. package/lib/js/components/TabItem/TabItem.stories.ts +12 -11
  468. package/lib/js/components/TabItem/TabItem.vue +3 -3
  469. package/lib/js/components/TextGroup/TextGroup.stories.ts +20 -16
  470. package/lib/js/components/TextGroup/TextGroup.vue +1 -1
  471. package/lib/js/components/Tile/Tile.sb.shared.ts +9 -8
  472. package/lib/js/components/Tile/Tile.stories.ts +43 -45
  473. package/lib/js/components/Tile/Tile.vue +3 -2
  474. package/lib/js/components/Toast/Toast.stories.ts +10 -12
  475. package/lib/js/components/Toast/Toast.vue +3 -3
  476. package/lib/js/components/Toggles/CounterToggle/CounterToggle.stories.ts +10 -10
  477. package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +3 -3
  478. package/lib/js/components/Toggles/ToggleButton/ToggleButton.stories.ts +17 -17
  479. package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +3 -3
  480. package/lib/js/components/Tooltip/Tooltip.stories.ts +9 -9
  481. package/lib/js/components/Tooltip/Tooltip.vue +2 -10
  482. package/lib/js/components/Well/Well.stories.ts +36 -29
  483. package/lib/js/components/Well/Well.vue +4 -2
  484. package/lib/js/composables/hover-state.ts +39 -0
  485. package/lib/js/icons/fontawesome.ts +1 -1
  486. package/lib/js/index.ts +2 -1
  487. package/lib/js/styles/Colors/Colors.stories.ts +1 -1
  488. package/lib/js/styles/ColorsThemes/ColorsThemes.stories.ts +1 -1
  489. package/lib/js/styles/ColorsTokensLms/ColorsTokensLms.stories.ts +1 -1
  490. package/lib/js/styles/ColorsTokensPrimaryBodywork/ColorsTokensPrimaryBodywork.stories.ts +1 -1
  491. package/lib/js/styles/ColorsTokensPrimaryWnl/ColorsTokensPrimaryWnl.stories.ts +1 -1
  492. package/lib/js/styles/ItemsColor.vue +3 -3
  493. package/lib/js/styles/ItemsList.vue +4 -3
  494. package/lib/js/styles/ItemsTypography.vue +3 -3
  495. package/lib/js/styles/TypographyTokensLms/TypographyTokensLms.stories.ts +1 -1
  496. package/lib/js/styles/TypographyVariables/TypographyVariables.stories.ts +1 -1
  497. package/lib/js/typings.d.ts +3 -4
  498. package/lib/js/utils/device.ts +7 -0
  499. package/package.json +27 -26
  500. package/tsconfig.json +12 -5
  501. package/vite.config.ts +38 -0
  502. package/.storybook/main.js +0 -86
  503. package/babel.config.json +0 -12
  504. package/docs/117.1156a7c503a067ad8241.manager.bundle.js +0 -2
  505. package/docs/117.1156a7c503a067ad8241.manager.bundle.js.LICENSE.txt +0 -8
  506. package/docs/247.6eaf240e.iframe.bundle.js +0 -1
  507. package/docs/255.721b3744029f102ac772.manager.bundle.js +0 -2
  508. package/docs/255.721b3744029f102ac772.manager.bundle.js.LICENSE.txt +0 -12
  509. package/docs/286.23828fb3.iframe.bundle.js +0 -2
  510. package/docs/286.23828fb3.iframe.bundle.js.LICENSE.txt +0 -31
  511. package/docs/295.4e52f65e605e88f7b915.manager.bundle.js +0 -1
  512. package/docs/315.76786aa14c329ce07ff9.manager.bundle.js +0 -2
  513. package/docs/315.76786aa14c329ce07ff9.manager.bundle.js.LICENSE.txt +0 -94
  514. package/docs/317.bb9fa3422a439c11ef07.manager.bundle.js +0 -1
  515. package/docs/363.5eecfb3735eae61195ab.manager.bundle.js +0 -586
  516. package/docs/363.5eecfb3735eae61195ab.manager.bundle.js.LICENSE.txt +0 -23
  517. package/docs/39.0fa13ab1.iframe.bundle.js +0 -2
  518. package/docs/39.0fa13ab1.iframe.bundle.js.LICENSE.txt +0 -14
  519. package/docs/407.e7bfe1ea814fec553911.manager.bundle.js +0 -2
  520. package/docs/407.e7bfe1ea814fec553911.manager.bundle.js.LICENSE.txt +0 -31
  521. package/docs/594.bb1a9f64.iframe.bundle.js +0 -2
  522. package/docs/594.bb1a9f64.iframe.bundle.js.LICENSE.txt +0 -12
  523. package/docs/600.5586e4df861d64de85f8.manager.bundle.js +0 -1
  524. package/docs/651.3a01b956.iframe.bundle.js +0 -1
  525. package/docs/690.46a1e07a.iframe.bundle.js +0 -1
  526. package/docs/701.691b9947.iframe.bundle.js +0 -1
  527. package/docs/935.19d3d944.iframe.bundle.js +0 -2
  528. package/docs/935.19d3d944.iframe.bundle.js.LICENSE.txt +0 -17
  529. package/docs/949.b11a185a.iframe.bundle.js +0 -2
  530. package/docs/949.b11a185a.iframe.bundle.js.LICENSE.txt +0 -69
  531. package/docs/962.ec348c19.iframe.bundle.js +0 -2
  532. package/docs/962.ec348c19.iframe.bundle.js.LICENSE.txt +0 -8
  533. package/docs/977.a265714880f883237672.manager.bundle.js +0 -1
  534. package/docs/favicon.ico +0 -0
  535. package/docs/main.2c610e68.iframe.bundle.js +0 -2
  536. package/docs/main.2c610e68.iframe.bundle.js.LICENSE.txt +0 -1
  537. package/docs/main.ec4e5d4f1933fc03f588.manager.bundle.js +0 -1
  538. package/docs/runtime~main.8a21756dfcf63c109f1d.manager.bundle.js +0 -1
  539. package/docs/runtime~main.c8f2837a.iframe.bundle.js +0 -1
  540. package/vue.config.js +0 -67
  541. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
  542. /package/docs/{static/media/lato-ext-300.dd124df8.woff2 → ~design-system/lib/fonts/lato/lato-ext-300.woff2} +0 -0
  543. /package/docs/{static/media/lato-ext-700.4223b364.woff2 → ~design-system/lib/fonts/lato/lato-ext-700.woff2} +0 -0
  544. /package/docs/{static/media/lato-ext.b267ec5a.woff2 → ~design-system/lib/fonts/lato/lato-ext.woff2} +0 -0
  545. /package/docs/{static/media/lato-latin-300.917632e3.woff2 → ~design-system/lib/fonts/lato/lato-latin-300.woff2} +0 -0
  546. /package/docs/{static/media/lato-latin-700.f1405bd8.woff2 → ~design-system/lib/fonts/lato/lato-latin-700.woff2} +0 -0
  547. /package/docs/{static/media/lato-latin.65e877e5.woff2 → ~design-system/lib/fonts/lato/lato-latin.woff2} +0 -0
  548. /package/lib/js/tests/{emptyModule.ts → emptyModule.cjs} +0 -0
  549. /package/lib/js/tests/{emptyTransformer.ts → emptyTransformer.cjs} +0 -0
  550. /package/{stylelint.config.js → stylelint.config.cjs} +0 -0
@@ -3,30 +3,35 @@ import { SURVEY_TOGGLE_MEANINGS } from '../../SurveyToggle';
3
3
  import { SURVEY_QUESTION_SCALE_CONTAINERS, SURVEY_QUESTION_STATES } from '../SurveyQuestion.consts';
4
4
 
5
5
  import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
6
+ import { useArgs } from '@storybook/preview-api';
6
7
 
7
8
  export default {
8
9
  title: 'Components/SurveyQuestions/SurveyQuestionScale',
9
10
  component: SurveyQuestionScale,
10
11
  } as Meta<typeof SurveyQuestionScale>;
11
12
 
12
- const StoryTemplate: StoryFn<typeof SurveyQuestionScale> = (args, { updateArgs }) => ({
13
- components: { SurveyQuestionScale },
14
- setup() {
15
- return { ...args };
16
- },
17
- template:
18
- '<survey-question-scale :title="title" :scale-options="scaleOptions" :elaboration-value="elaborationValue" :elaborationLabel="elaborationLabel" :placeholder="placeholder" :selected-value="selectedValue" :state="state" :containers="containers" @select-change="selectedValueUpdate" @elaboration-change="elaborationUpdate">' +
19
- '<template v-if="explanation" #explanation><div v-html="explanation" /></template>' +
20
- '</survey-question-scale>',
21
- methods: {
22
- elaborationUpdate(elaborationValue) {
23
- updateArgs({ elaborationValue });
13
+ const StoryTemplate: StoryFn<typeof SurveyQuestionScale> = (args) => {
14
+ const [_, updateArgs] = useArgs();
15
+
16
+ return {
17
+ components: { SurveyQuestionScale },
18
+ setup() {
19
+ return args;
24
20
  },
25
- selectedValueUpdate(selectedValue) {
26
- updateArgs({ selectedValue });
21
+ template:
22
+ '<survey-question-scale :title="title" :scale-options="scaleOptions" :elaboration-value="elaborationValue" :elaborationLabel="elaborationLabel" :placeholder="placeholder" :selected-value="selectedValue" :state="state" :containers="containers" @select-change="selectedValueUpdate" @elaboration-change="elaborationUpdate">' +
23
+ '<template v-if="explanation" #explanation><div v-html="explanation" /></template>' +
24
+ '</survey-question-scale>',
25
+ methods: {
26
+ elaborationUpdate(elaborationValue) {
27
+ updateArgs({ elaborationValue });
28
+ },
29
+ selectedValueUpdate(selectedValue) {
30
+ updateArgs({ selectedValue });
31
+ },
27
32
  },
28
- },
29
- });
33
+ };
34
+ };
30
35
 
31
36
  export const Interactive = StoryTemplate.bind({});
32
37
 
@@ -38,6 +43,7 @@ const args = {
38
43
  '<h3 style="text-align: center; margin-bottom: 16px;">Jak ocenić, czy slajdy i diagramy były zrozumiałe?</h3>\n<div>Wyczerpujące materiały dają poczucie pełnego zrozumienia, przy jednoczesnym usystematyzowaniu informacji. Wpływa na to nie tylko ich jakość, ale też ilość.</div>',
39
44
  placeholder: 'Wpisz swoją odpowiedź',
40
45
  containers: SURVEY_QUESTION_SCALE_CONTAINERS.TWO,
46
+ selectedValue: null,
41
47
  scaleOptions: [
42
48
  {
43
49
  value: '1',
@@ -70,20 +76,21 @@ const args = {
70
76
  standalone: true,
71
77
  },
72
78
  ],
79
+ state: SURVEY_QUESTION_STATES.DEFAULT,
73
80
  } as Args;
74
81
 
75
82
  const argTypes = {
76
- elaborationValue: { control: { type: 'text' } },
83
+ elaborationValue: { control: 'text' },
77
84
  selectedValue: { control: false },
78
- explanation: { control: { type: 'text' } },
85
+ explanation: { control: 'text' },
79
86
  containers: {
80
- control: { type: 'select' },
87
+ control: 'select',
81
88
  options: Object.values(SURVEY_QUESTION_SCALE_CONTAINERS),
82
89
  },
83
- scaleOptions: { control: { type: 'object' } },
90
+ scaleOptions: { control: 'object' },
84
91
  state: {
85
- control: { type: 'select', options: Object.values(SURVEY_QUESTION_STATES) },
86
- defaultValue: SURVEY_QUESTION_STATES.DEFAULT,
92
+ control: 'select',
93
+ options: Object.values(SURVEY_QUESTION_STATES),
87
94
  },
88
95
  } as ArgTypes;
89
96
 
@@ -110,30 +117,34 @@ const argTypesDisabled = {
110
117
  'select-change': { control: false },
111
118
  } as ArgTypes;
112
119
 
113
- const StoryLimitedWidthTemplate: StoryFn<typeof SurveyQuestionScale> = (args, { updateArgs }) => ({
114
- components: { SurveyQuestionScale },
115
- setup() {
116
- return { ...args };
117
- },
118
- template:
119
- '<div style="max-width: 600px"><survey-question-scale :title="title" :scale-options="scaleOptions" :elaboration-value="elaborationValue" :elaborationLabel="elaborationLabel" :placeholder="placeholder" :selected-value="selectedValue" :containers="containers" :state="state" @select-change="selectedValueUpdate" @elaboration-change="elaborationUpdate">' +
120
- '<template v-if="explanation" #explanation><div v-html="explanation" /></template>' +
121
- '</survey-question-scale></div>',
122
- methods: {
123
- elaborationUpdate(elaborationValue) {
124
- updateArgs({ elaborationValue });
120
+ const StoryLimitedWidthTemplate: StoryFn<typeof SurveyQuestionScale> = (args) => {
121
+ const [_, updateArgs] = useArgs();
122
+
123
+ return {
124
+ components: { SurveyQuestionScale },
125
+ setup() {
126
+ return args;
125
127
  },
126
- selectedValueUpdate(selectedValue) {
127
- updateArgs({ selectedValue });
128
+ template:
129
+ '<div style="max-width: 600px"><survey-question-scale :title="title" :scale-options="scaleOptions" :elaboration-value="elaborationValue" :elaborationLabel="elaborationLabel" :placeholder="placeholder" :selected-value="selectedValue" :containers="containers" :state="state" @select-change="selectedValueUpdate" @elaboration-change="elaborationUpdate">' +
130
+ '<template v-if="explanation" #explanation><div v-html="explanation" /></template>' +
131
+ '</survey-question-scale></div>',
132
+ methods: {
133
+ elaborationUpdate(elaborationValue) {
134
+ updateArgs({ elaborationValue });
135
+ },
136
+ selectedValueUpdate(selectedValue) {
137
+ updateArgs({ selectedValue });
138
+ },
128
139
  },
129
- },
130
- });
140
+ };
141
+ };
131
142
 
132
143
  export const LimitedWidth = StoryLimitedWidthTemplate.bind({});
133
144
  LimitedWidth.argTypes = {
134
145
  ...argTypesDisabled,
135
146
  containers: {
136
- control: { type: 'select' },
147
+ control: 'select',
137
148
  options: Object.values(SURVEY_QUESTION_SCALE_CONTAINERS),
138
149
  },
139
150
  } as ArgTypes;
@@ -146,6 +157,8 @@ LimitedWidth.args = {
146
157
  '<h3 class="modalHeader" style="text-align: center; margin-bottom: 16px;">Jak ocenić, czy slajdy i diagramy były zrozumiałe?</h3>\n<div>Wyczerpujące materiały dają poczucie pełnego zrozumienia, przy jednoczesnym usystematyzowaniu informacji. Wpływa na to nie tylko ich jakość, ale też ilość.</div>',
147
158
  placeholder: 'Wpisz swoją odpowiedź',
148
159
  containers: SURVEY_QUESTION_SCALE_CONTAINERS.TWO,
160
+ state: SURVEY_QUESTION_STATES.DEFAULT,
161
+ selectedValue: null,
149
162
  scaleOptions: [
150
163
  {
151
164
  value: '1',
@@ -180,34 +193,39 @@ LimitedWidth.args = {
180
193
  ],
181
194
  } as Args;
182
195
 
183
- const StorySevenOptionsTemplate: StoryFn<typeof SurveyQuestionScale> = (args, { updateArgs }) => ({
184
- components: { SurveyQuestionScale },
185
- setup() {
186
- return { ...args };
187
- },
188
- data() {
189
- return { elaboration: '' };
190
- },
191
- template:
192
- '<survey-question-scale title="title" :scale-options="scaleOptions" elaborationLabel="elaborationLabel" :elaboration-value="elaboration" :selected-value="selectedValue" :containers="containers" @select-change="selectedValueUpdate" />',
193
- methods: {
194
- selectedValueUpdate(selectedValue) {
195
- updateArgs({ selectedValue });
196
+ const StorySevenOptionsTemplate: StoryFn<typeof SurveyQuestionScale> = (args) => {
197
+ const [_, updateArgs] = useArgs();
198
+
199
+ return {
200
+ components: { SurveyQuestionScale },
201
+ setup() {
202
+ return args;
196
203
  },
197
- },
198
- });
204
+ data() {
205
+ return { elaboration: '' };
206
+ },
207
+ template:
208
+ '<survey-question-scale title="title" :scale-options="scaleOptions" elaborationLabel="elaborationLabel" :elaboration-value="elaboration" :selected-value="selectedValue" :containers="containers" @select-change="selectedValueUpdate" />',
209
+ methods: {
210
+ selectedValueUpdate(selectedValue) {
211
+ updateArgs({ selectedValue });
212
+ },
213
+ },
214
+ };
215
+ };
199
216
 
200
217
  export const SevenOptions = StorySevenOptionsTemplate.bind({});
201
218
  SevenOptions.argTypes = {
202
219
  ...argTypesDisabled,
203
220
  containers: {
204
- control: { type: 'select' },
221
+ control: 'select',
205
222
  options: Object.values(SURVEY_QUESTION_SCALE_CONTAINERS),
206
223
  },
207
224
  } as ArgTypes;
208
225
 
209
226
  SevenOptions.args = {
210
227
  containers: SURVEY_QUESTION_SCALE_CONTAINERS.ONE,
228
+ selectedValue: null,
211
229
  scaleOptions: [
212
230
  {
213
231
  value: '1',
@@ -244,7 +244,8 @@ import SurveyQuestionTextarea from '../';
244
244
  import { SurveyQuestionScaleOption } from '../SurveyQuestion.domain';
245
245
  import { randomString } from '../../../utils/string';
246
246
 
247
- export default {
247
+ import { defineComponent } from 'vue';
248
+ export default defineComponent({
248
249
  name: 'SurveyQuestionScale',
249
250
  components: {
250
251
  SurveyQuestionTextarea,
@@ -327,5 +328,5 @@ export default {
327
328
  this.$emit('select-change', this.selectedValue === value ? null : value);
328
329
  },
329
330
  },
330
- };
331
+ });
331
332
  </script>
@@ -34,7 +34,9 @@
34
34
  </style>
35
35
 
36
36
  <script lang="ts">
37
- export default {
37
+ import { defineComponent } from 'vue';
38
+
39
+ export default defineComponent({
38
40
  name: 'SurveyQuestionTextarea',
39
41
  props: {
40
42
  value: {
@@ -67,5 +69,5 @@ export default {
67
69
  this.$emit('input', evt.target.value);
68
70
  },
69
71
  },
70
- };
72
+ });
71
73
  </script>
@@ -16,7 +16,7 @@ export default {
16
16
  const StoryTemplate: StoryFn<typeof SurveyToggle> = (args) => ({
17
17
  components: { SurveyToggle },
18
18
  setup() {
19
- return { ...args };
19
+ return args;
20
20
  },
21
21
  template:
22
22
  '<div style="background-color:#f6f6f8"><survey-toggle :label="label" :meaning="meaning" :content-text="contentText" :selected-icon="ICONS[selectedIcon]" :status="status" :state="state" /></div>',
@@ -29,26 +29,33 @@ const StoryTemplate: StoryFn<typeof SurveyToggle> = (args) => ({
29
29
 
30
30
  export const Interactive = StoryTemplate.bind({});
31
31
 
32
- const args = {} as Args;
32
+ const args = {
33
+ label: 'label',
34
+ contentText: '1',
35
+ meaning: SURVEY_TOGGLE_MEANINGS.PRIMARY,
36
+ status: SURVEY_TOGGLE_STATUSES.DEFAULT,
37
+ state: SURVEY_TOGGLE_STATES.DEFAULT,
38
+ selectedIcon: 'FA_CHECK_SOLID',
39
+ } as Args;
33
40
 
34
41
  const argTypes = {
35
- label: { control: { type: 'text' }, defaultValue: 'label' },
36
- contentText: { control: { type: 'text' }, defaultValue: '1' },
42
+ label: { control: 'text' },
43
+ contentText: { control: 'text' },
37
44
  meaning: {
38
- control: { type: 'select', options: Object.values(SURVEY_TOGGLE_MEANINGS) },
39
- defaultValue: SURVEY_TOGGLE_MEANINGS.PRIMARY,
45
+ control: 'select',
46
+ options: Object.values(SURVEY_TOGGLE_MEANINGS),
40
47
  },
41
48
  status: {
42
- control: { type: 'select', options: Object.values(SURVEY_TOGGLE_STATUSES) },
43
- defaultValue: SURVEY_TOGGLE_STATUSES.DEFAULT,
49
+ control: 'select',
50
+ options: Object.values(SURVEY_TOGGLE_STATUSES),
44
51
  },
45
52
  state: {
46
- control: { type: 'select', options: Object.values(SURVEY_TOGGLE_STATES) },
47
- defaultValue: SURVEY_TOGGLE_STATES.DEFAULT,
53
+ control: 'select',
54
+ options: Object.values(SURVEY_TOGGLE_STATES),
48
55
  },
49
56
  selectedIcon: {
50
- control: { type: 'select', options: Object.keys(ICONS) },
51
- defaultValue: 'FA_CHECK_SOLID',
57
+ control: 'select',
58
+ options: Object.keys(ICONS),
52
59
  },
53
60
  } as ArgTypes;
54
61
 
@@ -224,7 +224,9 @@ import {
224
224
  } from './SurveyToggle.consts';
225
225
  import DsIcon, { ICON_SIZES, ICONS } from '../Icons/Icon';
226
226
 
227
- export default {
227
+ import { defineComponent } from 'vue';
228
+
229
+ export default defineComponent({
228
230
  name: 'SurveyToggle',
229
231
  components: {
230
232
  DsIcon,
@@ -314,5 +316,5 @@ export default {
314
316
  return this.hovered;
315
317
  },
316
318
  },
317
- };
319
+ });
318
320
  </script>
@@ -2,19 +2,21 @@ import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
2
2
  import DsSwitch from './Switch.vue';
3
3
  import Icon, { ICONS } from '../Icons/Icon';
4
4
  import { SWITCH_RADIUSES, SWITCH_SIDE, SWITCH_SIZES, SWITCH_STATE } from './Switch.consts';
5
+ import { withActions } from '@storybook/addon-actions/decorator';
5
6
 
6
7
  export default {
7
8
  title: 'Components/Switch',
8
9
  component: DsSwitch,
10
+ decorators: [withActions],
9
11
  } as Meta<typeof DsSwitch>;
10
12
 
11
- const StoryTemplate: StoryFn<typeof DsSwitch> = (args, { updateArgs }) => ({
13
+ const StoryTemplate: StoryFn<typeof DsSwitch> = (args) => ({
12
14
  components: {
13
15
  DsSwitch,
14
16
  Icon,
15
17
  },
16
18
  setup() {
17
- return { ...args };
19
+ return args;
18
20
  },
19
21
  methods: {
20
22
  onSelectedUpdated(side) {
@@ -58,28 +60,28 @@ const args = {
58
60
 
59
61
  const argTypes = {
60
62
  size: {
61
- control: { type: 'select', options: Object.values(SWITCH_SIZES) },
62
- defaultValue: SWITCH_SIZES.MEDIUM,
63
+ control: 'select',
64
+ options: Object.values(SWITCH_SIZES),
63
65
  },
64
66
  radius: {
65
- control: { type: 'select', options: Object.values(SWITCH_RADIUSES) },
66
- defaultValue: SWITCH_RADIUSES.CAPSULE,
67
+ control: 'select',
68
+ options: Object.values(SWITCH_RADIUSES),
67
69
  },
68
70
  iconLeft: {
69
- control: { type: 'select', options: [null, ...Object.keys(ICONS)] },
70
- defaultValue: null,
71
+ control: 'select',
72
+ options: [null, ...Object.keys(ICONS)],
71
73
  },
72
74
  iconRight: {
73
- control: { type: 'select', options: [null, ...Object.keys(ICONS)] },
74
- defaultValue: null,
75
+ control: 'select',
76
+ options: [null, ...Object.keys(ICONS)],
75
77
  },
76
78
  state: {
77
- control: { type: 'select', options: Object.values(SWITCH_STATE) },
78
- defaultValue: SWITCH_STATE.DEFAULT,
79
+ control: 'select',
80
+ options: Object.values(SWITCH_STATE),
79
81
  },
80
82
  selectedSide: {
81
- control: { type: 'select', options: Object.values(SWITCH_SIDE) },
82
- defaultValue: SWITCH_SIDE.LEFT,
83
+ control: 'select',
84
+ options: Object.values(SWITCH_SIDE),
83
85
  },
84
86
  } as ArgTypes;
85
87
 
@@ -226,7 +226,7 @@ $switch-transition: all $default-transition-time ease-out;
226
226
  </style>
227
227
 
228
228
  <script lang="ts">
229
- import { PropType, toRaw } from 'vue';
229
+ import { defineComponent, PropType, toRaw } from 'vue';
230
230
  import {
231
231
  SWITCH_RADIUSES,
232
232
  SWITCH_SIDE,
@@ -239,7 +239,7 @@ import {
239
239
  } from './Switch.consts';
240
240
  import DsIcon, { ICON_SIZES, IconItem, ICONS } from '../Icons/Icon';
241
241
 
242
- export default {
242
+ export default defineComponent({
243
243
  // eslint-disable-next-line vue/no-reserved-component-names
244
244
  name: 'Switch',
245
245
  components: {
@@ -346,5 +346,5 @@ export default {
346
346
  this.$emit('update:selectedSide', this.currentSide);
347
347
  },
348
348
  },
349
- };
349
+ });
350
350
  </script>
@@ -12,7 +12,7 @@ export default {
12
12
  const StoryTemplate: StoryFn<typeof TabItem> = (args) => ({
13
13
  components: { TabItem },
14
14
  setup() {
15
- return { ...args };
15
+ return args;
16
16
  },
17
17
  template:
18
18
  '<tab-item style="max-width: 150px" :icon="ICONS[icon]" :is-selected="isSelected" :label="label" :size="TAB_ITEM_SIZES[size]" :label-ellipsis="labelEllipsis" />',
@@ -27,29 +27,30 @@ const StoryTemplate: StoryFn<typeof TabItem> = (args) => ({
27
27
  export const Interactive = StoryTemplate.bind({});
28
28
 
29
29
  const args = {
30
+ icon: null,
31
+ size: 'MEDIUM',
32
+ label: 'Tab item',
30
33
  isSelected: false,
34
+ labelEllipsis: false,
31
35
  } as Args;
32
36
 
33
37
  const argTypes = {
34
38
  icon: {
35
- control: { type: 'select', options: [...Object.keys(ICONS), null] },
36
- defaultValue: null,
39
+ control: 'select',
40
+ options: [...Object.keys(ICONS), null],
37
41
  },
38
42
  size: {
39
- control: { type: 'select', options: Object.keys(TAB_ITEM_SIZES) },
40
- defaultValue: 'MEDIUM',
43
+ control: 'select',
44
+ options: Object.keys(TAB_ITEM_SIZES),
41
45
  },
42
46
  label: {
43
- control: { type: 'text' },
44
- defaultValue: 'Tab item',
47
+ control: 'text',
45
48
  },
46
49
  isSelected: {
47
- control: { type: 'boolean' },
48
- defaultValue: false,
50
+ control: 'boolean',
49
51
  },
50
52
  labelEllipsis: {
51
- control: { type: 'boolean' },
52
- defaultValue: false,
53
+ control: 'boolean',
53
54
  },
54
55
  } as ArgTypes;
55
56
 
@@ -95,10 +95,10 @@
95
95
 
96
96
  <script lang="ts">
97
97
  import DsIcon, { ICON_SIZES, ICONS } from '../Icons/Icon';
98
- import { toRaw } from 'vue';
98
+ import { defineComponent, toRaw } from 'vue';
99
99
  import { TAB_ITEM_SIZES } from './TabItem.consts';
100
100
 
101
- export default {
101
+ export default defineComponent({
102
102
  name: 'TabItem',
103
103
  components: {
104
104
  DsIcon,
@@ -137,5 +137,5 @@ export default {
137
137
  ICON_SIZES: Object.freeze(ICON_SIZES),
138
138
  };
139
139
  },
140
- };
140
+ });
141
141
  </script>
@@ -1,4 +1,4 @@
1
- import { Args, Meta, StoryFn } from '@storybook/vue3';
1
+ import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
2
2
  import DsDivider from '../Divider/Divider.vue';
3
3
  import DsTextGroup from './TextGroup.vue';
4
4
  import {
@@ -16,7 +16,7 @@ export default {
16
16
  const StoryTemplate: StoryFn<typeof DsTextGroup> = (args) => ({
17
17
  components: { DsDivider, DsTextGroup },
18
18
  setup() {
19
- return { ...args };
19
+ return args;
20
20
  },
21
21
  template: `
22
22
  <ds-text-group
@@ -61,45 +61,49 @@ Interactive.args = {
61
61
 
62
62
  Interactive.argTypes = {
63
63
  size: {
64
- control: { type: 'select', options: Object.values(TEXT_GROUP_SIZES) },
64
+ control: 'select',
65
+ options: Object.values(TEXT_GROUP_SIZES),
65
66
  },
66
67
  color: {
67
- control: { type: 'select', options: Object.values(TEXT_GROUP_COLORS) },
68
+ control: 'select',
69
+ options: Object.values(TEXT_GROUP_COLORS),
68
70
  },
69
71
  eyebrowText: {
70
- control: { type: 'text' },
72
+ control: 'text',
71
73
  },
72
74
  eyebrowTextEllipsis: {
73
- control: { type: 'boolean' },
75
+ control: 'boolean',
74
76
  },
75
77
  isEyebrowTextUppercase: {
76
- control: { type: 'boolean' },
78
+ control: 'boolean',
77
79
  },
78
80
  mainText: {
79
- control: { type: 'text' },
81
+ control: 'text',
80
82
  },
81
83
  mainTextEllipsis: {
82
- control: { type: 'boolean' },
84
+ control: 'boolean',
83
85
  },
84
86
  supportingText: {
85
- control: { type: 'text' },
87
+ control: 'text',
86
88
  },
87
89
  supportingTextEllipsis: {
88
- control: { type: 'boolean' },
90
+ control: 'boolean',
89
91
  },
90
92
  isInteractive: {
91
- control: { type: 'boolean' },
93
+ control: 'boolean',
92
94
  },
93
95
  skeletonLoadingSize: {
94
- control: { type: 'select', options: Object.values(TEXT_GROUP_LOADING_SIZES) },
96
+ control: 'select',
97
+ options: Object.values(TEXT_GROUP_LOADING_SIZES),
95
98
  },
96
99
  isSelected: {
97
- control: { type: 'boolean' },
100
+ control: 'boolean',
98
101
  },
99
102
  state: {
100
- control: { type: 'select', options: Object.values(TEXT_GROUP_STATES) },
103
+ control: 'select',
104
+ options: Object.values(TEXT_GROUP_STATES),
101
105
  },
102
- };
106
+ } as ArgTypes;
103
107
 
104
108
  Interactive.parameters = {
105
109
  design: {
@@ -59,7 +59,7 @@
59
59
  </div>
60
60
  </template>
61
61
 
62
- <style lang="scss">
62
+ <style lang="scss" scoped>
63
63
  @import '../../../styles/settings/typography/tokens';
64
64
  @import '../../../styles/settings/colors/tokens';
65
65
  @import '../../../styles/settings/spacings';
@@ -34,23 +34,24 @@ export const args = {
34
34
  state: TILE_STATES.DEFAULT,
35
35
  eyebrowEllipsis: true,
36
36
  textEllipsis: true,
37
+ color: TILE_COLORS.NEUTRAL,
37
38
  } as Args;
38
39
 
39
40
  export const argTypes = {
40
41
  iconLeft: {
41
- control: { type: 'select', options: [null, ...Object.keys(ICONS)] },
42
- defaultValue: null,
42
+ control: 'select',
43
+ options: [null, ...Object.keys(ICONS)],
43
44
  },
44
45
  iconRight: {
45
- control: { type: 'select', options: [null, ...Object.keys(ICONS)] },
46
- defaultValue: null,
46
+ control: 'select',
47
+ options: [null, ...Object.keys(ICONS)],
47
48
  },
48
49
  color: {
49
- control: { type: 'select', options: [...Object.values(TILE_COLORS)] },
50
- defaultValue: TILE_COLORS.NEUTRAL,
50
+ control: 'select',
51
+ options: [...Object.values(TILE_COLORS)],
51
52
  },
52
53
  state: {
53
- control: { type: 'select', options: [...Object.values(TILE_STATES)] },
54
- defaultValue: TILE_STATES.DEFAULT,
54
+ control: 'select',
55
+ options: [...Object.values(TILE_STATES)],
55
56
  },
56
57
  } as ArgTypes;