@bethinkpl/design-system 26.1.1 → 26.2.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/design-system.umd.cjs +18 -18
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +4 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +3 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.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 +7 -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 +4 -0
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +1 -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 +3 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +3 -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 +4 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +4 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +4 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.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/SelectListItemTile/SelectListItemTile.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 +5 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +5 -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/Tile/Tile.vue.d.ts +1 -0
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +577 -0
- package/dist/lib/js/components/Toast/index.d.ts +4 -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 +2 -0
- package/docs/assets/{AccessStatus-BXan1lEc.js → AccessStatus-DRDZqpES.js} +1 -1
- package/docs/assets/{AccessStatus.stories-DxmB8jeD.js → AccessStatus.stories-bA7hnj_D.js} +1 -1
- package/docs/assets/{BadgeScore-CJRAekNi.js → BadgeScore-CZzWzYgk.js} +1 -1
- package/docs/assets/{BadgeScore.stories-kqknHhLd.js → BadgeScore.stories-Kgqr3ASb.js} +1 -1
- package/docs/assets/{Banner-DeL_mSKv.js → Banner-CLCcYMqw.js} +1 -1
- package/docs/assets/{Banner.stories-DOdH9jC-.js → Banner.stories-BNQs4B7a.js} +1 -1
- package/docs/assets/{BasicRichListItem-D3mhBGPV.js → BasicRichListItem-DLEOXqPF.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-BL_tCw7A.js → BasicRichListItem.stories-ufd33VzT.js} +2 -2
- package/docs/assets/{BlockadeStatus-COz686Yw.js → BlockadeStatus-BfAr-sGX.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-CF5KGt2v.js → BlockedeStatus.stories-CQ-hCDNG.js} +1 -1
- package/docs/assets/{Button-B0thvSZc.js → Button-CYE3lqUM.js} +1 -1
- package/docs/assets/{Button.stories-t4KLRczd.js → Button.stories-CYSavMnP.js} +1 -1
- package/docs/assets/{CardExpandable-DjcLb6gt.js → CardExpandable-BUtFN6qF.js} +1 -1
- package/docs/assets/{CardExpandable.stories-DQgT5zfs.js → CardExpandable.stories-B23_eMBU.js} +1 -1
- package/docs/assets/{Checkbox-D_2ud6Th.js → Checkbox-KYcZTLuT.js} +1 -1
- package/docs/assets/{Checkbox.stories-DwLSbAE5.js → Checkbox.stories-D33ahJXG.js} +1 -1
- package/docs/assets/{Chip-LprVecVf.js → Chip-CZhGhfp2.js} +1 -1
- package/docs/assets/{Chip.stories-8NyJdmpb.js → Chip.stories-CJlT4U9X.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-B4VUg7YC.js → Color-ERTF36HU-DCQ3oTfn.js} +1 -1
- package/docs/assets/{CounterToggle-Bn8GLLo_.js → CounterToggle-DE96dwGZ.js} +1 -1
- package/docs/assets/{CounterToggle.stories-i3F0njw3.js → CounterToggle.stories-CKELWAHH.js} +1 -1
- package/docs/assets/{DatePicker-C2bxBng6.js → DatePicker-DIRNXtbt.js} +1 -1
- package/docs/assets/{DatePicker.stories-CQvgmQCi.js → DatePicker.stories-CHXq2t7N.js} +1 -1
- package/docs/assets/{DateRangePicker-DmfHJ7DC.js → DateRangePicker-Ba8OCzac.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-CC58Ean1.js → DateRangePicker.stories-Tnl6ue7H.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-87qXMkT7.js → DocsRenderer-CFRXHY34-2RWLQUnC.js} +5 -5
- package/docs/assets/{DrawerHeader-rPEO3zyc.js → DrawerHeader-27Pq83bZ.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-BPskZz-V.js → DrawerHeader.stories-DKVM_b_K.js} +1 -1
- package/docs/assets/{DrawerListItem-BtTMrhjG.js → DrawerListItem-DwU7tkY-.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-Kr7hSVJR.js → DrawerListItem.stories-Dn0ei8Go.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-CZ93-7rg.js → DrawerListItemGroup.stories-Bdqv_PCr.js} +1 -1
- package/docs/assets/{DrawerSection-CqBCpJHk.js → DrawerSection-NA8YIWNP.js} +1 -1
- package/docs/assets/{DrawerSection.stories-DyDGPp7Y.js → DrawerSection.stories-AsNcvKAY.js} +1 -1
- package/docs/assets/{DrawerTile-CwWntL3-.js → DrawerTile-BqaB6Qm3.js} +1 -1
- package/docs/assets/{DrawerTile.stories-DI0oJNxW.js → DrawerTile.stories-D-8DPXdi.js} +1 -1
- package/docs/assets/{Dropdown.stories-CmVTDgGH.js → Dropdown.stories-Dkgtf6tV.js} +1 -1
- package/docs/assets/{FeatureIcon-CMzReDfy.js → FeatureIcon-BralJUmR.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-CmOZL5K8.js → FeatureIcon.stories-BRb_4t9C.js} +1 -1
- package/docs/assets/{GroupRichListItem-DJlVMVFf.js → GroupRichListItem-DZzp4b-c.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-B1-_fsF-.js → GroupRichListItem.stories-ClHv1fNz.js} +1 -1
- package/docs/assets/{Icon-Daqcn32A.js → Icon-CQ850_cO.js} +6 -6
- package/docs/assets/{Icon.stories-LBp3UCCh.js → Icon.stories-No7ZaHUl.js} +1 -1
- package/docs/assets/{IconButton-ClvgQPZ_.js → IconButton-DQERAUFJ.js} +1 -1
- package/docs/assets/{IconButton.stories-OizIRFpI.js → IconButton.stories-DYBf2RxR.js} +1 -1
- package/docs/assets/{IconText-BSCjAPyJ.js → IconText-CkVKy_JT.js} +1 -1
- package/docs/assets/{IconText.stories-BcJ7D5BW.js → IconText.stories-BV6qZ9Uz.js} +1 -1
- package/docs/assets/Image-DQHO1hnh.js +1 -0
- package/docs/assets/{Image.stories-08ofVHJB.js → Image.stories-Dwie4X6O.js} +1 -1
- package/docs/assets/{Modal-CnSHaffv.js → Modal-Dyxmofkt.js} +1 -1
- package/docs/assets/{Modal.stories-8Vq2m2VA.js → Modal.stories-D20EV-4r.js} +1 -1
- package/docs/assets/{ModalDialog-Br9XyAyb.js → ModalDialog-CQ6gqQT0.js} +1 -1
- package/docs/assets/{ModalDialog.stories-DY-EEkyy.js → ModalDialog.stories-ClzefBkX.js} +1 -1
- package/docs/assets/{OutlineItem-B3PapuhG.js → OutlineItem-BfrVnSqG.js} +1 -1
- package/docs/assets/{OutlineItem.stories-DrA_pCnx.js → OutlineItem.stories-BTU-NNLx.js} +1 -1
- package/docs/assets/{OverlayHeader-i5OJFCjw.js → OverlayHeader-axMuTIwo.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-CIi2o9YM.js → OverlayHeader.stories-Ce-FqIzk.js} +1 -1
- package/docs/assets/{Pagination-CpkhlxKS.js → Pagination-DIlv-PQx.js} +1 -1
- package/docs/assets/{Pagination.stories-9yE1j1AT.js → Pagination.stories-CmSNdwer.js} +1 -1
- package/docs/assets/{PopOver-Bnhr6jSk.js → PopOver-DTk9tym7.js} +1 -1
- package/docs/assets/{PopOver.stories-yqWxKflh.js → PopOver.stories-CUplOgMq.js} +1 -1
- package/docs/assets/{ProgressBar-DLFYBwzz.js → ProgressBar-i05eIOJ-.js} +1 -1
- package/docs/assets/{ProgressBar.stories-mHQxWzow.js → ProgressBar.stories-DvDerxCw.js} +1 -1
- package/docs/assets/{ProgressDonutChart-CO2D6WT2.js → ProgressDonutChart-dD82ao8i.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-D3I72JCw.js → ProgressDonutChart.stories-ByyC4Wpy.js} +1 -1
- package/docs/assets/{RadioButton-COJplb0H.js → RadioButton-BqrBPM7P.js} +1 -1
- package/docs/assets/{RadioButton.stories-CB-ws-FM.js → RadioButton.stories-CQhm39Tv.js} +1 -1
- package/docs/assets/{RichListItem.stories-DsS5RmDe.js → RichListItem.stories-DpgvNK5a.js} +2 -2
- package/docs/assets/{SectionHeader-BklZ7w6L.js → SectionHeader-ivDpWZdM.js} +1 -1
- package/docs/assets/{SectionHeader.stories-C5t1XJ22.js → SectionHeader.stories-CljoeeXk.js} +1 -1
- package/docs/assets/{SelectList.stories-Bfo60S0K.js → SelectList.stories-BeQZgLpb.js} +1 -1
- package/docs/assets/{SelectListItem-CSkYz5LV.js → SelectListItem-BK_eMqRE.js} +1 -1
- package/docs/assets/{SelectListItem.stories-hRhkXAhJ.js → SelectListItem.stories-CCuSiVLj.js} +1 -1
- package/docs/assets/{SelectListItemTile-CWTq7Qbi.js → SelectListItemTile-BZdx79sR.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-uD0_0N79.js → SelectListItemTile.stories-BQazSg1n.js} +1 -1
- package/docs/assets/{SelectListItemToggle-D9fo6iYH.js → SelectListItemToggle-uu8aTlbZ.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-DUPLVyV1.js → SelectListItemToggle.stories-DMU10XnC.js} +1 -1
- package/docs/assets/{SelectionControl-C6JexBmQ.js → SelectionControl-C2m3ylYI.js} +1 -1
- package/docs/assets/{SelectionTile-BuWPgKvw.js → SelectionTile-6DXgUYii.js} +2 -2
- package/docs/assets/{SelectionTile.stories-bDvLBQEK.js → SelectionTile.stories-DoopCCEq.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-CT6hRs3h.js → SurveyQuestionOpenEnded-Dm58tKCP.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-Ck3fI5pW.js → SurveyQuestionOpenEnded.stories-CVQ8H6mG.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-BpNGyACU.js → SurveyQuestionScale-RjE7KKni.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-yMuZDFmZ.js → SurveyQuestionScale.stories-C80IEuWZ.js} +1 -1
- package/docs/assets/{SurveyToggle-3gXFb5oH.js → SurveyToggle-CEytwXTu.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-DErlBwHj.js → SurveyToggle.stories-CcN4y5HI.js} +1 -1
- package/docs/assets/{Switch-DdvT2o45.js → Switch-BRgc0E3r.js} +1 -1
- package/docs/assets/{Switch.stories-BzNKJgpI.js → Switch.stories-CrQT5otj.js} +1 -1
- package/docs/assets/{TabItem-IuI5xjz1.js → TabItem-CZUx6uYU.js} +1 -1
- package/docs/assets/{TabItem.stories-g56H3l-h.js → TabItem.stories-1lLY5dVI.js} +1 -1
- package/docs/assets/{Tile-Nqx7KGXe.js → Tile-ByPW4b0z.js} +1 -1
- package/docs/assets/{Tile.sb.shared-BcarO9-C.js → Tile.sb.shared-5_km-AW6.js} +1 -1
- package/docs/assets/{Tile.stories-DpCy0xpQ.js → Tile.stories-CyUALbL8.js} +1 -1
- package/docs/assets/Toast-C9PW1GAe.js +1 -0
- package/docs/assets/Toast.stories-cfGX-A4n.js +58 -0
- package/docs/assets/{ToggleButton-B19B9CsO.js → ToggleButton-BehxPJAN.js} +1 -1
- package/docs/assets/{ToggleButton.stories-MBmynAQa.js → ToggleButton.stories-Dm-X2v07.js} +1 -1
- package/docs/assets/{Tooltip.stories-CpUsha-Z.js → Tooltip.stories-DX2J-dW4.js} +1 -1
- package/docs/assets/{iframe-DDfug5VJ.js → iframe-TMx3aCBI.js} +7 -7
- package/docs/assets/{index-C-HbmKTM.js → index-DBp1ogeF.js} +1 -1
- package/docs/assets/{index-BYlPqi6W.js → index-DaN1k6Cs.js} +1 -1
- package/docs/assets/preview-C89Bllzm.js +64 -0
- package/docs/assets/{preview-BHcN5tRW.js → preview-Uql0YBlW.js} +2 -2
- package/docs/assets/{string-v47y-kFA.js → string-Cr9ML3bf.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/Image/Image.vue +1 -0
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +2 -1
- package/lib/js/components/Toast/index.ts +4 -0
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/js/index.ts +2 -0
- package/package.json +1 -1
- package/docs/assets/Image-SUTRVXoX.js +0 -1
- package/docs/assets/Toast.stories-BcPbImEj.js +0 -58
- package/docs/assets/preview-NUOMmSqX.js +0 -64
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as b,c as s,a as i,b as n,e as v,h as l,n as r,k as u,f,r as o,o as a,l as S}from"./vue.esm-bundler-CzUSCRPq.js";import{D as _,a as C,I as T}from"./Button-
|
|
1
|
+
import{d as b,c as s,a as i,b as n,e as v,h as l,n as r,k as u,f,r as o,o as a,l as S}from"./vue.esm-bundler-CzUSCRPq.js";import{D as _,a as C,I as T}from"./Button-CYE3lqUM.js";import{D,b as N,a as O}from"./Divider-ClNbKvxH.js";import{I as w}from"./IconButton-DQERAUFJ.js";import{C as k}from"./Chip-CZhGhfp2.js";import{a as R,I as L,b as V}from"./Icon-CQ850_cO.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const H={NEUTRAL_STRONG:"neutralStrong",NEUTRAL_WEAK:"neutralWeak"},p=b({name:"DrawerHeader",components:{DsButton:_,Divider:D,Icon:R,IconButton:w,Chip:k},props:{eyebrowText:{type:String,default:null},isInteractiveEyebrow:{type:Boolean,default:!1},eyebrowEllipsis:{type:Boolean,default:!1},title:{type:String,default:null},titleEllipsis:{type:Boolean,default:!1},titleColor:{type:String,default: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}},emits:["backClicked","close","eyebrowClicked"],data(){return{BUTTON_TYPES:Object.freeze(C),DIVIDER_SIZES:Object.freeze(N),DIVIDER_PROMINENCES:Object.freeze(O),ICONS:Object.freeze(L),ICON_BUTTON_SIZES:Object.freeze(T),ICON_SIZES:Object.freeze(V)}}}),g={class:"ds-drawerHeader"},$={class:"ds-drawerHeader__titleWrapper"},h={class:"ds-drawerHeader__title"},A=["title"],z={key:3},U={key:1,class:"ds-drawerHeader__actions"};function j(e,t,Z,M,W,P){const c=o("ds-button"),m=o("icon"),E=o("chip"),I=o("icon-button"),y=o("divider");return a(),s("div",g,[i("div",$,[e.isSecondLevel?(a(),n(c,{key:0,"icon-left":e.ICONS.FA_CHEVRON_LEFT,type:e.BUTTON_TYPES.TEXT,class:"ds-drawerHeader__secondLevel",onClick:t[0]||(t[0]=d=>e.$emit("backClicked"))},{default:v(()=>t[3]||(t[3]=[S(" Wróć ")])),_:1},8,["icon-left","type"])):l("",!0),i("div",{class:r([{"-ds-hidden":e.isSecondLevel},"ds-drawerHeader__firstLevel"])},[e.eyebrowText?(a(),s("span",{key:0,class:r([{"-ds-isInteractive":e.isInteractiveEyebrow,"-ds-ellipsis":e.eyebrowEllipsis},"ds-drawerHeader__eyebrow"]),onClick:t[1]||(t[1]=d=>e.isInteractiveEyebrow&&e.$emit("eyebrowClicked"))},u(e.eyebrowText),3)):l("",!0),i("div",h,[e.leftIcon?(a(),n(m,{key:0,icon:e.leftIcon,size:e.ICON_SIZES.X_SMALL,class:"ds-drawerHeader__leftIcon"},null,8,["icon","size"])):l("",!0),e.title?(a(),s("span",{key:1,class:r(["ds-drawerHeader__titleText",{"-ds-ellipsis":e.titleEllipsis,[`-ds-${e.titleColor}`]:!0}]),title:e.titleEllipsis?e.title:void 0},u(e.title),11,A)):l("",!0),e.chipLabel?(a(),n(E,{key:2,label:e.chipLabel},null,8,["label"])):l("",!0),e.$slots.titleTrailing?(a(),s("div",z,[f(e.$slots,"titleTrailing",{},void 0,!0)])):l("",!0)])],2),e.$slots.actions?(a(),s("div",U,[f(e.$slots,"actions",{},void 0,!0)])):l("",!0),e.isClosable?(a(),n(I,{key:2,icon:e.ICONS.FA_XMARK,size:e.ICON_BUTTON_SIZES.MEDIUM,touchable:!1,onClick:t[2]||(t[2]=d=>e.$emit("close"))},null,8,["icon","size"])):l("",!0)]),e.hasDivider?(a(),n(y,{key:0,size:e.DIVIDER_SIZES.L,prominence:e.DIVIDER_PROMINENCES.WEAK},null,8,["size","prominence"])):l("",!0)])}const Q=B(p,[["render",j],["__scopeId","data-v-0a9b40fd"]]);p.__docgenInfo={displayName:"DrawerHeader",exportName:"default",description:"",tags:{},props:[{name:"eyebrowText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isInteractiveEyebrow",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"title",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"titleEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"titleColor",type:{name:"DrawerHeaderTitleColor"},defaultValue:{func:!1,value:"DRAWER_HEADER_TITLE_COLORS.NEUTRAL_STRONG"}},{name:"leftIcon",type:{name:"object|null"},defaultValue:{func:!1,value:"null"}},{name:"chipLabel",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isClosable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSecondLevel",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"backClicked"},{name:"eyebrowClicked"},{name:"close"}],slots:[{name:"titleTrailing"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue"]};export{Q as D,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-27Pq83bZ.js";import{I as n}from"./Icon-CQ850_cO.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./Button-CYE3lqUM.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Divider-ClNbKvxH.js";import"./IconButton-DQERAUFJ.js";import"./device-9fgosCm4.js";import"./Chip-CZhGhfp2.js";const I={title:"Components/Drawer/DrawerHeader",component:o},s=a=>({components:{DrawerHeader:o},setup(){return a},data(){return{ICONS:Object.freeze(n)}},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 r,b as _,r as c,o as t}from"./vue.esm-bundler-CzUSCRPq.js";import{a as l,I,b as m}from"./Icon-
|
|
1
|
+
import{d as i,c as a,a as d,k as r,b as _,r as c,o as t}from"./vue.esm-bundler-CzUSCRPq.js";import{a as l,I,b as m}from"./Icon-CQ850_cO.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";const s={DEFAULT:"default",LOADING:"loading"},n=i({name:"DrawerListItem",components:{DsIcon:l},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(I),ICON_SIZES:Object.freeze(m)}}}),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=c("ds-icon");return t(),a("div",u,[d("div",S,r(e.label),1),e.state===e.DRAWER_LIST_ITEM_STATES.LOADING?(t(),_(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 y=p(n,[["render",D],["__scopeId","data-v-be266320"]]);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{y as D,s as a};
|
package/docs/assets/{DrawerListItem.stories-Kr7hSVJR.js → DrawerListItem.stories-Dn0ei8Go.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-DwU7tkY-.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./Icon-CQ850_cO.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-BJGU_uck.js";import{D as m}from"./DrawerListItem-
|
|
1
|
+
import{D as s}from"./DrawerListItemGroup-BJGU_uck.js";import{D as m}from"./DrawerListItem-DwU7tkY-.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CQ850_cO.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 t}from"./Icon-
|
|
1
|
+
import{I as t}from"./Icon-CQ850_cO.js";import"./IconButton-DQERAUFJ.js";import{i as p,I as f}from"./Button-CYE3lqUM.js";import{b as c,S as a,a as o}from"./SectionHeader-ivDpWZdM.js";import{d as m,t as n,c as l,g as E,f as s,h as r,r as S,o as i}from"./vue.esm-bundler-CzUSCRPq.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(t).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(t).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:o.XX_SMALL,validator(e){return Object.values(o).includes(e)}},title:{type:String,required:!0},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(t),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"},I={key:0},C={key:1};function b(e,g,h,v,_,N){const u=S("ds-section-header");return i(),l("div",y,[E(u,{"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"]),e.isExpandedInternal||!e.isExpandable?(i(),l("div",I,[s(e.$slots,"default")])):r("",!0),e.$slots.uncollapsible?(i(),l("div",C,[s(e.$slots,"uncollapsible")])):r("",!0)])}const k=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"},required:!0},{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{k as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as r}from"./DrawerSection-
|
|
1
|
+
import{D as r}from"./DrawerSection-NA8YIWNP.js";import{S as n,a as l}from"./SectionHeader-ivDpWZdM.js";import{I as t}from"./Icon-CQ850_cO.js";import"./IconButton-DQERAUFJ.js";import"./Button-CYE3lqUM.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./device-9fgosCm4.js";import"./Divider-ClNbKvxH.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{b as n,p as t}from"./Tile-
|
|
1
|
+
import{b as n,p as t}from"./Tile-ByPW4b0z.js";import{d as a,c as i,g as c,p,r as l,o as m}from"./vue.esm-bundler-CzUSCRPq.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o=a({name:"DrawerTile",components:{DsTile:n},props:t,emits:["click"]}),_={class:"ds-drawerTile"};function f(e,s,u,w,D,T){const r=l("ds-tile");return m(),i("div",_,[c(r,p(e.$props,{onClick:s[0]||(s[0]=k=>e.$emit("click"))}),null,16)])}const y=d(o,[["render",f],["__scopeId","data-v-d495ac51"]]);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 s}from"./DrawerTile-
|
|
1
|
+
import{D as s}from"./DrawerTile-BqaB6Qm3.js";import{a as n,b as p,t as m,d as i}from"./Tile.sb.shared-5_km-AW6.js";import"./Tile-ByPW4b0z.js";import"./Icon-CQ850_cO.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const D={title:"Components/Drawer/DrawerTile",component:s},c=o=>({components:{DrawerTile:s},setup(){return o},template:m("drawer-tile"),data:i}),e=c.bind({});e.argTypes=n;e.args=p;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-BFqYgkV7.js";import{S as c}from"./SelectList-DWop0yaP.js";import{S as p}from"./SelectListItem-
|
|
1
|
+
import{D as i,a,b as r,c as l}from"./Dropdown-BFqYgkV7.js";import{S as c}from"./SelectList-DWop0yaP.js";import{S as p}from"./SelectListItem-BK_eMqRE.js";import"./vue-popper-D-VHfyeL.js";import"./_commonjsHelpers-Chg3vePA.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CQ850_cO.js";const T={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{a as l,I as u,b as o}from"./Icon-
|
|
1
|
+
import{a as l,I as u,b as o}from"./Icon-CQ850_cO.js";import{d as i,t as E,c as t,g as d,n as c,r as I,o as R}from"./vue.esm-bundler-CzUSCRPq.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";const n={SMALL:"small",MEDIUM:"medium",LARGE:"large",X_LARGE:"xLarge"},a={DANGER:"danger",INFO:"info",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutralWeak",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning"},s=i({name:"FeatureIcon",components:{WnlIcon:l},props:{icon:{type:Object,default:null,validator(e){return Object.values(u).includes(E(e))}},size:{type:String,default:n.MEDIUM,validator:e=>Object.values(n).includes(e)},color:{type:String,required:!0,validator(e){return Object.values(a).includes(e)}},doubleBackground:{type:Boolean,default:!1}},data(){return{FEATURE_ICON_COLOR:Object.freeze(a),FEATURE_ICON_SIZES:Object.freeze(n)}},computed:{iconSize(){return this.size===n.SMALL?o.X_SMALL:this.size===n.LARGE?o.LARGE:this.size===n.X_LARGE?o.X_LARGE:o.MEDIUM}}});function A(e,m,C,f,p,N){const r=I("wnl-icon");return R(),t("div",{class:c(["ds-featureIcon",{"-ds-doubleBackground":e.doubleBackground,"-ds-danger":e.color===e.FEATURE_ICON_COLOR.DANGER,"-ds-info":e.color===e.FEATURE_ICON_COLOR.INFO,"-ds-neutral":e.color===e.FEATURE_ICON_COLOR.NEUTRAL,"-ds-neutralWeak":e.color===e.FEATURE_ICON_COLOR.NEUTRAL_WEAK,"-ds-primary":e.color===e.FEATURE_ICON_COLOR.PRIMARY,"-ds-success":e.color===e.FEATURE_ICON_COLOR.SUCCESS,"-ds-warning":e.color===e.FEATURE_ICON_COLOR.WARNING,"-ds-small":e.size===e.FEATURE_ICON_SIZES.SMALL,"-ds-medium":e.size===e.FEATURE_ICON_SIZES.MEDIUM,"-ds-large":e.size===e.FEATURE_ICON_SIZES.LARGE,"-ds-xLarge":e.size===e.FEATURE_ICON_SIZES.X_LARGE}])},[d(r,{class:"ds-featureIcon__icon",icon:e.icon,size:e.iconSize},null,8,["icon","size"])],2)}const U=O(s,[["render",A]]);s.__docgenInfo={displayName:"FeatureIcon",exportName:"default",description:"",tags:{},props:[{name:"icon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"FEATURE_ICON_SIZES.MEDIUM"}},{name:"color",type:{name:"string"},required:!0},{name:"doubleBackground",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue"]};export{U as F,n as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as c,a as n,b as s}from"./FeatureIcon-
|
|
1
|
+
import{F as c,a as n,b as s}from"./FeatureIcon-BralJUmR.js";import{I as a}from"./Icon-CQ850_cO.js";import"./vue.esm-bundler-CzUSCRPq.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:n.X_LARGE,icon:"FA_CIRCLE_QUESTION",color:s.PRIMARY,doubleBackground:!0},p={size:{control:"select",options:Object.values(n)},icon:{control:"select",options:[null,...Object.keys(a)]},color:{control:"select",options:Object.values(s)},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=1552%3A34963"}};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 y,t as M,c as o,f as l,h as s,a as n,g as f,n as i,u,s as p,b,r as C,o as t}from"./vue.esm-bundler-CzUSCRPq.js";import{D}from"./Checkbox-D_2ud6Th.js";import{D as V}from"./Divider-ClNbKvxH.js";import{a as $,I as v,c as U,b as z}from"./Icon-Daqcn32A.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={DEFAULT:"default",FLAT:"flat"},c={DEFAULT:"default",LOADING:"loading"},m={SMALL:"small",MEDIUM:"medium"},E={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"},B={SMALL:"small"},I={HORIZONTAL:"horizontal",VERTICAL:"vertical"},T=y({name:"RichListItem",components:{DsCheckbox:D,DsDivider:V,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:c.DEFAULT,validator(e){return Object.values(c).includes(e)}},size:{type:String,default:m.MEDIUM,validator(e){return Object.values(m).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(v).includes(M(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(U).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(E).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(B).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:()=>!0,"update:is-selected":e=>!0},data(){return{ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(z),RICH_LIST_ITEM_TYPE:Object.freeze(r),RICH_LIST_ITEM_STATE:Object.freeze(c),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===c.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&&!this.hasDraggableHandler,"-ds-has-media":this.hasMedia}},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.borderColor&&this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(!(!this.borderColor||!this.borderColorHex))return{backgroundColor:this.borderColorHex}},hasMedia(){return!!this.$slots.media}}}),G={key:0,class:"ds-richListItem__mediaVertical -ds-dimmable"},j={class:"ds-richListItem__container -ds-dimmable"},F={key:0,class:"ds-richListItem__mediaHorizontal"},w={key:1,class:"ds-richListItem__dragAndDrop"},Z={key:2,class:"ds-richListItem__iconWrapper"},K={class:"ds-richListItem__content"},W={class:"ds-richListItem__rightContainer"},P={key:0,class:"ds-richListItem__metadata"},Y={key:2,class:"ds-richListItem__checkbox"},X={key:1,class:"ds-richListItem__metadata -ds-dimmable"};function q(e,a,A,O,k,N){const _=C("ds-icon"),h=C("ds-divider"),H=C("ds-checkbox");return t(),o("div",{class:i(["ds-richListItem",e.classList]),onClick:a[5]||(a[5]=d=>e.$emit("click",d))},[e.hasMedia&&e.isVertical?(t(),o("div",G,[l(e.$slots,"media",{},void 0,!0)])):s("",!0),n("div",j,[e.hasMedia&&e.isHorizontal?(t(),o("div",F,[l(e.$slots,"media",{},void 0,!0)])):s("",!0),e.isDraggable&&e.hasDraggableHandler?(t(),o("div",w,[f(_,{icon:e.ICONS.FA_BARS,class:i(["ds-richListItem__dragAndDropIcon",{[e.draggableIconClassName]:!!e.draggableIconClassName}]),size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,onClick:a[0]||(a[0]=u(()=>{},["stop"]))},null,8,["icon","class","size"])])):s("",!0),e.icon?(t(),o("div",Z,[f(_,{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]=u(d=>e.$emit("icon-click"),["prevent"]))},null,8,["icon","size","class","style"])])):s("",!0),n("div",K,[l(e.$slots,"content",{},void 0,!0)]),n("div",W,[e.$slots.metadata&&e.isHorizontal?(t(),o("div",P,[l(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.$slots.actions?(t(),o("div",{key:1,class:"ds-richListItem__actionSlot",onClick:a[2]||(a[2]=u(()=>{},["stop"]))},[e.$slots.actions&&e.hasActionsSlotDivider&&e.isHorizontal?(t(),b(h,{key:0,"is-vertical":""})):s("",!0),l(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),o("div",Y,[e.isHorizontal?(t(),b(h,{key:0,"is-vertical":""})):s("",!0),f(H,{"is-selected":e.isSelected,"onUpdate:isSelected":a[3]||(a[3]=d=>e.$emit("update:is-selected",d)),onClick:a[4]||(a[4]=u(()=>{},["stop"]))},null,8,["is-selected"])])):s("",!0)])]),e.$slots.metadata&&e.isVertical?(t(),o("div",X,[l(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.borderColorClass||e.borderColorStyle?(t(),o("div",{key:2,class:i(["ds-richListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ie=R(T,[["render",q],["__scopeId","data-v-921cee2e"]]);T.__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 J={...E},S={...L},g=y({name:"GroupRichListItem",props:{isExpanded:{type:Boolean,default:!1},borderColor:{type:String,default:null,validator(e){return Object.values(J).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.borderColor&&this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(!(!this.borderColor||!this.borderColorHex))return{backgroundColor:this.borderColorHex}}}}),Q={class:"ds-groupRichListItem__wrapper"},x={class:"ds-groupRichListItem__parent"},ee={key:0,class:"ds-groupRichListItem__children"};function te(e,a,A,O,k,N){return t(),o("div",{class:i(["ds-groupRichListItem",e.classList])},[n("div",Q,[n("div",x,[l(e.$slots,"parent",{},void 0,!0)]),e.isExpanded?(t(),o("div",ee,[l(e.$slots,"children",{},void 0,!0)])):s("",!0)]),e.borderColorClass||e.borderColorStyle?(t(),o("div",{key:0,class:i(["ds-groupRichListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ne=R(g,[["render",te],["__scopeId","data-v-46a9680f"]]);g.__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{ne as G,r as R,m as a,I as b,c,E as d,L as e,B as f,S as g,J as h,ie as i};
|
|
1
|
+
import{d as y,t as M,c as o,f as l,h as s,a as n,g as f,n as i,u,s as p,b,r as C,o as t}from"./vue.esm-bundler-CzUSCRPq.js";import{D}from"./Checkbox-KYcZTLuT.js";import{D as V}from"./Divider-ClNbKvxH.js";import{a as $,I as v,c as U,b as z}from"./Icon-CQ850_cO.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={DEFAULT:"default",FLAT:"flat"},c={DEFAULT:"default",LOADING:"loading"},m={SMALL:"small",MEDIUM:"medium"},E={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"},B={SMALL:"small"},I={HORIZONTAL:"horizontal",VERTICAL:"vertical"},T=y({name:"RichListItem",components:{DsCheckbox:D,DsDivider:V,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:c.DEFAULT,validator(e){return Object.values(c).includes(e)}},size:{type:String,default:m.MEDIUM,validator(e){return Object.values(m).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(v).includes(M(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(U).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(E).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(B).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:()=>!0,"update:is-selected":e=>!0},data(){return{ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(z),RICH_LIST_ITEM_TYPE:Object.freeze(r),RICH_LIST_ITEM_STATE:Object.freeze(c),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===c.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&&!this.hasDraggableHandler,"-ds-has-media":this.hasMedia}},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.borderColor&&this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(!(!this.borderColor&&!this.borderColorHex))return{backgroundColor:this.borderColorHex}},hasMedia(){return!!this.$slots.media}}}),G={key:0,class:"ds-richListItem__mediaVertical -ds-dimmable"},j={class:"ds-richListItem__container -ds-dimmable"},F={key:0,class:"ds-richListItem__mediaHorizontal"},w={key:1,class:"ds-richListItem__dragAndDrop"},Z={key:2,class:"ds-richListItem__iconWrapper"},K={class:"ds-richListItem__content"},W={class:"ds-richListItem__rightContainer"},P={key:0,class:"ds-richListItem__metadata"},Y={key:2,class:"ds-richListItem__checkbox"},X={key:1,class:"ds-richListItem__metadata -ds-dimmable"};function q(e,a,A,O,k,N){const _=C("ds-icon"),h=C("ds-divider"),H=C("ds-checkbox");return t(),o("div",{class:i(["ds-richListItem",e.classList]),onClick:a[5]||(a[5]=d=>e.$emit("click",d))},[e.hasMedia&&e.isVertical?(t(),o("div",G,[l(e.$slots,"media",{},void 0,!0)])):s("",!0),n("div",j,[e.hasMedia&&e.isHorizontal?(t(),o("div",F,[l(e.$slots,"media",{},void 0,!0)])):s("",!0),e.isDraggable&&e.hasDraggableHandler?(t(),o("div",w,[f(_,{icon:e.ICONS.FA_BARS,class:i(["ds-richListItem__dragAndDropIcon",{[e.draggableIconClassName]:!!e.draggableIconClassName}]),size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,onClick:a[0]||(a[0]=u(()=>{},["stop"]))},null,8,["icon","class","size"])])):s("",!0),e.icon?(t(),o("div",Z,[f(_,{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]=u(d=>e.$emit("icon-click"),["prevent"]))},null,8,["icon","size","class","style"])])):s("",!0),n("div",K,[l(e.$slots,"content",{},void 0,!0)]),n("div",W,[e.$slots.metadata&&e.isHorizontal?(t(),o("div",P,[l(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.$slots.actions?(t(),o("div",{key:1,class:"ds-richListItem__actionSlot",onClick:a[2]||(a[2]=u(()=>{},["stop"]))},[e.$slots.actions&&e.hasActionsSlotDivider&&e.isHorizontal?(t(),b(h,{key:0,"is-vertical":""})):s("",!0),l(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),o("div",Y,[e.isHorizontal?(t(),b(h,{key:0,"is-vertical":""})):s("",!0),f(H,{"is-selected":e.isSelected,"onUpdate:isSelected":a[3]||(a[3]=d=>e.$emit("update:is-selected",d)),onClick:a[4]||(a[4]=u(()=>{},["stop"]))},null,8,["is-selected"])])):s("",!0)])]),e.$slots.metadata&&e.isVertical?(t(),o("div",X,[l(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.borderColorClass||e.borderColorStyle?(t(),o("div",{key:2,class:i(["ds-richListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ie=R(T,[["render",q],["__scopeId","data-v-50869a1f"]]);T.__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 J={...E},S={...L},g=y({name:"GroupRichListItem",props:{isExpanded:{type:Boolean,default:!1},borderColor:{type:String,default:null,validator(e){return Object.values(J).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.borderColor&&this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(!(!this.borderColor||!this.borderColorHex))return{backgroundColor:this.borderColorHex}}}}),Q={class:"ds-groupRichListItem__wrapper"},x={class:"ds-groupRichListItem__parent"},ee={key:0,class:"ds-groupRichListItem__children"};function te(e,a,A,O,k,N){return t(),o("div",{class:i(["ds-groupRichListItem",e.classList])},[n("div",Q,[n("div",x,[l(e.$slots,"parent",{},void 0,!0)]),e.isExpanded?(t(),o("div",ee,[l(e.$slots,"children",{},void 0,!0)])):s("",!0)]),e.borderColorClass||e.borderColorStyle?(t(),o("div",{key:0,class:i(["ds-groupRichListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ne=R(g,[["render",te],["__scopeId","data-v-46a9680f"]]);g.__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{ne as G,r as R,m as a,I as b,c,E as d,L as e,B as f,S as g,J as h,ie as i};
|
package/docs/assets/{GroupRichListItem.stories-B1-_fsF-.js → GroupRichListItem.stories-ClHv1fNz.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as n,g,a,c as s,h as D,f as _,i as b,R as S}from"./GroupRichListItem-
|
|
1
|
+
import{G as n,g,a,c as s,h as D,f as _,i as b,R as S}from"./GroupRichListItem-DZzp4b-c.js";import{D as T}from"./Divider-ClNbKvxH.js";import{c,I as d}from"./Icon-CQ850_cO.js";import"./vue.esm-bundler-CzUSCRPq.js";import"./Checkbox-KYcZTLuT.js";import"./SelectionControl-C2m3ylYI.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"
|