@bethinkpl/design-system 29.2.1 → 29.3.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.
- package/dist/RadioButton-CnwgXzEL.js +63 -0
- package/dist/RadioButton-CnwgXzEL.js.map +1 -0
- package/dist/design-system.css +1 -1
- package/dist/design-system.js +116 -114
- package/dist/index-BC36rU9e.js +25376 -0
- package/dist/index-BC36rU9e.js.map +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +1 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +1 -0
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +4 -0
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +3 -0
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +2 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +2 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +2 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +2 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +3 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.consts.d.ts +6 -2
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +65 -7
- package/dist/lib/js/components/ProgressBar/ProgressBarLegend.consts.d.ts +12 -0
- package/dist/lib/js/components/ProgressBar/ProgressBarLegend.vue.d.ts +24 -0
- package/dist/lib/js/components/ProgressBar/ProgressBarLegendItem.vue.d.ts +29 -0
- package/dist/lib/js/components/ProgressBar/index.d.ts +1 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -0
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +3 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +3 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +1 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -0
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/dist/lib/js/index.d.ts +1 -0
- package/docs/assets/{AccessStatus-6RrquOtX.js → AccessStatus-CKL9Dmhn.js} +1 -1
- package/docs/assets/{AccessStatus.stories-Bsqyb22o.js → AccessStatus.stories-BfrBEU3-.js} +1 -1
- package/docs/assets/{Avatar-BcCt6j3Z.js → Avatar-6vv7ByrM.js} +1 -1
- package/docs/assets/{Avatar.stories-YUJQonrb.js → Avatar.stories-CmABY1Ry.js} +1 -1
- package/docs/assets/{Badge-_nJoBw3C.js → Badge-CGSn8HBe.js} +1 -1
- package/docs/assets/{Badge.stories-B-VcdDWa.js → Badge.stories-CaxYXDFU.js} +1 -1
- package/docs/assets/{BadgeScore-C1ncR4kj.js → BadgeScore-B4K0jdwQ.js} +1 -1
- package/docs/assets/{BadgeScore.stories-BYyf-cLS.js → BadgeScore.stories-BeqWmoL7.js} +1 -1
- package/docs/assets/{Banner-BcnYflQg.js → Banner-pv7sfD95.js} +1 -1
- package/docs/assets/{Banner.stories-B9NChHfT.js → Banner.stories-Rdwi1Tdx.js} +1 -1
- package/docs/assets/{BasicRichListItem-CvsA5xHV.js → BasicRichListItem-Bt97jels.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-DznFeq73.js → BasicRichListItem.stories-B3LSA5Ic.js} +2 -2
- package/docs/assets/{BlockadeStatus--5l5BVd9.js → BlockadeStatus-Czv84vXt.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-8GlaHCEz.js → BlockedeStatus.stories-BWviq2bI.js} +1 -1
- package/docs/assets/{Button-B94D9rfG.js → Button-CoyY6G5X.js} +1 -1
- package/docs/assets/{Button.stories-DBTCrvT-.js → Button.stories-BMHYR736.js} +1 -1
- package/docs/assets/{Card-BlnGdF9X.js → Card-Cfm-79Gl.js} +1 -1
- package/docs/assets/{Card.stories-CGm5MkC7.js → Card.stories-CwGTmuOi.js} +1 -1
- package/docs/assets/{CardExpandable-DZTIPKT0.js → CardExpandable-BvkNuHVj.js} +1 -1
- package/docs/assets/{CardExpandable.stories-B49sSgjI.js → CardExpandable.stories-CNIGCFpo.js} +1 -1
- package/docs/assets/{Checkbox-DszBECh_.js → Checkbox-BWpvE7c6.js} +1 -1
- package/docs/assets/{Checkbox.stories-BvJ9r9tj.js → Checkbox.stories-D8AfOL-o.js} +1 -1
- package/docs/assets/{Chip-BAzh6NQh.js → Chip-Bkc_Am1X.js} +1 -1
- package/docs/assets/{Chip.stories-DiXgts6u.js → Chip.stories-Xi2YV5_y.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-DNDBr2Lw.js → Color-ERTF36HU-DYApUIcb.js} +1 -1
- package/docs/assets/{Colors.stories-BtNgjWxi.js → Colors.stories-BDCCkZg8.js} +1 -1
- package/docs/assets/{ColorsThemes.stories-Ct0Ai41o.js → ColorsThemes.stories-Dg55KCzR.js} +1 -1
- package/docs/assets/{ColorsTokensLms.stories-BP-WMJrS.js → ColorsTokensLms.stories-5BsvfIGh.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryBodywork.stories-zdX-tf4x.js → ColorsTokensPrimaryBodywork.stories-huDvcr5H.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryWnl.stories-DFVUj_99.js → ColorsTokensPrimaryWnl.stories-DYE-2tIP.js} +1 -1
- package/docs/assets/{CounterToggle-BY6TBtkk.js → CounterToggle-BdbJpfah.js} +1 -1
- package/docs/assets/{CounterToggle.stories-D-yMsFVH.js → CounterToggle.stories-DMmO0ghU.js} +1 -1
- package/docs/assets/{DateBox.stories-1irTl63N.js → DateBox.stories-1yADjuFG.js} +1 -1
- package/docs/assets/{DatePicker-ByIcer5b.js → DatePicker-BYTfqwtn.js} +1 -1
- package/docs/assets/{DatePicker.stories-YnlJI8-n.js → DatePicker.stories-VM43k94o.js} +1 -1
- package/docs/assets/{DateRangePicker-BptvC2tB.js → DateRangePicker-CuKtKGUK.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-1rkFeu2B.js → DateRangePicker.stories-C8zrjbHt.js} +1 -1
- package/docs/assets/{Divider-NOTDPuJ1.js → Divider-GLNEyt1v.js} +1 -1
- package/docs/assets/{Divider.stories-Cjyx7utt.js → Divider.stories-CFtU3ER6.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-7UkMmLSl.js → DocsRenderer-CFRXHY34-DPtMtGg6.js} +5 -5
- package/docs/assets/{Drawer-CrAn35Yo.js → Drawer-BhUWahlN.js} +1 -1
- package/docs/assets/{Drawer.stories-iInS0JV5.js → Drawer.stories-B0-VK4H7.js} +1 -1
- package/docs/assets/{DrawerContent-DAIzyQNz.js → DrawerContent-CrWEJHiH.js} +1 -1
- package/docs/assets/{DrawerContent.stories-CBpbbVk_.js → DrawerContent.stories-BWVSAOvK.js} +1 -1
- package/docs/assets/{DrawerDivider-CKRXkKRz.js → DrawerDivider-xjDbe7dA.js} +1 -1
- package/docs/assets/{DrawerDivider.stories-iQ2J_ExP.js → DrawerDivider.stories-aQ5yJPRb.js} +1 -1
- package/docs/assets/{DrawerHeader-BwegM1fx.js → DrawerHeader-DdaoTm6b.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-K6gxVRV-.js → DrawerHeader.stories-ccykPtCk.js} +1 -1
- package/docs/assets/{DrawerListItem-DvBfK0Hb.js → DrawerListItem-DfTABx8B.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-BQT73CbZ.js → DrawerListItem.stories-D-FZzTMx.js} +1 -1
- package/docs/assets/{DrawerListItemGroup-SEWltKLJ.js → DrawerListItemGroup-CJEAM-Cj.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories--DjTbAT3.js → DrawerListItemGroup.stories-g-_oxrRG.js} +1 -1
- package/docs/assets/{DrawerSection-BKYUXNfm.js → DrawerSection-xxKzDEsA.js} +1 -1
- package/docs/assets/{DrawerSection.stories-BBO65rId.js → DrawerSection.stories-B1tyxPSs.js} +1 -1
- package/docs/assets/{DrawerTile-CLcq_Ubm.js → DrawerTile-DmywJ3y2.js} +1 -1
- package/docs/assets/{DrawerTile.stories-DbLfOV-a.js → DrawerTile.stories-BkyiW5v5.js} +1 -1
- package/docs/assets/{Dropdown-Bdrd2ZIh.js → Dropdown-B251So_M.js} +1 -1
- package/docs/assets/{Dropdown.stories-BpwaldeL.js → Dropdown.stories-BTR1cBmp.js} +1 -1
- package/docs/assets/{FeatureIcon-BToReWwn.js → FeatureIcon-DlSsCT-N.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-CgPr_HvJ.js → FeatureIcon.stories-Dd3es7Zp.js} +1 -1
- package/docs/assets/{FormField-o0Nbl5Xc.js → FormField-9b6SZuZX.js} +1 -1
- package/docs/assets/{FormField.stories-BT1y_kRT.js → FormField.stories-nWDxULUL.js} +1 -1
- package/docs/assets/{FormField.stories.shared-C7iHaKgG.js → FormField.stories.shared-BgsGljga.js} +1 -1
- package/docs/assets/{FormFieldMessage-j77PwDtU.js → FormFieldMessage-B4QT7U15.js} +1 -1
- package/docs/assets/{FormFieldMessage.stories-BmHxg-JM.js → FormFieldMessage.stories-D6SF2qUQ.js} +1 -1
- package/docs/assets/{GroupRichListItem-Ch7gwzMP.js → GroupRichListItem-1ZgkDTYR.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-B3fRNHr4.js → GroupRichListItem.stories-B8GKQ41b.js} +1 -1
- package/docs/assets/{HelpButton-BiWg2Xeu.js → HelpButton-NbGTgq8g.js} +1 -1
- package/docs/assets/{HelpButton.stories-Dj9cwFXK.js → HelpButton.stories-dYyl8Ajp.js} +1 -1
- package/docs/assets/{Icon-CJfhJHwv.js → Icon-NI6HBKO2.js} +10 -6
- package/docs/assets/{Icon.stories-Cj36JfMS.js → Icon.stories-BPuv-FNh.js} +1 -1
- package/docs/assets/IconButton-Dsfqv3yz.js +1 -0
- package/docs/assets/{IconButton.stories-4ROLBnvi.js → IconButton.stories-Df-JZlkP.js} +1 -1
- package/docs/assets/{IconText-DOjS8CFo.js → IconText-DeslOYu5.js} +1 -1
- package/docs/assets/{IconText.stories-DB7GTKW7.js → IconText.stories-B27vypOW.js} +1 -1
- package/docs/assets/{Image-B7PRENWe.js → Image-CfXOhuw2.js} +1 -1
- package/docs/assets/{Image.stories-DkYrm30P.js → Image.stories-DCHqfUW3.js} +1 -1
- package/docs/assets/{InputField-DJjokbZM.js → InputField-UVli5f6b.js} +1 -1
- package/docs/assets/{InputField.stories-gh5xDYbK.js → InputField.stories-ClgEGuuG.js} +1 -1
- package/docs/assets/{ItemsList-nTRSgJDP.js → ItemsList-MTdAgwyY.js} +1 -1
- package/docs/assets/{LoadingBar-DGNrwKu4.js → LoadingBar-CKSXAM-I.js} +1 -1
- package/docs/assets/{LoadingBar.stories-owR_6Oqy.js → LoadingBar.stories-m7-KOBdV.js} +1 -1
- package/docs/assets/{Modal-C7iR9oQ6.js → Modal-DTJAE74l.js} +1 -1
- package/docs/assets/{Modal.stories-BmsmYQgI.js → Modal.stories-C9ZbcQCs.js} +1 -1
- package/docs/assets/{ModalDialog-CSo8UkIU.js → ModalDialog-CUrhJ6LQ.js} +1 -1
- package/docs/assets/{ModalDialog.stories-ByUzaCby.js → ModalDialog.stories-COAlx1bt.js} +1 -1
- package/docs/assets/{NumberInCircle-CE28_Nsz.js → NumberInCircle-CaSb7HI1.js} +1 -1
- package/docs/assets/{NumberInCircle.stories-DFdUVSKM.js → NumberInCircle.stories-ugFw3DwZ.js} +1 -1
- package/docs/assets/{OutlineDivider-DJ9pnpJN.js → OutlineDivider-Dnwysotd.js} +1 -1
- package/docs/assets/{OutlineDivider.stories-Dzpei9KR.js → OutlineDivider.stories-B9vyH0Uz.js} +1 -1
- package/docs/assets/{OutlineItem-DvtZG15a.js → OutlineItem-3N1zOsTr.js} +1 -1
- package/docs/assets/{OutlineItem.stories-D2hY8U2_.js → OutlineItem.stories-CxuKxpst.js} +1 -1
- package/docs/assets/{OutlineSectionHeader-CSNr7XVB.js → OutlineSectionHeader-CUMU5m59.js} +1 -1
- package/docs/assets/{OutlineSectionHeader.stories-CuJwkOKg.js → OutlineSectionHeader.stories-DI36shRr.js} +1 -1
- package/docs/assets/{OverlayHeader-DA4fpeIv.js → OverlayHeader-C-5lGAZu.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-DiOzyCPC.js → OverlayHeader.stories-DCn6fm8e.js} +1 -1
- package/docs/assets/{PageHeader-Cy-UHuRb.js → PageHeader-B0zPlNDE.js} +1 -1
- package/docs/assets/{PageHeader.stories-DlW4dler.js → PageHeader.stories-BPtwW7u7.js} +1 -1
- package/docs/assets/{Pagination-CH0GqNk-.js → Pagination-B1Qm8ipD.js} +1 -1
- package/docs/assets/{Pagination.stories-CB_u7eZP.js → Pagination.stories-D7r3QTPy.js} +1 -1
- package/docs/assets/{PasswordField-C_D138gk.js → PasswordField-DTCke8Gr.js} +1 -1
- package/docs/assets/{PasswordField.stories-DscLQADu.js → PasswordField.stories-BzUmHeV2.js} +1 -1
- package/docs/assets/{PopOver-DLjsS2et.js → PopOver-Bn4QrHXb.js} +1 -1
- package/docs/assets/{PopOver.stories-D0Xjo76q.js → PopOver.stories-XW_FKgg7.js} +1 -1
- package/docs/assets/{ProgressBar-Dj1UsIts.css → ProgressBar-BYgvOHe9.css} +1 -1
- package/docs/assets/ProgressBar-Y7_vdo2G.js +1 -0
- package/docs/assets/ProgressBar.stories-BpI8WF_M.js +106 -0
- package/docs/assets/ProgressBarLegend-CEt-pBme.css +1 -0
- package/docs/assets/ProgressBarLegend-D9fmI8_Q.js +1 -0
- package/docs/assets/ProgressBarLegend.stories-CTHPVxC_.js +21 -0
- package/docs/assets/ProgressBarLegendItem-DBa9yY6E.js +1 -0
- package/docs/assets/ProgressBarLegendItem-DNByZ9bA.css +1 -0
- package/docs/assets/ProgressBarLegendItem.stories-B8DeTq37.js +26 -0
- package/docs/assets/ProgressDonutChart-TeoCy0G3.js +1 -0
- package/docs/assets/{ProgressDonutChart.stories-DjEnOrCJ.js → ProgressDonutChart.stories-DYaTOxz1.js} +1 -1
- package/docs/assets/{RadioButton-B4B26bwA.js → RadioButton-30CGtcyR.js} +1 -1
- package/docs/assets/{RadioButton.stories-DI_odJH7.js → RadioButton.stories-Q7OkQUIz.js} +1 -1
- package/docs/assets/{RichListItem.stories-0FS4KOgO.js → RichListItem.stories-D8-KJmzV.js} +2 -2
- package/docs/assets/{SectionHeader-B-0Bn-lk.js → SectionHeader-BEr4jT8h.js} +1 -1
- package/docs/assets/{SectionHeader.stories-DMxecuyp.js → SectionHeader.stories-DSHtUSdX.js} +1 -1
- package/docs/assets/{SectionTitle-wTuJZZVS.js → SectionTitle-DDrKTXCv.js} +1 -1
- package/docs/assets/{SectionTitle.stories-Dr3KOvIl.js → SectionTitle.stories-DHZYU10N.js} +1 -1
- package/docs/assets/{SelectList-YMQ8rEMc.js → SelectList-DGd_SbLG.js} +1 -1
- package/docs/assets/{SelectList.stories-BO2EhByv.js → SelectList.stories-C86stkfP.js} +1 -1
- package/docs/assets/{SelectListItem-sjj2wPOg.js → SelectListItem-D6jbLU_Y.js} +1 -1
- package/docs/assets/{SelectListItem.stories-D7Jr_Rjw.js → SelectListItem.stories-BSmibPFW.js} +1 -1
- package/docs/assets/{SelectListItemDivider-CTU7_4OL.js → SelectListItemDivider-C5ZBkKAq.js} +1 -1
- package/docs/assets/{SelectListItemDivider.stories-rGpk0Yeg.js → SelectListItemDivider.stories-L5Oxd7Eo.js} +1 -1
- package/docs/assets/{SelectListItemTile-CUsln382.js → SelectListItemTile-C0BQGk_1.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-DIuIVWWH.js → SelectListItemTile.stories-CGbBqd9n.js} +1 -1
- package/docs/assets/{SelectListItemToggle-0rSpk6XA.js → SelectListItemToggle-w8TMej8m.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-Ddo6JlVH.js → SelectListItemToggle.stories-DpOZ1bmq.js} +1 -1
- package/docs/assets/{SelectListSectionTitle-B9Dj10G9.js → SelectListSectionTitle-BpNI0QSS.js} +1 -1
- package/docs/assets/{SelectListSectionTitle.stories-DCZ-Sq6v.js → SelectListSectionTitle.stories-DB82qSxT.js} +1 -1
- package/docs/assets/{SelectionControl-M6cEJrGP.js → SelectionControl-CWQygzcl.js} +1 -1
- package/docs/assets/{SelectionTile-BVOuKTP3.js → SelectionTile-CVbm1FQN.js} +2 -2
- package/docs/assets/{SelectionTile.stories-kbbYzzkR.js → SelectionTile.stories-CDaADzlv.js} +1 -1
- package/docs/assets/{Skeleton-D5xhZMQa.js → Skeleton-D9fhH1qX.js} +1 -1
- package/docs/assets/{Skeleton.stories-ll-E-sPN.js → Skeleton.stories-x61Ys-cO.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-DIq5sq2m.js → SurveyQuestionOpenEnded-BAnNjRqI.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-BkyaFtSM.js → SurveyQuestionOpenEnded.stories-DrMatTZx.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-C1YFeEPJ.js → SurveyQuestionScale-DZXIYUUt.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-BSjScx_Z.js → SurveyQuestionScale.stories-CjYlsDuN.js} +1 -1
- package/docs/assets/{SurveyToggle-DRRRlYMv.js → SurveyToggle-DguwCDO8.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-DmFFbx3p.js → SurveyToggle.stories-CLOTKd1_.js} +1 -1
- package/docs/assets/{Switch-myVZDsGf.js → Switch-CRLkRMDz.js} +1 -1
- package/docs/assets/{Switch.stories-Dd_aNOOy.js → Switch.stories-hfNFrQi_.js} +1 -1
- package/docs/assets/{TabItem-DXEHM_OJ.js → TabItem-Beq_DioL.js} +1 -1
- package/docs/assets/{TabItem.stories-CUfluMvM.js → TabItem.stories-CgL50VY_.js} +1 -1
- package/docs/assets/{TextGroup-BC5JAQ0O.js → TextGroup--bAkZnWi.js} +1 -1
- package/docs/assets/{TextGroup.stories-BpYwN47b.js → TextGroup.stories-RIm5WlzO.js} +1 -1
- package/docs/assets/{ThreeColumnLayout-LVzDOKfj.js → ThreeColumnLayout-Cp_9DCdw.js} +1 -1
- package/docs/assets/{ThreeColumnLayout.stories-CkgbTH3p.js → ThreeColumnLayout.stories-x0bQCo--.js} +1 -1
- package/docs/assets/{Tile--bMKlDuj.js → Tile-jzFqPN2Q.js} +1 -1
- package/docs/assets/{Tile.sb.shared-CLYuDO8R.js → Tile.sb.shared-HZrN5Yh_.js} +1 -1
- package/docs/assets/{Tile.stories-BETofu4-.js → Tile.stories-DW5hMbNj.js} +1 -1
- package/docs/assets/{Toast-CpKr8v3q.js → Toast-B-AtBUeF.js} +1 -1
- package/docs/assets/{Toast.stories-knplqPP3.js → Toast.stories-BC2256p4.js} +1 -1
- package/docs/assets/{ToggleButton-jk5NGNQU.js → ToggleButton-BRizdAy6.js} +1 -1
- package/docs/assets/{ToggleButton.stories-Cp1c8cNh.js → ToggleButton.stories-CrarLcXq.js} +1 -1
- package/docs/assets/{Tooltip-BvaJ_K9_.js → Tooltip-Dri2vN3o.js} +1 -1
- package/docs/assets/{Tooltip.stories-xtukYF4C.js → Tooltip.stories-CvsXg1BU.js} +1 -1
- package/docs/assets/{TypographyTokensLms.stories-Cm_y52b6.js → TypographyTokensLms.stories-B8wfmUfn.js} +1 -1
- package/docs/assets/{TypographyVariables.stories-DTHJ_1UO.js → TypographyVariables.stories-BXmLxaG6.js} +1 -1
- package/docs/assets/{Well-Djx9_Lkt.js → Well-BgkT37-V.js} +1 -1
- package/docs/assets/{Well.stories-CL_lOoak.js → Well.stories-VyyP7bL3.js} +1 -1
- package/docs/assets/{entry-preview-CAn2_StQ.js → entry-preview-BGI8djEi.js} +1 -1
- package/docs/assets/{entry-preview-docs-Y_6rrjxM.js → entry-preview-docs-9BJoasfm.js} +1 -1
- package/docs/assets/iframe-Cdu_IgPB.js +2 -0
- package/docs/assets/{index-CupCHp3X.js → index-01VS1SvV.js} +1 -1
- package/docs/assets/{index-CyNq9Pcs.js → index-Dd4v1DO6.js} +1 -1
- package/docs/assets/{preview-ByRMDIXv.js → preview-C8Y-TAOj.js} +2 -2
- package/docs/assets/preview-DKMlMx_S.js +64 -0
- package/docs/assets/{string-BB4EAZtA.js → string-D9E4uE5t.js} +1 -1
- package/docs/assets/{vue-popper-m_ujT3wC.js → vue-popper-CKSsDv3l.js} +2 -2
- package/docs/assets/{vue.esm-bundler-DcRN7CPI.js → vue.esm-bundler-B__7-iky.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/index.json +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/ProgressBar/ProgressBar.consts.ts +5 -1
- package/lib/js/components/ProgressBar/ProgressBar.spec.ts +68 -0
- package/lib/js/components/ProgressBar/ProgressBar.stories.ts +78 -7
- package/lib/js/components/ProgressBar/ProgressBar.vue +24 -1
- package/lib/js/components/ProgressBar/ProgressBarLegend.consts.ts +15 -0
- package/lib/js/components/ProgressBar/ProgressBarLegend.stories.ts +97 -0
- package/lib/js/components/ProgressBar/ProgressBarLegend.vue +62 -0
- package/lib/js/components/ProgressBar/ProgressBarLegendItem.stories.ts +76 -0
- package/lib/js/components/ProgressBar/ProgressBarLegendItem.vue +263 -0
- package/lib/js/components/ProgressBar/index.ts +1 -0
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/js/index.ts +1 -0
- package/package.json +1 -1
- package/docs/assets/IconButton-Ds4zUdcw.js +0 -1
- package/docs/assets/ProgressBar-CNQn5L6a.js +0 -1
- package/docs/assets/ProgressBar.stories-CCHGxEDq.js +0 -57
- package/docs/assets/ProgressDonutChart-CYr0uWkM.js +0 -1
- package/docs/assets/iframe-Dx1h5O--.js +0 -2
- package/docs/assets/preview-C4VNpVDT.js +0 -64
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,c as s,g as r,a as l,f as o,v as d,o as t}from"./vue.esm-bundler-
|
|
1
|
+
import{d as n,c as s,g as r,a as l,f as o,v as d,o as t}from"./vue.esm-bundler-B__7-iky.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";const a={LEFT:"left",RIGHT:"right"},i=n({name:"Drawer",props:{position:{type:String,default:a.RIGHT,validator(e){return Object.values(a).includes(e)}},stickyHeader:{type:Boolean,default:!0},stickyFooter:{type:Boolean,default:!0}},computed:{positionClassName(){return this.position===a.LEFT?"-ds-positionLeft":"-ds-positionRight"}}}),c={key:0,class:"ds-drawer__header -ds-sticky"},f={key:0,class:"ds-drawer__header"},p={key:1,class:"ds-drawer__footer"},m={key:1,class:"ds-drawer__footer -ds-sticky"};function y(e,k,v,h,_,w){return t(),s("div",{class:d(["ds-drawer scrollable-container",{[e.positionClassName]:!0}])},[e.$slots.header&&e.stickyHeader?(t(),s("div",c,[o(e.$slots,"header",{},void 0,!0)])):r("",!0),l("div",{class:d(["ds-drawer__content",{"scrollable-container":e.stickyHeader||e.stickyFooter,"-ds-scrollable":e.stickyHeader||e.stickyFooter,"-ds-fullHeight":e.stickyFooter}])},[e.$slots.header&&!e.stickyHeader?(t(),s("div",f,[o(e.$slots,"header",{},void 0,!0)])):r("",!0),o(e.$slots,"default",{},void 0,!0),e.$slots.footer&&!e.stickyFooter?(t(),s("div",p,[o(e.$slots,"footer",{},void 0,!0)])):r("",!0)],2),e.$slots.footer&&e.stickyFooter?(t(),s("div",m,[o(e.$slots,"footer",{},void 0,!0)])):r("",!0)],2)}const H=u(i,[["render",y],["__scopeId","data-v-e02b78af"]]);i.__docgenInfo={displayName:"Drawer",exportName:"default",description:"",tags:{},props:[{name:"position",type:{name:"DrawerPosition"},defaultValue:{func:!1,value:"DRAWER_POSITIONS.RIGHT"}},{name:"stickyHeader",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"stickyFooter",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}}],slots:[{name:"header"},{name:"default"},{name:"footer"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/Drawer.vue"]};export{H as D,a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as o,a}from"./Drawer-
|
|
1
|
+
import{D as o,a}from"./Drawer-BhUWahlN.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const l={title:"Components/Drawer",component:o},i=s=>({components:{Drawer:o},setup(){return s},template:`<div style="height: 300px; width: 200px;">
|
|
2
2
|
<drawer :position="position" :sticky-header="stickyHeader" :sticky-footer="stickyFooter">
|
|
3
3
|
<template v-slot:header><div style="background-color: var(--raw-gray-100)">Header<br><br></div></template>
|
|
4
4
|
<div>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br>Content<br></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as o,c as n,f as r,o as s}from"./vue.esm-bundler-
|
|
1
|
+
import{d as o,c as n,f as r,o as s}from"./vue.esm-bundler-B__7-iky.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e=o({name:"DrawerContent"}),d={class:"ds-drawerContent"};function c(t,i,m,p,f,_){return s(),n("div",d,[r(t.$slots,"default",{},void 0,!0)])}const w=a(e,[["render",c],["__scopeId","data-v-f1bef3a6"]]);e.__docgenInfo={displayName:"DrawerContent",exportName:"default",description:"",tags:{},slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerContent/DrawerContent.vue"]};export{w as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as o}from"./DrawerContent-
|
|
1
|
+
import{D as o}from"./DrawerContent-CrWEJHiH.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const m={title:"Components/Drawer/DrawerContent",component:o},s=a=>({components:{DrawerContent:o},setup(){return a},template:`
|
|
2
2
|
<drawer-content>
|
|
3
3
|
<div>One</div>
|
|
4
4
|
<div>Two</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as s,D as i}from"./Divider-
|
|
1
|
+
import{a as r,b as s,D as i}from"./Divider-GLNEyt1v.js";import{d as o,c as t,e as d,l as c,o as p}from"./vue.esm-bundler-B__7-iky.js";import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";const a=o({name:"DrawerDivider",components:{DsDivider:i},props:{prominence:{type:String,default:s.DEFAULT,validator:e=>Object.values(s).includes(e)},size:{type:String,default:r.S,validator:e=>Object.values(r).includes(e)}}}),m={class:"ds-drawerDivider"};function D(e,u,v,_,f,I){const n=c("ds-divider");return p(),t("div",m,[d(n,{prominence:e.prominence,size:e.size},null,8,["prominence","size"])])}const w=l(a,[["render",D],["__scopeId","data-v-aaea53a2"]]);a.__docgenInfo={displayName:"DrawerDivider",exportName:"default",description:"",tags:{},props:[{name:"prominence",type:{name:"string"},defaultValue:{func:!1,value:"DIVIDER_PROMINENCES.DEFAULT"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"DIVIDER_SIZES.S"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue"]};export{w as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as i}from"./DrawerDivider-
|
|
1
|
+
import{D as i}from"./DrawerDivider-xjDbe7dA.js";import{a as s,b as o}from"./Divider-GLNEyt1v.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={title:"Components/Drawer/DrawerDivider",component:i},p=a=>({components:{DrawerDivider:i},setup(){return a},template:`
|
|
2
2
|
<div style="height: 200px; width: 200px;">
|
|
3
3
|
<drawer-divider :prominence="prominence" :size="size" />
|
|
4
4
|
</div>`}),e=p.bind({}),c={prominence:o.DEFAULT,size:s.S},m={prominence:{control:"select",options:Object.values(o)},size:{control:"select",options:Object.values(s)}};e.argTypes=m;e.args=c;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=6785-111032&t=2Z2n2tIHRHEsWjoW-4"}};var r,t,n;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`args => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as b,c as n,a as i,k as s,g as t,h as _,v as d,y as f,f as p,l as o,o as a,B as v}from"./vue.esm-bundler-
|
|
1
|
+
import{d as b,c as n,a as i,k as s,g as t,h as _,v as d,y as f,f as p,l as o,o as a,B as v}from"./vue.esm-bundler-B__7-iky.js";import{_ as S,d as C}from"./Button-CoyY6G5X.js";import{D as T,b as N,a as O}from"./Divider-GLNEyt1v.js";import{I as D,c as k}from"./IconButton-Dsfqv3yz.js";import{C as w}from"./Chip-Bkc_Am1X.js";import{a as B,b as R,I as L}from"./Icon-NI6HBKO2.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const H={NEUTRAL_STRONG:"neutralStrong",NEUTRAL_WEAK:"neutralWeak"},c=b({name:"DrawerHeader",components:{DsButton:S,Divider:T,Icon:B,IconButton:D,Chip:w},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:H.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},hasBackButton:{type:Boolean,default:!1}},emits:["backClicked","close","eyebrowClicked"],data(){return{BUTTON_TYPES:Object.freeze(C),DIVIDER_SIZES:Object.freeze(O),DIVIDER_PROMINENCES:Object.freeze(N),ICONS:Object.freeze(L),ICON_BUTTON_SIZES:Object.freeze(k),ICON_SIZES:Object.freeze(R)}}}),$={class:"ds-drawerHeader"},g={class:"ds-drawerHeader__titleWrapper"},h={class:"ds-drawerHeader__textWrapper"},z={class:"ds-drawerHeader__title"},A=["title"],U={key:3},Z={key:1,class:"ds-drawerHeader__actions"};function j(e,l,M,W,F,P){const m=o("ds-button"),u=o("icon-button"),E=o("icon"),I=o("chip"),y=o("divider");return a(),n("div",$,[i("div",g,[e.isSecondLevel?(a(),s(m,{key:0,"icon-left":e.ICONS.FA_CHEVRON_LEFT,type:e.BUTTON_TYPES.TEXT,class:"ds-drawerHeader__secondLevel",onClick:l[0]||(l[0]=r=>e.$emit("backClicked"))},{default:_(()=>l[4]||(l[4]=[v(" Wróć ")])),_:1,__:[4]},8,["icon-left","type"])):t("",!0),i("div",{class:d([{"-ds-hidden":e.isSecondLevel},"ds-drawerHeader__firstLevel"])},[e.hasBackButton?(a(),s(u,{key:0,size:e.ICON_BUTTON_SIZES.MEDIUM,icon:e.ICONS.FA_CHEVRON_LEFT,touchable:!1,onClick:l[1]||(l[1]=r=>e.$emit("backClicked"))},null,8,["size","icon"])):t("",!0),i("div",h,[e.eyebrowText?(a(),n("span",{key:0,class:d([{"-ds-isInteractive":e.isInteractiveEyebrow,"-ds-ellipsis":e.eyebrowEllipsis},"ds-drawerHeader__eyebrow"]),onClick:l[2]||(l[2]=r=>e.isInteractiveEyebrow&&e.$emit("eyebrowClicked"))},f(e.eyebrowText),3)):t("",!0),i("div",z,[e.leftIcon?(a(),s(E,{key:0,icon:e.leftIcon,size:e.ICON_SIZES.X_SMALL,class:"ds-drawerHeader__leftIcon"},null,8,["icon","size"])):t("",!0),e.title?(a(),n("span",{key:1,class:d(["ds-drawerHeader__titleText",{"-ds-ellipsis":e.titleEllipsis,[`-ds-${e.titleColor}`]:!0}]),title:e.titleEllipsis?e.title:void 0},f(e.title),11,A)):t("",!0),e.chipLabel?(a(),s(I,{key:2,label:e.chipLabel},null,8,["label"])):t("",!0),e.$slots.titleTrailing?(a(),n("div",U,[p(e.$slots,"titleTrailing",{},void 0,!0)])):t("",!0)])])],2),e.$slots.actions?(a(),n("div",Z,[p(e.$slots,"actions",{},void 0,!0)])):t("",!0),e.isClosable?(a(),s(u,{key:2,icon:e.ICONS.FA_XMARK,size:e.ICON_BUTTON_SIZES.MEDIUM,touchable:!1,onClick:l[3]||(l[3]=r=>e.$emit("close"))},null,8,["icon","size"])):t("",!0)]),e.hasDivider?(a(),s(y,{key:0,size:e.DIVIDER_SIZES.L,prominence:e.DIVIDER_PROMINENCES.WEAK},null,8,["size","prominence"])):t("",!0)])}const x=V(c,[["render",j],["__scopeId","data-v-1d20958b"]]);c.__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"}},{name:"hasBackButton",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{x as D,H as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as o,a as r}from"./DrawerHeader-
|
|
1
|
+
import{D as o,a as r}from"./DrawerHeader-DdaoTm6b.js";import{I as a}from"./Icon-NI6HBKO2.js";import"./vue.esm-bundler-B__7-iky.js";import"./Button-CoyY6G5X.js";import"./Divider-GLNEyt1v.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconButton-Dsfqv3yz.js";import"./device-9fgosCm4.js";import"./Chip-Bkc_Am1X.js";const u={title:"Components/Drawer/DrawerHeader",component:o},s=n=>({components:{DrawerHeader:o},setup(){return n},data(){return{ICONS:Object.freeze(a)}},template:`
|
|
2
2
|
<drawer-header
|
|
3
3
|
:eyebrow-ellipsis="eyebrowEllipsis"
|
|
4
4
|
:eyebrow-text="eyebrowText"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,c as a,a as d,k as l,y as r,l as _,o as t}from"./vue.esm-bundler-
|
|
1
|
+
import{d as i,c as a,a as d,k as l,y as r,l as _,o as t}from"./vue.esm-bundler-B__7-iky.js";import{a as c,b as I,I as m}from"./Icon-NI6HBKO2.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={DEFAULT:"default",LOADING:"loading"},n=i({name:"DrawerListItem",components:{DsIcon:c},props:{state:{type:String,default:s.DEFAULT,validator(e){return Object.values(s).includes(e)}},label:{type:String,required:!0},valueText:{type:String,required:!0}},data(){return{DRAWER_LIST_ITEM_STATES:Object.freeze(s),ICONS:Object.freeze(m),ICON_SIZES:Object.freeze(I)}}}),u={class:"ds-drawerListItem"},S={class:"ds-drawerListItem__label"},T={key:1,class:"ds-drawerListItem__value"};function D(e,E,L,f,A,v){const o=_("ds-icon");return t(),a("div",u,[d("div",S,r(e.label),1),e.state===e.DRAWER_LIST_ITEM_STATES.LOADING?(t(),l(o,{key:0,icon:e.ICONS.FAD_SPINNER_THIRD,size:e.ICON_SIZES.XX_SMALL,spinning:""},null,8,["icon","size"])):(t(),a("div",T,r(e.valueText),1))])}const O=p(n,[["render",D],["__scopeId","data-v-61a9e9e3"]]);n.__docgenInfo={displayName:"DrawerListItem",exportName:"default",description:"",tags:{},props:[{name:"state",type:{name:"DrawerListItemState"},defaultValue:{func:!1,value:"DRAWER_LIST_ITEM_STATES.DEFAULT"}},{name:"label",type:{name:"string"},required:!0},{name:"valueText",type:{name:"string"},required:!0}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue"]};export{O as D,s as a};
|
package/docs/assets/{DrawerListItem.stories-BQT73CbZ.js → DrawerListItem.stories-D-FZzTMx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as s,a as n}from"./DrawerListItem-
|
|
1
|
+
import{D as s,a as n}from"./DrawerListItem-DfTABx8B.js";import"./vue.esm-bundler-B__7-iky.js";import"./Icon-NI6HBKO2.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={title:"Components/Drawer/DrawerListItem",component:s},i=o=>({components:{DrawerListItem:s},setup(){return o},template:`<div style="height: 300px; width: 200px;">
|
|
2
2
|
<drawer-list-item :label="label" :value-text="valueText" :state="state" />
|
|
3
3
|
</div>`}),e=i.bind({}),l={label:"Label",valueText:"value",state:n.DEFAULT},p={state:{control:"select",options:Object.values(n)}};e.argTypes=p;e.args=l;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=6785-111025&t=pzyp7YuJcnGNBfS5-4"}};var t,a,r;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`args => ({
|
|
4
4
|
components: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,c as t,f as o,o as a}from"./vue.esm-bundler-
|
|
1
|
+
import{d as s,c as t,f as o,o as a}from"./vue.esm-bundler-B__7-iky.js";import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e=s({name:"DrawerListItemGroup"}),i={class:"ds-drawerListItemGroup"};function d(r,m,p,c,u,_){return a(),t("div",i,[o(r.$slots,"default",{},void 0,!0)])}const w=n(e,[["render",d],["__scopeId","data-v-af074046"]]);e.__docgenInfo={displayName:"DrawerListItemGroup",exportName:"default",description:"",tags:{},slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue"]};export{w as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as s}from"./DrawerListItemGroup-
|
|
1
|
+
import{D as s}from"./DrawerListItemGroup-CJEAM-Cj.js";import{D as m}from"./DrawerListItem-DfTABx8B.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-NI6HBKO2.js";const w={title:"Components/Drawer/DrawerListItemGroup",component:s},i=o=>({components:{DrawerListItemGroup:s,DrawerListItem:m},setup(){return o},template:`
|
|
2
2
|
<drawer-list-item-group>
|
|
3
3
|
<drawer-list-item value-text="1" label="Item" />
|
|
4
4
|
<drawer-list-item value-text="2" label="Item" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as l}from"./Icon-
|
|
1
|
+
import{I as l}from"./Icon-NI6HBKO2.js";import{c as f,a as p}from"./IconButton-Dsfqv3yz.js";import{a as s,S as a,b as c}from"./SectionHeader-BEr4jT8h.js";import{d as m,j as n,c as i,k as E,g as o,f as r,l as S,o as t}from"./vue.esm-bundler-B__7-iky.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";const d=m({name:"DrawerSection",components:{DsSectionHeader:c},props:{isExpandable:{type:Boolean,default:!1},iconLeft:{type:Object,default:null,validator(e){return Object.values(l).includes(n(e))}},iconLeftColor:{type:String,default:a.NEUTRAL_WEAK,validator(e){return Object.values(a).includes(n(e))}},iconRight:{type:Object,default:null,validator(e){return Object.values(l).includes(n(e))}},iconRightColor:{type:String,default:a.NEUTRAL_WEAK,validator(e){return Object.values(a).includes(n(e))}},isExpanded:{type:Boolean,default:!0},info:{type:Boolean,default:!1},size:{type:String,default:s.XX_SMALL,validator(e){return Object.values(s).includes(e)}},title:{type:String,default:null},titleEllipsis:{type:Boolean,default:!1},eyebrow:{type:String,default:""},supportingText:{type:String,default:null},hasDivider:{type:Boolean,default:!0}},emits:["info-click","update:isExpanded"],data(){return{ICON_BUTTON_COLORS:Object.freeze(p),ICON_BUTTON_SIZES:Object.freeze(f),ICONS:Object.freeze(l),isExpandedInternal:this.isExpanded}},watch:{isExpanded:{handler(e){e!==this.isExpandedInternal&&(this.isExpandedInternal=e)},immediate:!0}},methods:{onExpandableHeaderClick(e){this.isExpandedInternal=e,this.$emit("update:isExpanded",e)},onInfoClick(){this.$emit("info-click")}}}),y={class:"ds-drawerSection"},C={key:1},I={key:2};function b(e,v,g,h,_,N){const u=S("ds-section-header");return t(),i("div",y,[e.title?(t(),E(u,{key:0,"icon-left":e.iconLeft,"icon-left-color":e.iconLeftColor,"icon-right":e.iconRight,"icon-right-color":e.iconRightColor,"is-expandable":e.isExpandable,"is-expanded":e.isExpandedInternal,info:e.info,size:e.size,title:e.title,"title-ellipsis":e.titleEllipsis,eyebrow:e.eyebrow,"supporting-text":e.supportingText,"has-divider":e.hasDivider,onInfoClick:e.onInfoClick,"onUpdate:isExpanded":e.onExpandableHeaderClick},null,8,["icon-left","icon-left-color","icon-right","icon-right-color","is-expandable","is-expanded","info","size","title","title-ellipsis","eyebrow","supporting-text","has-divider","onInfoClick","onUpdate:isExpanded"])):o("",!0),e.isExpandedInternal||!e.isExpandable?(t(),i("div",C,[r(e.$slots,"default")])):o("",!0),e.$slots.uncollapsible?(t(),i("div",I,[r(e.$slots,"uncollapsible")])):o("",!0)])}const w=O(d,[["render",b]]);d.__docgenInfo={displayName:"DrawerSection",exportName:"default",description:"",tags:{},props:[{name:"isExpandable",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"iconLeft",type:{name:"Object as () => IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconLeftColor",type:{name:"String as () => SectionHeaderIconColor"},defaultValue:{func:!1,value:"SECTION_HEADER_ICON_COLORS.NEUTRAL_WEAK"}},{name:"iconRight",type:{name:"Object as () => IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconRightColor",type:{name:"String as () => SectionHeaderIconColor"},defaultValue:{func:!1,value:"SECTION_HEADER_ICON_COLORS.NEUTRAL_WEAK"}},{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"info",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"SECTION_HEADER_SIZES.XX_SMALL"}},{name:"title",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"titleEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrow",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"supportingText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"hasDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}}],events:[{name:"info-click"},{name:"update:isExpanded",type:{names:["undefined"]}}],slots:[{name:"default"},{name:"uncollapsible"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerSection/DrawerSection.vue"]};export{w as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as r}from"./DrawerSection-
|
|
1
|
+
import{D as r}from"./DrawerSection-xxKzDEsA.js";import{S as n,a as l}from"./SectionHeader-BEr4jT8h.js";import{I as t}from"./Icon-NI6HBKO2.js";import"./IconButton-Dsfqv3yz.js";import"./Button-CoyY6G5X.js";import"./vue.esm-bundler-B__7-iky.js";import"./device-9fgosCm4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Divider-GLNEyt1v.js";const{useArgs:d}=__STORYBOOK_MODULE_PREVIEW_API__,D={title:"Components/Drawer/DrawerSection",component:r},f=a=>{const[g,c]=d();return{components:{DrawerSection:r},setup(){return a},data(){return{ICONS:Object.freeze(t)}},methods:{infoClicked(){console.log("info clicked")},isExpandedUpdated(p){c({isExpanded:p})}},template:`
|
|
2
2
|
<drawer-section
|
|
3
3
|
:size="size"
|
|
4
4
|
:title="title"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,d as t}from"./Tile
|
|
1
|
+
import{p as n,d as t}from"./Tile-jzFqPN2Q.js";import{d as a,c as i,e as c,m as l,l as p,o as m}from"./vue.esm-bundler-B__7-iky.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=p("ds-tile");return m(),i("div",_,[c(r,l(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,4 +1,4 @@
|
|
|
1
|
-
import{D as o}from"./DrawerTile-
|
|
1
|
+
import{D as o}from"./DrawerTile-DmywJ3y2.js";import{d as s,t as m,a as n,b as i}from"./Tile.sb.shared-HZrN5Yh_.js";import"./Tile-jzFqPN2Q.js";import"./vue.esm-bundler-B__7-iky.js";import"./Icon-NI6HBKO2.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Banner-pv7sfD95.js";import"./Button-CoyY6G5X.js";import"./Divider-GLNEyt1v.js";import"./IconButton-Dsfqv3yz.js";import"./device-9fgosCm4.js";import"./FeatureIcon-DlSsCT-N.js";const b={title:"Components/Drawer/DrawerTile",component:o},c=p=>({components:{DrawerTile:o},setup(){return p},template:m("drawer-tile"),data:s}),e=c.bind({});e.argTypes=n;e.args=i;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=6785-111025&t=pzyp7YuJcnGNBfS5-4"}};var r,t,a;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
DrawerTile
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as u}from"./vue-popper-
|
|
1
|
+
import{v as u}from"./vue-popper-CKSsDv3l.js";import{d as m,k as c,h as s,l as f,o as O,a,v as n,D as h,f as i}from"./vue.esm-bundler-B__7-iky.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,4 +1,4 @@
|
|
|
1
|
-
import{D as i,a,b as r,c as l}from"./Dropdown-
|
|
1
|
+
import{D as i,a,b as r,c as l}from"./Dropdown-B251So_M.js";import{S as c}from"./SelectList-DGd_SbLG.js";import{S as p}from"./SelectListItem-D6jbLU_Y.js";import"./vue-popper-CKSsDv3l.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-NI6HBKO2.js";const D={title:"Components/Dropdown",component:i},m=n=>({components:{Dropdown:i,SelectList:c,SelectListItem:p},setup(){return n},template:`
|
|
2
2
|
<div style="position: relative">
|
|
3
3
|
<dropdown :trigger-action="triggerAction"
|
|
4
4
|
:force-show="forceShow"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,q as u,c,e as m,u as o,v as L,o as t}from"./vue.esm-bundler-
|
|
1
|
+
import{d,q as u,c,e as m,u as o,v as L,o as t}from"./vue.esm-bundler-B__7-iky.js";import{b as n,a as A}from"./Icon-NI6HBKO2.js";const a={X_SMALL:"xSmall",SMALL:"small",MEDIUM:"medium",LARGE:"large",X_LARGE:"xLarge"},s={DANGER:"danger",INFO:"info",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutralWeak",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",FAIL:"fail"},I=d({__name:"FeatureIcon",props:{icon:{},size:{default:()=>a.MEDIUM},color:{},doubleBackground:{type:Boolean,default:!1}},setup(r){const l={[a.X_SMALL]:n.XX_SMALL,[a.SMALL]:n.X_SMALL,[a.MEDIUM]:n.MEDIUM,[a.LARGE]:n.LARGE,[a.X_LARGE]:n.X_LARGE},i=u(()=>l[r.size]);return(e,E)=>(t(),c("div",{class:L(["ds-featureIcon",{"-ds-doubleBackground":e.doubleBackground,"-ds-danger":e.color===o(s).DANGER,"-ds-fail":e.color===o(s).FAIL,"-ds-info":e.color===o(s).INFO,"-ds-neutral":e.color===o(s).NEUTRAL,"-ds-neutralWeak":e.color===o(s).NEUTRAL_WEAK,"-ds-primary":e.color===o(s).PRIMARY,"-ds-success":e.color===o(s).SUCCESS,"-ds-warning":e.color===o(s).WARNING,"-ds-xSmall":e.size===o(a).X_SMALL,"-ds-small":e.size===o(a).SMALL,"-ds-medium":e.size===o(a).MEDIUM,"-ds-large":e.size===o(a).LARGE,"-ds-xLarge":e.size===o(a).X_LARGE}])},[m(o(A),{class:"ds-featureIcon__icon",icon:e.icon,size:i.value},null,8,["icon","size"])],2))}});I.__docgenInfo={exportName:"default",displayName:"FeatureIcon",description:"",tags:{},props:[{name:"icon",required:!0,type:{name:"IconItem"}},{name:"size",required:!1,type:{name:"FeatureIconSize"}},{name:"color",required:!0,type:{name:"FeatureIconColor"}},{name:"doubleBackground",required:!1,type:{name:"boolean"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue"]};export{s as F,I as _,a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,F as n,a as s}from"./FeatureIcon-
|
|
1
|
+
import{_ as c,F as n,a as s}from"./FeatureIcon-DlSsCT-N.js";import{I as a}from"./Icon-NI6HBKO2.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={title:"Components/Icons/FeatureIcon",component:c},u=i=>({components:{FeatureIcon:c},setup(){return i},template:'<feature-icon :icon="ICONS[icon]" :size="size" :color="color" :doubleBackground="doubleBackground" />',data(){return{ICONS:Object.freeze(a)}}}),e=u.bind({}),l={size:s.X_LARGE,icon:"FA_CIRCLE_QUESTION",color:n.PRIMARY,doubleBackground:!0},p={size:{control:"select",options:Object.values(s)},icon:{control:"select",options:[null,...Object.keys(a)]},color:{control:"select",options:Object.values(n)},doubleBackground:{control:"boolean"}};e.argTypes=p;e.args=l;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=5604-96259"}};var o,t,r;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
FeatureIcon
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as h,z as I,q as m,c as a,g as l,a as d,f as t,y as i,u as o,v as y,A as v,o as s,k,h as q,B as S}from"./vue.esm-bundler-
|
|
1
|
+
import{d as h,z as I,q as m,c as a,g as l,a as d,f as t,y as i,u as o,v as y,A as v,o as s,k,h as q,B as S}from"./vue.esm-bundler-B__7-iky.js";import{F as b,a as $}from"./FormFieldMessage-B4QT7U15.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";const A={key:0,class:"ds-formField__labels"},L={class:"ds-formField__labelRow"},R={class:"ds-formField__labelWrapper"},B=["for"],M={class:"ds-formField__labelText"},w={key:0,class:"ds-formField__labelRequired","aria-hidden":"true"},D={key:1,class:"ds-formField__labelInfo"},E={key:0,class:"ds-formField__labelAside"},N={key:0,class:"ds-formField__subLabelRow"},C={class:"ds-formField__field"},V={key:1,class:"ds-formField__footerRow"},z={class:"ds-formField__message"},j={key:0,class:"ds-formField__fieldStatus"},_=h({__name:"FormField",props:{label:{},state:{default:()=>b.DEFAULT},hasRequiredIndicator:{type:Boolean,default:!1},labelInfo:{},subLabel:{},fieldId:{},messageText:{}},setup(u){const c=I(),g=v(),r=m(()=>u.fieldId||`form-field-${g}`),{hasMessage:p,messageId:n}=F();function F(){const e=m(()=>!!(c.message||u.messageText)),f=m(()=>`${r.value}-message`);return{hasMessage:e,messageId:f}}return(e,f)=>(s(),a("div",{class:y(["ds-formField",{"-ds-disabled":e.state===o(b).DISABLED}])},[e.label||e.subLabel||e.$slots.labelAside?(s(),a("div",A,[d("div",L,[d("div",R,[e.label?(s(),a("label",{key:0,class:"ds-formField__label",for:r.value},[d("span",M,i(e.label),1),e.hasRequiredIndicator?(s(),a("span",w,"*")):l("",!0),e.labelInfo?(s(),a("span",D,i(e.labelInfo),1)):l("",!0)],8,B)):l("",!0),t(e.$slots,"help",{},void 0,!0)]),e.$slots.labelAside?(s(),a("div",E,[t(e.$slots,"labelAside",{},void 0,!0)])):l("",!0)]),e.subLabel?(s(),a("div",N,i(e.subLabel),1)):l("",!0)])):l("",!0),d("div",C,[t(e.$slots,"field",{fieldId:r.value,messageId:o(n)},void 0,!0)]),o(p)||e.$slots.fieldStatus?(s(),a("div",V,[d("div",z,[t(e.$slots,"message",{messageId:o(n)},()=>[e.messageText?(s(),k($,{key:0,state:e.state,"message-id":o(n)},{default:q(()=>[S(i(e.messageText),1)]),_:1},8,["state","message-id"])):l("",!0)],!0)]),e.$slots.fieldStatus?(s(),a("div",j,[t(e.$slots,"fieldStatus",{},void 0,!0)])):l("",!0)])):l("",!0)],2))}}),G=T(_,[["__scopeId","data-v-7166e4a5"]]);_.__docgenInfo={exportName:"default",displayName:"FormField",description:"",tags:{},props:[{name:"label",required:!1,type:{name:"string"}},{name:"state",required:!1,type:{name:"union",elements:[{name:'"default"'},{name:'"disabled"'},{name:'"error"'},{name:'"success"'}]}},{name:"hasRequiredIndicator",required:!1,type:{name:"boolean"}},{name:"labelInfo",required:!1,type:{name:"string"}},{name:"subLabel",required:!1,type:{name:"string"}},{name:"fieldId",required:!1,type:{name:"string"}},{name:"messageText",required:!1,type:{name:"string"}}],slots:[{name:"help"},{name:"labelAside"},{name:"field",scoped:!0,bindings:[{name:"field-id",title:"binding"},{name:"message-id",title:"binding"}]},{name:"message",scoped:!0,bindings:[{name:"message-id",title:"binding"}]},{name:"fieldStatus"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Form/FormField/FormField.vue"]};export{G as F};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as s}from"./FormField-
|
|
1
|
+
import{F as s}from"./FormField-9b6SZuZX.js";import{_ as F}from"./HelpButton-NbGTgq8g.js";import{F as l}from"./FormFieldMessage-B4QT7U15.js";import{a as I,b as S}from"./FormField.stories.shared-BgsGljga.js";import{t as E,r as R}from"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconButton-Dsfqv3yz.js";import"./Icon-NI6HBKO2.js";import"./Button-CoyY6G5X.js";import"./device-9fgosCm4.js";import"./Tooltip-Dri2vN3o.js";import"./Modal-DTJAE74l.js";import"./FeatureIcon-DlSsCT-N.js";const z={title:"Components/Form/FormField",component:s,render:n=>({components:{FormField:s,HelpButton:F},setup(){const{field:d,help:f,labelAside:g,message:c,fieldStatus:v,...u}=E(n);return{props:R({...u}),labelAside:g,fieldStatus:v,message:c,help:f,field:d,FORM_FIELD_STATES:l}},template:`<FormField v-bind="props">
|
|
2
2
|
<template #field="{fieldId, messageId}">
|
|
3
3
|
<input v-if="!field" :id="fieldId" :aria-describedby="messageId" />
|
|
4
4
|
<div v-else v-html="field" />
|
package/docs/assets/{FormField.stories.shared-C7iHaKgG.js → FormField.stories.shared-BgsGljga.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e}from"./FormFieldMessage-
|
|
1
|
+
import{F as e}from"./FormFieldMessage-B4QT7U15.js";const l={label:{control:"text"},state:{control:"select",options:Object.values(e)},hasRequiredIndicator:{control:"boolean"},labelInfo:{control:"text"},subLabel:{control:"text"},fieldId:{control:"text"},labelAside:{control:"text"},message:{control:"text"},fieldStatus:{control:"text"},help:{control:"boolean"},messageText:{control:"text"}},o={label:"Label",state:e.DEFAULT,hasRequiredIndicator:!1,labelInfo:"(opcjonalne)",subLabel:"Sublabel write here",labelAside:"Label aside",message:"",help:!0,fieldStatus:"Field status",messageText:""};export{l as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as m,q as l,c as o,g as c,f as u,e as F,u as a,v as p,o as r}from"./vue.esm-bundler-
|
|
1
|
+
import{d as m,q as l,c as o,g as c,f as u,e as F,u as a,v as p,o as r}from"./vue.esm-bundler-B__7-iky.js";import{I as d,b as _,a as S}from"./Icon-NI6HBKO2.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e={DEFAULT:"default",DISABLED:"disabled",ERROR:"error",SUCCESS:"success"},C=["id"],E={key:0,class:"ds-formFieldMessage__iconWrapper"},n=m({__name:"FormFieldMessage",props:{state:{default:()=>e.DEFAULT},messageId:{}},setup(i){const t=l(()=>{switch(i.state){case e.ERROR:return d.FA_CIRCLE_EXCLAMATION;case e.SUCCESS:return d.FA_CIRCLE_CHECK;default:return null}});return(s,I)=>(r(),o("div",{id:s.messageId,class:p(["ds-formFieldMessage",{"-ds-error":s.state===a(e).ERROR,"-ds-success":s.state===a(e).SUCCESS,"-ds-disabled":s.state===a(e).DISABLED}])},[t.value?(r(),o("div",E,[F(a(S),{icon:t.value,size:a(_).XX_SMALL},null,8,["icon","size"])])):c("",!0),u(s.$slots,"default",{},void 0,!0)],10,C))}}),L=f(n,[["__scopeId","data-v-157e206b"]]);n.__docgenInfo={exportName:"default",displayName:"FormFieldMessage",description:"",tags:{},props:[{name:"state",required:!1,type:{name:"FormFieldState"}},{name:"messageId",required:!0,type:{name:"string"}}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Form/FormField/FormFieldMessage/FormFieldMessage.vue"]};export{e as F,L as a};
|
package/docs/assets/{FormFieldMessage.stories-BmHxg-JM.js → FormFieldMessage.stories-D6SF2qUQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a,F as t}from"./FormFieldMessage-
|
|
1
|
+
import{a,F as t}from"./FormFieldMessage-B4QT7U15.js";import{a as c,b as I,I as l}from"./Icon-NI6HBKO2.js";import"./vue.esm-bundler-B__7-iky.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const M={title:"Components/Form/FormFieldMessage",component:a,render:n=>({components:{FormFieldMessage:a},setup(){return{args:n}},template:`<FormFieldMessage v-bind="args">
|
|
2
2
|
<div v-html="args.default" />
|
|
3
3
|
</FormFieldMessage>`}),argTypes:{state:{control:"select",options:Object.values(t)},messageId:{control:"text"},default:{control:"text",description:"Default slot content for the message."}}},e={args:{default:"Message",messageId:"message-id",state:t.DEFAULT}};e.parameters={design:{type:"figma",url:"https://www.figma.com/design/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=13364-13669&m=dev"}};const s={args:{messageId:"message-id",state:t.DEFAULT},render:n=>({components:{FormFieldMessage:a,Icon:c},setup(){return{args:n,ICONS:l,ICON_SIZES:I}},template:`<FormFieldMessage v-bind="args">
|
|
4
4
|
Message with inline <Icon :icon="ICONS.FA_ADDRESS_CARD" :size="ICON_SIZES.XX_SMALL" /> icon
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,j as D,c as l,g as s,a as d,f as o,v as i,e as f,H as c,G as p,k as v,l as C,o as t}from"./vue.esm-bundler-DcRN7CPI.js";import{D as M}from"./Divider-NOTDPuJ1.js";import{D as V}from"./Checkbox-DszBECh_.js";import{a as $,b as U,I as b,c as z}from"./Icon-CJfhJHwv.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(b).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(b),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(),v(_,{key:0,"is-vertical":""})):s("",!0),o(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),l("div",P,[e.isHorizontal?(t(),v(_,{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};
|
|
1
|
+
import{d as g,j as D,c as l,g as s,a as d,f as o,v as i,e as f,H as c,D as p,k as v,l as C,o as t}from"./vue.esm-bundler-B__7-iky.js";import{D as M}from"./Divider-GLNEyt1v.js";import{D as V}from"./Checkbox-BWpvE7c6.js";import{a as $,b as U,I as b,c as z}from"./Icon-NI6HBKO2.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(b).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(b),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(),v(_,{key:0,"is-vertical":""})):s("",!0),o(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),l("div",P,[e.isHorizontal?(t(),v(_,{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};
|
package/docs/assets/{GroupRichListItem.stories-B3fRNHr4.js → GroupRichListItem.stories-B8GKQ41b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as n,c as s,e as a,g,h as b,f as S,R as _,i as D}from"./GroupRichListItem-
|
|
1
|
+
import{G as n,c as s,e as a,g,h as b,f as S,R as _,i as D}from"./GroupRichListItem-1ZgkDTYR.js";import{D as T}from"./Divider-GLNEyt1v.js";import{c,I as d}from"./Icon-NI6HBKO2.js";import"./vue.esm-bundler-B__7-iky.js";import"./Checkbox-BWpvE7c6.js";import"./SelectionControl-CWQygzcl.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const{useArgs:E}=__STORYBOOK_MODULE_PREVIEW_API__,N={title:"Components/RichList/GroupRichListItem",component:n,decorators:[e=>({template:'<div style="display: flex;padding: 16px;"><story/></div>'})]},x={isExpanded:!1,borderColor:null,borderColorHex:"",backgroundColor:g.NEUTRAL,parent_size:a.MEDIUM,parent_elevation:null,parent_isDimmed:!1,parent_isDraggable:!1,parent_hasDraggableHandler:!0,parent_icon:null,parent_iconColor:c.NEUTRAL_WEAK,parent_iconColorHex:"",parent_hasActionsSlotDivider:!0,parent_isSelectable:!0,parent_isSelected:!0,parent_state:s.DEFAULT,parent_isInteractive:!0,child_size:a.MEDIUM,child_elevation:null,child_isDimmed:!1,child_isDraggable:!1,child_hasDraggableHandler:!0,child_icon:null,child_iconColor:c.NEUTRAL_WEAK,child_iconColorHex:"",child_hasActionsSlotDivider:!0,child_isSelectable:!0,child_isSelected:!0,child_state:s.DEFAULT,child_isInteractive:!0},H={borderColor:{options:[null,...Object.values(D)],control:"select"},borderColorHex:{control:"text"},backgroundColor:{options:Object.values(g),control:"select"},parent_state:{options:Object.values(s),control:"select"},parent_size:{options:Object.values(a),control:"select"},parent_iconColor:{options:Object.values(c),control:"select"},parent_icon:{options:[null,...Object.keys(d)],control:"select"},parent_iconColorHex:{control:"text"},parent_elevation:{options:[null,...Object.values(_)],control:"select"},child_state:{options:Object.values(s),control:"select"},child_size:{options:Object.values(a),control:"select"},child_iconColor:{options:Object.values(c),control:"select"},child_icon:{options:[null,...Object.keys(d)],control:"select"},child_iconColorHex:{control:"text"},child_elevation:{options:[null,...Object.values(_)],control:"select"}},l="<template #content>Content slot</template><template #metadata>Metadata slot</template><template #actions>ACS</template>",v=e=>(e.argTypes=H,e.args=x,e.parameters={layout:"fullscreen",design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?type=design&node-id=8505-126430&mode=design&t=7Ay1DzrwONAPwSGv-4"}},e),L=e=>{const[O,t]=E();return{components:{GroupRichListItem:n,RichListItem:b,Divider:T},setup(){return e},data(){return{RICH_LIST_ITEM_TYPE:Object.freeze(S),RICH_LIST_ITEM_STATE:Object.freeze(s),ICONS:Object.freeze(d)}},methods:{updateParentIsSelected(i){t({parent_isSelected:i})},updateChildIsSelected(i){t({child_isSelected:i})},onClick(){t({isExpanded:!this.isExpanded})}},template:`
|
|
2
2
|
<group-rich-list-item
|
|
3
3
|
:is-expanded="isExpanded"
|
|
4
4
|
:border-color="borderColor"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as m,b as d,c as p,e as s,f as n,g as u,h as i,u as e,F as f,o as T,m as c}from"./vue.esm-bundler-
|
|
1
|
+
import{d as m,b as d,c as p,e as s,f as n,g as u,h as i,u as e,F as f,o as T,m as c}from"./vue.esm-bundler-B__7-iky.js";import{I as C,d as r,c as S,a as _}from"./IconButton-Dsfqv3yz.js";import{T as B}from"./Tooltip-Dri2vN3o.js";import{I as N}from"./Icon-NI6HBKO2.js";import{D as I}from"./Modal-DTJAE74l.js";const g=m({inheritAttrs:!1,__name:"HelpButton",props:{tooltipText:{},isDisabled:{type:Boolean},modalTitle:{},modalSize:{}},setup(O){const t=d(!1),a=()=>{t.value=!1};return(o,l)=>(T(),p(f,null,[s(e(B),{text:o.tooltipText,inline:!0},{default:i(()=>[s(e(C),c({icon:e(N).FA_CIRCLE_QUESTION,color:e(_).NEUTRAL_WEAK,size:e(S).X_SMALL,state:o.isDisabled?e(r).DISABLED:e(r).DEFAULT,touchable:!1},o.$attrs,{onClick:l[0]||(l[0]=b=>t.value=!0)}),null,16,["icon","color","size","state"])]),_:1},8,["text"]),t.value?n(o.$slots,"modal",{key:0,onClose:a},()=>[s(e(I),{"header-title":o.modalTitle,size:o.modalSize,onCloseModal:a},{default:i(()=>[n(o.$slots,"modalContent")]),_:3},8,["header-title","size"])]):u("",!0)],64))}});g.__docgenInfo={exportName:"default",displayName:"HelpButton",description:"",tags:{},props:[{name:"tooltipText",required:!1,type:{name:"string"}},{name:"isDisabled",required:!1,type:{name:"boolean"}},{name:"modalTitle",required:!1,type:{name:"string"}},{name:"modalSize",required:!1,type:{name:"ModalSize"}}],slots:[{name:"modal",scoped:!0,bindings:[{name:"on-close",title:"binding"}]},{name:"modalContent"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Buttons/HelpButton/HelpButton.vue"]};export{g as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as c}from"./vue.esm-bundler-
|
|
1
|
+
import{t as c}from"./vue.esm-bundler-B__7-iky.js";import{_ as o}from"./HelpButton-NbGTgq8g.js";import{D as u,M as i}from"./Modal-DTJAE74l.js";import{B as S,a as w}from"./Banner-pv7sfD95.js";import"./IconButton-Dsfqv3yz.js";import"./Icon-NI6HBKO2.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Button-CoyY6G5X.js";import"./device-9fgosCm4.js";import"./Tooltip-Dri2vN3o.js";import"./FeatureIcon-DlSsCT-N.js";import"./Divider-GLNEyt1v.js";const O={title:"Components/Buttons/HelpButton",component:o,render:n=>({components:{HelpButton:o,Modal:u,DsBanner:S},setup(){const{tooltipText:m,modalTitle:s,modalContent:r,modalSize:d,isDisabled:p}=c(n);return{tooltipText:m,isDisabled:p,modalTitle:s,modalContent:r,modalSize:d,BANNER_COLORS:w}},template:`<HelpButton :tooltip-text="tooltipText" :modal-title="modalTitle" :modal-size="modalSize" :is-disabled="isDisabled">
|
|
2
2
|
<template v-if="modalContent || modalTitle" #modalContent>
|
|
3
3
|
<div v-html="modalContent" />
|
|
4
4
|
</template>
|