@bethinkpl/design-system 26.15.0 → 26.16.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 (299) hide show
  1. package/.eslintrc.cjs +9 -0
  2. package/dist/design-system.umd.cjs +18 -18
  3. package/dist/design-system.umd.cjs.map +1 -1
  4. package/dist/lib/js/components/Banner/Banner.vue.d.ts +16 -0
  5. package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +4 -0
  6. package/dist/lib/js/components/Buttons/HelpButton/HelpButton.vue.d.ts +40 -0
  7. package/dist/lib/js/components/Buttons/HelpButton/index.d.ts +3 -0
  8. package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +8 -0
  9. package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +4 -0
  10. package/dist/lib/js/components/Chip/Chip.vue.d.ts +26 -15
  11. package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +5 -1
  12. package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +10 -2
  13. package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +5 -1
  14. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +28 -0
  15. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +4 -0
  16. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +16 -0
  17. package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +4 -0
  18. package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +4 -0
  19. package/dist/lib/js/components/Form/FormField/FormField.consts.d.ts +9 -0
  20. package/dist/lib/js/components/Form/FormField/FormField.stories.shared.d.ts +5 -0
  21. package/dist/lib/js/components/Form/FormField/FormField.types.d.ts +21 -0
  22. package/dist/lib/js/components/Form/FormField/FormField.utils.d.ts +11 -0
  23. package/dist/lib/js/components/Form/FormField/FormField.vue.d.ts +20 -0
  24. package/dist/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue.d.ts +30 -0
  25. package/dist/lib/js/components/Form/FormField/FormFieldMessage/index.d.ts +3 -0
  26. package/dist/lib/js/components/Form/FormField/index.d.ts +5 -0
  27. package/dist/lib/js/components/Form/InputField/InputField.types.d.ts +12 -0
  28. package/dist/lib/js/components/Form/InputField/InputField.vue.d.ts +72 -0
  29. package/dist/lib/js/components/Form/InputField/index.d.ts +3 -0
  30. package/dist/lib/js/components/Form/PasswordField/PasswordField.vue.d.ts +70 -0
  31. package/dist/lib/js/components/Form/PasswordField/index.d.ts +3 -0
  32. package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +4 -0
  33. package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +12 -0
  34. package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +12 -0
  35. package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +4 -0
  36. package/dist/lib/js/components/Modal/Modal.vue.d.ts +4 -0
  37. package/dist/lib/js/components/Modals/Modal/Modal.consts.d.ts +8 -4
  38. package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +31 -14
  39. package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +34 -18
  40. package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +4 -0
  41. package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +16 -0
  42. package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +4 -0
  43. package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +4 -0
  44. package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +8 -0
  45. package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +8 -0
  46. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +4 -0
  47. package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +4 -0
  48. package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +4 -0
  49. package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +12 -0
  50. package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +4 -0
  51. package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +4 -0
  52. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +20 -0
  53. package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +20 -0
  54. package/dist/lib/js/components/Switch/Switch.vue.d.ts +4 -0
  55. package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +20 -0
  56. package/dist/lib/js/components/Tile/Tile.vue.d.ts +4 -0
  57. package/dist/lib/js/components/Toast/Toast.vue.d.ts +6 -2
  58. package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +4 -0
  59. package/dist/lib/js/icons/fontawesome.d.ts +4 -0
  60. package/dist/lib/js/index.d.ts +7 -0
  61. package/docs/assets/{AccessStatus-BdbWaHQP.js → AccessStatus-DW-L4l_0.js} +1 -1
  62. package/docs/assets/{AccessStatus.stories-DqcEfuBA.js → AccessStatus.stories-DwCxxAOP.js} +1 -1
  63. package/docs/assets/Avatar-CRVC-fPA.js +1 -0
  64. package/docs/assets/{Avatar.stories-DUjrdPxd.js → Avatar.stories-D7i8UwP9.js} +1 -1
  65. package/docs/assets/{Badge-D6TIWhxN.js → Badge-h4Z2ZKD4.js} +1 -1
  66. package/docs/assets/{Badge.stories-Bv5vOVUm.js → Badge.stories-Bl04pHS_.js} +1 -1
  67. package/docs/assets/{BadgeScore-Cb9gd56c.js → BadgeScore-CuteYyZb.js} +1 -1
  68. package/docs/assets/{BadgeScore.stories-BsD5r0Lb.js → BadgeScore.stories-BvHEI0pW.js} +1 -1
  69. package/docs/assets/{Banner-Bc-GaNQo.js → Banner-sTfmX99M.js} +1 -1
  70. package/docs/assets/{Banner.stories-DkCWYPus.js → Banner.stories-qhUSAG8g.js} +1 -1
  71. package/docs/assets/BasicRichListItem-C93Qb4K6.js +1 -0
  72. package/docs/assets/{BasicRichListItem.stories-Du92pfHC.js → BasicRichListItem.stories-B2smX5s7.js} +2 -2
  73. package/docs/assets/{BlockadeStatus-BAO7ZSMR.js → BlockadeStatus-B0FY65_h.js} +1 -1
  74. package/docs/assets/{BlockedeStatus.stories-DPgKWNlb.js → BlockedeStatus.stories-DZ1mfq2q.js} +1 -1
  75. package/docs/assets/{Button-DTM9D6tQ.js → Button-CRTJWjWJ.js} +1 -1
  76. package/docs/assets/{Button.stories-Drsp2tgd.js → Button.stories-BOpQOZ6x.js} +1 -1
  77. package/docs/assets/Card-C2-UB9KC.js +1 -0
  78. package/docs/assets/{Card.stories-Bqmd77lg.js → Card.stories-CI8H4t9g.js} +1 -1
  79. package/docs/assets/CardExpandable-BMUVeR31.js +1 -0
  80. package/docs/assets/{CardExpandable.stories-cFQsWRUN.js → CardExpandable.stories-CPAZ4mof.js} +1 -1
  81. package/docs/assets/Checkbox-CIfSektM.js +1 -0
  82. package/docs/assets/{Checkbox.stories-UYUu1WCA.js → Checkbox.stories-Dt5C89R2.js} +1 -1
  83. package/docs/assets/{Chip-C-ttDDPa.js → Chip-Bi-iKYH0.js} +1 -1
  84. package/docs/assets/{Chip.stories-DEv2a6cC.js → Chip.stories-BukfI_wY.js} +1 -1
  85. package/docs/assets/{Color-ERTF36HU-Cq4yGxVI.js → Color-ERTF36HU-Cor5XXAu.js} +1 -1
  86. package/docs/assets/{Colors.stories-BrNisWwH.js → Colors.stories-yICh_E96.js} +1 -1
  87. package/docs/assets/{ColorsThemes.stories-DvZl0m40.js → ColorsThemes.stories-CKiphr3E.js} +1 -1
  88. package/docs/assets/{ColorsTokensLms.stories-D3nA1ro1.js → ColorsTokensLms.stories-C_hRq1fa.js} +1 -1
  89. package/docs/assets/{ColorsTokensPrimaryBodywork.stories-w4A7RjpQ.js → ColorsTokensPrimaryBodywork.stories-TzJMcnGg.js} +1 -1
  90. package/docs/assets/{ColorsTokensPrimaryWnl.stories-CncgXEG5.js → ColorsTokensPrimaryWnl.stories-CCArJaTw.js} +1 -1
  91. package/docs/assets/{CounterToggle-DleD8vtl.js → CounterToggle-D3jTLdlU.js} +1 -1
  92. package/docs/assets/{CounterToggle.stories-gIBPTeUE.js → CounterToggle.stories-BZAgprZf.js} +1 -1
  93. package/docs/assets/{DateBox.stories-ITuNN3NV.js → DateBox.stories-CNTaIflE.js} +3 -3
  94. package/docs/assets/{DatePicker-MzMuc8fk.js → DatePicker-aMS5YOMW.js} +1 -1
  95. package/docs/assets/{DatePicker.stories-DZ4fuxm9.js → DatePicker.stories-DnojtGGT.js} +1 -1
  96. package/docs/assets/{DateRangePicker-D1PXeiHM.js → DateRangePicker-B25oMOoU.js} +1 -1
  97. package/docs/assets/{DateRangePicker.stories-D-RLAJHJ.js → DateRangePicker.stories-CaIkM98h.js} +1 -1
  98. package/docs/assets/{Divider-9o-i_zKL.js → Divider-BNN8PhWF.js} +1 -1
  99. package/docs/assets/{Divider.stories-IQKEznYT.js → Divider.stories-DQGq5WIM.js} +1 -1
  100. package/docs/assets/{DocsRenderer-CFRXHY34-ciQO70gR.js → DocsRenderer-CFRXHY34-DsMNfqFA.js} +5 -5
  101. package/docs/assets/{Drawer-ClrSDwUZ.js → Drawer-CgEP8-bU.js} +1 -1
  102. package/docs/assets/{Drawer.stories-DR-CXra3.js → Drawer.stories-CetCbwOV.js} +1 -1
  103. package/docs/assets/{DrawerContent-D6Bl5GA-.js → DrawerContent-Dna0k_5V.js} +1 -1
  104. package/docs/assets/{DrawerContent.stories-BR11egKi.js → DrawerContent.stories-BqJ3zitz.js} +1 -1
  105. package/docs/assets/{DrawerDivider-DMhjaSPk.js → DrawerDivider-BjBlvEOJ.js} +1 -1
  106. package/docs/assets/{DrawerDivider.stories-DdcVRbtO.js → DrawerDivider.stories-BN_G8JML.js} +1 -1
  107. package/docs/assets/DrawerHeader-CYgh5yLP.js +1 -0
  108. package/docs/assets/{DrawerHeader.stories-oX2zW_qZ.js → DrawerHeader.stories-CsM4PkKY.js} +1 -1
  109. package/docs/assets/{DrawerListItem-CIEm2YIc.js → DrawerListItem-BOEqjnvB.js} +1 -1
  110. package/docs/assets/{DrawerListItem.stories-CT4AHRKW.js → DrawerListItem.stories-Br_BBZTl.js} +1 -1
  111. package/docs/assets/{DrawerListItemGroup-B5XadRVV.js → DrawerListItemGroup-qG_7CJ2Z.js} +1 -1
  112. package/docs/assets/{DrawerListItemGroup.stories-B541RV6U.js → DrawerListItemGroup.stories-Dj7XnOfZ.js} +1 -1
  113. package/docs/assets/{DrawerSection-Di_ofHSH.js → DrawerSection-Bk-qjO-U.js} +1 -1
  114. package/docs/assets/{DrawerSection.stories-C4ixwQIo.js → DrawerSection.stories-bac3ulNN.js} +1 -1
  115. package/docs/assets/DrawerTile-3UrW0AGT.js +1 -0
  116. package/docs/assets/{DrawerTile.stories-WzAPfUy9.js → DrawerTile.stories-AeySW4m1.js} +1 -1
  117. package/docs/assets/Dropdown-vkyblifO.js +1 -0
  118. package/docs/assets/{Dropdown.stories-BEI0k1ws.js → Dropdown.stories-Bvkxpx3n.js} +1 -1
  119. package/docs/assets/{FeatureIcon-JKiMnOvS.js → FeatureIcon-DClL1vj4.js} +1 -1
  120. package/docs/assets/{FeatureIcon.stories-DyY2g0uS.js → FeatureIcon.stories-D1igtEZB.js} +1 -1
  121. package/docs/assets/FormField-u4PxhF2k.js +1 -0
  122. package/docs/assets/FormField.stories-DXTo4Z_Y.js +40 -0
  123. package/docs/assets/FormField.stories.shared-D4ktxakv.js +1 -0
  124. package/docs/assets/FormFieldMessage-JNi0OUbH.js +1 -0
  125. package/docs/assets/FormFieldMessage.stories-lK_yWKrc.js +32 -0
  126. package/docs/assets/GroupRichListItem-D8nu5Fv9.js +1 -0
  127. package/docs/assets/{GroupRichListItem.stories-C6gd1aBX.js → GroupRichListItem.stories-DKL_YGxk.js} +1 -1
  128. package/docs/assets/HelpButton-Lb2k2yp9.js +1 -0
  129. package/docs/assets/HelpButton.stories-D4-sk1wV.js +17 -0
  130. package/docs/assets/Icon-BxW-ny3A.js +761 -0
  131. package/docs/assets/{Icon.stories-C0zrdS-E.js → Icon.stories-DaFYO7BK.js} +1 -1
  132. package/docs/assets/IconButton-C0_vxVJn.js +1 -0
  133. package/docs/assets/{IconButton.stories-u8ZnxA0r.js → IconButton.stories-BB9x50r9.js} +1 -1
  134. package/docs/assets/{IconText-D16p7ozy.js → IconText-Bl-DK5dv.js} +1 -1
  135. package/docs/assets/{IconText.stories-90zCvZeb.js → IconText.stories-BbDEYbhY.js} +1 -1
  136. package/docs/assets/{Image-Dbv2u4ta.js → Image-DXVGtCU-.js} +1 -1
  137. package/docs/assets/{Image.stories-CUWPBT5K.js → Image.stories-CmX0xWLp.js} +1 -1
  138. package/docs/assets/InputField-CjqHh5Cm.js +1 -0
  139. package/docs/assets/InputField.stories-B6VUcIZA.js +44 -0
  140. package/docs/assets/{ItemsList-CJTCYbgI.js → ItemsList-BT-ch5Ki.js} +1 -1
  141. package/docs/assets/{LoadingBar-Dc_eLNsl.js → LoadingBar-CoXHVlvM.js} +1 -1
  142. package/docs/assets/{LoadingBar.stories-DWH4VmcD.js → LoadingBar.stories-B_l4HaQT.js} +1 -1
  143. package/docs/assets/Modal-xuXnp0B3.js +1 -0
  144. package/docs/assets/{Modal.stories-DfgQe09K.js → Modal.stories-BSYz4NUn.js} +1 -1
  145. package/docs/assets/{ModalDialog-C3_bDqrz.js → ModalDialog-D6jipNV9.js} +1 -1
  146. package/docs/assets/{ModalDialog.stories-rQ8IipQ0.js → ModalDialog.stories-y0DTZLJ9.js} +1 -1
  147. package/docs/assets/{NumberInCircle-DnPE2szs.js → NumberInCircle-iJQYZsfG.js} +1 -1
  148. package/docs/assets/{NumberInCircle.stories-Tn0v6S_I.js → NumberInCircle.stories-BL7R6Ey9.js} +1 -1
  149. package/docs/assets/OutlineDivider-DpgF_2B_.js +1 -0
  150. package/docs/assets/{OutlineDivider.stories-D9Hzkdbe.js → OutlineDivider.stories-CoI8u05k.js} +1 -1
  151. package/docs/assets/{OutlineItem-k4o2gAd_.js → OutlineItem-COSzRi1t.js} +1 -1
  152. package/docs/assets/{OutlineItem.stories-qRcEu4u8.js → OutlineItem.stories-DPbUVNt7.js} +1 -1
  153. package/docs/assets/{OutlineSectionHeader-LGOAi424.js → OutlineSectionHeader-C7vAvTfl.js} +1 -1
  154. package/docs/assets/{OutlineSectionHeader.stories-PPIsaHhR.js → OutlineSectionHeader.stories-DTI32viO.js} +1 -1
  155. package/docs/assets/OverlayHeader-DYU6A8e-.js +1 -0
  156. package/docs/assets/{OverlayHeader.stories-DdUnt5mJ.js → OverlayHeader.stories-Daj1gEMT.js} +1 -1
  157. package/docs/assets/{PageHeader-DkHlb7_P.js → PageHeader-BKDJxn58.js} +1 -1
  158. package/docs/assets/{PageHeader.stories-WThxfLse.js → PageHeader.stories-BRdESIfF.js} +1 -1
  159. package/docs/assets/{Pagination-TTyuIJ3s.js → Pagination-CruPXU6i.js} +1 -1
  160. package/docs/assets/{Pagination.stories-CCT0nhBs.js → Pagination.stories-pk1h1NdC.js} +1 -1
  161. package/docs/assets/PasswordField-D2k9x-t0.js +1 -0
  162. package/docs/assets/PasswordField.stories-BMwEm_DO.js +42 -0
  163. package/docs/assets/{PopOver-BtWRUcqR.js → PopOver-BjBlXVwF.js} +1 -1
  164. package/docs/assets/{PopOver.stories-DdmtSmb1.js → PopOver.stories-3QX4Ga4o.js} +1 -1
  165. package/docs/assets/{ProgressBar-bPl8V4zL.js → ProgressBar-VrWJHC2p.js} +1 -1
  166. package/docs/assets/{ProgressBar.stories-DPWwdCMP.js → ProgressBar.stories-CrZ2zJwI.js} +1 -1
  167. package/docs/assets/{ProgressDonutChart-B42JFhmC.js → ProgressDonutChart-CJlokRW-.js} +1 -1
  168. package/docs/assets/{ProgressDonutChart.stories-139yf9qk.js → ProgressDonutChart.stories-BRxY2dWI.js} +1 -1
  169. package/docs/assets/RadioButton-DO6I2WfN.js +1 -0
  170. package/docs/assets/{RadioButton.stories-Dj4K2DOd.js → RadioButton.stories-C80hUDbi.js} +1 -1
  171. package/docs/assets/{RichListItem.stories-B7axni5v.js → RichListItem.stories-_8Hp41y-.js} +2 -2
  172. package/docs/assets/{SectionHeader-CoK_3gzJ.js → SectionHeader-BvZF_uZR.js} +1 -1
  173. package/docs/assets/{SectionHeader.stories-r1QYbspK.js → SectionHeader.stories-BjccJa_1.js} +1 -1
  174. package/docs/assets/{SectionTitle-DLcFKzRH.js → SectionTitle-DElPh1Y0.js} +1 -1
  175. package/docs/assets/{SectionTitle.stories-Dybq4paM.js → SectionTitle.stories-BOEziRr6.js} +1 -1
  176. package/docs/assets/{SelectList-B323Y2el.js → SelectList-IYj9X3z5.js} +1 -1
  177. package/docs/assets/{SelectList.stories-C89bpLpi.js → SelectList.stories-B0jlx1dv.js} +1 -1
  178. package/docs/assets/{SelectListItem-BfrNC0lN.js → SelectListItem-DxlYAAqR.js} +1 -1
  179. package/docs/assets/{SelectListItem.stories-7_Hgwc0t.js → SelectListItem.stories-Cbgqd3q6.js} +1 -1
  180. package/docs/assets/{SelectListItemDivider-lDLIwtP8.js → SelectListItemDivider-Bt5LuCh6.js} +1 -1
  181. package/docs/assets/{SelectListItemDivider.stories-BZ6_HOBG.js → SelectListItemDivider.stories-BFdzCK8L.js} +1 -1
  182. package/docs/assets/{SelectListItemTile-VUKxo3Ph.js → SelectListItemTile-Ci7UUkBi.js} +1 -1
  183. package/docs/assets/{SelectListItemTile.stories-zTWQ8pfo.js → SelectListItemTile.stories-D53QYgoj.js} +1 -1
  184. package/docs/assets/{SelectListItemToggle-DVeIonzN.js → SelectListItemToggle-uyZKP9l-.js} +1 -1
  185. package/docs/assets/{SelectListItemToggle.stories-isbsW94B.js → SelectListItemToggle.stories-CHKImbbO.js} +1 -2
  186. package/docs/assets/SelectListSectionTitle-CytprfLI.js +1 -0
  187. package/docs/assets/{SelectListSectionTitle.stories-NKPegok4.js → SelectListSectionTitle.stories-CHaM0ezF.js} +1 -1
  188. package/docs/assets/{SelectionControl-JHBohZVS.js → SelectionControl-D6-Q7FjJ.js} +1 -1
  189. package/docs/assets/{SelectionTile-jvSsuAJD.js → SelectionTile-BXjJtuZK.js} +2 -2
  190. package/docs/assets/{SelectionTile.stories-BtKHjKvZ.js → SelectionTile.stories-Cdv1DqAb.js} +1 -1
  191. package/docs/assets/{Skeleton-DhyJ4ZKG.js → Skeleton-a6juZJ74.js} +3 -3
  192. package/docs/assets/{Skeleton.stories-CsZjBoj1.js → Skeleton.stories-CU_bwj6g.js} +1 -1
  193. package/docs/assets/SurveyQuestionOpenEnded-CU362h7V.js +1 -0
  194. package/docs/assets/{SurveyQuestionOpenEnded.stories-RzpJn8fr.js → SurveyQuestionOpenEnded.stories-DTfe-q_l.js} +1 -1
  195. package/docs/assets/SurveyQuestionScale-BFW9EZtg.js +1 -0
  196. package/docs/assets/{SurveyQuestionScale.stories-CIEPsvni.js → SurveyQuestionScale.stories-I6PfDZOp.js} +1 -1
  197. package/docs/assets/{SurveyToggle-DBYCLMcd.js → SurveyToggle-BeOR_ZKx.js} +1 -1
  198. package/docs/assets/{SurveyToggle.stories-C0M1EYrR.js → SurveyToggle.stories-DJz0MG-Y.js} +1 -1
  199. package/docs/assets/Switch-DsNVsFhH.js +1 -0
  200. package/docs/assets/{Switch.stories-B_SvqqVw.js → Switch.stories-C1-OEnaq.js} +1 -1
  201. package/docs/assets/{TabItem-DHcL0LcY.js → TabItem-KyXcr_5Z.js} +1 -1
  202. package/docs/assets/{TabItem.stories-D-hHY4xD.js → TabItem.stories-BfCXfirX.js} +1 -1
  203. package/docs/assets/{TextGroup-AUUBIFJZ.js → TextGroup-BGFapzPu.js} +1 -1
  204. package/docs/assets/{TextGroup.stories-CqwkdBAO.js → TextGroup.stories-WgHYdmrz.js} +1 -1
  205. package/docs/assets/{ThreeColumnLayout-DXA1815_.js → ThreeColumnLayout-DLj9ww3X.js} +1 -1
  206. package/docs/assets/{ThreeColumnLayout.stories-BA08mTZ7.js → ThreeColumnLayout.stories-BD0ZEOam.js} +1 -1
  207. package/docs/assets/{Tile-C-0-l9Zd.js → Tile-CV9qCJCf.js} +1 -1
  208. package/docs/assets/{Tile.sb.shared-CPS5WnqW.js → Tile.sb.shared-CYs-5pZ0.js} +1 -1
  209. package/docs/assets/{Tile.stories-CS3Brfmz.js → Tile.stories-32aU_anv.js} +1 -1
  210. package/docs/assets/{Toast-CiehGYa_.js → Toast-p9LnCPmL.js} +1 -1
  211. package/docs/assets/{Toast.stories-a73EHj2n.js → Toast.stories-zF82pwwv.js} +1 -1
  212. package/docs/assets/{ToggleButton-B2K48hG5.js → ToggleButton-D_HZ-8jw.js} +1 -1
  213. package/docs/assets/{ToggleButton.stories-DU0K3-Gd.js → ToggleButton.stories-CV-iGLoy.js} +1 -1
  214. package/docs/assets/{Tooltip-DZi9yXjr.js → Tooltip-DKqXTPwf.js} +1 -1
  215. package/docs/assets/{Tooltip.stories-d9VyD_0V.js → Tooltip.stories-D_SR7U8f.js} +1 -1
  216. package/docs/assets/{TypographyTokensLms.stories-CZpPPUwu.js → TypographyTokensLms.stories-qRJAJdvd.js} +1 -1
  217. package/docs/assets/{TypographyVariables.stories-B4Lg96R3.js → TypographyVariables.stories-B6W3MuIN.js} +1 -1
  218. package/docs/assets/{Well-Cuj5KPHL.js → Well-Di8wsKpw.js} +1 -1
  219. package/docs/assets/{Well.stories-BeM1zP19.js → Well.stories-D3CQkZun.js} +1 -1
  220. package/docs/assets/entry-preview-B1UVjA37.js +1 -0
  221. package/docs/assets/{entry-preview-docs-Bz8Se46p.js → entry-preview-docs-Cs1P1b8z.js} +1 -1
  222. package/docs/assets/{iframe-bbt6wJ1S.js → iframe-BH6Q2yq5.js} +11 -8
  223. package/docs/assets/{index-BK1XWU9Y.js → index-7TY-LtbS.js} +1 -1
  224. package/docs/assets/{index-Cmt-_kET.js → index-BncE9pY5.js} +1 -1
  225. package/docs/assets/{preview-pqm_1-Xy.js → preview-CQnQ4kXS.js} +2 -2
  226. package/docs/assets/preview-RZnfww4F.js +64 -0
  227. package/docs/assets/{string-BUK4JyUO.js → string-DZMRm3DC.js} +1 -1
  228. package/docs/assets/{vue-popper-DoPHnofs.js → vue-popper-CgJSQDC2.js} +1 -1
  229. package/docs/assets/vue.esm-bundler-CC_vsnCp.js +36 -0
  230. package/docs/iframe.html +1 -1
  231. package/docs/index.json +1 -1
  232. package/docs/project.json +1 -1
  233. package/lib/js/components/Badge/Badge.vue +6 -5
  234. package/lib/js/components/Buttons/Button/Button.spec.ts +3 -3
  235. package/lib/js/components/Buttons/HelpButton/HelpButton.spec.ts +87 -0
  236. package/lib/js/components/Buttons/HelpButton/HelpButton.stories.ts +70 -0
  237. package/lib/js/components/Buttons/HelpButton/HelpButton.vue +52 -0
  238. package/lib/js/components/Buttons/HelpButton/index.ts +3 -0
  239. package/lib/js/components/Chip/Chip.spec.ts +3 -2
  240. package/lib/js/components/Chip/Chip.vue +0 -1
  241. package/lib/js/components/DatePickers/DateBox/DateBox.stories.ts +0 -3
  242. package/lib/js/components/Form/FormField/FormField.consts.ts +10 -0
  243. package/lib/js/components/Form/FormField/FormField.spec.ts +138 -0
  244. package/lib/js/components/Form/FormField/FormField.stories.shared.ts +53 -0
  245. package/lib/js/components/Form/FormField/FormField.stories.ts +81 -0
  246. package/lib/js/components/Form/FormField/FormField.types.ts +17 -0
  247. package/lib/js/components/Form/FormField/FormField.utils.ts +24 -0
  248. package/lib/js/components/Form/FormField/FormField.vue +192 -0
  249. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.spec.ts +53 -0
  250. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.stories.ts +74 -0
  251. package/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue +89 -0
  252. package/lib/js/components/Form/FormField/FormFieldMessage/index.ts +2 -0
  253. package/lib/js/components/Form/FormField/index.ts +6 -0
  254. package/lib/js/components/Form/InputField/InputField.spec.ts +135 -0
  255. package/lib/js/components/Form/InputField/InputField.stories.ts +98 -0
  256. package/lib/js/components/Form/InputField/InputField.types.ts +13 -0
  257. package/lib/js/components/Form/InputField/InputField.vue +151 -0
  258. package/lib/js/components/Form/InputField/index.ts +3 -0
  259. package/lib/js/components/Form/PasswordField/PasswordField.spec.ts +73 -0
  260. package/lib/js/components/Form/PasswordField/PasswordField.stories.ts +88 -0
  261. package/lib/js/components/Form/PasswordField/PasswordField.vue +55 -0
  262. package/lib/js/components/Form/PasswordField/index.ts +3 -0
  263. package/lib/js/components/Modals/Modal/Modal.consts.ts +8 -2
  264. package/lib/js/components/Modals/Modal/Modal.vue +10 -3
  265. package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.ts +0 -1
  266. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +43 -47
  267. package/lib/js/components/TabItem/TabItem.spec.ts +0 -1
  268. package/lib/js/components/Toast/Toast.vue +0 -2
  269. package/lib/js/icons/fontawesome.ts +8 -0
  270. package/lib/js/index.ts +7 -0
  271. package/lib/js/styles/Borders/BorderSizes.stories.ts +1 -1
  272. package/lib/js/styles/ItemsList.vue +1 -1
  273. package/package.json +5 -5
  274. package/tsconfig.base.json +1 -2
  275. package/tsconfig.build.json +8 -0
  276. package/tsconfig.json +1 -6
  277. package/vite.config.ts +9 -1
  278. package/docs/assets/Avatar-BfMssJty.js +0 -1
  279. package/docs/assets/BasicRichListItem-D0Wk0hG3.js +0 -1
  280. package/docs/assets/Card-KSW_Q55y.js +0 -1
  281. package/docs/assets/CardExpandable-DZ5qdj_Y.js +0 -1
  282. package/docs/assets/Checkbox-yVtwyPI-.js +0 -1
  283. package/docs/assets/DrawerHeader-Wv_4-y80.js +0 -1
  284. package/docs/assets/DrawerTile-DMIeqQC0.js +0 -1
  285. package/docs/assets/Dropdown-CYFZ3OvV.js +0 -1
  286. package/docs/assets/GroupRichListItem-BvLfDPjh.js +0 -1
  287. package/docs/assets/Icon-DLflpryl.js +0 -761
  288. package/docs/assets/IconButton-jIBOZaL6.js +0 -1
  289. package/docs/assets/Modal-BNfy5y5G.js +0 -1
  290. package/docs/assets/OutlineDivider-UaRb6wKt.js +0 -1
  291. package/docs/assets/OverlayHeader-CM0t7lPr.js +0 -1
  292. package/docs/assets/RadioButton-CocBbkKQ.js +0 -1
  293. package/docs/assets/SelectListSectionTitle-BFbrwNgw.js +0 -1
  294. package/docs/assets/SurveyQuestionOpenEnded-Cc4cKSQ6.js +0 -1
  295. package/docs/assets/SurveyQuestionScale-DECnKlLN.js +0 -1
  296. package/docs/assets/Switch-CJmb9Pod.js +0 -1
  297. package/docs/assets/entry-preview-lHccVHf5.js +0 -1
  298. package/docs/assets/preview-Cl6G_t91.js +0 -64
  299. package/docs/assets/vue.esm-bundler-DD4BrEtS.js +0 -36
@@ -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,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,7 +330,12 @@ $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
340
  import { FEATURE_ICON_COLOR, FEATURE_ICON_SIZES } from '../../Icons/FeatureIcon';
335
341
  import WnlButton, {
@@ -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,
@@ -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;
@@ -16,6 +16,7 @@ import { faArrowsRotate } from '@fortawesome/pro-regular-svg-icons/faArrowsRotat
16
16
  import { faArrowUpRightAndArrowDownLeftFromCenter } from '@fortawesome/pro-regular-svg-icons/faArrowUpRightAndArrowDownLeftFromCenter';
17
17
  import { faArrowUpRightFromSquare } from '@fortawesome/pro-regular-svg-icons/faArrowUpRightFromSquare';
18
18
  import { faAtom } from '@fortawesome/pro-regular-svg-icons/faAtom';
19
+ import { faAtom as fasAtom } from '@fortawesome/pro-solid-svg-icons/faAtom';
19
20
  import { faBadgePercent } from '@fortawesome/pro-regular-svg-icons/faBadgePercent';
20
21
  import { faBan } from '@fortawesome/pro-regular-svg-icons/faBan';
21
22
  import { faBars } from '@fortawesome/pro-regular-svg-icons/faBars';
@@ -27,6 +28,7 @@ import { faBookBlank } from '@fortawesome/pro-regular-svg-icons/faBookBlank';
27
28
  import { faBookCopy } from '@fortawesome/pro-regular-svg-icons/faBookCopy';
28
29
  import { faBox } from '@fortawesome/pro-regular-svg-icons/faBox';
29
30
  import { faBoxArchive } from '@fortawesome/pro-regular-svg-icons/faBoxArchive';
31
+ import { faCalculatorSimple as fasCalculatorSimple } from '@fortawesome/pro-solid-svg-icons/faCalculatorSimple';
30
32
  import { faCalendar } from '@fortawesome/pro-regular-svg-icons/faCalendar';
31
33
  import { faCalendarDays } from '@fortawesome/pro-regular-svg-icons/faCalendarDays';
32
34
  import { faCalendarDay } from '@fortawesome/pro-regular-svg-icons/faCalendarDay';
@@ -63,6 +65,7 @@ import { faComments } from '@fortawesome/pro-regular-svg-icons/faComments';
63
65
  import { faCompress } from '@fortawesome/pro-regular-svg-icons/faCompress';
64
66
  import { faCopy } from '@fortawesome/pro-regular-svg-icons/faCopy';
65
67
  import { faCreditCard } from '@fortawesome/pro-regular-svg-icons/faCreditCard';
68
+ import { faDna as fasDna } from '@fortawesome/pro-solid-svg-icons/faDna';
66
69
  import { faEarthAmericas } from '@fortawesome/pro-regular-svg-icons/faEarthAmericas';
67
70
  import { faEllipsis } from '@fortawesome/pro-regular-svg-icons/faEllipsis';
68
71
  import { faEllipsisVertical } from '@fortawesome/pro-regular-svg-icons/faEllipsisVertical';
@@ -162,6 +165,7 @@ import { faArrowRight as fasArrowRight } from '@fortawesome/pro-solid-svg-icons/
162
165
  import { faArrowsLeftRight as fasArrowsLeftRight } from '@fortawesome/pro-solid-svg-icons/faArrowsLeftRight';
163
166
  import { faArrowUp as fasArrowUp } from '@fortawesome/pro-solid-svg-icons/faArrowUp';
164
167
  import { faBookmark as fasBookmark } from '@fortawesome/pro-solid-svg-icons/faBookmark';
168
+ import { faBookMedical as fasBookMedical } from '@fortawesome/pro-solid-svg-icons/faBookMedical';
165
169
  import { faBookSparkles as fasBookSparkles } from '@fortawesome/pro-solid-svg-icons/faBookSparkles';
166
170
  import { faCamera as fasCamera } from '@fortawesome/pro-solid-svg-icons/faCamera';
167
171
  import { faCaretSquareRight as fasCaretSquareRight } from '@fortawesome/pro-solid-svg-icons/faCaretSquareRight';
@@ -236,6 +240,7 @@ export const FONTAWESOME_ICONS = {
236
240
  FA_ARROWS_MAXIMIZE: faArrowsMaximize,
237
241
  FA_ARROWS_ROTATE: faArrowsRotate,
238
242
  FA_ATOM: faAtom,
243
+ FA_ATOM_SOLID: fasAtom,
239
244
  FA_BADGE_PERCENT: faBadgePercent,
240
245
  FA_BAN: faBan,
241
246
  FA_BARS: faBars,
@@ -247,8 +252,10 @@ export const FONTAWESOME_ICONS = {
247
252
  FA_BOOK_COPY: faBookCopy,
248
253
  FA_BOOK_SPARKLES_SOLID: fasBookSparkles,
249
254
  FA_BOOKMARK_SOLID: fasBookmark,
255
+ FA_BOOK_MEDICAL_SOLID: fasBookMedical,
250
256
  FA_BOX: faBox,
251
257
  FA_BOX_ARCHIVE: faBoxArchive,
258
+ FA_CALCULATOR_SIMPLE_SOLID: fasCalculatorSimple,
252
259
  FA_CALENDAR: faCalendar,
253
260
  FA_CALENDAR_CLOCK: faCalendarClock,
254
261
  FA_CALENDAR_CIRCLE_EXCLAMATION: faCalendarCircleExclamation,
@@ -298,6 +305,7 @@ export const FONTAWESOME_ICONS = {
298
305
  FA_COMPRESS: faCompress,
299
306
  FA_COPY: faCopy,
300
307
  FA_CREDIT_CARD: faCreditCard,
308
+ FA_DNA_SOLID: fasDna,
301
309
  FA_DOT_CIRCLE_SOLID: fasCircleDot,
302
310
  FA_EARTH_AMERICAS: faEarthAmericas,
303
311
  FA_ELLIPSIS: faEllipsis,
package/lib/js/index.ts CHANGED
@@ -29,12 +29,18 @@ export * from './components/Divider/Divider.consts';
29
29
  export { default as FeatureIcon } from './components/Icons/FeatureIcon';
30
30
  export { default as DsFeatureIcon } from './components/Icons/FeatureIcon';
31
31
  export * from './components/Icons/FeatureIcon/FeatureIcon.consts';
32
+ export { default as DsFormField } from './components/Form/FormField';
33
+ export * from './components/Form/FormField';
34
+ export { default as DsFormFieldMessage } from './components/Form/FormField/FormFieldMessage';
35
+ export * from './components/Form/FormField/FormFieldMessage';
36
+ export { default as DsHelpButton } from './components/Buttons/HelpButton';
32
37
  export { default as Icon } from './components/Icons/Icon';
33
38
  export { default as DsIcon } from './components/Icons/Icon';
34
39
  export * from './components/Icons/Icon/Icon.consts';
35
40
  export { default as IconButton } from './components/Buttons/IconButton';
36
41
  export { default as DsIconButton } from './components/Buttons/IconButton';
37
42
  export * from './components/Buttons/IconButton/IconButton.consts';
43
+ export { default as DsInputField } from './components/Form/InputField';
38
44
  export { default as Modal } from './components/Modal';
39
45
  export { default as DsModal } from './components/Modals/Modal';
40
46
  export * from './components/Modals/Modal/Modal.consts';
@@ -42,6 +48,7 @@ export { default as DsModalDialog } from './components/Modals/ModalDialog';
42
48
  export { default as NumberInCircle } from './components/NumberInCircle';
43
49
  export { default as DsNumberInCircle } from './components/NumberInCircle';
44
50
  export * from './components/NumberInCircle/NumberInCircle.consts';
51
+ export { default as DsPasswordField } from './components/Form/PasswordField';
45
52
  export { default as TabItem } from './components/TabItem';
46
53
  export { default as DsTabItem } from './components/TabItem';
47
54
  export * from './components/TabItem/TabItem.consts';
@@ -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
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bethinkpl/design-system",
3
- "version": "26.15.0",
3
+ "version": "26.16.0",
4
4
  "description": "Bethink universe design-system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,7 +56,7 @@
56
56
  "@vitejs/plugin-vue": "^5.1.4",
57
57
  "@vitest/coverage-c8": "0.33.0",
58
58
  "@vitest/ui": "3.1.4",
59
- "@vue/test-utils": "2.2.7",
59
+ "@vue/test-utils": "2.4.6",
60
60
  "axios": "^0.26.0",
61
61
  "dotenv": "16.0.3",
62
62
  "eslint": "8.25.0",
@@ -84,14 +84,14 @@
84
84
  "vite-plugin-dts": "^3.9.1",
85
85
  "vite-svg-loader": "^5.1.0",
86
86
  "vitest": "3.1.4",
87
- "vue": "3.5.12",
87
+ "vue": "3.5.16",
88
88
  "vue-eslint-parser": "^10.1.1",
89
89
  "vue-popperjs": "github:bethinkpl/vue-popper#03c7912c4729386743b0cca8f39b35448cc3db7f",
90
- "vue-tsc": "2.2.8"
90
+ "vue-tsc": "2.2.10"
91
91
  },
92
92
  "dependencies": {
93
93
  "@primevue/themes": "4.0.0-rc.3",
94
94
  "primevue": "4.0.0-rc.3",
95
- "vue-component-type-helpers": "^2.2.2"
95
+ "vue-component-type-helpers": "2.2.10"
96
96
  }
97
97
  }
@@ -12,8 +12,7 @@
12
12
  "moduleResolution": "node",
13
13
  "noImplicitReturns": true,
14
14
  "resolveJsonModule": true,
15
- // It causes `TS6133: '_withScopeId' is declared but its value is never read.`
16
- // "noUnusedLocals": true,
15
+ "noUnusedLocals": true,
17
16
  "skipLibCheck": true,
18
17
  "strictBindCallApply": true,
19
18
  // Re-enable after https://github.com/vuejs/core/issues/4668 is fixed
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.base.json",
3
+ "exclude": [
4
+ // excluded to prevent generating redundant d.ts files in dist on build
5
+ "lib/**/*.spec.ts",
6
+ "lib/**/*.stories.ts"
7
+ ]
8
+ }
package/tsconfig.json CHANGED
@@ -1,8 +1,3 @@
1
1
  {
2
- "extends": "./tsconfig.base.json",
3
- "exclude": [
4
- // excluded to prevent generating redundant d.ts files in dist on build
5
- "lib/**/*.spec.ts",
6
- "lib/**/*.stories.ts"
7
- ]
2
+ "extends": "./tsconfig.base.json"
8
3
  }
package/vite.config.ts CHANGED
@@ -6,10 +6,18 @@ import vue from '@vitejs/plugin-vue';
6
6
  import svgLoader from 'vite-svg-loader';
7
7
  import dts from 'vite-plugin-dts';
8
8
  import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
9
+ // import tsconfigPaths from 'vite-tsconfig-paths';
9
10
 
10
11
  // https://vitejs.dev/config/
11
12
  export default defineConfig({
12
- plugins: [vue(), svgLoader(), dts(), cssInjectedByJsPlugin()],
13
+ plugins: [
14
+ vue(),
15
+ svgLoader(),
16
+ dts({
17
+ tsconfigPath: './tsconfig.build.json',
18
+ }),
19
+ cssInjectedByJsPlugin(),
20
+ ],
13
21
  build: {
14
22
  lib: {
15
23
  entry: resolve(__dirname, 'lib/js/index.ts'),
@@ -1 +0,0 @@
1
- import{d as V,q as c,c as u,a as D,g as v,k as G,u as t,s as k,b as O,e as h,j as I,n as q,o}from"./vue.esm-bundler-DD4BrEtS.js";import{c as l,b as s,B as M,a as C}from"./Badge-D6TIWhxN.js";import{I as d}from"./Icon-DLflpryl.js";import{a as w,T as K}from"./Tooltip-DZi9yXjr.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e={XX_SMALL:"xx-small",X_SMALL:"x-small",SMALL:"small",MEDIUM:"medium",LARGE:"large",X_LARGE:"x-large"},T={ACTIVE:"active",INACTIVE:"inactive"},r={ACTIVE:"active",INACTIVE:"inactive",AWAITING:"awaiting",BLOCKED:"blocked",TEAM_MEMBER:"team-member"},H=["src","alt"],W={key:1,class:"ds-avatar__initials"},Y={key:0,class:"ds-avatar__activityStatus"},j={key:1,class:"ds-avatar__accessStatus"},f=V({__name:"Avatar",props:{username:{},avatarUrl:{},size:{default:()=>e.X_SMALL},activityStatus:{},accessStatus:{},teamMemberImageUrl:{},activityStatusTooltip:{}},setup(i){const{initials:y,initialBackgroundColor:_}=R(),{accessStatusColor:g,accessStatusIcon:U,accessStatusSize:p,accessStatusImage:z}=X(),{activityStatusColor:b,activityStatusSize:N}=B();function R(){const a=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"];function n(A){const[m,E]=A.split(/\s+/);return m&&E?`${m[0]}${E[0]}`.toUpperCase():m.substring(0,2).toUpperCase()}const S=c(()=>{if(i.avatarUrl)return;const A=(i.username.charCodeAt(0)-65)%16;return a[A]});return{initials:c(()=>n(i.username)),initialBackgroundColor:S}}function X(){const a=c(()=>{switch(i.accessStatus){case r.ACTIVE:return l.SUCCESS;case r.INACTIVE:case r.AWAITING:return l.NEUTRAL;case r.BLOCKED:return l.DANGER;default:return}}),n=c(()=>{switch(i.accessStatus){case r.ACTIVE:return d.FA_UNLOCK_KEYHOLE;case r.BLOCKED:case r.INACTIVE:return d.FA_LOCK_KEYHOLE;case r.AWAITING:return d.FA_HOURGLASS_START;default:return}}),S=c(()=>{switch(i.size){case e.XX_SMALL:return s.SMALL;case e.X_SMALL:return s.SMALL;case e.SMALL:return s.SMALL;case e.MEDIUM:return s.MEDIUM;case e.LARGE:return s.MEDIUM;case e.X_LARGE:default:return s.X_LARGE}}),L=c(()=>{if(i.accessStatus===r.TEAM_MEMBER)return i.teamMemberImageUrl});return{accessStatusColor:a,accessStatusIcon:n,accessStatusSize:S,accessStatusImage:L}}function B(){const a=c(()=>{switch(i.activityStatus){case T.ACTIVE:return l.SUCCESS;default:case T.INACTIVE:return l.NEUTRAL}}),n=c(()=>{switch(i.size){case e.XX_SMALL:return s.X_SMALL;case e.X_SMALL:return s.SMALL;case e.SMALL:return s.SMALL;case e.MEDIUM:return s.MEDIUM;case e.LARGE:return s.MEDIUM;case e.X_LARGE:default:return s.MEDIUM}});return{activityStatusColor:a,activityStatusSize:n}}return(a,n)=>(o(),u("div",{class:q(["ds-avatar",{"-ds-xx-small":a.size===t(e).XX_SMALL,"-ds-x-small":a.size===t(e).X_SMALL,"-ds-small":a.size===t(e).SMALL,"-ds-medium":a.size===t(e).MEDIUM,"-ds-large":a.size===t(e).LARGE,"-ds-x-large":a.size===t(e).X_LARGE}])},[D("div",{class:"ds-avatar__content",style:k({backgroundColor:t(_)})},[a.avatarUrl?(o(),u("img",{key:0,src:a.avatarUrl,alt:a.username,class:"ds-avatar__image"},null,8,H)):(o(),u("span",W,G(t(y)),1))],4),a.activityStatus?(o(),u("div",Y,[(o(),O(t(K),{key:a.activityStatusTooltip,class:"ds-avatar__activityStatusTooltip",text:a.activityStatusTooltip,"is-disabled":!a.activityStatusTooltip,"is-pointer-visible":"",placement:t(w).BOTTOM,"is-hidden-on-mobile":!1},{default:h(()=>[I(t(M),{color:t(b),elevation:t(C).X_SMALL,size:t(N)},null,8,["color","elevation","size"])]),_:1},8,["text","is-disabled","placement"]))])):v("",!0),a.accessStatus?(o(),u("div",j,[I(t(M),{color:t(g),elevation:t(C).SMALL,icon:t(U),size:t(p),"image-url":t(z)},null,8,["color","elevation","icon","size","image-url"])])):v("",!0)],2))}}),Q=F(f,[["__scopeId","data-v-18be9f69"]]);f.__docgenInfo={exportName:"default",displayName:"Avatar",description:"",tags:{},props:[{name:"username",required:!0,type:{name:"string"}},{name:"avatarUrl",required:!1,type:{name:"string"}},{name:"size",required:!1,type:{name:"AvatarSize"}},{name:"activityStatus",required:!1,type:{name:"AvatarActivityStatus"}},{name:"accessStatus",required:!1,type:{name:"AvatarAccessStatus"}},{name:"teamMemberImageUrl",required:!1,type:{name:"string"}},{name:"activityStatusTooltip",required:!1,type:{name:"string"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Avatar/Avatar.vue"]};export{Q as A,e as a,T as b,r as c};
@@ -1 +0,0 @@
1
- import{d as y,t as v,b,h as T,e as l,n as S,r as u,o as g,f as n,a as E,j as L}from"./vue.esm-bundler-DD4BrEtS.js";import{c as R,I as C}from"./Icon-DLflpryl.js";import{D as h,T as i,c as r}from"./TextGroup-AUUBIFJZ.js";import{a as d,e as t,d as p,c as s,f,h as O,R as _,b as D}from"./GroupRichListItem-BvLfDPjh.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const m=y({name:"BasicRichListItem",components:{DsTextGroup:h,RichListItem:O},props:{type:{type:String,default:f.DEFAULT,validator(e){return Object.values(f).includes(e)}},state:{type:String,default:s.DEFAULT,validator(e){return Object.values(s).includes(e)}},layout:{type:String,default:p.HORIZONTAL,validator(e){return Object.values(p).includes(e)}},size:{type:String,default:t.MEDIUM,validator(e){return Object.values(t).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(C).includes(v(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(R).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(D).includes(e)}},borderColorHex:{type:String,default:null},text:{type:String,required:!0},textEllipsis:{type:Boolean,default:!1},eyebrow:{type:String,default:null},eyebrowEllipsis:{type:Boolean,default:!1},isEyebrowUppercase:{type:Boolean,default:!1},supportingText:{type:String,default:null},supportingTextEllipsis:{type:Boolean,default:!1},isSupportingTextTooltipEnabled:{type:Boolean,default:!1},backgroundColor:{type:String,default:d.NEUTRAL,validator(e){return Object.values(d).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(_).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1},isTextGroupSelected:{type:Boolean,default:!1}},emits:{"update:is-selected":e=>!0},data(){return{hovered:!1,RICH_LIST_ITEM_SIZE:Object.freeze(t),RICH_LIST_ITEM_STATE:Object.freeze(s)}},computed:{textGroupSize(){return{[t.SMALL]:r.SMALL,[t.MEDIUM]:r.MEDIUM}[this.size]},textGroupState(){return this.state===s.LOADING?i.LOADING:this.hovered&&this.isInteractive?i.HOVERED:i.DEFAULT}}}),M={class:"ds-basicRichListItem__content"};function A(e,a,H,B,U,w){const c=u("ds-text-group"),I=u("rich-list-item");return g(),b(I,{size:e.size,type:e.type,layout:e.layout,"is-interactive":e.isInteractive,"is-draggable":e.isDraggable,icon:e.icon,"icon-color":e.iconColor,"icon-color-hex":e.iconColorHex,"is-dimmed":e.isDimmed,"border-color":e.borderColor,"border-color-hex":e.borderColorHex,state:e.state,"background-color":e.backgroundColor,elevation:e.elevation,"has-draggable-handler":e.hasDraggableHandler,"has-actions-slot-divider":e.hasActionsSlotDivider,"is-selectable":e.isSelectable,"is-selected":e.isSelected,class:S(["ds-basicRichListItem",{"-ds-loading":e.state===e.RICH_LIST_ITEM_STATE.LOADING,"-ds-small":e.size===e.RICH_LIST_ITEM_SIZE.SMALL}]),onMouseover:a[0]||(a[0]=o=>e.hovered=!0),onMouseleave:a[1]||(a[1]=o=>e.hovered=!1),"onUpdate:isSelected":a[2]||(a[2]=o=>e.$emit("update:is-selected",o))},T({content:l(()=>[E("div",M,[L(c,{"eyebrow-text":e.eyebrow,"eyebrow-text-ellipsis":e.eyebrowEllipsis,"is-eyebrow-text-uppercase":e.isEyebrowUppercase,"is-selected":e.isTextGroupSelected,"is-interactive":!1,"main-text":e.text,"main-text-ellipsis":e.textEllipsis,"supporting-text":e.supportingText,"supporting-text-ellipsis":e.supportingTextEllipsis,size:e.textGroupSize,state:e.textGroupState,"is-supporting-text-tooltip-enabled":e.isSupportingTextTooltipEnabled},null,8,["eyebrow-text","eyebrow-text-ellipsis","is-eyebrow-text-uppercase","is-selected","main-text","main-text-ellipsis","supporting-text","supporting-text-ellipsis","size","state","is-supporting-text-tooltip-enabled"])])]),_:2},[e.$slots.media?{name:"media",fn:l(()=>[n(e.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,e.$slots.metadata?{name:"metadata",fn:l(()=>[n(e.$slots,"metadata",{},void 0,!0)]),key:"1"}:void 0,e.$slots.actions?{name:"actions",fn:l(()=>[n(e.$slots,"actions",{},void 0,!0)]),key:"2"}:void 0]),1032,["size","type","layout","is-interactive","is-draggable","icon","icon-color","icon-color-hex","is-dimmed","border-color","border-color-hex","state","background-color","elevation","has-draggable-handler","has-actions-slot-divider","is-selectable","is-selected","class"])}const $=V(m,[["render",A],["__scopeId","data-v-c8b54c95"]]);m.__docgenInfo={displayName:"BasicRichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"text",type:{name:"string"},required:!0},{name:"textEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrow",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isEyebrowUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"supportingText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"supportingTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSupportingTextTooltipEnabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isTextGroupSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:is-selected"}],slots:[{name:"media"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue"]};export{$ as B};
@@ -1 +0,0 @@
1
- import{d as m,c as o,b as t,g as r,f as s,n as d,r as l,o as a}from"./vue.esm-bundler-DD4BrEtS.js";import{D as p}from"./Divider-9o-i_zKL.js";import{L as c,a as B}from"./LoadingBar-Dc_eLNsl.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g={NEUTRAL_HEAVY:"neutralHeavy",NEUTRAL_STRONG:"neutralStrong",SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info",TRANSPARENT:"transparent"},C={SMALL:"small",MEDIUM:"medium",LARGE:"large"},n={TOP:"top",LEFT:"left"},i=m({name:"Card",components:{DsDivider:p,DsLoadingBar:B},props:{headerHasPadding:{type:Boolean,default:!1},dividerUnderHeader:{type:Boolean,default:!1},hasBorder:{type:Boolean,default:!1},borderPosition:{type:String,default:n.TOP},borderSize:{type:String,default:C.LARGE},borderColor:{type:String,default:g.NEUTRAL_HEAVY},hasLoadingBar:{type:Boolean,default:!1},loadingBarColor:{type:String,default:c.NEUTRAL_HEAVY},loadingBarTime:{type:String,default:"0"}},computed:{hasLeftBoarder(){return this.hasBorder&&this.borderPosition===n.LEFT&&!this.hasLoadingBar},hasTopBoarder(){return this.hasBorder&&this.borderPosition===n.TOP||this.hasLoadingBar},borderColorClass(){return this.hasLoadingBar?"-ds-border-color-transparent":`-ds-border-color-${this.borderColor}`},borderSizeClass(){return!this.hasBorder&&!this.hasLoadingBar?"":`-ds-border-size-${this.borderSize}`}}}),R={key:3,class:"ds-card__content"};function _(e,L,S,b,A,E){const u=l("ds-loading-bar"),f=l("ds-divider");return a(),o("div",{class:d({"ds-card":!0,[e.borderColorClass]:!0,[e.borderSizeClass]:!0,"-ds-top-border":e.hasTopBoarder,"-ds-left-border":e.hasLeftBoarder})},[e.hasLoadingBar?(a(),t(u,{key:0,class:"ds-card__loadingBar",time:e.loadingBarTime,color:e.loadingBarColor,size:e.borderSize},null,8,["time","color","size"])):r("",!0),e.$slots.header?(a(),o("div",{key:1,class:d(["ds-card__header",{"-ds-withPadding":e.headerHasPadding}])},[s(e.$slots,"header",{},void 0,!0)],2)):r("",!0),e.$slots.header&&e.$slots.content&&e.dividerUnderHeader?(a(),t(f,{key:2,class:d(["ds-card__headerDivider",{"-ds-withHorizontalMargin":e.headerHasPadding}])},null,8,["class"])):r("",!0),e.$slots.content?(a(),o("div",R,[s(e.$slots,"content",{},void 0,!0)])):r("",!0),s(e.$slots,"footer",{},void 0,!0)],2)}const D=h(i,[["render",_],["__scopeId","data-v-b900d6c2"]]);i.__docgenInfo={displayName:"Card",exportName:"default",description:"",tags:{},props:[{name:"headerHasPadding",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"dividerUnderHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"hasBorder",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"borderPosition",type:{name:"CardBorderPositions"},defaultValue:{func:!1,value:"CARD_BORDER_POSITIONS.TOP"}},{name:"borderSize",type:{name:"CardBorderSizes"},defaultValue:{func:!1,value:"CARD_BORDER_SIZES.LARGE"}},{name:"borderColor",type:{name:"CardBorderColors"},defaultValue:{func:!1,value:"CARD_BORDER_COLORS.NEUTRAL_HEAVY"}},{name:"hasLoadingBar",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"loadingBarColor",type:{name:"LoadingBarColors"},defaultValue:{func:!1,value:"LOADING_BAR_COLORS.NEUTRAL_HEAVY"}},{name:"loadingBarTime",type:{name:"string"},defaultValue:{func:!1,value:"'0'"}}],slots:[{name:"header"},{name:"content"},{name:"footer"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Cards/Card/Card.vue"]};export{D as C,g as a,C as b,n as c};
@@ -1 +0,0 @@
1
- import{d as u,b as c,h as f,e as a,r as s,o as t,a as r,j as m,k as x,f as n,c as E,g as C}from"./vue.esm-bundler-DD4BrEtS.js";import{C as h}from"./Card-KSW_Q55y.js";import{a as b,b as I,I as v}from"./Icon-DLflpryl.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o=u({name:"CardExpandable",components:{DsCard:h,DsIcon:b},props:{isExpanded:{type:Boolean,default:!1},isExpanderVisible:{type:Boolean,default:!0},expanderTextCollapsed:{type:String,default:"Rozwiń"},expanderTextExpanded:{type:String,default:"Zwiń"},headerHasPadding:{type:Boolean,default:!1},dividerUnderHeader:{type:Boolean,default:!1}},emits:{"update:isExpanded":e=>!0},data(){return{isExpandedInternal:!1,ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(I)}},computed:{chevronRotation(){return this.isExpandedInternal?180:null}},watch:{isExpanded:{handler(e){e!==this.isExpandedInternal&&(this.isExpandedInternal=e)},immediate:!0}},methods:{onExpanderClick(){this.isExpandedInternal=!this.isExpandedInternal,this.$emit("update:isExpanded",this.isExpandedInternal)}}}),_={key:0,class:"ds-cardExpandable__expandedContent"},g={class:"ds-cardExpandable__expanderLabel"};function S(e,d,N,V,k,O){const i=s("ds-icon"),l=s("ds-card");return t(),c(l,{class:"ds-cardExpandable","header-has-padding":e.headerHasPadding,"divider-under-header":e.dividerUnderHeader},f({header:a(()=>[n(e.$slots,"header",{},void 0,!0)]),content:a(()=>[n(e.$slots,"content",{isExpanded:e.isExpandedInternal},void 0,!0),e.isExpandedInternal?(t(),E("div",_,[n(e.$slots,"expandedContent",{},void 0,!0)])):C("",!0)]),_:2},[e.isExpanderVisible?{name:"footer",fn:a(()=>[r("div",{class:"ds-cardExpandable__expander",onClick:d[0]||(d[0]=(...p)=>e.onExpanderClick&&e.onExpanderClick(...p))},[r("span",g,x(e.isExpandedInternal?e.expanderTextExpanded:e.expanderTextCollapsed),1),m(i,{class:"ds-cardExpandable__expanderIcon",icon:e.ICONS.FA_CHEVRON_DOWN,rotation:e.chevronRotation,size:e.ICON_SIZES.X_SMALL},null,8,["icon","rotation","size"])])]),key:"0"}:void 0]),1032,["header-has-padding","divider-under-header"])}const z=y(o,[["render",S],["__scopeId","data-v-762d08c5"]]);o.__docgenInfo={displayName:"CardExpandable",exportName:"default",description:"",tags:{},props:[{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isExpanderVisible",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanderTextCollapsed",type:{name:"string"},defaultValue:{func:!1,value:"'Rozwiń'"}},{name:"expanderTextExpanded",type:{name:"string"},defaultValue:{func:!1,value:"'Zwiń'"}},{name:"headerHasPadding",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"dividerUnderHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:isExpanded",type:{names:["undefined"]}}],slots:[{name:"header"},{name:"content",scoped:!0,bindings:[{name:"is-expanded",title:"binding"}]},{name:"expandedContent"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Cards/CardExpandable/CardExpandable.vue"]};export{z as C};
@@ -1 +0,0 @@
1
- import{d as u,b as i,r,o as c}from"./vue.esm-bundler-DD4BrEtS.js";import{S as p,a as d,b as f,c as C}from"./SelectionControl-JHBohZVS.js";import{I as m}from"./Icon-DLflpryl.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={...d},o={...p},a=u({name:"Checkbox",components:{SelectionControl:f},props:{size:{type:String,default:s.SMALL,validator(e){return Object.values(s).includes(e)}},label:{type:String,default:null},isSelected:{type:Boolean,default:!1},state:{type:String,default:o.DEFAULT,validator(e){return Object.values(o).includes(e)}}},emits:["update:is-selected","input:focus","input:blur"],data(){return{SELECTION_CONTROL_TYPE:Object.freeze(C),ICONS:Object.freeze(m)}}});function O(e,t,E,T,_,I){const l=r("selection-control");return c(),i(l,{size:e.size,label:e.label,"is-selected":e.isSelected,"selected-icon":e.ICONS.FA_SQUARE_CHECK_SOLID,"not-selected-icon":e.ICONS.FA_SQUARE,state:e.state,type:e.SELECTION_CONTROL_TYPE.CHECKBOX,"onUpdate:isSelected":t[0]||(t[0]=n=>e.$emit("update:is-selected",n)),"onInput:focus":t[1]||(t[1]=n=>e.$emit("input:focus")),"onInput:blur":t[2]||(t[2]=n=>e.$emit("input:blur"))},null,8,["size","label","is-selected","selected-icon","not-selected-icon","state","type"])}const b=S(a,[["render",O]]);a.__docgenInfo={displayName:"Checkbox",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"CheckboxSize"},defaultValue:{func:!1,value:"CHECKBOX_SIZE.SMALL"}},{name:"label",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"state",type:{name:"CheckboxState"},defaultValue:{func:!1,value:"CHECKBOX_STATE.DEFAULT"}}],events:[{name:"update:is-selected"},{name:"input:focus"},{name:"input:blur"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Form/Checkbox/Checkbox.vue"]};const k=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));export{o as C,b as D,s as a,k as b};
@@ -1 +0,0 @@
1
- import{d as y,c as s,a as i,b as n,g as l,e as v,n as r,k as u,f,r as o,o as a,l as S}from"./vue.esm-bundler-DD4BrEtS.js";import{D as _,g as C,d as T}from"./Button-DTM9D6tQ.js";import{D,b as N,a as O}from"./Divider-9o-i_zKL.js";import{I as w}from"./IconButton-jIBOZaL6.js";import{C as k}from"./Chip-C-ttDDPa.js";import{a as R,b as L,I as V}from"./Icon-DLflpryl.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g={NEUTRAL_STRONG:"neutralStrong",NEUTRAL_WEAK:"neutralWeak"},p=y({name:"DrawerHeader",components:{DsButton:_,Divider:D,Icon:R,IconButton:w,Chip:k},props:{eyebrowText:{type:String,default:null},isInteractiveEyebrow:{type:Boolean,default:!1},eyebrowEllipsis:{type:Boolean,default:!1},title:{type:String,default:null},titleEllipsis:{type:Boolean,default:!1},titleColor:{type:String,default:g.NEUTRAL_STRONG},leftIcon:{type:[Object,null],default:null},chipLabel:{type:String,default:null},isClosable:{type:Boolean,default:!0},hasDivider:{type:Boolean,default:!1},isSecondLevel:{type:Boolean,default:!1}},emits:["backClicked","close","eyebrowClicked"],data(){return{BUTTON_TYPES:Object.freeze(T),DIVIDER_SIZES:Object.freeze(O),DIVIDER_PROMINENCES:Object.freeze(N),ICONS:Object.freeze(V),ICON_BUTTON_SIZES:Object.freeze(C),ICON_SIZES:Object.freeze(L)}}}),H={class:"ds-drawerHeader"},$={class:"ds-drawerHeader__titleWrapper"},A={class:"ds-drawerHeader__title"},h=["title"],z={key:3},U={key:1,class:"ds-drawerHeader__actions"};function j(e,t,Z,M,W,P){const c=o("ds-button"),m=o("icon"),E=o("chip"),I=o("icon-button"),b=o("divider");return a(),s("div",H,[i("div",$,[e.isSecondLevel?(a(),n(c,{key:0,"icon-left":e.ICONS.FA_CHEVRON_LEFT,type:e.BUTTON_TYPES.TEXT,class:"ds-drawerHeader__secondLevel",onClick:t[0]||(t[0]=d=>e.$emit("backClicked"))},{default:v(()=>t[3]||(t[3]=[S(" Wróć ")])),_:1},8,["icon-left","type"])):l("",!0),i("div",{class:r([{"-ds-hidden":e.isSecondLevel},"ds-drawerHeader__firstLevel"])},[e.eyebrowText?(a(),s("span",{key:0,class:r([{"-ds-isInteractive":e.isInteractiveEyebrow,"-ds-ellipsis":e.eyebrowEllipsis},"ds-drawerHeader__eyebrow"]),onClick:t[1]||(t[1]=d=>e.isInteractiveEyebrow&&e.$emit("eyebrowClicked"))},u(e.eyebrowText),3)):l("",!0),i("div",A,[e.leftIcon?(a(),n(m,{key:0,icon:e.leftIcon,size:e.ICON_SIZES.X_SMALL,class:"ds-drawerHeader__leftIcon"},null,8,["icon","size"])):l("",!0),e.title?(a(),s("span",{key:1,class:r(["ds-drawerHeader__titleText",{"-ds-ellipsis":e.titleEllipsis,[`-ds-${e.titleColor}`]:!0}]),title:e.titleEllipsis?e.title:void 0},u(e.title),11,h)):l("",!0),e.chipLabel?(a(),n(E,{key:2,label:e.chipLabel},null,8,["label"])):l("",!0),e.$slots.titleTrailing?(a(),s("div",z,[f(e.$slots,"titleTrailing",{},void 0,!0)])):l("",!0)])],2),e.$slots.actions?(a(),s("div",U,[f(e.$slots,"actions",{},void 0,!0)])):l("",!0),e.isClosable?(a(),n(I,{key:2,icon:e.ICONS.FA_XMARK,size:e.ICON_BUTTON_SIZES.MEDIUM,touchable:!1,onClick:t[2]||(t[2]=d=>e.$emit("close"))},null,8,["icon","size"])):l("",!0)]),e.hasDivider?(a(),n(b,{key:0,size:e.DIVIDER_SIZES.L,prominence:e.DIVIDER_PROMINENCES.WEAK},null,8,["size","prominence"])):l("",!0)])}const Q=B(p,[["render",j],["__scopeId","data-v-5b63b67e"]]);p.__docgenInfo={displayName:"DrawerHeader",exportName:"default",description:"",tags:{},props:[{name:"eyebrowText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isInteractiveEyebrow",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"title",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"titleEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"titleColor",type:{name:"DrawerHeaderTitleColor"},defaultValue:{func:!1,value:"DRAWER_HEADER_TITLE_COLORS.NEUTRAL_STRONG"}},{name:"leftIcon",type:{name:"object|null"},defaultValue:{func:!1,value:"null"}},{name:"chipLabel",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isClosable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSecondLevel",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"backClicked"},{name:"eyebrowClicked"},{name:"close"}],slots:[{name:"titleTrailing"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue"]};export{Q as D,g as a};
@@ -1 +0,0 @@
1
- import{p as n,c as t}from"./Tile-C-0-l9Zd.js";import{d as a,c as i,j as c,p,r as l,o as m}from"./vue.esm-bundler-DD4BrEtS.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o=a({name:"DrawerTile",components:{DsTile:t},props:n,emits:{click:()=>!0}}),_={class:"ds-drawerTile"};function f(e,s,u,w,D,T){const r=l("ds-tile");return m(),i("div",_,[c(r,p(e.$props,{onClick:s[0]||(s[0]=k=>e.$emit("click"))}),null,16)])}const y=d(o,[["render",f],["__scopeId","data-v-3aa8c837"]]);o.__docgenInfo={displayName:"DrawerTile",exportName:"default",description:"",tags:{},events:[{name:"click"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerTile/DrawerTile.vue"]};export{y as D};
@@ -1 +0,0 @@
1
- import{V as u}from"./vue-popper-DoPHnofs.js";import{d as m,b as c,e as s,r as f,o as O,a,n,s as h,f as i}from"./vue.esm-bundler-DD4BrEtS.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={CLICK:"click",HOVER:"hover"},o={TOP:"top",BOTTOM:"bottom",BOTH:"both"},l={BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end"},d=m({name:"Dropdown",components:{VuePopper:u},props:{boundariesSelector:{type:String,default:null},forceShow:{type:Boolean,default:!1},sameWidth:{type:Boolean,default:!1},triggerAction:{type:String,default:r.CLICK,validator(e){return Object.values(r).includes(e)}},radius:{type:String,default:o.BOTH,validate(e){return Object.values(o).includes(e)}},placement:{type:String,default:l.BOTTOM_START,validate(e){return Object.values(l).includes(e)}},maxHeight:{type:String,default:null}},emits:["document-click","hide","show"],data(){return{key:1,isOpened:!1,DROPDOWN_RADIUSES:Object.freeze(o)}},computed:{scrollableWrapperStyles(){return{...this.maxHeight&&{maxHeight:this.maxHeight}}},options(){return{modifiers:{preventOverflow:{padding:0}},placement:this.placement,...this.sameWidth&&{onUpdate:({instance:{reference:e,popper:t}})=>{t.style.width=`${e.offsetWidth}px`}}}}},watch:{triggerAction(){this.updateKey()},sameWidth(){this.updateKey()},boundariesSelector(){this.updateKey()},placement(){this.updateKey()}},methods:{close(){this.isOpened=!1,this.$refs.popper.doClose()},updateKey(){this.key++},onHide(){this.isOpened=!1,this.$emit("hide")},onShow(){this.isOpened=!0,this.$emit("show")}}});function g(e,t,D,y,T,v){const p=f("vue-popper");return O(),c(p,{ref:"popper",key:e.key,"boundaries-selector":e.boundariesSelector,"force-show":e.forceShow,options:e.options,"visible-arrow":!1,trigger:e.triggerAction,"delay-on-mouse-out":300,onDocumentClick:t[0]||(t[0]=b=>e.$emit("document-click")),onHide:e.onHide,onShow:e.onShow},{reference:s(()=>[i(e.$slots,"reference",{isOpened:e.isOpened},void 0,!0)]),default:s(()=>[a("div",{class:n(["popper ds-dropdown",{"-ds-radiusBottom":e.radius===e.DROPDOWN_RADIUSES.BOTTOM,"-ds-radiusTop":e.radius===e.DROPDOWN_RADIUSES.TOP,"-ds-radiusBottom -ds-radiusTop":e.radius===e.DROPDOWN_RADIUSES.BOTH}])},[a("div",{class:n(["ds-dropdown__scrollableWrapper",{"-ds-heightLimited":!!e.maxHeight}]),style:h(e.scrollableWrapperStyles)},[i(e.$slots,"default",{close:e.close},void 0,!0)],6)],2)]),_:3},8,["boundaries-selector","force-show","options","trigger","onHide","onShow"])}const W=S(d,[["render",g],["__scopeId","data-v-2c4712ca"]]);d.__docgenInfo={displayName:"Dropdown",exportName:"default",description:"",tags:{},props:[{name:"boundariesSelector",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"forceShow",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"sameWidth",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"triggerAction",type:{name:"string"},defaultValue:{func:!1,value:"DROPDOWN_TRIGGER_ACTIONS.CLICK"}},{name:"radius",type:{name:"string"},defaultValue:{func:!1,value:"DROPDOWN_RADIUSES.BOTH"}},{name:"placement",type:{name:"string"},defaultValue:{func:!1,value:"DROPDOWN_PLACEMENTS.BOTTOM_START"}},{name:"maxHeight",type:{name:"string"},defaultValue:{func:!1,value:"null"}}],events:[{name:"document-click"},{name:"hide"},{name:"show"}],slots:[{name:"default",scoped:!0,bindings:[{name:"close",title:"binding"}]},{name:"reference",scoped:!0,bindings:[{name:"is-opened",title:"binding"}]}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Dropdown/Dropdown.vue"]};export{W as D,l as a,o as b,r as c};
@@ -1 +0,0 @@
1
- import{d as g,t as D,c as l,g as s,a as d,f as o,n as i,j as f,x as c,s as p,b,r as C,o as t}from"./vue.esm-bundler-DD4BrEtS.js";import{D as M}from"./Divider-9o-i_zKL.js";import{D as V}from"./Checkbox-yVtwyPI-.js";import{a as $,b as U,I as v,c as z}from"./Icon-DLflpryl.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={DEFAULT:"default",FLAT:"flat"},n={DEFAULT:"default",LOADING:"loading",DRAG:"drag"},m={SMALL:"small",MEDIUM:"medium"},y={DEFAULT:"default",PRIMARY:"primary",PRIMARY_WEAK:"primary-weak",NEUTRAL_HEAVY:"neutral-heavy",NEUTRAL_STRONG:"neutral-strong",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak",NEUTRAL_GHOST:"neutral-ghost",DANGER:"danger",DANGER_WEAK:"danger-weak",FAIL:"fail",FAIL_WEAK:"fail-weak",WARNING:"warning",WARNING_WEAK:"warning-weak",SUCCESS:"success",SUCCESS_WEAK:"success-weak",INFO:"info",INFO_WEAK:"info-weak",ACCENT:"accent",ACCENT_WEAK:"accent-weak"},L={NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak"},G={SMALL:"small"},I={HORIZONTAL:"horizontal",VERTICAL:"vertical"},E=g({name:"RichListItem",components:{DsCheckbox:V,DsDivider:M,DsIcon:$},props:{type:{type:String,default:r.DEFAULT,validator(e){return Object.values(r).includes(e)}},layout:{type:String,default:I.HORIZONTAL,validator(e){return Object.values(I).includes(e)}},state:{type:String,default:n.DEFAULT,validator(e){return Object.values(n).includes(e)}},size:{type:String,default:m.MEDIUM,validator(e){return Object.values(m).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(v).includes(D(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(z).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(y).includes(e)}},borderColorHex:{type:String,default:null},draggableIconClassName:{type:String,default:null},backgroundColor:{type:String,default:L.NEUTRAL,validator(e){return Object.values(L).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(G).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1}},emits:{"icon-click":()=>!0,click:e=>!0,"update:is-selected":e=>!0},data(){return{ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(U),RICH_LIST_ITEM_TYPE:Object.freeze(r),RICH_LIST_ITEM_STATE:Object.freeze(n),RICH_LIST_ITEM_SIZE:Object.freeze(m)}},computed:{classList(){return{"-ds-default":this.type===r.DEFAULT,"-ds-flat":this.type===r.FLAT,"-ds-horizontal":this.isHorizontal,"-ds-verticalWithMedia":this.isVertical&&this.hasMedia,"-ds-vertical":this.isVertical,"-ds-loading":this.state===n.LOADING,"-ds-dimmed":this.isDimmed,"-ds-interactive":this.isInteractive,"-ds-small":this.size===m.SMALL,...this.backgroundColor&&this.type!==r.FLAT&&{[`-ds-background-${this.backgroundColor}`]:!0},...this.elevation&&this.type!==r.FLAT&&{[`-ds-elevation-${this.elevation}`]:!0},"-ds-draggable":this.isDraggable,"-ds-draggable-without-handler":this.isDraggable&&!this.hasDraggableHandler,"-ds-has-media":this.hasMedia,"-ds-drag":this.isDragging}},isHorizontal(){return this.layout===I.HORIZONTAL},isVertical(){return this.layout===I.VERTICAL},iconColorClass(){if(!(!this.iconColor||this.iconColor&&this.iconColorHex))return`-ds-${this.iconColor}`},iconColorStyle(){if(!(!this.iconColor||!this.iconColorHex))return{color:this.iconColorHex}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}},hasMedia(){return!!this.$slots.media},isDragging(){return this.isDraggable&&this.state===n.DRAG}}}),B={key:0,class:"ds-richListItem__mediaVertical -ds-dimmable"},j={class:"ds-richListItem__container -ds-dimmable"},F={key:0,class:"ds-richListItem__mediaHorizontal"},w={key:2,class:"ds-richListItem__iconWrapper"},Z={class:"ds-richListItem__content"},K={class:"ds-richListItem__rightContainer"},W={key:0,class:"ds-richListItem__metadata"},P={key:2,class:"ds-richListItem__checkbox"},Y={key:1,class:"ds-richListItem__metadata -ds-dimmable"};function X(e,a,A,O,k,N){const h=C("ds-icon"),_=C("ds-divider"),H=C("ds-checkbox");return t(),l("div",{class:i(["ds-richListItem",e.classList]),onClick:a[5]||(a[5]=u=>e.$emit("click",u))},[e.hasMedia&&e.isVertical?(t(),l("div",B,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),d("div",j,[e.hasMedia&&e.isHorizontal?(t(),l("div",F,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),e.isDraggable&&e.hasDraggableHandler?(t(),l("div",{key:1,class:i(["ds-richListItem__dragAndDrop",{[e.draggableIconClassName]:!!e.draggableIconClassName}])},[f(h,{icon:e.ICONS.FA_BARS,class:"ds-richListItem__dragAndDropIcon",size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,onClick:a[0]||(a[0]=c(()=>{},["stop"]))},null,8,["icon","size"])],2)):s("",!0),e.icon?(t(),l("div",w,[f(h,{icon:e.icon,class:i(["ds-richListItem__icon",e.iconColorClass]),size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,style:p(e.iconColorStyle),onClick:a[1]||(a[1]=c(u=>e.$emit("icon-click"),["prevent"]))},null,8,["icon","size","class","style"])])):s("",!0),d("div",Z,[o(e.$slots,"content",{},void 0,!0)]),d("div",K,[e.$slots.metadata&&e.isHorizontal?(t(),l("div",W,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.$slots.actions?(t(),l("div",{key:1,class:"ds-richListItem__actionSlot",onClick:a[2]||(a[2]=c(()=>{},["stop"]))},[e.$slots.actions&&e.hasActionsSlotDivider&&e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),o(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),l("div",P,[e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),f(H,{"is-selected":e.isSelected,"onUpdate:isSelected":a[3]||(a[3]=u=>e.$emit("update:is-selected",u)),onClick:a[4]||(a[4]=c(()=>{},["stop"]))},null,8,["is-selected"])])):s("",!0)])]),e.$slots.metadata&&e.isVertical?(t(),l("div",Y,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:2,class:i(["ds-richListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const re=R(E,[["render",X],["__scopeId","data-v-306ca009"]]);E.__docgenInfo={displayName:"RichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"draggableIconClassName",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"click"},{name:"icon-click"},{name:"update:is-selected"}],slots:[{name:"media"},{name:"content"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/RichListItem/RichListItem.vue"]};const q={...y},S={...L},T=g({name:"GroupRichListItem",props:{isExpanded:{type:Boolean,default:!1},borderColor:{type:String,default:null,validator(e){return Object.values(q).includes(e)}},borderColorHex:{type:String,default:null},backgroundColor:{type:String,default:S.NEUTRAL,validator(e){return Object.values(S).includes(e)}}},computed:{classList(){return{...this.backgroundColor&&{[`-ds-background-${this.backgroundColor}`]:!0}}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}}}}),J={class:"ds-groupRichListItem__wrapper"},Q={class:"ds-groupRichListItem__parent"},x={key:0,class:"ds-groupRichListItem__children"};function ee(e,a,A,O,k,N){return t(),l("div",{class:i(["ds-groupRichListItem",e.classList])},[d("div",J,[d("div",Q,[o(e.$slots,"parent",{},void 0,!0)]),e.isExpanded?(t(),l("div",x,[o(e.$slots,"children",{},void 0,!0)])):s("",!0)]),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:0,class:i(["ds-groupRichListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ie=R(T,[["render",ee],["__scopeId","data-v-f6870d20"]]);T.__docgenInfo={displayName:"GroupRichListItem",exportName:"default",description:"",tags:{},props:[{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"borderColor",type:{name:"GroupRichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"GroupRichListItemBackgroundColor"},defaultValue:{func:!1,value:"GROUP_RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}}],slots:[{name:"parent"},{name:"children"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue"]};export{ie as G,G as R,L as a,y as b,n as c,I as d,m as e,r as f,S as g,re as h,q as i};