@bethinkpl/design-system 26.14.3 → 26.14.5

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 (269) hide show
  1. package/dist/design-system.umd.cjs +17 -17
  2. package/dist/design-system.umd.cjs.map +1 -1
  3. package/dist/lib/js/components/BadgeScore/BadgeScore.vue.d.ts +3 -3
  4. package/dist/lib/js/components/Banner/Banner.consts.d.ts +4 -0
  5. package/dist/lib/js/components/Banner/Banner.vue.d.ts +36 -35
  6. package/dist/lib/js/components/Buttons/Button/Button.consts.d.ts +8 -0
  7. package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +6 -6
  8. package/dist/lib/js/components/Buttons/IconButton/IconButton.consts.d.ts +7 -0
  9. package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +24 -24
  10. package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +3 -3
  11. package/dist/lib/js/components/Chip/Chip.consts.d.ts +7 -0
  12. package/dist/lib/js/components/Chip/Chip.vue.d.ts +34 -34
  13. package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +3 -3
  14. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +24 -22
  15. package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +3 -3
  16. package/dist/lib/js/components/Drawer/Drawer.vue.d.ts +2 -2
  17. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +64 -64
  18. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +5 -5
  19. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +32 -32
  20. package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +33 -33
  21. package/dist/lib/js/components/Dropdown/Dropdown.consts.d.ts +5 -0
  22. package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +7 -6
  23. package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +13 -13
  24. package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +13 -13
  25. package/dist/lib/js/components/Form/SelectionControl/SelectionControl.vue.d.ts +9 -9
  26. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.consts.d.ts +4 -0
  27. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +31 -31
  28. package/dist/lib/js/components/Headers/PageHeader/PageHeader.consts.d.ts +3 -0
  29. package/dist/lib/js/components/Headers/PageHeader/PageHeader.vue.d.ts +4 -2
  30. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.consts.d.ts +2 -0
  31. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +30 -30
  32. package/dist/lib/js/components/IconText/IconText.consts.d.ts +5 -0
  33. package/dist/lib/js/components/IconText/IconText.vue.d.ts +8 -8
  34. package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue.d.ts +3 -3
  35. package/dist/lib/js/components/Icons/Icon/Icon.vue.d.ts +3 -3
  36. package/dist/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue.d.ts +2 -2
  37. package/dist/lib/js/components/Modal/Modal.vue.d.ts +3 -3
  38. package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +38 -38
  39. package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +42 -42
  40. package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.consts.d.ts +5 -0
  41. package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +11 -9
  42. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +52 -52
  43. package/dist/lib/js/components/ProgressBar/ProgressBar.consts.d.ts +8 -0
  44. package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +18 -18
  45. package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +7 -7
  46. package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +31 -31
  47. package/dist/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue.d.ts +4 -4
  48. package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +28 -28
  49. package/dist/lib/js/components/SectionTitle/SectionTitle.vue.d.ts +4 -2
  50. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.consts.d.ts +13 -8
  51. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +22 -20
  52. package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +33 -33
  53. package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +34 -33
  54. package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +38 -38
  55. package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +3 -3
  56. package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +3 -3
  57. package/dist/lib/js/components/SurveyQuestions/SurveyQuestion.consts.d.ts +4 -0
  58. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +34 -33
  59. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +56 -55
  60. package/dist/lib/js/components/SurveyToggle/SurveyToggle.consts.d.ts +5 -0
  61. package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +20 -18
  62. package/dist/lib/js/components/Switch/Switch.vue.d.ts +3 -3
  63. package/dist/lib/js/components/TabItem/TabItem.vue.d.ts +6 -6
  64. package/dist/lib/js/components/TextGroup/TextGroup.vue.d.ts +3 -3
  65. package/dist/lib/js/components/Tile/Tile.consts.d.ts +3 -3
  66. package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +35 -35
  67. package/dist/lib/js/components/Tile/Tile.shared.d.ts +7 -8
  68. package/dist/lib/js/components/Tile/Tile.vue.d.ts +18 -20
  69. package/dist/lib/js/components/Toast/Toast.vue.d.ts +6 -6
  70. package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.consts.d.ts +7 -4
  71. package/dist/lib/js/components/Toggles/CounterToggle/CounterToggle.vue.d.ts +9 -7
  72. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +12 -13
  73. package/dist/lib/js/components/Well/Well.consts.d.ts +3 -0
  74. package/dist/lib/js/components/Well/Well.vue.d.ts +43 -0
  75. package/dist/lib/js/styles/TokenTypes.d.ts +2 -1
  76. package/docs/assets/{AccessStatus-BKJi9u47.js → AccessStatus-DzMA_dRH.js} +1 -1
  77. package/docs/assets/{AccessStatus.stories-XvWRutdA.js → AccessStatus.stories--VEkNiy_.js} +1 -1
  78. package/docs/assets/{Avatar-DUThlKLV.js → Avatar-Ddf_DDf6.js} +1 -1
  79. package/docs/assets/{Avatar.stories-Dwgdl1h5.js → Avatar.stories-Bw8TMzwN.js} +1 -1
  80. package/docs/assets/{Badge-DSmH78WU.js → Badge-DsHkKLq5.js} +1 -1
  81. package/docs/assets/{Badge.stories-D-06ABBo.js → Badge.stories-1MGIb5Ay.js} +1 -1
  82. package/docs/assets/{BadgeScore-GfZixoUY.js → BadgeScore-DZ7uKkkn.js} +1 -1
  83. package/docs/assets/{BadgeScore.stories-D3zFKjT2.js → BadgeScore.stories-DyWA-wfY.js} +1 -1
  84. package/docs/assets/{Banner-DDGfdClH.js → Banner-B73N4KyQ.js} +1 -1
  85. package/docs/assets/{Banner.stories-DRjfHQB5.js → Banner.stories-DwaPbSL6.js} +1 -1
  86. package/docs/assets/{BasicRichListItem-B1E5DYkk.js → BasicRichListItem-DOfqex-T.js} +1 -1
  87. package/docs/assets/{BasicRichListItem.stories-Bwk6-q_S.js → BasicRichListItem.stories-CnWdWdmC.js} +1 -1
  88. package/docs/assets/{BlockadeStatus-D6w6lZhK.js → BlockadeStatus-BR_7M5Y7.js} +1 -1
  89. package/docs/assets/{BlockedeStatus.stories-BPVIJ-7M.js → BlockedeStatus.stories-D2j3DGI7.js} +1 -1
  90. package/docs/assets/Button-DHfR56t4.js +1 -0
  91. package/docs/assets/{Button.stories-C905FtVz.js → Button.stories-D3Ki6Zf4.js} +1 -1
  92. package/docs/assets/{CardExpandable-t59MJJJ1.js → CardExpandable-OLKQQ6p3.js} +1 -1
  93. package/docs/assets/{CardExpandable.stories-GrQybWeN.js → CardExpandable.stories-CZsP04Bx.js} +1 -1
  94. package/docs/assets/{Checkbox-K_NwPnQU.js → Checkbox-Dw7yhq_D.js} +1 -1
  95. package/docs/assets/{Checkbox.stories-C5rsfJfn.js → Checkbox.stories-CPr-TvdU.js} +1 -1
  96. package/docs/assets/{Chip-DmzVP4Nc.js → Chip-CYE9ciB6.js} +1 -1
  97. package/docs/assets/{Chip.stories-BHVdQEET.js → Chip.stories-DvZRPuZX.js} +1 -1
  98. package/docs/assets/{Color-ERTF36HU-Zy8s_54Y.js → Color-ERTF36HU-BxTduNqG.js} +1 -1
  99. package/docs/assets/{Colors.stories-BP3gpSll.js → Colors.stories-DsVCBpMK.js} +1 -1
  100. package/docs/assets/{ColorsThemes.stories-0-sPp0ge.js → ColorsThemes.stories-CvuM5Lfh.js} +1 -1
  101. package/docs/assets/{ColorsTokensLms.stories-hGXDsaon.js → ColorsTokensLms.stories-BLf0d4Ej.js} +1 -1
  102. package/docs/assets/{ColorsTokensPrimaryBodywork.stories-DbuoY06v.js → ColorsTokensPrimaryBodywork.stories-DPROdtqj.js} +1 -1
  103. package/docs/assets/{ColorsTokensPrimaryWnl.stories-BGrxCgKb.js → ColorsTokensPrimaryWnl.stories-BeDXP0UM.js} +1 -1
  104. package/docs/assets/{CounterToggle-UTpNPOSH.js → CounterToggle-_K-to0yi.js} +1 -1
  105. package/docs/assets/{CounterToggle.stories-7sAIDH2d.js → CounterToggle.stories-_CTotmHu.js} +1 -1
  106. package/docs/assets/{DateBox.stories-DLmMNPBT.js → DateBox.stories-CDMlmmhz.js} +1 -1
  107. package/docs/assets/DatePicker-D0XaBW1a.js +2 -0
  108. package/docs/assets/{DatePicker.stories-DHiM_CF1.js → DatePicker.stories-BQG31hVQ.js} +1 -1
  109. package/docs/assets/{DateRangePicker-DyLp3jfg.js → DateRangePicker-BKwZTPvV.js} +1 -1
  110. package/docs/assets/{DateRangePicker.stories-Chl7D6cH.js → DateRangePicker.stories-CEnBjdrE.js} +1 -1
  111. package/docs/assets/{DocsRenderer-CFRXHY34-Mv9wJbYE.js → DocsRenderer-CFRXHY34-TNb7LCKP.js} +5 -5
  112. package/docs/assets/{Drawer-BAhS1Aex.js → Drawer-SoovlwOt.js} +1 -1
  113. package/docs/assets/{Drawer.stories-Bgvx4k59.js → Drawer.stories-CEU1F2uA.js} +1 -1
  114. package/docs/assets/{DrawerHeader-CivXan1m.js → DrawerHeader-DKnj6uGf.js} +1 -1
  115. package/docs/assets/{DrawerHeader.stories-B-6VXMB_.js → DrawerHeader.stories-BDuVqv88.js} +1 -1
  116. package/docs/assets/{DrawerListItem-BCPF0NKt.js → DrawerListItem-CTXZN6Bi.js} +1 -1
  117. package/docs/assets/{DrawerListItem.stories-Cyjmm297.js → DrawerListItem.stories-BEKXtNUK.js} +1 -1
  118. package/docs/assets/{DrawerListItemGroup.stories-COuFavcC.js → DrawerListItemGroup.stories-COPmhcN6.js} +1 -1
  119. package/docs/assets/{DrawerSection-B6PrbMVD.js → DrawerSection-CZ_dBYx4.js} +1 -1
  120. package/docs/assets/{DrawerSection.stories-DUmVgH2v.js → DrawerSection.stories-sLxT7vrO.js} +1 -1
  121. package/docs/assets/{DrawerTile-CTrRTsz5.js → DrawerTile-DbrnM1Eh.js} +1 -1
  122. package/docs/assets/{DrawerTile.stories-BVrU34zb.js → DrawerTile.stories-Dw3ao85n.js} +1 -1
  123. package/docs/assets/{Dropdown-B75bqkCY.js → Dropdown-D0Da3_Op.js} +1 -1
  124. package/docs/assets/{Dropdown.stories-DHicOtyD.js → Dropdown.stories-D5GXGzlY.js} +1 -1
  125. package/docs/assets/{FeatureIcon-Zls5aPDA.js → FeatureIcon-BDPyvlSM.js} +1 -1
  126. package/docs/assets/{FeatureIcon.stories-fkGRpy1k.js → FeatureIcon.stories-BQCkvwda.js} +1 -1
  127. package/docs/assets/GroupRichListItem-DDOzz7uS.js +1 -0
  128. package/docs/assets/{GroupRichListItem.stories-BXIoUT_x.js → GroupRichListItem.stories-CyN2evgP.js} +1 -1
  129. package/docs/assets/{Icon-BPz80dqH.js → Icon-D0llnARZ.js} +1 -1
  130. package/docs/assets/{Icon.stories-nMGhxKkt.js → Icon.stories-CTnRL9yQ.js} +1 -1
  131. package/docs/assets/IconButton-BJcODvDg.js +1 -0
  132. package/docs/assets/{IconButton.stories-D4XVg9xV.js → IconButton.stories-BB7ViPXj.js} +1 -1
  133. package/docs/assets/{IconText-7zvo_ew8.js → IconText-CHD1e6XV.js} +1 -1
  134. package/docs/assets/{IconText.stories-WHFYLn8K.js → IconText.stories-C2BRfPpO.js} +1 -1
  135. package/docs/assets/{ItemsList-D_riVFX-.js → ItemsList-B6NLHoqB.js} +1 -1
  136. package/docs/assets/{Modal-D7RDnkRT.js → Modal-B4jvsyp2.js} +1 -1
  137. package/docs/assets/{Modal.stories-DtonpbNd.js → Modal.stories-H0HEhSSX.js} +1 -1
  138. package/docs/assets/{ModalDialog-D-FrIv9r.js → ModalDialog-B1Fx-Up2.js} +1 -1
  139. package/docs/assets/{ModalDialog.stories-BO4kM0oI.js → ModalDialog.stories-BjHBYxwN.js} +1 -1
  140. package/docs/assets/{OutlineItem-DqMRN7G1.js → OutlineItem-zkItoOB5.js} +1 -1
  141. package/docs/assets/{OutlineItem.stories-wBYF6_YS.js → OutlineItem.stories-B0QRpUCr.js} +1 -1
  142. package/docs/assets/{OverlayHeader-D3BWUMCs.js → OverlayHeader-BKF2Jxw2.js} +1 -1
  143. package/docs/assets/{OverlayHeader.stories-D22gEPwS.js → OverlayHeader.stories-DQMarEn0.js} +1 -1
  144. package/docs/assets/{PageHeader-C5oCP3S2.js → PageHeader-DLJRiCDS.js} +1 -1
  145. package/docs/assets/{PageHeader.stories-hH9p_VSN.js → PageHeader.stories-BMlnhYYZ.js} +1 -1
  146. package/docs/assets/{Pagination-xRPA6q3h.js → Pagination-BP-W1sZd.js} +1 -1
  147. package/docs/assets/{Pagination.stories-_aA1bDru.js → Pagination.stories-D8QusEmL.js} +1 -1
  148. package/docs/assets/{PopOver-DlmHqZVO.js → PopOver-BPteMd3J.js} +1 -1
  149. package/docs/assets/{PopOver.stories-BrDXwbSj.js → PopOver.stories-BQ1BTWwk.js} +1 -1
  150. package/docs/assets/{ProgressBar-DcRQqf-M.js → ProgressBar-CWgk1hV8.js} +1 -1
  151. package/docs/assets/{ProgressBar.stories-DpjJPck1.js → ProgressBar.stories-CATIctgi.js} +1 -1
  152. package/docs/assets/{ProgressDonutChart-O1ep3At7.js → ProgressDonutChart-WC2lEAZ8.js} +1 -1
  153. package/docs/assets/{ProgressDonutChart.stories-DTDXTcvn.js → ProgressDonutChart.stories-DHJbf9Nx.js} +1 -1
  154. package/docs/assets/{RadioButton-CO43G0Ta.js → RadioButton-DDS7T3bf.js} +1 -1
  155. package/docs/assets/{RadioButton.stories-BidHbpYh.js → RadioButton.stories-CwIgskB5.js} +1 -1
  156. package/docs/assets/{RichListItem.stories-bEj3sobC.js → RichListItem.stories-ByYKVXoj.js} +1 -1
  157. package/docs/assets/{SectionHeader-CwB5neO2.js → SectionHeader-mtDgyTNK.js} +1 -1
  158. package/docs/assets/{SectionHeader.stories-DU-5pOpU.js → SectionHeader.stories-RUYZcEBs.js} +1 -1
  159. package/docs/assets/{SectionTitle-BQZh7aFs.js → SectionTitle-_cACyvBA.js} +1 -1
  160. package/docs/assets/{SectionTitle.stories-BLNC5wZK.js → SectionTitle.stories-CQMtgSgm.js} +1 -1
  161. package/docs/assets/{SelectList.stories-B8NokTyi.js → SelectList.stories-BL3nuotP.js} +1 -1
  162. package/docs/assets/{SelectListItem-DPuR0fG2.js → SelectListItem-DorYfEdc.js} +1 -1
  163. package/docs/assets/{SelectListItem.stories-oxeMJs_v.js → SelectListItem.stories-zmIE8Hys.js} +1 -1
  164. package/docs/assets/{SelectListItemTile-CWD-7N0p.js → SelectListItemTile-DZDC7P_P.js} +1 -1
  165. package/docs/assets/{SelectListItemTile.stories-qL9td0K7.js → SelectListItemTile.stories-DKJCFIlt.js} +1 -1
  166. package/docs/assets/{SelectListItemToggle-Bd5zU5Vc.js → SelectListItemToggle-htk1ZR7a.js} +1 -1
  167. package/docs/assets/{SelectListItemToggle.stories-DjnspGSK.js → SelectListItemToggle.stories-Bcegqjj2.js} +1 -1
  168. package/docs/assets/{SelectionControl-Xe-aYMrS.js → SelectionControl-BK_tron5.js} +1 -1
  169. package/docs/assets/{SelectionTile-BuBzVZpf.js → SelectionTile-zJELYQH1.js} +2 -2
  170. package/docs/assets/{SelectionTile.stories-Da-1b5iP.js → SelectionTile.stories-DIGebTkW.js} +1 -1
  171. package/docs/assets/{SurveyQuestionOpenEnded-DUybHAVt.js → SurveyQuestionOpenEnded-BugWE9n5.js} +1 -1
  172. package/docs/assets/{SurveyQuestionOpenEnded.stories-BgpHtIPu.js → SurveyQuestionOpenEnded.stories-DqpiJnRe.js} +1 -1
  173. package/docs/assets/{SurveyQuestionScale-I7rmD2z-.js → SurveyQuestionScale-YQUf1B6i.js} +1 -1
  174. package/docs/assets/{SurveyQuestionScale.stories-D0AleMVQ.js → SurveyQuestionScale.stories-DO5YM6k6.js} +1 -1
  175. package/docs/assets/SurveyToggle-CAt6qXiD.js +1 -0
  176. package/docs/assets/{SurveyToggle.stories-Bg752kec.js → SurveyToggle.stories-A44mClL0.js} +1 -1
  177. package/docs/assets/{Switch-C8il24TP.js → Switch-D_N0-PMC.js} +1 -1
  178. package/docs/assets/{Switch.stories-LgRcO-ZF.js → Switch.stories-DJmkpiSd.js} +1 -1
  179. package/docs/assets/TabItem-CRrapLva.js +1 -0
  180. package/docs/assets/{TabItem.stories-CrJjqpPf.js → TabItem.stories-Dtgi3LM8.js} +1 -1
  181. package/docs/assets/TextGroup-Bk9VXC2h.js +1 -0
  182. package/docs/assets/{TextGroup.stories-soggouxN.js → TextGroup.stories-3wH48Kir.js} +1 -1
  183. package/docs/assets/{ThreeColumnLayout-CFf8NRwP.js → ThreeColumnLayout-CQnFmK7u.js} +1 -1
  184. package/docs/assets/{ThreeColumnLayout.stories-tcn5IlfD.js → ThreeColumnLayout.stories-DnqRflqN.js} +1 -1
  185. package/docs/assets/{Tile-DvjxsEPO.js → Tile-CH8oOuWL.js} +1 -1
  186. package/docs/assets/{Tile.sb.shared-Cl6kkjNS.js → Tile.sb.shared-CWXeuBol.js} +1 -1
  187. package/docs/assets/{Tile.stories-02ZVx-3c.js → Tile.stories-0cC1E7vK.js} +1 -1
  188. package/docs/assets/{Toast-DKAzASvr.js → Toast-DCT_C-Jm.js} +1 -1
  189. package/docs/assets/{Toast.stories-CMk56GoR.js → Toast.stories-DykbV02i.js} +1 -1
  190. package/docs/assets/{ToggleButton-eR3n1vbs.js → ToggleButton-fcVVisoD.js} +1 -1
  191. package/docs/assets/{ToggleButton.stories-Bu6_fUaj.js → ToggleButton.stories-CMC9B5O-.js} +1 -1
  192. package/docs/assets/{Tooltip.stories-DKvJ8iAI.js → Tooltip.stories-BWi1adMD.js} +1 -1
  193. package/docs/assets/{TypographyTokensLms.stories-DW3gBdun.js → TypographyTokensLms.stories-C7HvPtC9.js} +1 -1
  194. package/docs/assets/{TypographyVariables.stories-FmiXmx2m.js → TypographyVariables.stories-B1R9WSPD.js} +1 -1
  195. package/docs/assets/{iframe-B7O_YbfU.js → iframe-BvVXUrhW.js} +33 -33
  196. package/docs/assets/{index-By8fdPgt.js → index-DlcQIzWq.js} +1 -1
  197. package/docs/assets/{index-5RZErJTT.js → index-eqI06LoF.js} +1 -1
  198. package/docs/assets/{preview-C6pVUegQ.js → preview-CnZUp2W_.js} +1 -1
  199. package/docs/assets/{preview-dRTG5wog.js → preview-DlI-9236.js} +2 -2
  200. package/docs/assets/{string-CFc0pFCE.js → string-Ct9SAoCE.js} +1 -1
  201. package/docs/iframe.html +1 -1
  202. package/docs/project.json +1 -1
  203. package/lib/js/components/Banner/Banner.consts.ts +6 -0
  204. package/lib/js/components/Banner/Banner.vue +3 -3
  205. package/lib/js/components/Buttons/Button/Button.consts.ts +14 -0
  206. package/lib/js/components/Buttons/Button/Button.vue +1 -1
  207. package/lib/js/components/Buttons/IconButton/IconButton.consts.ts +11 -0
  208. package/lib/js/components/Buttons/IconButton/IconButton.vue +14 -8
  209. package/lib/js/components/Chip/Chip.consts.ts +12 -0
  210. package/lib/js/components/Chip/Chip.stories.ts +8 -2
  211. package/lib/js/components/Chip/Chip.vue +16 -6
  212. package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +11 -5
  213. package/lib/js/components/Drawer/Drawer.vue +1 -1
  214. package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +1 -1
  215. package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +2 -1
  216. package/lib/js/components/Dropdown/Dropdown.consts.ts +8 -0
  217. package/lib/js/components/Dropdown/Dropdown.vue +6 -3
  218. package/lib/js/components/Form/Checkbox/Checkbox.vue +2 -2
  219. package/lib/js/components/Form/RadioButton/RadioButton.vue +2 -2
  220. package/lib/js/components/Form/SelectionControl/SelectionControl.vue +3 -3
  221. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.consts.ts +6 -0
  222. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +7 -2
  223. package/lib/js/components/Headers/PageHeader/PageHeader.consts.ts +4 -0
  224. package/lib/js/components/Headers/PageHeader/PageHeader.vue +3 -2
  225. package/lib/js/components/Headers/SectionHeader/SectionHeader.consts.ts +5 -0
  226. package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +5 -2
  227. package/lib/js/components/IconText/IconText.consts.ts +8 -0
  228. package/lib/js/components/IconText/IconText.vue +9 -3
  229. package/lib/js/components/Icons/Icon/Icon.vue +1 -1
  230. package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +1 -1
  231. package/lib/js/components/Modals/Modal/Modal.vue +10 -4
  232. package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +3 -3
  233. package/lib/js/components/Outline/OutlineItem/OutlineItem.consts.ts +9 -0
  234. package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +6 -3
  235. package/lib/js/components/Pagination/Pagination.vue +2 -2
  236. package/lib/js/components/ProgressBar/ProgressBar.consts.ts +14 -0
  237. package/lib/js/components/ProgressBar/ProgressBar.vue +13 -8
  238. package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +2 -2
  239. package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +2 -2
  240. package/lib/js/components/RichList/RichListItem/RichListItem.vue +7 -7
  241. package/lib/js/components/SectionTitle/SectionTitle.vue +2 -2
  242. package/lib/js/components/SelectList/SelectListItem/SelectListItem.consts.ts +11 -3
  243. package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +6 -3
  244. package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +5 -3
  245. package/lib/js/components/SurveyQuestions/SurveyQuestion.consts.ts +6 -0
  246. package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +2 -2
  247. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +9 -4
  248. package/lib/js/components/SurveyToggle/SurveyToggle.consts.ts +8 -0
  249. package/lib/js/components/SurveyToggle/SurveyToggle.vue +9 -6
  250. package/lib/js/components/TabItem/TabItem.vue +1 -1
  251. package/lib/js/components/TextGroup/TextGroup.vue +1 -1
  252. package/lib/js/components/Tile/Tile.consts.ts +3 -3
  253. package/lib/js/components/Tile/Tile.shared.ts +9 -10
  254. package/lib/js/components/Toggles/CounterToggle/CounterToggle.consts.ts +5 -1
  255. package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +2 -2
  256. package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +4 -5
  257. package/lib/js/components/Well/Well.consts.ts +4 -0
  258. package/lib/js/components/Well/Well.stories.ts +49 -4
  259. package/lib/js/components/Well/Well.vue +57 -22
  260. package/lib/js/styles/ItemsList.vue +9 -2
  261. package/lib/js/styles/TokenTypes.ts +2 -1
  262. package/package.json +4 -3
  263. package/docs/assets/Button-yeAor0pZ.js +0 -1
  264. package/docs/assets/DatePicker-DHykkoW4.js +0 -2
  265. package/docs/assets/GroupRichListItem-onOADtuh.js +0 -1
  266. package/docs/assets/IconButton-gTykCZIi.js +0 -1
  267. package/docs/assets/SurveyToggle-BECsKZHH.js +0 -1
  268. package/docs/assets/TabItem-Cceq5FQB.js +0 -1
  269. package/docs/assets/TextGroup-D5le3QVY.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-Mv9wJbYE.js","./iframe-B7O_YbfU.js","./_commonjsHelpers-Chg3vePA.js","./index-vG0co4wr.js"])))=>i.map(i=>d[i]);
2
- import{_ as s}from"./iframe-B7O_YbfU.js";import"../sb-preview/runtime.js";const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var o,i=Object.entries((o=_.TAGS_OPTIONS)!=null?o:{}).reduce((e,r)=>{let[t,a]=r;return a.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-CFRXHY34-Mv9wJbYE.js").then(r=>r.am),__vite__mapDeps([0,1,2,3]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-TNb7LCKP.js","./iframe-BvVXUrhW.js","./_commonjsHelpers-Chg3vePA.js","./index-vG0co4wr.js"])))=>i.map(i=>d[i]);
2
+ import{_ as s}from"./iframe-BvVXUrhW.js";import"../sb-preview/runtime.js";const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var o,i=Object.entries((o=_.TAGS_OPTIONS)!=null?o:{}).reduce((e,r)=>{let[t,a]=r;return a.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-CFRXHY34-TNb7LCKP.js").then(r=>r.am),__vite__mapDeps([0,1,2,3]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
@@ -1 +1 @@
1
- import{a as h,I as y,b as I}from"./Icon-BPz80dqH.js";import{d as p,r as g,o as s,c as n,a as d,f as i,k as $,x as u,g as m,n as b}from"./vue.esm-bundler-DmkhfO_9.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f=p({name:"Modal",components:{WnlIcon:h},props:{showHeader:{type:Boolean,default:!0},animateScrollingContent:{type:Boolean,default:!1}},emits:["close-modal"],data(){return{ICONS:Object.freeze(y),ICON_SIZES:Object.freeze(I)}}}),C={key:0,class:"m-modal__header"},N={key:1,class:"m-modal__footer"};function w(e,a,o,l,t,S){const r=g("wnl-icon");return s(),n("div",{class:"m-modal",onClick:a[2]||(a[2]=u(_=>e.$emit("close-modal"),["stop"]))},[d("div",{class:"m-modal__contentWrapper",onClick:a[1]||(a[1]=u(()=>{},["stop"]))},[e.showHeader?(s(),n("div",C,[i(e.$slots,"header",{},void 0,!0),$(r,{touchable:"",icon:e.ICONS.FA_XMARK,class:"m-modal__header__close",size:e.ICON_SIZES.SMALL,onClick:a[0]||(a[0]=u(_=>e.$emit("close-modal"),["stop"]))},null,8,["icon","size"])])):m("",!0),d("div",{class:b(["m-modal__content",{"scrollable-main-container":e.animateScrollingContent}])},[i(e.$slots,"default",{},void 0,!0)],2),a[3]||(a[3]=d("div",{class:"m-modal__content__shadow"},null,-1)),e.$slots.footer?(s(),n("div",N,[i(e.$slots,"footer",{},void 0,!0)])):m("",!0)])])}const A=c(f,[["render",w],["__scopeId","data-v-b165f419"]]);f.__docgenInfo={displayName:"Modal",exportName:"default",description:"",tags:{},props:[{name:"showHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"animateScrollingContent",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"close-modal"}],slots:[{name:"header"},{name:"default"},{name:"footer"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Modal/Modal.vue"]};const V={DEFAULT:"default",DISABLED:"disabled"},Q={ONE:"one",TWO:"two"},v=p({name:"SurveyQuestionTextarea",props:{value:{type:String,required:!0},placeholder:{type:String,default:"Wpisz swoją odpowiedź"},disabled:{type:Boolean,default:!1}},emits:["input"],watch:{value(){this.$refs.textarea.style.height="auto",this.$refs.textarea.style.height=this.$refs.textarea.scrollHeight+"px"}},methods:{onInput(e){this.$emit("input",e.target.value)}}}),E=["disabled","placeholder","value"];function O(e,a,o,l,t,S){return s(),n("textarea",{ref:"textarea",class:"ds-surveyQuestionTextarea",disabled:e.disabled,placeholder:e.placeholder,value:e.value,onInput:a[0]||(a[0]=(...r)=>e.onInput&&e.onInput(...r))},null,40,E)}const z=c(v,[["render",O],["__scopeId","data-v-a0f836ab"]]);v.__docgenInfo={displayName:"SurveyQuestionTextarea",exportName:"default",description:"",tags:{},props:[{name:"value",type:{name:"string"},required:!0},{name:"placeholder",type:{name:"string"},defaultValue:{func:!1,value:"'Wpisz swoją odpowiedź'"}},{name:"disabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"input",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue"]};const B=e=>{for(var a="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=o.length,t=0;t<e;t++)a+=o.charAt(Math.floor(Math.random()*l));return a};export{A as M,V as S,Q as a,z as b,B as r};
1
+ import{a as h,I as y,b as I}from"./Icon-D0llnARZ.js";import{d as p,r as g,o as s,c as n,a as d,f as i,k as $,x as u,g as m,n as b}from"./vue.esm-bundler-DmkhfO_9.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";const f=p({name:"Modal",components:{WnlIcon:h},props:{showHeader:{type:Boolean,default:!0},animateScrollingContent:{type:Boolean,default:!1}},emits:["close-modal"],data(){return{ICONS:Object.freeze(y),ICON_SIZES:Object.freeze(I)}}}),C={key:0,class:"m-modal__header"},N={key:1,class:"m-modal__footer"};function w(e,a,o,l,t,S){const r=g("wnl-icon");return s(),n("div",{class:"m-modal",onClick:a[2]||(a[2]=u(_=>e.$emit("close-modal"),["stop"]))},[d("div",{class:"m-modal__contentWrapper",onClick:a[1]||(a[1]=u(()=>{},["stop"]))},[e.showHeader?(s(),n("div",C,[i(e.$slots,"header",{},void 0,!0),$(r,{touchable:"",icon:e.ICONS.FA_XMARK,class:"m-modal__header__close",size:e.ICON_SIZES.SMALL,onClick:a[0]||(a[0]=u(_=>e.$emit("close-modal"),["stop"]))},null,8,["icon","size"])])):m("",!0),d("div",{class:b(["m-modal__content",{"scrollable-main-container":e.animateScrollingContent}])},[i(e.$slots,"default",{},void 0,!0)],2),a[3]||(a[3]=d("div",{class:"m-modal__content__shadow"},null,-1)),e.$slots.footer?(s(),n("div",N,[i(e.$slots,"footer",{},void 0,!0)])):m("",!0)])])}const A=c(f,[["render",w],["__scopeId","data-v-b165f419"]]);f.__docgenInfo={displayName:"Modal",exportName:"default",description:"",tags:{},props:[{name:"showHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"animateScrollingContent",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"close-modal"}],slots:[{name:"header"},{name:"default"},{name:"footer"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Modal/Modal.vue"]};const V={DEFAULT:"default",DISABLED:"disabled"},Q={ONE:"one",TWO:"two"},v=p({name:"SurveyQuestionTextarea",props:{value:{type:String,required:!0},placeholder:{type:String,default:"Wpisz swoją odpowiedź"},disabled:{type:Boolean,default:!1}},emits:["input"],watch:{value(){this.$refs.textarea.style.height="auto",this.$refs.textarea.style.height=this.$refs.textarea.scrollHeight+"px"}},methods:{onInput(e){this.$emit("input",e.target.value)}}}),E=["disabled","placeholder","value"];function O(e,a,o,l,t,S){return s(),n("textarea",{ref:"textarea",class:"ds-surveyQuestionTextarea",disabled:e.disabled,placeholder:e.placeholder,value:e.value,onInput:a[0]||(a[0]=(...r)=>e.onInput&&e.onInput(...r))},null,40,E)}const z=c(v,[["render",O],["__scopeId","data-v-a0f836ab"]]);v.__docgenInfo={displayName:"SurveyQuestionTextarea",exportName:"default",description:"",tags:{},props:[{name:"value",type:{name:"string"},required:!0},{name:"placeholder",type:{name:"string"},defaultValue:{func:!1,value:"'Wpisz swoją odpowiedź'"}},{name:"disabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"input",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue"]};const B=e=>{for(var a="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=o.length,t=0;t<e;t++)a+=o.charAt(Math.floor(Math.random()*l));return a};export{A as M,V as S,Q as a,z as b,B as r};
package/docs/iframe.html CHANGED
@@ -510,7 +510,7 @@
510
510
  </script>
511
511
  <link rel="stylesheet" href="./preview.css">
512
512
 
513
- <script type="module" crossorigin src="./assets/iframe-B7O_YbfU.js"></script>
513
+ <script type="module" crossorigin src="./assets/iframe-BvVXUrhW.js"></script>
514
514
  </head>
515
515
 
516
516
  <body>
package/docs/project.json CHANGED
@@ -1 +1 @@
1
- {"generatedAt":1747834978084,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.13","@vue/vue3-jest":"29.2.2","jest":"29.7.0","jest-environment-jsdom":"29.7.0","ts-jest":"29.0.5"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":2,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
1
+ {"generatedAt":1747988135977,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.13","@vue/vue3-jest":"29.2.2","jest":"29.7.0","jest-environment-jsdom":"29.7.0","ts-jest":"29.0.5"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":2,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
@@ -1,3 +1,5 @@
1
+ import { Value } from '../../utils/type.utils';
2
+
1
3
  export const BANNER_COLORS = {
2
4
  DEFAULT: 'default',
3
5
  NEUTRAL: 'neutral',
@@ -8,7 +10,11 @@ export const BANNER_COLORS = {
8
10
  DANGER: 'danger',
9
11
  } as const;
10
12
 
13
+ export type BannerColor = Value<typeof BANNER_COLORS>;
14
+
11
15
  export const BANNER_LAYOUTS = {
12
16
  HORIZONTAL: 'horizontal',
13
17
  VERTICAL: 'vertical',
14
18
  } as const;
19
+
20
+ export type BannerLayout = Value<typeof BANNER_LAYOUTS>;
@@ -305,7 +305,7 @@ import DsButton, {
305
305
  import DsDivider, { DIVIDER_PROMINENCES } from '../Divider';
306
306
  import DsIcon, { ICONS } from '../Icons/Icon';
307
307
  import DsIconButton, { ICON_BUTTON_COLORS, ICON_BUTTON_SIZES } from '../Buttons/IconButton';
308
- import { BANNER_COLORS, BANNER_LAYOUTS } from './Banner.consts';
308
+ import { BANNER_COLORS, BANNER_LAYOUTS, BannerColor, BannerLayout } from './Banner.consts';
309
309
  import { defineComponent, toRaw } from 'vue';
310
310
 
311
311
  export default defineComponent({
@@ -333,7 +333,7 @@ export default defineComponent({
333
333
  color: {
334
334
  type: String,
335
335
  default: BANNER_COLORS.DEFAULT,
336
- validator: (color) => Object.values(BANNER_COLORS).includes(color),
336
+ validator: (color: BannerColor) => Object.values(BANNER_COLORS).includes(color),
337
337
  },
338
338
  title: {
339
339
  type: String,
@@ -342,7 +342,7 @@ export default defineComponent({
342
342
  layout: {
343
343
  type: String,
344
344
  default: BANNER_LAYOUTS.HORIZONTAL,
345
- validator: (layout) => Object.values(BANNER_LAYOUTS).includes(layout),
345
+ validator: (layout: BannerLayout) => Object.values(BANNER_LAYOUTS).includes(layout),
346
346
  },
347
347
  isExpanded: {
348
348
  type: Boolean,
@@ -1,15 +1,21 @@
1
+ import { Value } from '../../../utils/type.utils';
2
+
1
3
  export const BUTTON_SIZES = {
2
4
  SMALL: 'small',
3
5
  MEDIUM: 'medium',
4
6
  LARGE: 'large',
5
7
  } as const;
6
8
 
9
+ export type ButtonSize = Value<typeof BUTTON_SIZES>;
10
+
7
11
  export const BUTTON_TYPES = {
8
12
  FILLED: 'filled',
9
13
  OUTLINED: 'outlined',
10
14
  TEXT: 'text',
11
15
  } as const;
12
16
 
17
+ export type ButtonType = Value<typeof BUTTON_TYPES>;
18
+
13
19
  export const BUTTON_COLORS = {
14
20
  PRIMARY: 'primary',
15
21
  NEUTRAL: 'neutral',
@@ -18,11 +24,15 @@ export const BUTTON_COLORS = {
18
24
  INVERTED: 'inverted',
19
25
  } as const;
20
26
 
27
+ export type ButtonColor = Value<typeof BUTTON_COLORS>;
28
+
21
29
  export const BUTTON_RADIUSES = {
22
30
  CAPSULE: 'capsule',
23
31
  ROUNDED: 'rounded',
24
32
  } as const;
25
33
 
34
+ export type ButtonRadius = Value<typeof BUTTON_RADIUSES>;
35
+
26
36
  export const BUTTON_STATES = {
27
37
  DEFAULT: 'default',
28
38
  HOVERED: 'hovered',
@@ -31,8 +41,12 @@ export const BUTTON_STATES = {
31
41
  LOADING: 'loading',
32
42
  } as const;
33
43
 
44
+ export type ButtonState = Value<typeof BUTTON_STATES>;
45
+
34
46
  export const BUTTON_ELEVATIONS = {
35
47
  NONE: 'none',
36
48
  X_SMALL: 'x-small',
37
49
  SMALL: 'small',
38
50
  } as const;
51
+
52
+ export type ButtonElevation = Value<typeof BUTTON_ELEVATIONS>;
@@ -85,7 +85,7 @@ export default defineComponent({
85
85
  },
86
86
  },
87
87
  color: {
88
- type: String,
88
+ type: [String, null],
89
89
  default: BUTTON_COLORS.PRIMARY,
90
90
  validator(value: Value<typeof ICON_BUTTON_COLORS>) {
91
91
  return Object.values(ICON_BUTTON_COLORS).includes(value);
@@ -1,4 +1,5 @@
1
1
  import { BUTTON_TYPES } from '../Button/Button.consts';
2
+ import { Value } from '../../../utils/type.utils';
2
3
 
3
4
  export const ICON_BUTTON_SIZES = {
4
5
  XX_SMALL: 'xx-small',
@@ -8,17 +9,23 @@ export const ICON_BUTTON_SIZES = {
8
9
  LARGE: 'large',
9
10
  } as const;
10
11
 
12
+ export type IconButtonSize = Value<typeof ICON_BUTTON_SIZES>;
13
+
11
14
  export const ICON_BUTTON_TYPES = {
12
15
  ICON_ONLY: 'icon-only',
13
16
  OUTLINED: BUTTON_TYPES.OUTLINED,
14
17
  FILLED: BUTTON_TYPES.FILLED,
15
18
  } as const;
16
19
 
20
+ export type IconButtonType = Value<typeof ICON_BUTTON_TYPES>;
21
+
17
22
  export const ICON_BUTTON_COLOR_SCHEMES = {
18
23
  ALL_IN_COLOR: 'all-in-color',
19
24
  NEUTRAL_LABEL: 'neutral-label',
20
25
  } as const;
21
26
 
27
+ export type IconButtonColorScheme = Value<typeof ICON_BUTTON_COLOR_SCHEMES>;
28
+
22
29
  export const ICON_BUTTON_COLORS = {
23
30
  PRIMARY: 'primary',
24
31
  NEUTRAL: 'neutral',
@@ -31,6 +38,8 @@ export const ICON_BUTTON_COLORS = {
31
38
  INFO: 'info',
32
39
  } as const;
33
40
 
41
+ export type IconButtonColor = Value<typeof ICON_BUTTON_COLORS>;
42
+
34
43
  export const ICON_BUTTON_STATES = {
35
44
  DEFAULT: 'default',
36
45
  HOVERED: 'hovered',
@@ -38,3 +47,5 @@ export const ICON_BUTTON_STATES = {
38
47
  DISABLED: 'disabled',
39
48
  LOADING: 'loading',
40
49
  } as const;
50
+
51
+ export type IconButtonState = Value<typeof ICON_BUTTON_STATES>;
@@ -266,6 +266,8 @@ import WnlButton, {
266
266
  BUTTON_ELEVATIONS,
267
267
  BUTTON_RADIUSES,
268
268
  BUTTON_TYPES,
269
+ ButtonElevation,
270
+ ButtonRadius,
269
271
  } from '../Button';
270
272
  import {
271
273
  ICON_BUTTON_COLOR_SCHEMES,
@@ -273,6 +275,10 @@ import {
273
275
  ICON_BUTTON_SIZES,
274
276
  ICON_BUTTON_STATES,
275
277
  ICON_BUTTON_TYPES,
278
+ IconButtonColor,
279
+ IconButtonColorScheme,
280
+ IconButtonSize,
281
+ IconButtonType,
276
282
  } from './IconButton.consts';
277
283
  import { Value } from '../../../utils/type.utils';
278
284
  import { defineComponent, toRaw } from 'vue';
@@ -296,21 +302,21 @@ export default defineComponent({
296
302
  size: {
297
303
  type: String,
298
304
  default: ICON_BUTTON_SIZES.LARGE,
299
- validator(value) {
305
+ validator(value: IconButtonSize) {
300
306
  return Object.values(ICON_BUTTON_SIZES).includes(value);
301
307
  },
302
308
  },
303
309
  radius: {
304
310
  type: String,
305
311
  default: BUTTON_RADIUSES.CAPSULE,
306
- validator(value) {
312
+ validator(value: ButtonRadius) {
307
313
  return Object.values(BUTTON_RADIUSES).includes(value);
308
314
  },
309
315
  },
310
316
  type: {
311
317
  type: String,
312
318
  default: ICON_BUTTON_TYPES.ICON_ONLY,
313
- validator(value) {
319
+ validator(value: IconButtonType) {
314
320
  return Object.values(ICON_BUTTON_TYPES).includes(value);
315
321
  },
316
322
  },
@@ -324,21 +330,21 @@ export default defineComponent({
324
330
  color: {
325
331
  type: String,
326
332
  default: ICON_BUTTON_COLORS.PRIMARY,
327
- validator(value): boolean {
333
+ validator(value: IconButtonColor) {
328
334
  return Object.values(ICON_BUTTON_COLORS).includes(value);
329
335
  },
330
336
  },
331
337
  colorScheme: {
332
338
  type: String,
333
339
  default: ICON_BUTTON_COLOR_SCHEMES.ALL_IN_COLOR,
334
- validator(value): boolean {
340
+ validator(value: IconButtonColorScheme) {
335
341
  return Object.values(ICON_BUTTON_COLOR_SCHEMES).includes(value);
336
342
  },
337
343
  },
338
344
  elevation: {
339
345
  type: String,
340
346
  default: BUTTON_ELEVATIONS.NONE,
341
- validator(value) {
347
+ validator(value: ButtonElevation) {
342
348
  return Object.values(BUTTON_ELEVATIONS).includes(value);
343
349
  },
344
350
  },
@@ -393,9 +399,9 @@ export default defineComponent({
393
399
  }
394
400
  return this.type;
395
401
  },
396
- computedColor(): string | null {
402
+ computedColor(): string | undefined {
397
403
  if (this.isButtonColor) {
398
- return null;
404
+ return undefined;
399
405
  }
400
406
  if (this.type === ICON_BUTTON_TYPES.ICON_ONLY) {
401
407
  return this.color;
@@ -1,8 +1,12 @@
1
+ import { Value } from '../../utils/type.utils';
2
+
1
3
  export const CHIP_SIZES = {
2
4
  X_SMALL: 'x-small',
3
5
  SMALL: 'small',
4
6
  } as const;
5
7
 
8
+ export type ChipSize = Value<typeof CHIP_SIZES>;
9
+
6
10
  export const CHIP_COLORS = {
7
11
  PRIMARY: 'primary',
8
12
  PRIMARY_STRONG: 'primaryStrong',
@@ -15,12 +19,20 @@ export const CHIP_COLORS = {
15
19
  INFO: 'info',
16
20
  } as const;
17
21
 
22
+ export const CHIP_DEFAULT_COLOR = CHIP_COLORS.NEUTRAL;
23
+
24
+ export type ChipColor = Value<typeof CHIP_COLORS>;
25
+
18
26
  export const CHIP_STATES = {
19
27
  DEFAULT: 'default',
20
28
  DISABLED: 'disabled',
21
29
  } as const;
22
30
 
31
+ export type ChipState = Value<typeof CHIP_STATES>;
32
+
23
33
  export const CHIP_RADIUSES = {
24
34
  CAPSULE: 'capsule',
25
35
  ROUNDED: 'rounded',
26
36
  } as const;
37
+
38
+ export type ChipRadius = Value<typeof CHIP_RADIUSES>;
@@ -1,5 +1,11 @@
1
1
  import Chip from './Chip.vue';
2
- import { CHIP_COLORS, CHIP_RADIUSES, CHIP_SIZES, CHIP_STATES } from './Chip.consts';
2
+ import {
3
+ CHIP_COLORS,
4
+ CHIP_DEFAULT_COLOR,
5
+ CHIP_RADIUSES,
6
+ CHIP_SIZES,
7
+ CHIP_STATES,
8
+ } from './Chip.consts';
3
9
  import { ICONS } from '../Icons/Icon';
4
10
  import LogoBadge from '../../../images/logo-badge.svg';
5
11
  import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
@@ -55,7 +61,7 @@ const args = {
55
61
  leftIcon: null,
56
62
  radius: CHIP_RADIUSES.CAPSULE,
57
63
  size: CHIP_SIZES.SMALL,
58
- color: CHIP_COLORS.NEUTRAL,
64
+ color: CHIP_DEFAULT_COLOR,
59
65
  colorHex: '',
60
66
  isRemovable: false,
61
67
  state: CHIP_STATES.DEFAULT,
@@ -246,7 +246,17 @@ import IconButton, {
246
246
  ICON_BUTTON_STATES,
247
247
  } from '../Buttons/IconButton';
248
248
  import Icon, { ICON_SIZES, ICONS } from '../Icons/Icon';
249
- import { CHIP_COLORS, CHIP_RADIUSES, CHIP_SIZES, CHIP_STATES } from './Chip.consts';
249
+ import {
250
+ CHIP_COLORS,
251
+ CHIP_RADIUSES,
252
+ CHIP_SIZES,
253
+ CHIP_STATES,
254
+ CHIP_DEFAULT_COLOR,
255
+ ChipColor,
256
+ ChipRadius,
257
+ ChipSize,
258
+ ChipState,
259
+ } from './Chip.consts';
250
260
 
251
261
  const CHIP_ICON_BUTTONS_COLOR_MAP = {
252
262
  [CHIP_COLORS.INVERTED]: ICON_BUTTON_COLORS.PRIMARY,
@@ -282,21 +292,21 @@ export default defineComponent({
282
292
  radius: {
283
293
  type: String,
284
294
  default: CHIP_RADIUSES.CAPSULE,
285
- validator(value: Value<typeof CHIP_RADIUSES>) {
295
+ validator(value: ChipRadius) {
286
296
  return Object.values(CHIP_RADIUSES).includes(value);
287
297
  },
288
298
  },
289
299
  size: {
290
300
  type: String,
291
301
  default: CHIP_SIZES.SMALL,
292
- validator(size) {
302
+ validator(size: ChipSize) {
293
303
  return Object.values(CHIP_SIZES).includes(size);
294
304
  },
295
305
  },
296
306
  color: {
297
307
  type: String,
298
- default: CHIP_COLORS.NEUTRAL,
299
- validator(color) {
308
+ default: CHIP_DEFAULT_COLOR,
309
+ validator(color: ChipColor) {
300
310
  return Object.values(CHIP_COLORS).includes(color);
301
311
  },
302
312
  },
@@ -307,7 +317,7 @@ export default defineComponent({
307
317
  state: {
308
318
  type: String,
309
319
  default: CHIP_STATES.DEFAULT,
310
- validator(value: Value<typeof CHIP_STATES>) {
320
+ validator(value: ChipState) {
311
321
  return Object.values(CHIP_STATES).includes(value);
312
322
  },
313
323
  },
@@ -24,9 +24,9 @@
24
24
  :text="text"
25
25
  :interactive="isInteractive"
26
26
  :additional-text="additionalText"
27
- :color="color as TileColors"
27
+ :color="tileColor"
28
28
  :border-color="borderColor"
29
- :state="state as TileStates"
29
+ :state="tileState"
30
30
  :icon-right="tileIcon"
31
31
  :is-icon-right-hidden-on-mobile="isIconHiddenOnMobile"
32
32
  :eyebrow-text="eyebrowText"
@@ -142,13 +142,13 @@ import { defineComponent, PropType, Ref, ref, toRaw } from 'vue';
142
142
 
143
143
  import { Instance as DatePickerInstance } from 'flatpickr/dist/types/instance';
144
144
 
145
- import { IconItem, ICONS } from '../../Icons/Icon';
146
145
  import DsTile, {
147
146
  TILE_ADDITIONAL_TEXT_MAX_WIDTHS,
148
147
  TILE_BORDER_COLORS,
149
- TileColors,
150
- TileStates,
148
+ TileColor,
149
+ TileState,
151
150
  } from '../../Tile';
151
+ import { IconItem, ICONS } from '../../Icons/Icon';
152
152
  import DateBox from '../DateBox';
153
153
 
154
154
  import {
@@ -348,6 +348,12 @@ export default defineComponent({
348
348
  showHelpMessage() {
349
349
  return this.helpMessage !== null;
350
350
  },
351
+ tileState() {
352
+ return this.state as TileState;
353
+ },
354
+ tileColor() {
355
+ return this.color as TileColor;
356
+ },
351
357
  },
352
358
  methods: {
353
359
  async bindFlatpickrInstance() {
@@ -81,7 +81,7 @@ export default defineComponent({
81
81
  position: {
82
82
  type: String as PropType<DrawerPosition>,
83
83
  default: DRAWER_POSITIONS.RIGHT,
84
- validator(position) {
84
+ validator(position: DrawerPosition) {
85
85
  return Object.values(DRAWER_POSITIONS).includes(position);
86
86
  },
87
87
  },
@@ -59,7 +59,7 @@ export default defineComponent({
59
59
  state: {
60
60
  type: String as PropType<DrawerListItemState>,
61
61
  default: DRAWER_LIST_ITEM_STATES.DEFAULT,
62
- validator(state) {
62
+ validator(state: DrawerListItemState) {
63
63
  return Object.values(DRAWER_LIST_ITEM_STATES).includes(state);
64
64
  },
65
65
  },
@@ -33,6 +33,7 @@ import SectionHeader, {
33
33
  SECTION_HEADER_ICON_COLORS,
34
34
  SECTION_HEADER_SIZES,
35
35
  SectionHeaderIconColor,
36
+ SectionHeaderSize,
36
37
  } from '../../Headers/SectionHeader';
37
38
  import { defineComponent, toRaw } from 'vue';
38
39
 
@@ -85,7 +86,7 @@ export default defineComponent({
85
86
  size: {
86
87
  type: String,
87
88
  default: SECTION_HEADER_SIZES.XX_SMALL,
88
- validator(size) {
89
+ validator(size: SectionHeaderSize) {
89
90
  return Object.values(SECTION_HEADER_SIZES).includes(size);
90
91
  },
91
92
  },
@@ -1,15 +1,23 @@
1
+ import { Value } from '../../utils/type.utils';
2
+
1
3
  export const DROPDOWN_TRIGGER_ACTIONS = {
2
4
  CLICK: 'click',
3
5
  HOVER: 'hover',
4
6
  } as const;
5
7
 
8
+ export type DropdownTriggerAction = Value<typeof DROPDOWN_TRIGGER_ACTIONS>;
9
+
6
10
  export const DROPDOWN_RADIUSES = {
7
11
  TOP: 'top',
8
12
  BOTTOM: 'bottom',
9
13
  BOTH: 'both',
10
14
  } as const;
11
15
 
16
+ export type DropdownRadius = Value<typeof DROPDOWN_RADIUSES>;
17
+
12
18
  export const DROPDOWN_PLACEMENTS = {
13
19
  BOTTOM_START: 'bottom-start',
14
20
  BOTTOM_END: 'bottom-end',
15
21
  } as const;
22
+
23
+ export type DropdownPlacement = Value<typeof DROPDOWN_PLACEMENTS>;
@@ -85,6 +85,9 @@ import {
85
85
  DROPDOWN_PLACEMENTS,
86
86
  DROPDOWN_RADIUSES,
87
87
  DROPDOWN_TRIGGER_ACTIONS,
88
+ DropdownPlacement,
89
+ DropdownRadius,
90
+ DropdownTriggerAction,
88
91
  } from './Dropdown.consts';
89
92
 
90
93
  import { defineComponent } from 'vue';
@@ -110,21 +113,21 @@ export default defineComponent({
110
113
  triggerAction: {
111
114
  type: String,
112
115
  default: DROPDOWN_TRIGGER_ACTIONS.CLICK,
113
- validator(triggerAction) {
116
+ validator(triggerAction: DropdownTriggerAction) {
114
117
  return Object.values(DROPDOWN_TRIGGER_ACTIONS).includes(triggerAction);
115
118
  },
116
119
  },
117
120
  radius: {
118
121
  type: String,
119
122
  default: DROPDOWN_RADIUSES.BOTH,
120
- validate(radius) {
123
+ validate(radius: DropdownRadius) {
121
124
  return Object.values(DROPDOWN_RADIUSES).includes(radius);
122
125
  },
123
126
  },
124
127
  placement: {
125
128
  type: String,
126
129
  default: DROPDOWN_PLACEMENTS.BOTTOM_START,
127
- validate(placement) {
130
+ validate(placement: DropdownPlacement) {
128
131
  return Object.values(DROPDOWN_PLACEMENTS).includes(placement);
129
132
  },
130
133
  },
@@ -27,7 +27,7 @@ export default defineComponent({
27
27
  size: {
28
28
  type: String as PropType<CheckboxSize>,
29
29
  default: CHECKBOX_SIZE.SMALL,
30
- validator(size) {
30
+ validator(size: CheckboxSize) {
31
31
  return Object.values(CHECKBOX_SIZE).includes(size);
32
32
  },
33
33
  },
@@ -42,7 +42,7 @@ export default defineComponent({
42
42
  state: {
43
43
  type: String as PropType<CheckboxState>,
44
44
  default: CHECKBOX_STATE.DEFAULT,
45
- validator(state) {
45
+ validator(state: CheckboxState) {
46
46
  return Object.values(CHECKBOX_STATE).includes(state);
47
47
  },
48
48
  },
@@ -32,7 +32,7 @@ export default defineComponent({
32
32
  size: {
33
33
  type: String as PropType<RadioButtonSize>,
34
34
  default: RADIO_BUTTON_SIZE.SMALL,
35
- validator(size) {
35
+ validator(size: RadioButtonSize) {
36
36
  return Object.values(RADIO_BUTTON_SIZE).includes(size);
37
37
  },
38
38
  },
@@ -47,7 +47,7 @@ export default defineComponent({
47
47
  state: {
48
48
  type: String as PropType<RadioButtonState>,
49
49
  default: RADIO_BUTTON_STATE.DEFAULT,
50
- validator(state) {
50
+ validator(state: RadioButtonState) {
51
51
  return Object.values(RADIO_BUTTON_STATE).includes(state);
52
52
  },
53
53
  },
@@ -247,7 +247,7 @@ export default defineComponent({
247
247
  size: {
248
248
  type: String as PropType<SelectionControlSize>,
249
249
  default: SELECTION_CONTROL_SIZE.SMALL,
250
- validator(size) {
250
+ validator(size: SelectionControlSize) {
251
251
  return Object.values(SELECTION_CONTROL_SIZE).includes(size);
252
252
  },
253
253
  },
@@ -262,7 +262,7 @@ export default defineComponent({
262
262
  state: {
263
263
  type: String as PropType<SelectionControlState>,
264
264
  default: SELECTION_CONTROL_STATE.DEFAULT,
265
- validator(state) {
265
+ validator(state: SelectionControlState) {
266
266
  return Object.values(SELECTION_CONTROL_STATE).includes(state);
267
267
  },
268
268
  },
@@ -283,7 +283,7 @@ export default defineComponent({
283
283
  type: {
284
284
  type: String as PropType<SelectionControlType>,
285
285
  required: true,
286
- validator(type) {
286
+ validator(type: SelectionControlType) {
287
287
  return Object.values(SELECTION_CONTROL_TYPE).includes(type);
288
288
  },
289
289
  },
@@ -1,3 +1,5 @@
1
+ import { Value } from '../../../utils/type.utils';
2
+
1
3
  export const OVERLAY_HEADER_BORDER_COLORS = {
2
4
  NEUTRAL_GHOST: 'neutralGhost',
3
5
  NEUTRAL: 'neutral',
@@ -6,7 +8,11 @@ export const OVERLAY_HEADER_BORDER_COLORS = {
6
8
  WARNING: 'warning',
7
9
  } as const;
8
10
 
11
+ export type OverlayHeaderBorderColor = Value<typeof OVERLAY_HEADER_BORDER_COLORS>;
12
+
9
13
  export const OVERLAY_HEADER_STATES = {
10
14
  DEFAULT: 'default',
11
15
  LOADING: 'loading',
12
16
  } as const;
17
+
18
+ export type OverlayHeaderState = Value<typeof OVERLAY_HEADER_STATES>;
@@ -325,7 +325,11 @@ import {
325
325
  ICON_BUTTON_STATES,
326
326
  } from '../../Buttons/IconButton';
327
327
  import { ICONS } from '../../Icons/Icon';
328
- import { OVERLAY_HEADER_BORDER_COLORS, OVERLAY_HEADER_STATES } from './OverlayHeader.consts';
328
+ import {
329
+ OVERLAY_HEADER_BORDER_COLORS,
330
+ OVERLAY_HEADER_STATES,
331
+ OverlayHeaderBorderColor,
332
+ } from './OverlayHeader.consts';
329
333
  import { Value } from '../../../utils/type.utils';
330
334
  import { isElementEditable } from '../../../utils/shortcut-keys';
331
335
  import { toRaw } from 'vue';
@@ -351,7 +355,8 @@ export default defineComponent({
351
355
  borderColor: {
352
356
  type: String,
353
357
  default: OVERLAY_HEADER_BORDER_COLORS.NEUTRAL_GHOST,
354
- validator: (value) => Object.values(OVERLAY_HEADER_BORDER_COLORS).includes(value),
358
+ validator: (value: OverlayHeaderBorderColor) =>
359
+ Object.values(OVERLAY_HEADER_BORDER_COLORS).includes(value),
355
360
  },
356
361
  isTitleInteractive: {
357
362
  type: Boolean,
@@ -1,4 +1,8 @@
1
+ import { Value } from '../../../utils/type.utils';
2
+
1
3
  export const PAGE_HEADER_MOBILE_LAYOUTS = {
2
4
  VERTICAL: 'vertical',
3
5
  HORIZONTAL: 'horizontal',
4
6
  } as const;
7
+
8
+ export type PageHeaderMobileLayout = Value<typeof PAGE_HEADER_MOBILE_LAYOUTS>;