@bethinkpl/design-system 28.1.13 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RadioButton-CjzX_0B_.js +63 -0
- package/dist/RadioButton-CjzX_0B_.js.map +1 -0
- package/dist/design-system.js +1 -1
- package/dist/index-OWTZc1Dt.js +25159 -0
- package/dist/index-OWTZc1Dt.js.map +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +1 -1
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -1
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +2 -2
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +1 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +17 -17
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +17 -17
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +4 -4
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +3 -3
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -1
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -1
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +2 -2
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +2 -2
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -1
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -1
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +2 -2
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +2 -2
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -1
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +3 -3
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -1
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +2 -2
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -2
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +1 -1
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +1 -1
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +3 -3
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +3 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +3 -3
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +1 -1
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -1
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/docs/assets/{AccessStatus-DdL8SYsL.js → AccessStatus-gTZ35kWE.js} +1 -1
- package/docs/assets/{AccessStatus.stories-B_GH4GL4.js → AccessStatus.stories-CNlYo4yb.js} +1 -1
- package/docs/assets/{Avatar-CUjbAGTY.js → Avatar-BE7dVVOm.js} +1 -1
- package/docs/assets/{Avatar.stories-D5GObXyf.js → Avatar.stories-B_Kh3RtC.js} +1 -1
- package/docs/assets/{Badge-l1Gf7e-u.js → Badge-5Cw0lVjx.js} +1 -1
- package/docs/assets/{Badge.stories-B2IMkojZ.js → Badge.stories-Rrw9KmUy.js} +1 -1
- package/docs/assets/{BadgeScore-BWyVQiDF.js → BadgeScore-DOO7QEun.js} +1 -1
- package/docs/assets/{BadgeScore.stories-DbLmoMOp.js → BadgeScore.stories-Dv3btaRm.js} +1 -1
- package/docs/assets/{Banner-BUm2tk_M.js → Banner-CiGwWJXp.js} +1 -1
- package/docs/assets/{Banner.stories-pVP72ePd.js → Banner.stories-D7_kXnTN.js} +1 -1
- package/docs/assets/{BasicRichListItem-DvjGGtfr.js → BasicRichListItem-zKgLik2G.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-C1vHHu0O.js → BasicRichListItem.stories-C8wELqMM.js} +1 -1
- package/docs/assets/{BlockadeStatus-vP_NQHb_.js → BlockadeStatus-FRYRllaW.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-BBcrQCfM.js → BlockedeStatus.stories-C5U7gCzf.js} +1 -1
- package/docs/assets/{Button-QhwLVK52.js → Button-B2zUlKHR.js} +1 -1
- package/docs/assets/{Button.stories-CRHBZCOk.js → Button.stories-Du0ul-ee.js} +1 -1
- package/docs/assets/{CardExpandable-C59CX5JZ.js → CardExpandable-Cphp9zJo.js} +1 -1
- package/docs/assets/{CardExpandable.stories-BW9bvZBK.js → CardExpandable.stories-BYyvaQ5O.js} +1 -1
- package/docs/assets/{Checkbox-DUMsgnch.js → Checkbox-DEeTEf8x.js} +1 -1
- package/docs/assets/{Checkbox.stories-g_35oSry.js → Checkbox.stories-Cx8ZCqup.js} +1 -1
- package/docs/assets/{Chip-0W8FKghZ.js → Chip-C6ACB4fl.js} +1 -1
- package/docs/assets/{Chip.stories-DCcTcyD1.js → Chip.stories-upOIdUqx.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-XT7op-oY.js → Color-ERTF36HU-BH5lhmVh.js} +1 -1
- package/docs/assets/{CounterToggle-DWugoxMC.js → CounterToggle-CBBFhB0y.js} +1 -1
- package/docs/assets/{CounterToggle.stories-DaY4XGNQ.js → CounterToggle.stories-CuoAnPiT.js} +1 -1
- package/docs/assets/{DateBox.stories-Y6a-6_-X.js → DateBox.stories-CNnHsWKg.js} +1 -1
- package/docs/assets/{DatePicker-Bxm154RQ.js → DatePicker-CiTbht9L.js} +1 -1
- package/docs/assets/{DatePicker.stories-DdZ5k45-.js → DatePicker.stories-DM3ePzdz.js} +1 -1
- package/docs/assets/{DateRangePicker-C_vQHWsI.js → DateRangePicker-CtXbeOvt.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-BubWOJV9.js → DateRangePicker.stories-bPmGnZNJ.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-DpLXJIgp.js → DocsRenderer-CFRXHY34-Bb5ZCuWz.js} +5 -5
- package/docs/assets/{DrawerHeader-CA6Qcw9P.js → DrawerHeader-B73JIWxJ.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-BFv0-FyP.js → DrawerHeader.stories-C6fnCICA.js} +1 -1
- package/docs/assets/{DrawerListItem-CI6QRTBw.js → DrawerListItem-B77TKMq3.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-B_Omwslf.js → DrawerListItem.stories-CCySDWY_.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories--XRp86A9.js → DrawerListItemGroup.stories-CUVA8vmw.js} +1 -1
- package/docs/assets/{DrawerSection-CyYhvvhd.js → DrawerSection-jmPiv0zV.js} +1 -1
- package/docs/assets/{DrawerSection.stories-CBvvj2kQ.js → DrawerSection.stories-in7ueh2L.js} +1 -1
- package/docs/assets/{DrawerTile-RB4v_36q.js → DrawerTile-TstvXnvE.js} +1 -1
- package/docs/assets/{DrawerTile.stories-DUU99Wef.js → DrawerTile.stories-BsPPenGK.js} +1 -1
- package/docs/assets/{Dropdown.stories-BMO92eF0.js → Dropdown.stories-Dq70KFPI.js} +1 -1
- package/docs/assets/{FeatureIcon-XW2P0b3h.js → FeatureIcon-D4m6z_nW.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-DiOTA6of.js → FeatureIcon.stories-BDeTclEm.js} +1 -1
- package/docs/assets/{FormField-DWo2DIbf.js → FormField-Cabwnr1x.js} +1 -1
- package/docs/assets/{FormField.stories-cKPX7PXw.js → FormField.stories-B940dw_F.js} +1 -1
- package/docs/assets/{FormField.stories.shared-DcQ13z3c.js → FormField.stories.shared-DTa24XVV.js} +1 -1
- package/docs/assets/{FormFieldMessage-VsHd6t1M.js → FormFieldMessage-ReW8wyXl.js} +1 -1
- package/docs/assets/{FormFieldMessage.stories-D9lYPhyz.js → FormFieldMessage.stories-BC8EOk29.js} +1 -1
- package/docs/assets/{GroupRichListItem-B63S0oNZ.js → GroupRichListItem-Cne-DseP.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-C_zogGGz.js → GroupRichListItem.stories-B1iuOilR.js} +1 -1
- package/docs/assets/{HelpButton-DKmmVw1o.js → HelpButton-DtDWTLw6.js} +1 -1
- package/docs/assets/{HelpButton.stories-DRUjRTM9.js → HelpButton.stories-CpyP1SPG.js} +1 -1
- package/docs/assets/Icon-CrGnHcSg.js +558 -0
- package/docs/assets/{Icon.stories-BVa8sJmn.js → Icon.stories-BAc6nvEG.js} +1 -1
- package/docs/assets/{IconButton-DCpLAyGJ.js → IconButton-COu1YaXe.js} +1 -1
- package/docs/assets/{IconButton.stories-CFF-jOC7.js → IconButton.stories-_ChFVAIg.js} +1 -1
- package/docs/assets/{IconText-BfrRW56u.js → IconText-C0gfVDlj.js} +1 -1
- package/docs/assets/{IconText.stories-C1LRTwHr.js → IconText.stories-ExR2NVl1.js} +1 -1
- package/docs/assets/{InputField-Dpo1KWWx.js → InputField-ohZPvjR_.js} +1 -1
- package/docs/assets/{InputField.stories-CkS_Rxaj.js → InputField.stories-O4uV5x9e.js} +1 -1
- package/docs/assets/{Modal-exmOML9a.js → Modal-Cvfba84P.js} +1 -1
- package/docs/assets/{Modal.stories-BETa4dI9.js → Modal.stories-4GFwWRzg.js} +1 -1
- package/docs/assets/{ModalDialog-B_gXUq0d.js → ModalDialog-yI7htXrm.js} +1 -1
- package/docs/assets/{ModalDialog.stories-ByhMy9x1.js → ModalDialog.stories-30I2hLBU.js} +1 -1
- package/docs/assets/{OutlineItem-BxMLCjE8.js → OutlineItem-CYg3nFP2.js} +1 -1
- package/docs/assets/{OutlineItem.stories-DZHaGknZ.js → OutlineItem.stories-C9Pm_kmL.js} +1 -1
- package/docs/assets/{OverlayHeader-8oXx56Li.js → OverlayHeader-T0rtNJ5v.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-D247lKaU.js → OverlayHeader.stories-BUJMeka9.js} +1 -1
- package/docs/assets/{Pagination-DiC4ugXW.js → Pagination-FSn6DfXQ.js} +1 -1
- package/docs/assets/{Pagination.stories-DGX81Eru.js → Pagination.stories-B_sAlKGS.js} +1 -1
- package/docs/assets/{PasswordField-D3ocBhmt.js → PasswordField-Boh6_ZnE.js} +1 -1
- package/docs/assets/{PasswordField.stories-D1nO6yWx.js → PasswordField.stories-V7OQZVC1.js} +1 -1
- package/docs/assets/{PopOver-C0o9qXV3.js → PopOver-CUdfwq3A.js} +1 -1
- package/docs/assets/{PopOver.stories-D0z3oZe8.js → PopOver.stories-FqPZWcJ9.js} +1 -1
- package/docs/assets/{ProgressBar-DqoLr1RZ.js → ProgressBar-BhZ_Zxla.js} +1 -1
- package/docs/assets/{ProgressBar.stories-C1ZlyiE-.js → ProgressBar.stories-6rmdb5hc.js} +1 -1
- package/docs/assets/{ProgressDonutChart-DZY2Yumi.js → ProgressDonutChart-BQ0JluTS.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-Cfyr19MU.js → ProgressDonutChart.stories-CE3-MoEI.js} +1 -1
- package/docs/assets/{RadioButton-BLZJ5m6u.js → RadioButton-BrsYf8Vs.js} +1 -1
- package/docs/assets/{RadioButton.stories-Dazyjned.js → RadioButton.stories-DRu1CU2N.js} +1 -1
- package/docs/assets/{RichListItem.stories-CbAggYze.js → RichListItem.stories-CQmNoamG.js} +1 -1
- package/docs/assets/{SectionHeader-Djcsatsq.js → SectionHeader-De5AG7Kp.js} +1 -1
- package/docs/assets/{SectionHeader.stories-7enmv9ba.js → SectionHeader.stories-CjbrwwDR.js} +1 -1
- package/docs/assets/{SelectList.stories-0hL_5dZ9.js → SelectList.stories-1UjfpWBy.js} +1 -1
- package/docs/assets/{SelectListItem-Dr7cinft.js → SelectListItem-C8rMqeD0.js} +1 -1
- package/docs/assets/{SelectListItem.stories-Bl3MhyPv.js → SelectListItem.stories-DfzBP45n.js} +1 -1
- package/docs/assets/{SelectListItemTile-D238R21e.js → SelectListItemTile-BgsZDxzP.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-B2GyM3tc.js → SelectListItemTile.stories-6DBqMWXb.js} +1 -1
- package/docs/assets/{SelectListItemToggle-Dfy8DGSU.js → SelectListItemToggle-Dl3WF6dN.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-C1eSme2O.js → SelectListItemToggle.stories-DcII9AMh.js} +1 -1
- package/docs/assets/{SelectionControl-DvQZUuOE.js → SelectionControl-D6muFiQh.js} +1 -1
- package/docs/assets/{SelectionTile-A1OysdIQ.js → SelectionTile-fLAucOW8.js} +2 -2
- package/docs/assets/{SelectionTile.stories-D4Q2c5Oz.js → SelectionTile.stories-B374DAX5.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-mGjNtmo4.js → SurveyQuestionOpenEnded-CVdIPUom.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-CWWu-e5e.js → SurveyQuestionOpenEnded.stories-DOsOd2MI.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-D0reDdf2.js → SurveyQuestionScale-BnI-ZPw4.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-D4DxUEmL.js → SurveyQuestionScale.stories-BgzaSJ_5.js} +1 -1
- package/docs/assets/{SurveyToggle-BfNRSf5A.js → SurveyToggle--5L10kQN.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-BsVYqzek.js → SurveyToggle.stories-DYJX2c1g.js} +1 -1
- package/docs/assets/{Switch-D750BUyL.js → Switch-EVSQr4xA.js} +1 -1
- package/docs/assets/{Switch.stories-DLbAOgcV.js → Switch.stories-B1GuraxO.js} +1 -1
- package/docs/assets/{TabItem-Dd3ygQn_.js → TabItem-CLAMsyYY.js} +1 -1
- package/docs/assets/{TabItem.stories-CizWwXR7.js → TabItem.stories-Bqxh0fK_.js} +1 -1
- package/docs/assets/{Tile-CiWdoTxC.js → Tile-vZUZKJ4R.js} +1 -1
- package/docs/assets/{Tile.sb.shared-BcA1_mzJ.js → Tile.sb.shared-BPdrPz-t.js} +1 -1
- package/docs/assets/{Tile.stories-DDrX0d1_.js → Tile.stories-DhOHEROY.js} +1 -1
- package/docs/assets/{Toast-dGAuUtsV.js → Toast-_mJ5xyzu.js} +1 -1
- package/docs/assets/{Toast.stories-C74S_aLc.js → Toast.stories-D7VOzRIm.js} +1 -1
- package/docs/assets/{ToggleButton-CPF-mto5.js → ToggleButton-tLeRv-cp.js} +1 -1
- package/docs/assets/{ToggleButton.stories-Sfgl5ikD.js → ToggleButton.stories-xyKCdRN6.js} +1 -1
- package/docs/assets/{Tooltip.stories-xCdXD5v8.js → Tooltip.stories-CEYtvQ7C.js} +1 -1
- package/docs/assets/{Well-BBkGQfuA.js → Well-mxkLK5ek.js} +1 -1
- package/docs/assets/{Well.stories-BTl5qh5O.js → Well.stories-CSYBf4g_.js} +1 -1
- package/docs/assets/{iframe-D3Dx19_U.js → iframe-Cy763uQH.js} +2 -2
- package/docs/assets/{index-C5ht-t8A.js → index-CxUS_Yh6.js} +1 -1
- package/docs/assets/{index-CmIBy80s.js → index-WX3fqqN3.js} +1 -1
- package/docs/assets/{preview-bfIDNl2z.js → preview-CyKrI_4K.js} +1 -1
- package/docs/assets/{preview-CNbBbg06.js → preview-WA0qcsu7.js} +2 -2
- package/docs/assets/{string-BliwjvpJ.js → string-Bp7KUZ_7.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/preview.css +0 -4
- package/docs/project.json +1 -1
- package/lib/js/components/Icons/Icon/Icon.consts.ts +0 -2
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/styles/_normalize.scss +0 -4
- package/package.json +8 -8
- package/docs/assets/Icon-S5zPLm_h.js +0 -761
- package/lib/images/icons/mobile-rotate.svg +0 -3
|
@@ -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-DcRN7CPI.js";import{_ as S,d as C}from"./Button-
|
|
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-DcRN7CPI.js";import{_ as S,d as C}from"./Button-B2zUlKHR.js";import{D as T,b as N,a as O}from"./Divider-NOTDPuJ1.js";import{I as D,c as k}from"./IconButton-COu1YaXe.js";import{C as w}from"./Chip-C6ACB4fl.js";import{a as B,b as R,I as L}from"./Icon-CrGnHcSg.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-B73JIWxJ.js";import{I as a}from"./Icon-CrGnHcSg.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./Button-B2zUlKHR.js";import"./Divider-NOTDPuJ1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconButton-COu1YaXe.js";import"./device-9fgosCm4.js";import"./Chip-C6ACB4fl.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-DcRN7CPI.js";import{a as c,b as I,I as m}from"./Icon-
|
|
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-DcRN7CPI.js";import{a as c,b as I,I as m}from"./Icon-CrGnHcSg.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-B_Omwslf.js → DrawerListItem.stories-CCySDWY_.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-B77TKMq3.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./Icon-CrGnHcSg.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,4 +1,4 @@
|
|
|
1
|
-
import{D as s}from"./DrawerListItemGroup-SEWltKLJ.js";import{D as m}from"./DrawerListItem-
|
|
1
|
+
import{D as s}from"./DrawerListItemGroup-SEWltKLJ.js";import{D as m}from"./DrawerListItem-B77TKMq3.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CrGnHcSg.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-CrGnHcSg.js";import{c as f,a as p}from"./IconButton-COu1YaXe.js";import{a as s,S as a,b as c}from"./SectionHeader-De5AG7Kp.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-DcRN7CPI.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-jmPiv0zV.js";import{S as n,a as l}from"./SectionHeader-De5AG7Kp.js";import{I as t}from"./Icon-CrGnHcSg.js";import"./IconButton-COu1YaXe.js";import"./Button-B2zUlKHR.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./device-9fgosCm4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Divider-NOTDPuJ1.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-vZUZKJ4R.js";import{d as a,c as i,e as c,m as l,l as p,o as m}from"./vue.esm-bundler-DcRN7CPI.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-TstvXnvE.js";import{d as s,t as m,a as n,b as i}from"./Tile.sb.shared-BPdrPz-t.js";import"./Tile-vZUZKJ4R.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./Icon-CrGnHcSg.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Banner-CiGwWJXp.js";import"./Button-B2zUlKHR.js";import"./Divider-NOTDPuJ1.js";import"./IconButton-COu1YaXe.js";import"./device-9fgosCm4.js";import"./FeatureIcon-D4m6z_nW.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,4 +1,4 @@
|
|
|
1
|
-
import{D as i,a,b as r,c as l}from"./Dropdown-Bdrd2ZIh.js";import{S as c}from"./SelectList-YMQ8rEMc.js";import{S as p}from"./SelectListItem-
|
|
1
|
+
import{D as i,a,b as r,c as l}from"./Dropdown-Bdrd2ZIh.js";import{S as c}from"./SelectList-YMQ8rEMc.js";import{S as p}from"./SelectListItem-C8rMqeD0.js";import"./vue-popper-m_ujT3wC.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CrGnHcSg.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-DcRN7CPI.js";import{b as n,a as A}from"./Icon-
|
|
1
|
+
import{d,q as u,c,e as m,u as o,v as L,o as t}from"./vue.esm-bundler-DcRN7CPI.js";import{b as n,a as A}from"./Icon-CrGnHcSg.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-D4m6z_nW.js";import{I as a}from"./Icon-CrGnHcSg.js";import"./vue.esm-bundler-DcRN7CPI.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-DcRN7CPI.js";import{F as b,a as $}from"./FormFieldMessage-
|
|
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-DcRN7CPI.js";import{F as b,a as $}from"./FormFieldMessage-ReW8wyXl.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-Cabwnr1x.js";import{_ as F}from"./HelpButton-DtDWTLw6.js";import{F as l}from"./FormFieldMessage-ReW8wyXl.js";import{a as I,b as S}from"./FormField.stories.shared-DTa24XVV.js";import{t as E,r as R}from"./vue.esm-bundler-DcRN7CPI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconButton-COu1YaXe.js";import"./Icon-CrGnHcSg.js";import"./Button-B2zUlKHR.js";import"./device-9fgosCm4.js";import"./Tooltip-BvaJ_K9_.js";import"./Modal-Cvfba84P.js";import"./FeatureIcon-D4m6z_nW.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-DcQ13z3c.js → FormField.stories.shared-DTa24XVV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e}from"./FormFieldMessage-
|
|
1
|
+
import{F as e}from"./FormFieldMessage-ReW8wyXl.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-DcRN7CPI.js";import{I as d,b as _,a as S}from"./Icon-
|
|
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-DcRN7CPI.js";import{I as d,b as _,a as S}from"./Icon-CrGnHcSg.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-D9lYPhyz.js → FormFieldMessage.stories-BC8EOk29.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a,F as t}from"./FormFieldMessage-
|
|
1
|
+
import{a,F as t}from"./FormFieldMessage-ReW8wyXl.js";import{a as c,b as I,I as l}from"./Icon-CrGnHcSg.js";import"./vue.esm-bundler-DcRN7CPI.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-DUMsgnch.js";import{a as $,b as U,I as b,c as z}from"./Icon-S5zPLm_h.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,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-DEeTEf8x.js";import{a as $,b as U,I as b,c as z}from"./Icon-CrGnHcSg.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-C_zogGGz.js → GroupRichListItem.stories-B1iuOilR.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-Cne-DseP.js";import{D as T}from"./Divider-NOTDPuJ1.js";import{c,I as d}from"./Icon-CrGnHcSg.js";import"./vue.esm-bundler-DcRN7CPI.js";import"./Checkbox-DEeTEf8x.js";import"./SelectionControl-D6muFiQh.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-DcRN7CPI.js";import{I as C,d as r,c as S,a as _}from"./IconButton-
|
|
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-DcRN7CPI.js";import{I as C,d as r,c as S,a as _}from"./IconButton-COu1YaXe.js";import{T as B}from"./Tooltip-BvaJ_K9_.js";import{I as N}from"./Icon-CrGnHcSg.js";import{D as I}from"./Modal-Cvfba84P.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-DcRN7CPI.js";import{_ as o}from"./HelpButton-
|
|
1
|
+
import{t as c}from"./vue.esm-bundler-DcRN7CPI.js";import{_ as o}from"./HelpButton-DtDWTLw6.js";import{D as u,M as i}from"./Modal-Cvfba84P.js";import{B as S,a as w}from"./Banner-CiGwWJXp.js";import"./IconButton-COu1YaXe.js";import"./Icon-CrGnHcSg.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Button-B2zUlKHR.js";import"./device-9fgosCm4.js";import"./Tooltip-BvaJ_K9_.js";import"./FeatureIcon-D4m6z_nW.js";import"./Divider-NOTDPuJ1.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>
|