@bethinkpl/design-system 26.15.1 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/.eslintrc.cjs +9 -0
  2. package/dist/RadioButton-BWi6jLxx.js +63 -0
  3. package/dist/RadioButton-BWi6jLxx.js.map +1 -0
  4. package/dist/RadioButton-DSmKwvPr.js +63 -0
  5. package/dist/RadioButton-DSmKwvPr.js.map +1 -0
  6. package/dist/design-system.js +266 -0
  7. package/dist/design-system.js.map +1 -0
  8. package/dist/design-system.umd.cjs +18 -18
  9. package/dist/design-system.umd.cjs.map +1 -1
  10. package/dist/index-BzPDEKft.js +24356 -0
  11. package/dist/index-BzPDEKft.js.map +1 -0
  12. package/dist/index-Oq81NaeJ.js +1388 -0
  13. package/dist/index-Oq81NaeJ.js.map +1 -0
  14. package/dist/index-UMXgzRbZ.js +24356 -0
  15. package/dist/index-UMXgzRbZ.js.map +1 -0
  16. package/dist/lib/js/components/Banner/Banner.consts.d.ts +4 -4
  17. package/dist/lib/js/components/Banner/Banner.vue.d.ts +49 -1824
  18. package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +41 -443
  19. package/dist/lib/js/components/Buttons/HelpButton/HelpButton.vue.d.ts +40 -0
  20. package/dist/lib/js/components/Buttons/HelpButton/index.d.ts +3 -0
  21. package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +77 -427
  22. package/dist/lib/js/components/Cards/Card/Card.consts.d.ts +5 -0
  23. package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +52 -175
  24. package/dist/lib/js/components/Cards/Card/index.d.ts +1 -0
  25. package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +116 -154
  26. package/dist/lib/js/components/Chip/Chip.vue.d.ts +79 -430
  27. package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +2 -1
  28. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +4 -2
  29. package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +2 -1
  30. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +507 -1557
  31. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -0
  32. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +77 -426
  33. package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +1 -0
  34. package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -0
  35. package/dist/lib/js/components/Form/FormField/FormField.consts.d.ts +9 -0
  36. package/dist/lib/js/components/Form/FormField/FormField.stories.shared.d.ts +5 -0
  37. package/dist/lib/js/components/Form/FormField/FormField.types.d.ts +21 -0
  38. package/dist/lib/js/components/Form/FormField/FormField.utils.d.ts +11 -0
  39. package/dist/lib/js/components/Form/FormField/FormField.vue.d.ts +20 -0
  40. package/dist/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue.d.ts +30 -0
  41. package/dist/lib/js/components/Form/FormField/FormFieldMessage/index.d.ts +3 -0
  42. package/dist/lib/js/components/Form/FormField/index.d.ts +5 -0
  43. package/dist/lib/js/components/Form/InputField/InputField.types.d.ts +13 -0
  44. package/dist/lib/js/components/Form/InputField/InputField.vue.d.ts +78 -0
  45. package/dist/lib/js/components/Form/InputField/index.d.ts +3 -0
  46. package/dist/lib/js/components/Form/InputField/useInputFieldWithinForm.d.ts +8 -0
  47. package/dist/lib/js/components/Form/PasswordField/PasswordField.vue.d.ts +76 -0
  48. package/dist/lib/js/components/Form/PasswordField/index.d.ts +3 -0
  49. package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -0
  50. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +77 -426
  51. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +76 -426
  52. package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.consts.d.ts +17 -11
  53. package/dist/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue.d.ts +22 -138
  54. package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -0
  55. package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -0
  56. package/dist/lib/js/components/Modals/Modal/Modal.consts.d.ts +8 -4
  57. package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +281 -1093
  58. package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +288 -1100
  59. package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
  60. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +78 -426
  61. package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +2 -1
  62. package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -0
  63. package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +6 -4
  64. package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +4 -2
  65. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -0
  66. package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +1 -0
  67. package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -0
  68. package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -0
  69. package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -0
  70. package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -0
  71. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +262 -1002
  72. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +268 -1008
  73. package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -0
  74. package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +104 -1806
  75. package/dist/lib/js/components/Tile/Tile.vue.d.ts +1 -0
  76. package/dist/lib/js/components/Toast/Toast.vue.d.ts +190 -581
  77. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -0
  78. package/dist/lib/js/icons/fontawesome.d.ts +1 -0
  79. package/dist/lib/js/index.d.ts +10 -1
  80. package/dist/lib/js/tests/helpers.d.ts +1 -0
  81. package/dist/pl-C3BEVRTZ.js +91 -0
  82. package/dist/pl-C3BEVRTZ.js.map +1 -0
  83. package/docs/assets/{AccessStatus-plchnY0B.js → AccessStatus-DGd8XBwr.js} +1 -1
  84. package/docs/assets/{AccessStatus.stories-DIIoog2Q.js → AccessStatus.stories-BUpfD_Uw.js} +1 -1
  85. package/docs/assets/Avatar-DJEZDpOI.js +1 -0
  86. package/docs/assets/{Avatar.stories-9Vth29zT.js → Avatar.stories-D40fYcFF.js} +1 -1
  87. package/docs/assets/{Badge-BbvNKG41.js → Badge-B8eFbzRx.js} +1 -1
  88. package/docs/assets/{Badge.stories-CKPGT_pt.js → Badge.stories-DxdwaS-k.js} +3 -3
  89. package/docs/assets/{BadgeScore-BOOWTi6N.js → BadgeScore-ByouU1Eu.js} +1 -1
  90. package/docs/assets/{BadgeScore.stories-ERFMPhhE.js → BadgeScore.stories-DsodV82W.js} +1 -1
  91. package/docs/assets/Banner-D5riYdGJ.js +1 -0
  92. package/docs/assets/Banner.stories-Ch0_NPk4.js +64 -0
  93. package/docs/assets/BasicRichListItem-NMNh0Xfo.js +1 -0
  94. package/docs/assets/{BasicRichListItem.stories-BJZo9YF9.js → BasicRichListItem.stories-Gu9n5wvW.js} +2 -2
  95. package/docs/assets/{BlockadeStatus-D1j0ZWIW.js → BlockadeStatus-Dqr_LSfC.js} +1 -1
  96. package/docs/assets/{BlockedeStatus.stories-BKi05Ndl.js → BlockedeStatus.stories-BKblKF33.js} +1 -1
  97. package/docs/assets/Button-XuK8IxnR.js +1 -0
  98. package/docs/assets/{Button.stories-Da2LsOLk.js → Button.stories-UiGEsaro.js} +5 -3
  99. package/docs/assets/Card-BhK1CiCP.js +1 -0
  100. package/docs/assets/Card.stories-BfWbSV_u.js +33 -0
  101. package/docs/assets/CardExpandable-CPuSx_lW.js +1 -0
  102. package/docs/assets/{CardExpandable.stories-DtC5egGK.js → CardExpandable.stories-mHnNt6zg.js} +1 -1
  103. package/docs/assets/Checkbox-g1Bvy8z-.js +1 -0
  104. package/docs/assets/{Checkbox.stories-BUIzgcCC.js → Checkbox.stories-DdJRLzJy.js} +1 -1
  105. package/docs/assets/{Chip-BJcjfD8j.js → Chip-CGm2pLPD.js} +1 -1
  106. package/docs/assets/{Chip.stories-Dgmetn8m.js → Chip.stories-CnHjkDSI.js} +1 -1
  107. package/docs/assets/Color-ERTF36HU-8BveRk6J.js +1 -0
  108. package/docs/assets/{Colors.stories-BrNisWwH.js → Colors.stories-BtNgjWxi.js} +1 -1
  109. package/docs/assets/{ColorsThemes.stories-DvZl0m40.js → ColorsThemes.stories-Ct0Ai41o.js} +1 -1
  110. package/docs/assets/{ColorsTokensLms.stories-D3nA1ro1.js → ColorsTokensLms.stories-BP-WMJrS.js} +1 -1
  111. package/docs/assets/{ColorsTokensPrimaryBodywork.stories-w4A7RjpQ.js → ColorsTokensPrimaryBodywork.stories-zdX-tf4x.js} +1 -1
  112. package/docs/assets/{ColorsTokensPrimaryWnl.stories-CncgXEG5.js → ColorsTokensPrimaryWnl.stories-DFVUj_99.js} +1 -1
  113. package/docs/assets/{CounterToggle-DKRrZ9t2.js → CounterToggle-B9hjjWpv.js} +1 -1
  114. package/docs/assets/{CounterToggle.stories-DEP60zRp.js → CounterToggle.stories-BtS63BEz.js} +1 -1
  115. package/docs/assets/{DateBox.stories-y5_2vs0g.js → DateBox.stories-B7PTVLxc.js} +3 -3
  116. package/docs/assets/{DatePicker-QHo-i7qh.js → DatePicker-70Dj0lsn.js} +1 -1
  117. package/docs/assets/{DatePicker.stories-4hPgpb1-.js → DatePicker.stories-DZN51CwX.js} +1 -1
  118. package/docs/assets/{DateRangePicker-B0NAwdsr.js → DateRangePicker-D5bqKMMk.js} +1 -1
  119. package/docs/assets/{DateRangePicker.stories-BXQLC6L-.js → DateRangePicker.stories-WhCXoUeh.js} +1 -1
  120. package/docs/assets/{Divider-9o-i_zKL.js → Divider-NOTDPuJ1.js} +1 -1
  121. package/docs/assets/{Divider.stories-IQKEznYT.js → Divider.stories-Cjyx7utt.js} +1 -1
  122. package/docs/assets/{DocsRenderer-CFRXHY34-rC6r6xBG.js → DocsRenderer-CFRXHY34-BThTLMHt.js} +72 -72
  123. package/docs/assets/{Drawer-ClrSDwUZ.js → Drawer-CrAn35Yo.js} +1 -1
  124. package/docs/assets/{Drawer.stories-DR-CXra3.js → Drawer.stories-iInS0JV5.js} +1 -1
  125. package/docs/assets/{DrawerContent-D6Bl5GA-.js → DrawerContent-DAIzyQNz.js} +1 -1
  126. package/docs/assets/{DrawerContent.stories-BR11egKi.js → DrawerContent.stories-CBpbbVk_.js} +1 -1
  127. package/docs/assets/{DrawerDivider-DMhjaSPk.js → DrawerDivider-CKRXkKRz.js} +1 -1
  128. package/docs/assets/{DrawerDivider.stories-DdcVRbtO.js → DrawerDivider.stories-iQ2J_ExP.js} +1 -1
  129. package/docs/assets/DrawerHeader-DPBlervR.js +1 -0
  130. package/docs/assets/{DrawerHeader.stories-DnPlkGmI.js → DrawerHeader.stories-ugFv_siA.js} +1 -1
  131. package/docs/assets/{DrawerListItem-dizQZUbe.js → DrawerListItem-ClOcwiVc.js} +1 -1
  132. package/docs/assets/{DrawerListItem.stories-pVTEuckG.js → DrawerListItem.stories-BMZ35_qS.js} +1 -1
  133. package/docs/assets/{DrawerListItemGroup-B5XadRVV.js → DrawerListItemGroup-SEWltKLJ.js} +1 -1
  134. package/docs/assets/{DrawerListItemGroup.stories-pOGG952w.js → DrawerListItemGroup.stories-Bn2TyQLH.js} +1 -1
  135. package/docs/assets/DrawerSection-ByJjEPPu.js +1 -0
  136. package/docs/assets/{DrawerSection.stories-tQT_zWBt.js → DrawerSection.stories-DuLphbcs.js} +1 -1
  137. package/docs/assets/DrawerTile-BGQvQQSp.js +1 -0
  138. package/docs/assets/DrawerTile.stories-DCe2L4Tv.js +10 -0
  139. package/docs/assets/Dropdown-Bdrd2ZIh.js +1 -0
  140. package/docs/assets/{Dropdown.stories-DLo-4_G3.js → Dropdown.stories-DnkREwa1.js} +2 -2
  141. package/docs/assets/FeatureIcon-DY5WvpPf.js +1 -0
  142. package/docs/assets/{FeatureIcon.stories-H_yUD4i4.js → FeatureIcon.stories-BqYqiSzM.js} +1 -1
  143. package/docs/assets/FormField-BjLFip7T.js +1 -0
  144. package/docs/assets/FormField.stories-DY8Mz4YE.js +40 -0
  145. package/docs/assets/FormField.stories.shared-3_36NKi_.js +1 -0
  146. package/docs/assets/FormFieldMessage-B4Oy2QBT.js +1 -0
  147. package/docs/assets/FormFieldMessage.stories-BD7JfJNj.js +32 -0
  148. package/docs/assets/GroupRichListItem-CHiSrcou.js +1 -0
  149. package/docs/assets/{GroupRichListItem.stories-C25AujXP.js → GroupRichListItem.stories-C3EubvlY.js} +1 -1
  150. package/docs/assets/HelpButton-BStTtLsz.js +1 -0
  151. package/docs/assets/HelpButton.stories-C3-CU20F.js +17 -0
  152. package/docs/assets/Icon-DUeXRUm6.js +761 -0
  153. package/docs/assets/{Icon.stories-BhnUVRrV.js → Icon.stories-ClzUno-E.js} +1 -1
  154. package/docs/assets/IconButton-Cn83Zk5-.js +1 -0
  155. package/docs/assets/{IconButton.stories-B8QjmTyV.js → IconButton.stories-CwZts8kF.js} +6 -6
  156. package/docs/assets/{IconText-CKJ4jGzm.js → IconText-Colreg4i.js} +1 -1
  157. package/docs/assets/{IconText.stories-B5zjHqug.js → IconText.stories-DSZffl3k.js} +1 -1
  158. package/docs/assets/{Image-Dbv2u4ta.js → Image-B7PRENWe.js} +1 -1
  159. package/docs/assets/{Image.stories-CUWPBT5K.js → Image.stories-DkYrm30P.js} +1 -1
  160. package/docs/assets/InputField-CplPTgjC.js +5 -0
  161. package/docs/assets/InputField.stories-K675XZL5.js +44 -0
  162. package/docs/assets/{ItemsList-CJTCYbgI.js → ItemsList-nTRSgJDP.js} +1 -1
  163. package/docs/assets/{LoadingBar-Dc_eLNsl.js → LoadingBar-DGNrwKu4.js} +1 -1
  164. package/docs/assets/{LoadingBar.stories-DWH4VmcD.js → LoadingBar.stories-owR_6Oqy.js} +1 -1
  165. package/docs/assets/Modal-ByQBkOMU.js +1 -0
  166. package/docs/assets/{Modal.stories-0zzyLX_Z.js → Modal.stories-DlxDxfN1.js} +1 -1
  167. package/docs/assets/{ModalDialog-BuO78uuh.js → ModalDialog-Cr21J58H.js} +1 -1
  168. package/docs/assets/{ModalDialog.stories-lBI09xqp.js → ModalDialog.stories-DP4FjijI.js} +1 -1
  169. package/docs/assets/{NumberInCircle-DnPE2szs.js → NumberInCircle-CE28_Nsz.js} +1 -1
  170. package/docs/assets/{NumberInCircle.stories-Tn0v6S_I.js → NumberInCircle.stories-DFdUVSKM.js} +1 -1
  171. package/docs/assets/OutlineDivider-DJ9pnpJN.js +1 -0
  172. package/docs/assets/{OutlineDivider.stories-D9Hzkdbe.js → OutlineDivider.stories-Dzpei9KR.js} +1 -1
  173. package/docs/assets/{OutlineItem-1BOyMbS2.js → OutlineItem-CApzlES7.js} +1 -1
  174. package/docs/assets/{OutlineItem.stories-DZ_RXCGO.js → OutlineItem.stories-DtEAJjzy.js} +1 -1
  175. package/docs/assets/{OutlineSectionHeader-LGOAi424.js → OutlineSectionHeader-CSNr7XVB.js} +1 -1
  176. package/docs/assets/{OutlineSectionHeader.stories-PPIsaHhR.js → OutlineSectionHeader.stories-CuJwkOKg.js} +1 -1
  177. package/docs/assets/OverlayHeader-B5ajrI4B.js +1 -0
  178. package/docs/assets/{OverlayHeader.stories-D0TRoa1n.js → OverlayHeader.stories-Zed9WXER.js} +2 -2
  179. package/docs/assets/{PageHeader-DkHlb7_P.js → PageHeader-Cy-UHuRb.js} +1 -1
  180. package/docs/assets/{PageHeader.stories-WThxfLse.js → PageHeader.stories-DlW4dler.js} +1 -1
  181. package/docs/assets/Pagination-D34dUtsQ.js +1 -0
  182. package/docs/assets/{Pagination.stories-CL9tb6Sx.js → Pagination.stories-IDi5nqa_.js} +2 -2
  183. package/docs/assets/PasswordField-Bkc6j8ri.js +1 -0
  184. package/docs/assets/PasswordField.stories-CklmsmJF.js +42 -0
  185. package/docs/assets/{PopOver-BDVCOkO6.js → PopOver-DVj1_TNg.js} +1 -1
  186. package/docs/assets/{PopOver.stories-CmDQPumC.js → PopOver.stories-BljOgM3Z.js} +2 -2
  187. package/docs/assets/{ProgressBar-q_I44DQc.js → ProgressBar-D2hkMeQ0.js} +1 -1
  188. package/docs/assets/{ProgressBar.stories-Df10tpd-.js → ProgressBar.stories-BDHI6-tO.js} +1 -1
  189. package/docs/assets/{ProgressDonutChart-DP55sH2Q.js → ProgressDonutChart-CBO-vy-E.js} +1 -1
  190. package/docs/assets/{ProgressDonutChart.stories-CXJhJ1AH.js → ProgressDonutChart.stories-CGwlVICI.js} +1 -1
  191. package/docs/assets/RadioButton-Bd-D-2PY.js +1 -0
  192. package/docs/assets/{RadioButton.stories-NVFxjqN4.js → RadioButton.stories-BkCwnbIp.js} +1 -1
  193. package/docs/assets/{RichListItem.stories-B3NGpkHT.js → RichListItem.stories-Bls_aY12.js} +2 -2
  194. package/docs/assets/SectionHeader-isKXGfjn.js +1 -0
  195. package/docs/assets/{SectionHeader.stories-CTANEOdf.js → SectionHeader.stories-Bj3scOLc.js} +1 -1
  196. package/docs/assets/{SectionTitle-DLcFKzRH.js → SectionTitle-wTuJZZVS.js} +1 -1
  197. package/docs/assets/{SectionTitle.stories-Dybq4paM.js → SectionTitle.stories-Dr3KOvIl.js} +1 -1
  198. package/docs/assets/{SelectList-B323Y2el.js → SelectList-YMQ8rEMc.js} +1 -1
  199. package/docs/assets/{SelectList.stories-BCS6zdJ9.js → SelectList.stories-ETdEOJ81.js} +1 -1
  200. package/docs/assets/{SelectListItem-DfLqJR-_.js → SelectListItem-BqKhIPSO.js} +1 -1
  201. package/docs/assets/{SelectListItem.stories-m8BTHS53.js → SelectListItem.stories-ClyL-djS.js} +1 -1
  202. package/docs/assets/{SelectListItemDivider-lDLIwtP8.js → SelectListItemDivider-CTU7_4OL.js} +1 -1
  203. package/docs/assets/{SelectListItemDivider.stories-BZ6_HOBG.js → SelectListItemDivider.stories-rGpk0Yeg.js} +1 -1
  204. package/docs/assets/{SelectListItemTile-DzAuBa66.js → SelectListItemTile-BhOwBFIO.js} +1 -1
  205. package/docs/assets/SelectListItemTile.stories-BXFfuX9q.js +19 -0
  206. package/docs/assets/{SelectListItemToggle-DJ_P6PIB.js → SelectListItemToggle-C0lffqeC.js} +1 -1
  207. package/docs/assets/{SelectListItemToggle.stories-yej5J6y8.js → SelectListItemToggle.stories-D39XrmtN.js} +1 -2
  208. package/docs/assets/SelectListSectionTitle-B9Dj10G9.js +1 -0
  209. package/docs/assets/{SelectListSectionTitle.stories-NKPegok4.js → SelectListSectionTitle.stories-DCZ-Sq6v.js} +1 -1
  210. package/docs/assets/{SelectionControl-CwdtLuOD.js → SelectionControl-DIC2vtGo.js} +1 -1
  211. package/docs/assets/{SelectionTile-hjRK7Lwc.js → SelectionTile-D7fhj7-I.js} +2 -2
  212. package/docs/assets/{SelectionTile.stories-DRdGcDuJ.js → SelectionTile.stories-Cato0iSj.js} +1 -1
  213. package/docs/assets/{Skeleton-DhyJ4ZKG.js → Skeleton-D5xhZMQa.js} +5 -5
  214. package/docs/assets/{Skeleton.stories-CsZjBoj1.js → Skeleton.stories-ll-E-sPN.js} +1 -1
  215. package/docs/assets/SurveyQuestionOpenEnded-DDdPQe2b.js +1 -0
  216. package/docs/assets/{SurveyQuestionOpenEnded.stories-Is_s49TT.js → SurveyQuestionOpenEnded.stories-mHTUclXK.js} +1 -1
  217. package/docs/assets/SurveyQuestionScale-BKZbW5q7.js +1 -0
  218. package/docs/assets/{SurveyQuestionScale.stories-BqOjFThb.js → SurveyQuestionScale.stories-Cczg5QpY.js} +1 -1
  219. package/docs/assets/SurveyToggle-Sid2a-IO.js +1 -0
  220. package/docs/assets/{SurveyToggle.stories-DySS4Jzx.js → SurveyToggle.stories-Dv7PJARv.js} +1 -1
  221. package/docs/assets/Switch-B8xEwHO8.js +1 -0
  222. package/docs/assets/{Switch.stories-Bq6_6t39.js → Switch.stories-RbY8wA55.js} +1 -1
  223. package/docs/assets/{TabItem-Bn_qIbPX.js → TabItem-Ci3vrkRH.js} +1 -1
  224. package/docs/assets/{TabItem.stories-ZPYw1uH1.js → TabItem.stories-relncwaI.js} +1 -1
  225. package/docs/assets/{TextGroup-AUUBIFJZ.js → TextGroup-dzR19lzs.js} +1 -1
  226. package/docs/assets/{TextGroup.stories-CqwkdBAO.js → TextGroup.stories-bCLjp0Xb.js} +1 -1
  227. package/docs/assets/{ThreeColumnLayout-DXA1815_.js → ThreeColumnLayout-LVzDOKfj.js} +1 -1
  228. package/docs/assets/{ThreeColumnLayout.stories-BA08mTZ7.js → ThreeColumnLayout.stories-CkgbTH3p.js} +1 -1
  229. package/docs/assets/{Tile-3fvrXM7M.js → Tile-ByL6drhn.js} +1 -1
  230. package/docs/assets/{Tile.sb.shared-Crj50ugV.js → Tile.sb.shared-D3LxXPDs.js} +1 -1
  231. package/docs/assets/Tile.stories-BhXwnkKz.js +12 -0
  232. package/docs/assets/{Toast-CTbKhm1i.js → Toast-ukLuB2Qi.js} +1 -1
  233. package/docs/assets/{Toast.stories-hUEtnOQn.js → Toast.stories-D3PagUcH.js} +1 -1
  234. package/docs/assets/{ToggleButton-D-t1sDTL.js → ToggleButton-YUVnfx-x.js} +1 -1
  235. package/docs/assets/{ToggleButton.stories-CaAweKdC.js → ToggleButton.stories-C18YYEsJ.js} +1 -1
  236. package/docs/assets/{Tooltip-DZi9yXjr.js → Tooltip-BvaJ_K9_.js} +1 -1
  237. package/docs/assets/{Tooltip.stories-D-DHfToA.js → Tooltip.stories-o7f8wLv_.js} +4 -4
  238. package/docs/assets/{TypographyTokensLms.stories-CZpPPUwu.js → TypographyTokensLms.stories-Cm_y52b6.js} +1 -1
  239. package/docs/assets/{TypographyVariables.stories-B4Lg96R3.js → TypographyVariables.stories-DTHJ_1UO.js} +1 -1
  240. package/docs/assets/{Well-D1j9q3W3.js → Well-iUOt2HEx.js} +1 -1
  241. package/docs/assets/{Well.stories-wgg6f6S7.js → Well.stories-4VLIlu-l.js} +3 -3
  242. package/docs/assets/entry-preview-CAn2_StQ.js +1 -0
  243. package/docs/assets/{entry-preview-docs-Bz8Se46p.js → entry-preview-docs-Y_6rrjxM.js} +1 -1
  244. package/docs/assets/{iframe-CKOJ9wC7.js → iframe-D_RvUlhr.js} +18 -15
  245. package/docs/assets/index-BtMHnMz0.js +1 -0
  246. package/docs/assets/index-Cpsdq_ip.js +1 -0
  247. package/docs/assets/preview-B_G3dFbe.js +2 -0
  248. package/docs/assets/preview-vzvQxRBZ.js +64 -0
  249. package/docs/assets/string--hkylObx.js +1 -0
  250. package/docs/assets/vue-popper-m_ujT3wC.js +24 -0
  251. package/docs/assets/vue.esm-bundler-DcRN7CPI.js +36 -0
  252. package/docs/iframe.html +1 -1
  253. package/docs/index.json +1 -1
  254. package/docs/project.json +1 -1
  255. package/lib/js/components/Badge/Badge.vue +6 -5
  256. package/lib/js/components/Banner/Banner.consts.ts +5 -5
  257. package/lib/js/components/Banner/Banner.spec.ts +148 -0
  258. package/lib/js/components/Banner/Banner.stories.ts +13 -8
  259. package/lib/js/components/Banner/Banner.vue +215 -196
  260. package/lib/js/components/Buttons/Button/Button.spec.ts +18 -3
  261. package/lib/js/components/Buttons/Button/Button.stories.ts +6 -0
  262. package/lib/js/components/Buttons/Button/Button.vue +63 -114
  263. package/lib/js/components/Buttons/HelpButton/HelpButton.spec.ts +87 -0
  264. package/lib/js/components/Buttons/HelpButton/HelpButton.stories.ts +70 -0
  265. package/lib/js/components/Buttons/HelpButton/HelpButton.vue +52 -0
  266. package/lib/js/components/Buttons/HelpButton/index.ts +3 -0
  267. package/lib/js/components/Cards/Card/Card.consts.ts +7 -0
  268. package/lib/js/components/Cards/Card/Card.spec.ts +86 -41
  269. package/lib/js/components/Cards/Card/Card.stories.ts +21 -18
  270. package/lib/js/components/Cards/Card/Card.vue +128 -88
  271. package/lib/js/components/Cards/Card/index.ts +1 -0
  272. package/lib/js/components/Chip/Chip.spec.ts +3 -2
  273. package/lib/js/components/Chip/Chip.vue +0 -1
  274. package/lib/js/components/DatePickers/DateBox/DateBox.stories.ts +0 -3
  275. package/lib/js/components/Form/FormField/FormField.consts.ts +10 -0
  276. package/lib/js/components/Form/FormField/FormField.spec.ts +138 -0
  277. package/lib/js/components/Form/FormField/FormField.stories.shared.ts +53 -0
  278. package/lib/js/components/Form/FormField/FormField.stories.ts +81 -0
  279. package/lib/js/components/Form/FormField/FormField.types.ts +17 -0
  280. package/lib/js/components/Form/FormField/FormField.utils.ts +24 -0
  281. package/lib/js/components/Form/FormField/FormField.vue +192 -0
  282. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.spec.ts +53 -0
  283. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.stories.ts +74 -0
  284. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue +89 -0
  285. package/lib/js/components/Form/FormField/FormFieldMessage/index.ts +2 -0
  286. package/lib/js/components/Form/FormField/index.ts +6 -0
  287. package/lib/js/components/Form/InputField/InputField.spec.ts +274 -0
  288. package/lib/js/components/Form/InputField/InputField.stories.ts +98 -0
  289. package/lib/js/components/Form/InputField/InputField.types.ts +14 -0
  290. package/lib/js/components/Form/InputField/InputField.vue +175 -0
  291. package/lib/js/components/Form/InputField/index.ts +3 -0
  292. package/lib/js/components/Form/InputField/useInputFieldWithinForm.ts +54 -0
  293. package/lib/js/components/Form/PasswordField/PasswordField.spec.ts +73 -0
  294. package/lib/js/components/Form/PasswordField/PasswordField.stories.ts +88 -0
  295. package/lib/js/components/Form/PasswordField/PasswordField.vue +55 -0
  296. package/lib/js/components/Form/PasswordField/index.ts +3 -0
  297. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.consts.ts +10 -2
  298. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.spec.ts +18 -0
  299. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.stories.ts +1 -1
  300. package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +44 -58
  301. package/lib/js/components/Modals/Modal/Modal.consts.ts +8 -2
  302. package/lib/js/components/Modals/Modal/Modal.vue +12 -5
  303. package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +2 -2
  304. package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.ts +0 -1
  305. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +43 -47
  306. package/lib/js/components/TabItem/TabItem.spec.ts +0 -1
  307. package/lib/js/components/Toast/Toast.vue +0 -2
  308. package/lib/js/icons/fontawesome.ts +2 -0
  309. package/lib/js/index.ts +11 -1
  310. package/lib/js/styles/Borders/BorderSizes.stories.ts +1 -1
  311. package/lib/js/styles/ItemsList.vue +1 -1
  312. package/lib/js/tests/helpers.ts +5 -0
  313. package/package.json +13 -7
  314. package/tsconfig.base.json +1 -2
  315. package/tsconfig.build.json +8 -0
  316. package/tsconfig.json +1 -6
  317. package/vite.config.ts +11 -8
  318. package/docs/assets/Avatar-CM7iogZ3.js +0 -1
  319. package/docs/assets/Banner-DXAd9x-3.js +0 -1
  320. package/docs/assets/Banner.stories-BC2VxrMC.js +0 -62
  321. package/docs/assets/BasicRichListItem-quALUWxY.js +0 -1
  322. package/docs/assets/Button-C5dr6u6F.js +0 -1
  323. package/docs/assets/Card-KSW_Q55y.js +0 -1
  324. package/docs/assets/Card.stories-Bqmd77lg.js +0 -49
  325. package/docs/assets/CardExpandable-yMDr4_fF.js +0 -1
  326. package/docs/assets/Checkbox-DAOkXx1R.js +0 -1
  327. package/docs/assets/Color-ERTF36HU-DaHgyI5V.js +0 -1
  328. package/docs/assets/DrawerHeader-AkG6Jq7W.js +0 -1
  329. package/docs/assets/DrawerSection-HBM59yvF.js +0 -1
  330. package/docs/assets/DrawerTile-0-CB5w9j.js +0 -1
  331. package/docs/assets/DrawerTile.stories-6JDnzzyo.js +0 -10
  332. package/docs/assets/Dropdown-CYFZ3OvV.js +0 -1
  333. package/docs/assets/FeatureIcon-BoUhuGOr.js +0 -1
  334. package/docs/assets/GroupRichListItem-C_Gsy7fK.js +0 -1
  335. package/docs/assets/Icon-I3Cniv10.js +0 -761
  336. package/docs/assets/IconButton-BPKB5gT7.js +0 -1
  337. package/docs/assets/Modal-Cy1kzNhG.js +0 -1
  338. package/docs/assets/OutlineDivider-UaRb6wKt.js +0 -1
  339. package/docs/assets/OverlayHeader-u9AeOezr.js +0 -1
  340. package/docs/assets/Pagination-CgO9MoPY.js +0 -1
  341. package/docs/assets/RadioButton-DISpvFOt.js +0 -1
  342. package/docs/assets/SectionHeader-ByewlGaG.js +0 -1
  343. package/docs/assets/SelectListItemTile.stories-n2MJqr9U.js +0 -19
  344. package/docs/assets/SelectListSectionTitle-BFbrwNgw.js +0 -1
  345. package/docs/assets/SurveyQuestionOpenEnded-B_HbDRQs.js +0 -1
  346. package/docs/assets/SurveyQuestionScale-CiKDA0ax.js +0 -1
  347. package/docs/assets/SurveyToggle-CCF4WE7n.js +0 -1
  348. package/docs/assets/Switch-Du-uh84v.js +0 -1
  349. package/docs/assets/Tile.stories-0SQaiGz7.js +0 -12
  350. package/docs/assets/_commonjsHelpers-CDR5Xrri.js +0 -1
  351. package/docs/assets/entry-preview-lHccVHf5.js +0 -1
  352. package/docs/assets/index-0M4xY6Fw.js +0 -1
  353. package/docs/assets/index-Be4sB5Yj.js +0 -1
  354. package/docs/assets/preview-BIPjgpxe.js +0 -2
  355. package/docs/assets/preview-BQvHXGdy.js +0 -64
  356. package/docs/assets/string-B1AGRR5v.js +0 -1
  357. package/docs/assets/vue-popper-DoPHnofs.js +0 -24
  358. package/docs/assets/vue.esm-bundler-DD4BrEtS.js +0 -36
@@ -0,0 +1,88 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import PasswordField from './PasswordField.vue';
3
+ import HelpButton from '../../Buttons/HelpButton/HelpButton.vue';
4
+ import Modal from '../../Modals/Modal';
5
+ import { ICONS } from '../../Icons/Icon';
6
+ import { args, argTypes } from '../FormField/FormField.stories.shared';
7
+ import { FORM_FIELD_STATES } from '../FormField/FormField.consts';
8
+ import { reactive, toRefs } from 'vue';
9
+
10
+ const meta: Meta<typeof PasswordField> = {
11
+ title: 'Components/Form/PasswordField',
12
+ component: PasswordField,
13
+ render: (args) => ({
14
+ components: { PasswordField, HelpButton, Modal },
15
+ setup() {
16
+ const { help, labelAside, message, fieldStatus, ...restRefs } = toRefs(args);
17
+ const props = reactive({ ...restRefs });
18
+
19
+ return {
20
+ props,
21
+ labelAside,
22
+ fieldStatus,
23
+ message,
24
+ help,
25
+ FORM_FIELD_STATES,
26
+ ICONS,
27
+ };
28
+ },
29
+ data: () => ({
30
+ value: '',
31
+ }),
32
+ template: `<PasswordField v-bind="props" v-model="value">
33
+ <template v-if="help" #help>
34
+ <HelpButton :is-disabled="props.state === FORM_FIELD_STATES.DISABLED">
35
+ <template #modal="{onClose}">
36
+ <Modal @close-modal="onClose">Modal</Modal>
37
+ </template>
38
+ </HelpButton>
39
+ </template>
40
+ <template #labelAside v-if="labelAside">
41
+ <div v-html="labelAside" />
42
+ </template>
43
+ <template #fieldStatus v-if="fieldStatus">
44
+ <div v-html="fieldStatus" />
45
+ </template>
46
+ <template #message v-if="message">
47
+ <div v-if="message" v-html="message" />
48
+ </template>
49
+ <template #action v-if="action">
50
+ <div v-html="action" />
51
+ </template>
52
+ </PasswordField>`,
53
+ }),
54
+ argTypes: {
55
+ ...argTypes,
56
+ suffixText: {
57
+ control: 'text',
58
+ },
59
+ },
60
+ };
61
+ export default meta;
62
+
63
+ type Story = StoryObj<typeof PasswordField>;
64
+
65
+ export const Interactive: Story = {
66
+ args: {
67
+ ...args,
68
+ suffixText: '%',
69
+ inputProps: {
70
+ placeholder: 'Placeholder',
71
+ },
72
+ },
73
+ parameters: {
74
+ design: {
75
+ type: 'figma',
76
+ url: 'https://www.figma.com/design/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=13576-21478&m=dev',
77
+ },
78
+ },
79
+ };
80
+
81
+ export const Error: Story = {
82
+ ...Interactive,
83
+ args: {
84
+ ...Interactive.args,
85
+ state: FORM_FIELD_STATES.ERROR,
86
+ messageText: 'Error message text',
87
+ },
88
+ };
@@ -0,0 +1,55 @@
1
+ <template>
2
+ <input-field
3
+ v-bind="$props"
4
+ v-model="value"
5
+ :input-props="inputProps"
6
+ :left-icon="ICONS.FA_UNLOCK_KEYHOLE"
7
+ >
8
+ <template #action>
9
+ <icon-button
10
+ :icon="eyeIcon"
11
+ :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
12
+ :size="ICON_BUTTON_SIZES.X_SMALL"
13
+ :touchable="false"
14
+ data-test-id="password-toggle"
15
+ @click="isPasswordVisible = !isPasswordVisible"
16
+ />
17
+ </template>
18
+ <!-- begin: FormField slots -->
19
+ <template v-if="$slots.help" #help>
20
+ <slot name="help" />
21
+ </template>
22
+ <template v-if="$slots.labelAside" #labelAside>
23
+ <slot name="labelAside" />
24
+ </template>
25
+ <template v-if="$slots.message" #message="{ messageId }">
26
+ <slot name="message" :message-id="messageId" />
27
+ </template>
28
+ <template v-if="$slots.fieldStatus" #fieldStatus>
29
+ <slot name="fieldStatus" />
30
+ </template>
31
+ <!-- end: FormField slots -->
32
+ </input-field>
33
+ </template>
34
+
35
+ <script setup lang="ts">
36
+ import InputField from '../InputField';
37
+ import IconButton, { ICON_BUTTON_COLORS, ICON_BUTTON_SIZES } from '../../Buttons/IconButton';
38
+ import { ICONS } from '../../Icons/Icon';
39
+ import { computed, ref, InputHTMLAttributes } from 'vue';
40
+ import { InputFieldProps, InputFieldSlots } from '../InputField/InputField.types';
41
+
42
+ const { inputProps: baseInputProps } = defineProps<Omit<InputFieldProps, 'leftIcon'>>();
43
+ const value = defineModel<string>();
44
+ defineSlots<Omit<InputFieldSlots, 'action'>>();
45
+
46
+ const isPasswordVisible = ref(false);
47
+ const inputProps = computed<InputHTMLAttributes>(() => ({
48
+ ...baseInputProps,
49
+ type: isPasswordVisible.value ? 'text' : 'password',
50
+ }));
51
+
52
+ const eyeIcon = computed(() => {
53
+ return isPasswordVisible.value ? ICONS.FA_EYE_SLASH : ICONS.FA_EYE;
54
+ });
55
+ </script>
@@ -0,0 +1,3 @@
1
+ import PasswordField from './PasswordField.vue';
2
+
3
+ export default PasswordField;
@@ -1,9 +1,14 @@
1
+ import { Value } from '../../../utils/type.utils';
2
+
1
3
  export const FEATURE_ICON_SIZES = {
4
+ X_SMALL: 'xSmall',
2
5
  SMALL: 'small',
3
6
  MEDIUM: 'medium',
4
7
  LARGE: 'large',
5
8
  X_LARGE: 'xLarge',
6
- };
9
+ } as const;
10
+
11
+ export type FeatureIconSize = Value<typeof FEATURE_ICON_SIZES>;
7
12
 
8
13
  export const FEATURE_ICON_COLOR = {
9
14
  DANGER: 'danger',
@@ -13,4 +18,7 @@ export const FEATURE_ICON_COLOR = {
13
18
  PRIMARY: 'primary',
14
19
  SUCCESS: 'success',
15
20
  WARNING: 'warning',
16
- };
21
+ FAIL: 'fail',
22
+ } as const;
23
+
24
+ export type FeatureIconColor = Value<typeof FEATURE_ICON_COLOR>;
@@ -0,0 +1,18 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { mount } from '@vue/test-utils';
3
+ import FeatureIcon from './FeatureIcon.vue';
4
+ import { FEATURE_ICON_COLOR } from './FeatureIcon.consts';
5
+ import Icon, { ICONS } from '../Icon';
6
+
7
+ describe('FeatureIcon', () => {
8
+ it('should render', () => {
9
+ const wrapper = mount(FeatureIcon, {
10
+ props: {
11
+ color: FEATURE_ICON_COLOR.PRIMARY,
12
+ icon: ICONS.FA_TAG,
13
+ },
14
+ });
15
+
16
+ expect(wrapper.findComponent<typeof Icon>('.ds-icon').props().icon).toEqual(ICONS.FA_TAG);
17
+ });
18
+ });
@@ -56,6 +56,6 @@ Interactive.args = args;
56
56
  Interactive.parameters = {
57
57
  design: {
58
58
  type: 'figma',
59
- url: 'https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=1552%3A34963',
59
+ url: 'https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=5604-96259',
60
60
  },
61
61
  };
@@ -4,12 +4,14 @@
4
4
  :class="{
5
5
  '-ds-doubleBackground': doubleBackground,
6
6
  '-ds-danger': color === FEATURE_ICON_COLOR.DANGER,
7
+ '-ds-fail': color === FEATURE_ICON_COLOR.FAIL,
7
8
  '-ds-info': color === FEATURE_ICON_COLOR.INFO,
8
9
  '-ds-neutral': color === FEATURE_ICON_COLOR.NEUTRAL,
9
10
  '-ds-neutralWeak': color === FEATURE_ICON_COLOR.NEUTRAL_WEAK,
10
11
  '-ds-primary': color === FEATURE_ICON_COLOR.PRIMARY,
11
12
  '-ds-success': color === FEATURE_ICON_COLOR.SUCCESS,
12
13
  '-ds-warning': color === FEATURE_ICON_COLOR.WARNING,
14
+ '-ds-xSmall': size === FEATURE_ICON_SIZES.X_SMALL,
13
15
  '-ds-small': size === FEATURE_ICON_SIZES.SMALL,
14
16
  '-ds-medium': size === FEATURE_ICON_SIZES.MEDIUM,
15
17
  '-ds-large': size === FEATURE_ICON_SIZES.LARGE,
@@ -51,6 +53,11 @@ $feature-icon-colors: (
51
53
  'border': $color-danger-background,
52
54
  'icon': $color-danger-icon,
53
55
  ),
56
+ 'fail': (
57
+ 'background': $color-fail-background-medium,
58
+ 'border': $color-fail-background,
59
+ 'icon': $color-fail-icon,
60
+ ),
54
61
  'warning': (
55
62
  'background': $color-warning-background-medium,
56
63
  'border': $color-warning-background,
@@ -100,6 +107,11 @@ $feature-icon-padding-large: 10px;
100
107
  display: inline-flex;
101
108
  padding: $space-3xs;
102
109
 
110
+ &.-ds-xSmall {
111
+ border-width: $space-5xs;
112
+ padding: $space-5xs;
113
+ }
114
+
103
115
  &.-ds-small {
104
116
  border-width: $space-4xs;
105
117
  padding: $space-4xs;
@@ -117,63 +129,37 @@ $feature-icon-padding-large: 10px;
117
129
  }
118
130
  </style>
119
131
 
120
- <script lang="ts">
121
- import WnlIcon, { ICON_SIZES, ICONS } from '../Icon';
122
- import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES } from './FeatureIcon.consts';
123
- import { defineComponent, toRaw } from 'vue';
124
-
125
- export default defineComponent({
126
- name: 'FeatureIcon',
127
- components: {
128
- WnlIcon,
129
- },
130
- props: {
131
- icon: {
132
- type: Object,
133
- default: null,
134
- validator(icon) {
135
- return Object.values(ICONS).includes(toRaw(icon));
136
- },
137
- },
138
- size: {
139
- type: String,
140
- default: FEATURE_ICON_SIZES.MEDIUM,
141
- validator: (value: string) => Object.values(FEATURE_ICON_SIZES).includes(value),
142
- },
143
- color: {
144
- type: String,
145
- required: true,
146
- validator(color: string) {
147
- return Object.values(FEATURE_ICON_COLOR).includes(color);
148
- },
149
- },
150
- doubleBackground: {
151
- type: Boolean,
152
- default: false,
153
- },
154
- },
155
- data() {
156
- return {
157
- FEATURE_ICON_COLOR: Object.freeze(FEATURE_ICON_COLOR),
158
- FEATURE_ICON_SIZES: Object.freeze(FEATURE_ICON_SIZES),
159
- };
160
- },
161
- computed: {
162
- iconSize(): string {
163
- if (this.size === FEATURE_ICON_SIZES.SMALL) {
164
- return ICON_SIZES.X_SMALL;
165
- }
166
-
167
- if (this.size === FEATURE_ICON_SIZES.LARGE) {
168
- return ICON_SIZES.LARGE;
169
- }
170
-
171
- if (this.size === FEATURE_ICON_SIZES.X_LARGE) {
172
- return ICON_SIZES.X_LARGE;
173
- }
174
-
175
- return ICON_SIZES.MEDIUM;
176
- },
177
- },
132
+ <script lang="ts" setup>
133
+ import WnlIcon, { ICON_SIZES, IconItem, IconSize } from '../Icon';
134
+ import {
135
+ FEATURE_ICON_COLOR,
136
+ FEATURE_ICON_SIZES,
137
+ FeatureIconColor,
138
+ FeatureIconSize,
139
+ } from './FeatureIcon.consts';
140
+ import { computed } from 'vue';
141
+
142
+ const {
143
+ icon,
144
+ size = FEATURE_ICON_SIZES.MEDIUM,
145
+ color,
146
+ doubleBackground = false,
147
+ } = defineProps<{
148
+ icon: IconItem;
149
+ size?: FeatureIconSize;
150
+ color: FeatureIconColor;
151
+ doubleBackground?: boolean;
152
+ }>();
153
+
154
+ const iconSizeMap: Record<FeatureIconSize, IconSize> = {
155
+ [FEATURE_ICON_SIZES.X_SMALL]: ICON_SIZES.XX_SMALL,
156
+ [FEATURE_ICON_SIZES.SMALL]: ICON_SIZES.X_SMALL,
157
+ [FEATURE_ICON_SIZES.MEDIUM]: ICON_SIZES.MEDIUM,
158
+ [FEATURE_ICON_SIZES.LARGE]: ICON_SIZES.LARGE,
159
+ [FEATURE_ICON_SIZES.X_LARGE]: ICON_SIZES.X_LARGE,
160
+ };
161
+
162
+ const iconSize = computed(() => {
163
+ return iconSizeMap[size];
178
164
  });
179
165
  </script>
@@ -1,9 +1,15 @@
1
+ import { Value } from '../../../utils/type.utils';
2
+
1
3
  export const MODAL_SIZES = {
2
4
  SMALL: 'small',
3
5
  MEDIUM: 'medium',
4
- };
6
+ } as const;
7
+
8
+ export type ModalSize = Value<typeof MODAL_SIZES>;
5
9
 
6
10
  export const MODAL_HEADER_TITLE_SIZES = {
7
11
  SMALL: 'small',
8
12
  MEDIUM: 'medium',
9
- };
13
+ } as const;
14
+
15
+ export type ModalHeaderTitleSize = Value<typeof MODAL_HEADER_TITLE_SIZES>;
@@ -10,6 +10,7 @@
10
10
  :size="ICON_SIZES.SMALL"
11
11
  :elevation="BUTTON_ELEVATIONS.X_SMALL"
12
12
  :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
13
+ data-test-selector="ds-modal__closeButton"
13
14
  @click.stop="$emit('close-modal')"
14
15
  />
15
16
  </div>
@@ -329,9 +330,14 @@ $image-height-small: 140px;
329
330
 
330
331
  <script lang="ts">
331
332
  import FeatureIcon from '../../Icons/FeatureIcon/FeatureIcon.vue';
332
- import { MODAL_HEADER_TITLE_SIZES, MODAL_SIZES } from './Modal.consts';
333
+ import {
334
+ MODAL_HEADER_TITLE_SIZES,
335
+ MODAL_SIZES,
336
+ ModalHeaderTitleSize,
337
+ ModalSize,
338
+ } from './Modal.consts';
333
339
  import { ICON_SIZES, ICONS } from '../../Icons/Icon';
334
- import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES } from '../../Icons/FeatureIcon';
340
+ import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES, FeatureIconColor } from '../../Icons/FeatureIcon';
335
341
  import WnlButton, {
336
342
  BUTTON_COLORS,
337
343
  BUTTON_ELEVATIONS,
@@ -349,7 +355,7 @@ export default defineComponent({
349
355
  size: {
350
356
  type: String,
351
357
  default: MODAL_SIZES.MEDIUM,
352
- validator: (value: string) => Object.values(MODAL_SIZES).includes(value),
358
+ validator: (value: ModalSize) => Object.values(MODAL_SIZES).includes(value),
353
359
  },
354
360
  danger: {
355
361
  type: Boolean,
@@ -358,7 +364,8 @@ export default defineComponent({
358
364
  headerTitleSize: {
359
365
  type: String,
360
366
  default: MODAL_HEADER_TITLE_SIZES.MEDIUM,
361
- validator: (value: string) => Object.values(MODAL_HEADER_TITLE_SIZES).includes(value),
367
+ validator: (value: ModalHeaderTitleSize) =>
368
+ Object.values(MODAL_HEADER_TITLE_SIZES).includes(value),
362
369
  },
363
370
  headerTitle: {
364
371
  type: String,
@@ -378,7 +385,7 @@ export default defineComponent({
378
385
  headerFeatureIconColor: {
379
386
  type: String,
380
387
  default: FEATURE_ICON_COLOR.NEUTRAL,
381
- validator(color: string) {
388
+ validator(color: FeatureIconColor) {
382
389
  return Object.values(FEATURE_ICON_COLOR).includes(color);
383
390
  },
384
391
  },
@@ -31,7 +31,7 @@
31
31
  import DsModal from '../Modal/Modal.vue';
32
32
  import { MODAL_HEADER_TITLE_SIZES, MODAL_SIZES } from '../Modal';
33
33
  import { ICONS } from '../../Icons/Icon';
34
- import { FEATURE_ICON_COLOR } from '../../Icons/FeatureIcon';
34
+ import { FEATURE_ICON_COLOR, FeatureIconColor } from '../../Icons/FeatureIcon';
35
35
  import { defineComponent, toRaw } from 'vue';
36
36
  import { BUTTON_STATES, ButtonState } from '../../Buttons/Button';
37
37
 
@@ -61,7 +61,7 @@ export default defineComponent({
61
61
  headerFeatureIconColor: {
62
62
  type: String,
63
63
  default: FEATURE_ICON_COLOR.NEUTRAL,
64
- validator(color: string) {
64
+ validator(color: FeatureIconColor) {
65
65
  return Object.values(FEATURE_ICON_COLOR).includes(color);
66
66
  },
67
67
  },
@@ -47,7 +47,6 @@ const StoryTemplate: StoryFn<typeof SelectListItemToggle> = (args) => {
47
47
  () =>
48
48
  updateArgs({
49
49
  isLoading: false,
50
- // @ts-ignore
51
50
  isOn: !this.isOn,
52
51
  }),
53
52
  1000,
@@ -34,36 +34,33 @@
34
34
  '-ds-oneContainer': containers === SURVEY_QUESTION_CONTAINERS.ONE,
35
35
  }"
36
36
  >
37
- <template
37
+ <div
38
38
  v-for="(option, index) in scaleOptions"
39
39
  :key="`ds-surveyQuestionScale-${index}`"
40
+ class="ds-surveyQuestionScale__toggle"
41
+ :class="{
42
+ '-ds-hideOnDesktop':
43
+ option.standalone &&
44
+ containers === SURVEY_QUESTION_CONTAINERS.TWO,
45
+ }"
40
46
  >
41
- <div
42
- class="ds-surveyQuestionScale__toggle"
43
- :class="{
44
- '-ds-hideOnDesktop':
45
- option.standalone &&
46
- containers === SURVEY_QUESTION_CONTAINERS.TWO,
47
- }"
48
- >
49
- <survey-toggle
50
- :meaning="option.meaning"
51
- :content-text="option.content"
52
- :label="option.label"
53
- :status="
54
- selectedValue === option.value
55
- ? SURVEY_TOGGLE_STATUSES.SELECTED
56
- : SURVEY_TOGGLE_STATUSES.DEFAULT
57
- "
58
- :state="
59
- state === SURVEY_QUESTION_STATES.DISABLED
60
- ? SURVEY_TOGGLE_STATES.DISABLED
61
- : SURVEY_TOGGLE_STATES.DEFAULT
62
- "
63
- @click="onToggleClick(option.value)"
64
- />
65
- </div>
66
- </template>
47
+ <survey-toggle
48
+ :meaning="option.meaning"
49
+ :content-text="option.content"
50
+ :label="option.label"
51
+ :status="
52
+ selectedValue === option.value
53
+ ? SURVEY_TOGGLE_STATUSES.SELECTED
54
+ : SURVEY_TOGGLE_STATUSES.DEFAULT
55
+ "
56
+ :state="
57
+ state === SURVEY_QUESTION_STATES.DISABLED
58
+ ? SURVEY_TOGGLE_STATES.DISABLED
59
+ : SURVEY_TOGGLE_STATES.DEFAULT
60
+ "
61
+ @click="onToggleClick(option.value)"
62
+ />
63
+ </div>
67
64
  </div>
68
65
 
69
66
  <div
@@ -73,29 +70,28 @@
73
70
  "
74
71
  class="ds-surveyQuestionScale__container -ds-justifyEnd -ds-hideOnMobile"
75
72
  >
76
- <template
73
+ <div
77
74
  v-for="(option, index) in standaloneOptions"
78
75
  :key="`ds-surveyQuestionScale-standalone-${index}`"
76
+ class="ds-surveyQuestionScale__toggle"
79
77
  >
80
- <div class="ds-surveyQuestionScale__toggle">
81
- <survey-toggle
82
- :meaning="option.meaning"
83
- :content-text="option.content"
84
- :label="option.label"
85
- :status="
86
- selectedValue === option.value
87
- ? SURVEY_TOGGLE_STATUSES.SELECTED
88
- : SURVEY_TOGGLE_STATUSES.DEFAULT
89
- "
90
- :state="
91
- state === SURVEY_QUESTION_STATES.DISABLED
92
- ? SURVEY_TOGGLE_STATES.DISABLED
93
- : SURVEY_TOGGLE_STATES.DEFAULT
94
- "
95
- @click="onToggleClick(option.value)"
96
- />
97
- </div>
98
- </template>
78
+ <survey-toggle
79
+ :meaning="option.meaning"
80
+ :content-text="option.content"
81
+ :label="option.label"
82
+ :status="
83
+ selectedValue === option.value
84
+ ? SURVEY_TOGGLE_STATUSES.SELECTED
85
+ : SURVEY_TOGGLE_STATUSES.DEFAULT
86
+ "
87
+ :state="
88
+ state === SURVEY_QUESTION_STATES.DISABLED
89
+ ? SURVEY_TOGGLE_STATES.DISABLED
90
+ : SURVEY_TOGGLE_STATES.DEFAULT
91
+ "
92
+ @click="onToggleClick(option.value)"
93
+ />
94
+ </div>
99
95
  </div>
100
96
  </div>
101
97
 
@@ -7,7 +7,6 @@ import { TAB_ITEM_SIZES } from './TabItem.consts';
7
7
 
8
8
  describe('TabItem', () => {
9
9
  const createComponent = ({ isSelected = false } = {}) => {
10
- //@ts-ignore
11
10
  return shallowMount(TabItem, {
12
11
  props: {
13
12
  icon: ICONS.FA_CALENDAR_DAYS,
@@ -101,8 +101,6 @@ import {
101
101
  import { defineComponent, PropType, toRaw } from 'vue';
102
102
  import { ICONS } from '../Icons/Icon';
103
103
 
104
- const TOAST_OFFSET = 24;
105
-
106
104
  function calculateBoundariesOffset(boundariesElement: HTMLElement) {
107
105
  const borderLeftWidth = window.getComputedStyle(boundariesElement).borderLeftWidth;
108
106
  const borderRightWidth = window.getComputedStyle(boundariesElement).borderRightWidth;
@@ -69,6 +69,7 @@ import { faDna as fasDna } from '@fortawesome/pro-solid-svg-icons/faDna';
69
69
  import { faEarthAmericas } from '@fortawesome/pro-regular-svg-icons/faEarthAmericas';
70
70
  import { faEllipsis } from '@fortawesome/pro-regular-svg-icons/faEllipsis';
71
71
  import { faEllipsisVertical } from '@fortawesome/pro-regular-svg-icons/faEllipsisVertical';
72
+ import { faEnvelope } from '@fortawesome/pro-regular-svg-icons/faEnvelope';
72
73
  import { faEye } from '@fortawesome/pro-regular-svg-icons/faEye';
73
74
  import { faEyeSlash } from '@fortawesome/pro-regular-svg-icons/faEyeSlash';
74
75
  import { faFaceFrown } from '@fortawesome/pro-regular-svg-icons/faFaceFrown';
@@ -310,6 +311,7 @@ export const FONTAWESOME_ICONS = {
310
311
  FA_EARTH_AMERICAS: faEarthAmericas,
311
312
  FA_ELLIPSIS: faEllipsis,
312
313
  FA_ELLIPSIS_VERTICAL: faEllipsisVertical,
314
+ FA_ENVELOPE: faEnvelope,
313
315
  FA_EXCLAMATION_SOLID: fasExclamation,
314
316
  FA_EYE: faEye,
315
317
  FA_EYE_SLASH: faEyeSlash,
package/lib/js/index.ts CHANGED
@@ -15,7 +15,8 @@ export { default as ToggleButton } from './components/Toggles/ToggleButton';
15
15
  export { default as DsToggleButton } from './components/Toggles/ToggleButton';
16
16
  export * from './components/Toggles/ToggleButton/ToggleButton.consts';
17
17
  export { default as Card } from './components/Cards/Card/';
18
- export { default as DsCard } from './components/Cards/Card/';
18
+ export * from './components/Cards/Card';
19
+ export { default as DsCard } from './components/Cards/Card';
19
20
  export { default as CardExpandable } from './components/Cards/CardExpandable/';
20
21
  export { default as DsCardExpandable } from './components/Cards/CardExpandable/';
21
22
  export { default as DsDateBox } from './components/DatePickers/DateBox';
@@ -29,12 +30,18 @@ export * from './components/Divider/Divider.consts';
29
30
  export { default as FeatureIcon } from './components/Icons/FeatureIcon';
30
31
  export { default as DsFeatureIcon } from './components/Icons/FeatureIcon';
31
32
  export * from './components/Icons/FeatureIcon/FeatureIcon.consts';
33
+ export { default as DsFormField } from './components/Form/FormField';
34
+ export * from './components/Form/FormField';
35
+ export { default as DsFormFieldMessage } from './components/Form/FormField/FormFieldMessage';
36
+ export * from './components/Form/FormField/FormFieldMessage';
37
+ export { default as DsHelpButton } from './components/Buttons/HelpButton';
32
38
  export { default as Icon } from './components/Icons/Icon';
33
39
  export { default as DsIcon } from './components/Icons/Icon';
34
40
  export * from './components/Icons/Icon/Icon.consts';
35
41
  export { default as IconButton } from './components/Buttons/IconButton';
36
42
  export { default as DsIconButton } from './components/Buttons/IconButton';
37
43
  export * from './components/Buttons/IconButton/IconButton.consts';
44
+ export { default as DsInputField } from './components/Form/InputField';
38
45
  export { default as Modal } from './components/Modal';
39
46
  export { default as DsModal } from './components/Modals/Modal';
40
47
  export * from './components/Modals/Modal/Modal.consts';
@@ -42,6 +49,7 @@ export { default as DsModalDialog } from './components/Modals/ModalDialog';
42
49
  export { default as NumberInCircle } from './components/NumberInCircle';
43
50
  export { default as DsNumberInCircle } from './components/NumberInCircle';
44
51
  export * from './components/NumberInCircle/NumberInCircle.consts';
52
+ export { default as DsPasswordField } from './components/Form/PasswordField';
45
53
  export { default as TabItem } from './components/TabItem';
46
54
  export { default as DsTabItem } from './components/TabItem';
47
55
  export * from './components/TabItem/TabItem.consts';
@@ -177,3 +185,5 @@ export {
177
185
  } from './icons/fontawesome';
178
186
 
179
187
  export type { IconDefinition } from './icons/fontawesome';
188
+
189
+ export * from 'vee-validate';
@@ -1,4 +1,4 @@
1
- import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
2
 
3
3
  export default {
4
4
  title: 'foundations/Borders',
@@ -6,7 +6,7 @@
6
6
  <h2 class="itemsList__title">{{ itemsList.title }}</h2>
7
7
  <ol class="itemsList__categories">
8
8
  <li
9
- v-for="(items, itemCategory) in itemsList.list"
9
+ v-for="(_items, itemCategory) in itemsList.list"
10
10
  :key="itemCategory"
11
11
  class="itemsListItem__category"
12
12
  >
@@ -0,0 +1,5 @@
1
+ import waitForExpect from 'wait-for-expect';
2
+
3
+ export const waitForExpectShort = (fn: () => void | Promise<void>) => {
4
+ return waitForExpect(fn, 500, 5);
5
+ };