@bethinkpl/design-system 26.14.7 → 26.14.9
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 +8 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +2 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +4 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +2 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +6 -0
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +4 -0
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +2 -0
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +14 -0
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +8 -0
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +2 -0
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +2 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +6 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +6 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +2 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +2 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +8 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +8 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +2 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +8 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +2 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +2 -0
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +4 -0
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +4 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +6 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +2 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +2 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +10 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +10 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +2 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +10 -0
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +2 -0
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +2 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +2 -0
- package/dist/lib/js/icons/fontawesome.d.ts +2 -0
- package/docs/assets/{AccessStatus-CyBzoERh.js → AccessStatus-CGnNcMlb.js} +1 -1
- package/docs/assets/{AccessStatus.stories-0sPTYvv-.js → AccessStatus.stories-D-joThPx.js} +1 -1
- package/docs/assets/{Avatar-CpVRA8eL.js → Avatar-Ce5XbKKY.js} +1 -1
- package/docs/assets/{Avatar.stories-DYYzlAKd.js → Avatar.stories-DSstbDoo.js} +1 -1
- package/docs/assets/{Badge-u3iER_tw.js → Badge-DwaAe2hE.js} +1 -1
- package/docs/assets/{Badge.stories-68InXnru.js → Badge.stories-Cbakkf_B.js} +1 -1
- package/docs/assets/{BadgeScore-D9YU0SxW.js → BadgeScore-wy93bXgK.js} +1 -1
- package/docs/assets/{BadgeScore.stories-DXa2SIZi.js → BadgeScore.stories-DY6gfwYr.js} +1 -1
- package/docs/assets/{Banner-CzZi1DCQ.js → Banner-B9Tr_i8L.js} +1 -1
- package/docs/assets/{Banner.stories-B-TmP4Qn.js → Banner.stories-DWEKk5dM.js} +1 -1
- package/docs/assets/{BasicRichListItem-wfUgcNwn.js → BasicRichListItem-EHksywrU.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-W9l_aixV.js → BasicRichListItem.stories-ISlFYvCI.js} +1 -1
- package/docs/assets/{BlockadeStatus-PJXAHtcH.js → BlockadeStatus-CMiMJ44p.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-yb8Gx4CW.js → BlockedeStatus.stories-BYDVudbT.js} +1 -1
- package/docs/assets/{Button-D3r6zRpz.js → Button-BspEkV6x.js} +1 -1
- package/docs/assets/{Button.stories-Dcd8w8jX.js → Button.stories-DZ52UjGc.js} +1 -1
- package/docs/assets/{CardExpandable-wW2aRczX.js → CardExpandable-BWWt4G-H.js} +1 -1
- package/docs/assets/{CardExpandable.stories-emEQ3Bx6.js → CardExpandable.stories-CIwn6Vo9.js} +1 -1
- package/docs/assets/{Checkbox-BvMvx4PF.js → Checkbox-C4-1HpKO.js} +1 -1
- package/docs/assets/{Checkbox.stories-5L9Gq8wk.js → Checkbox.stories-BbnMf-xs.js} +1 -1
- package/docs/assets/{Chip-BYE4kNFs.js → Chip-DQKjSxOw.js} +1 -1
- package/docs/assets/{Chip.stories-DOr6xkEZ.js → Chip.stories-D59LB8Li.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-f5EO1Xze.js → Color-ERTF36HU-uH_nFL28.js} +1 -1
- package/docs/assets/{CounterToggle-B4zpnblt.js → CounterToggle-BHx5fQcS.js} +1 -1
- package/docs/assets/{CounterToggle.stories-Cgi6C5eJ.js → CounterToggle.stories-bp-J5qBR.js} +1 -1
- package/docs/assets/{DateBox.stories-UUfa4Dts.js → DateBox.stories-C6CMLw_w.js} +1 -1
- package/docs/assets/{DatePicker-DY42cXCh.js → DatePicker-C-1wTByq.js} +1 -1
- package/docs/assets/{DatePicker.stories-QEw34B4K.js → DatePicker.stories-_mZqvqHL.js} +1 -1
- package/docs/assets/DateRangePicker-BgM4UM4T.js +1 -0
- package/docs/assets/{DateRangePicker.stories-CGH40zYh.js → DateRangePicker.stories-93Slgmlz.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-DOhVgwyq.js → DocsRenderer-CFRXHY34-tOqzxQlO.js} +5 -5
- package/docs/assets/{DrawerHeader-hSkqwqnX.js → DrawerHeader-4iw56M9S.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-DGBCV6vH.js → DrawerHeader.stories-DbjD5Kob.js} +1 -1
- package/docs/assets/{DrawerListItem-DmA8l7uW.js → DrawerListItem-BcMjiOPy.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-CNCj3QWp.js → DrawerListItem.stories-BTDse0Ly.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-sE4_jJ1F.js → DrawerListItemGroup.stories-CCjEl3Qc.js} +1 -1
- package/docs/assets/{DrawerSection-B5yppbeb.js → DrawerSection-CJve_uPO.js} +1 -1
- package/docs/assets/{DrawerSection.stories-uW3koial.js → DrawerSection.stories-CW3ar6_9.js} +1 -1
- package/docs/assets/{DrawerTile-LBwEy57Y.js → DrawerTile-CJMOxl7M.js} +1 -1
- package/docs/assets/{DrawerTile.stories-Bhq7RbK4.js → DrawerTile.stories-D-WFiGyA.js} +1 -1
- package/docs/assets/{Dropdown.stories-BuGtUidH.js → Dropdown.stories-DYgrjeCS.js} +1 -1
- package/docs/assets/{FeatureIcon-CX-tLUP-.js → FeatureIcon-D1pT2eRN.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-DTGhAygI.js → FeatureIcon.stories-Pjv2IhFN.js} +1 -1
- package/docs/assets/{GroupRichListItem-DCe6ppc2.js → GroupRichListItem-ZRcp4uu7.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-C-HPJVJV.js → GroupRichListItem.stories-CANW2eUN.js} +1 -1
- package/docs/assets/{Icon-mlOEH8dY.js → Icon-CytrC3Ws.js} +6 -6
- package/docs/assets/{Icon.stories-C_dap68e.js → Icon.stories-QBxgAX7L.js} +1 -1
- package/docs/assets/{IconButton-CZPMfbyF.js → IconButton-D1G48iNF.js} +1 -1
- package/docs/assets/{IconButton.stories-BNvZEFYF.js → IconButton.stories-nkUTGd5p.js} +1 -1
- package/docs/assets/{IconText-BVEyT_xO.js → IconText-CQ2EOPS3.js} +1 -1
- package/docs/assets/{IconText.stories-Dos4wpXU.js → IconText.stories-CYyY8k8w.js} +1 -1
- package/docs/assets/{Modal-BBZIcGX3.js → Modal-D7FYbnpP.js} +1 -1
- package/docs/assets/{Modal.stories-BcsTO1Q0.js → Modal.stories-B4nhKbEw.js} +1 -1
- package/docs/assets/{ModalDialog-WFMRAk1N.js → ModalDialog-hJS5-Cvl.js} +1 -1
- package/docs/assets/{ModalDialog.stories-MuifsKhJ.js → ModalDialog.stories-CbShiK1Z.js} +1 -1
- package/docs/assets/{OutlineItem-CTj7r8p5.js → OutlineItem-DxyGNhy0.js} +1 -1
- package/docs/assets/{OutlineItem.stories-D5ClHBwk.js → OutlineItem.stories-DYkOeuFr.js} +1 -1
- package/docs/assets/{OverlayHeader-DUuFsfnH.js → OverlayHeader-CoWd_rAb.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-zXHPPbic.js → OverlayHeader.stories-DRA9O825.js} +1 -1
- package/docs/assets/{Pagination-0MF4UxvJ.js → Pagination-B2EizK9F.js} +1 -1
- package/docs/assets/{Pagination.stories-BCM_Mbew.js → Pagination.stories-DhUcDKHI.js} +1 -1
- package/docs/assets/{PopOver-B3x4u7_M.js → PopOver-CEiHBD0K.js} +1 -1
- package/docs/assets/{PopOver.stories-BMGWNs0f.js → PopOver.stories-jIxSKRkg.js} +1 -1
- package/docs/assets/{ProgressBar-CSyKJzJ7.js → ProgressBar-BvzrsS6B.js} +1 -1
- package/docs/assets/{ProgressBar.stories-BzcvqT0X.js → ProgressBar.stories-Z4jewKzH.js} +1 -1
- package/docs/assets/{ProgressDonutChart-CMlfnJIg.js → ProgressDonutChart-B7aAm79i.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-DU3dcYKw.js → ProgressDonutChart.stories-DvgOxiji.js} +1 -1
- package/docs/assets/{RadioButton-CZBArMaJ.js → RadioButton-BP_xSqRz.js} +1 -1
- package/docs/assets/{RadioButton.stories-DxbA75Q-.js → RadioButton.stories-gdWo9JRu.js} +1 -1
- package/docs/assets/{RichListItem.stories-DVkAZ8mq.js → RichListItem.stories-Bhq-H3o3.js} +1 -1
- package/docs/assets/{SectionHeader-D9YtyaAD.js → SectionHeader-BB4a8U3x.js} +1 -1
- package/docs/assets/{SectionHeader.stories-CdOsztQo.js → SectionHeader.stories-CkORFOdL.js} +1 -1
- package/docs/assets/{SelectList.stories-Dq_2i6I2.js → SelectList.stories-wPjCN2Hi.js} +1 -1
- package/docs/assets/{SelectListItem-BTuKM0w4.js → SelectListItem-Bd8O0NCh.js} +1 -1
- package/docs/assets/{SelectListItem.stories-wLkoUQxJ.js → SelectListItem.stories-CkpKE3P4.js} +1 -1
- package/docs/assets/{SelectListItemTile-DjvYvZN2.js → SelectListItemTile-CXr5iXVh.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-BERL6roD.js → SelectListItemTile.stories-C_Z3MQ0H.js} +1 -1
- package/docs/assets/{SelectListItemToggle-BOlj9KDe.js → SelectListItemToggle-D3c7ZwdI.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-i_Fit9iz.js → SelectListItemToggle.stories-DXmW5UuX.js} +1 -1
- package/docs/assets/{SelectionControl-CPSdtLfn.js → SelectionControl-k2rO_ZDX.js} +1 -1
- package/docs/assets/{SelectionTile-DXITCKt_.js → SelectionTile-BFDhuh-k.js} +2 -2
- package/docs/assets/{SelectionTile.stories-TMooL-WG.js → SelectionTile.stories-DIRy9HXD.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-DWI9C78d.js → SurveyQuestionOpenEnded-jQ5oxfE_.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-CYrLDfB9.js → SurveyQuestionOpenEnded.stories-CGdAFkuU.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-BVMA41EG.js → SurveyQuestionScale-DJkJami8.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-DPZ-AjFp.js → SurveyQuestionScale.stories-Dv_IfI4O.js} +1 -1
- package/docs/assets/{SurveyToggle-pbbLpF_K.js → SurveyToggle-Da_RDBHk.js} +1 -1
- package/docs/assets/{SurveyToggle.stories-Da2KtymG.js → SurveyToggle.stories-Dc1xWmo3.js} +1 -1
- package/docs/assets/{Switch-mI22_wqI.js → Switch-BW1DYjhE.js} +1 -1
- package/docs/assets/{Switch.stories-DJbgEX5x.js → Switch.stories-On5GbpK0.js} +1 -1
- package/docs/assets/{TabItem-4XkUTn2I.js → TabItem-cCxUq9SH.js} +1 -1
- package/docs/assets/{TabItem.stories-CxZNhXoy.js → TabItem.stories-KQLETE1X.js} +1 -1
- package/docs/assets/{Tile-0yOu7J1-.js → Tile-DXOYbUz7.js} +1 -1
- package/docs/assets/{Tile.sb.shared-BIRwKt3g.js → Tile.sb.shared-9_Eyhwmq.js} +1 -1
- package/docs/assets/{Tile.stories-DTemmawI.js → Tile.stories-CjBrMb2f.js} +1 -1
- package/docs/assets/{Toast-DlXptQwk.js → Toast-CZcuGptt.js} +1 -1
- package/docs/assets/{Toast.stories-C1j6ZAmy.js → Toast.stories-CJsok2aE.js} +1 -1
- package/docs/assets/{ToggleButton-C-1JM2Me.js → ToggleButton-BOxfkVg6.js} +1 -1
- package/docs/assets/{ToggleButton.stories-FqBRCElp.js → ToggleButton.stories-B3LGwwTO.js} +1 -1
- package/docs/assets/{Tooltip.stories-CCYTS-Fb.js → Tooltip.stories-C4fS4gBL.js} +1 -1
- package/docs/assets/{Well-Cey8Z7qW.js → Well-CFXJEAct.js} +1 -1
- package/docs/assets/{Well.stories-DAG6cTio.js → Well.stories-CD3NOykX.js} +1 -1
- package/docs/assets/{iframe-BV9pp8nM.js → iframe-BorftRc6.js} +4 -4
- package/docs/assets/{index-DixXTKS5.js → index-BFHz6C5r.js} +1 -1
- package/docs/assets/{index-Mn08sn7H.js → index-DHVt3G8q.js} +1 -1
- package/docs/assets/{preview-DKZFXKYW.js → preview-CqdwwHjh.js} +1 -1
- package/docs/assets/{preview-BXmx0WAE.js → preview-e9x7yjLo.js} +2 -2
- package/docs/assets/{string-fni2Tsvs.js → string-FgB6VwTw.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +0 -28
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue +0 -28
- package/lib/js/icons/fontawesome.ts +4 -0
- package/package.json +1 -1
- package/docs/assets/DateRangePicker-D2oNTXTe.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,c as s,a as i,b as n,e as v,g as l,n as r,j as u,f,r as o,o as a,l as S}from"./vue.esm-bundler-C__e7YM5.js";import{D as _,a as C,I as T}from"./Button-
|
|
1
|
+
import{d as y,c as s,a as i,b as n,e as v,g as l,n as r,j as u,f,r as o,o as a,l as S}from"./vue.esm-bundler-C__e7YM5.js";import{D as _,a as C,I as T}from"./Button-BspEkV6x.js";import{D,b as N,a as O}from"./Divider-C8Drds6C.js";import{I as w}from"./IconButton-D1G48iNF.js";import{C as k}from"./Chip-DQKjSxOw.js";import{a as R,I as L,b as V}from"./Icon-CytrC3Ws.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const H={NEUTRAL_STRONG:"neutralStrong",NEUTRAL_WEAK:"neutralWeak"},p=y({name:"DrawerHeader",components:{DsButton:_,Divider:D,Icon:R,IconButton:w,Chip:k},props:{eyebrowText:{type:String,default:null},isInteractiveEyebrow:{type:Boolean,default:!1},eyebrowEllipsis:{type:Boolean,default:!1},title:{type:String,default:null},titleEllipsis:{type:Boolean,default:!1},titleColor:{type:String,default: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"},A={class:"ds-drawerHeader__title"},h=["title"],z={key:3},U={key:1,class:"ds-drawerHeader__actions"};function j(e,t,Z,M,W,P){const c=o("ds-button"),m=o("icon"),E=o("chip"),I=o("icon-button"),b=o("divider");return a(),s("div",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",A,[e.leftIcon?(a(),n(m,{key:0,icon:e.leftIcon,size:e.ICON_SIZES.X_SMALL,class:"ds-drawerHeader__leftIcon"},null,8,["icon","size"])):l("",!0),e.title?(a(),s("span",{key:1,class:r(["ds-drawerHeader__titleText",{"-ds-ellipsis":e.titleEllipsis,[`-ds-${e.titleColor}`]:!0}]),title:e.titleEllipsis?e.title:void 0},u(e.title),11,h)):l("",!0),e.chipLabel?(a(),n(E,{key:2,label:e.chipLabel},null,8,["label"])):l("",!0),e.$slots.titleTrailing?(a(),s("div",z,[f(e.$slots,"titleTrailing",{},void 0,!0)])):l("",!0)])],2),e.$slots.actions?(a(),s("div",U,[f(e.$slots,"actions",{},void 0,!0)])):l("",!0),e.isClosable?(a(),n(I,{key:2,icon:e.ICONS.FA_XMARK,size:e.ICON_BUTTON_SIZES.MEDIUM,touchable:!1,onClick:t[2]||(t[2]=d=>e.$emit("close"))},null,8,["icon","size"])):l("",!0)]),e.hasDivider?(a(),n(b,{key:0,size:e.DIVIDER_SIZES.L,prominence:e.DIVIDER_PROMINENCES.WEAK},null,8,["size","prominence"])):l("",!0)])}const Q=B(p,[["render",j],["__scopeId","data-v-5b63b67e"]]);p.__docgenInfo={displayName:"DrawerHeader",exportName:"default",description:"",tags:{},props:[{name:"eyebrowText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isInteractiveEyebrow",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"title",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"titleEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"titleColor",type:{name:"DrawerHeaderTitleColor"},defaultValue:{func:!1,value:"DRAWER_HEADER_TITLE_COLORS.NEUTRAL_STRONG"}},{name:"leftIcon",type:{name:"object|null"},defaultValue:{func:!1,value:"null"}},{name:"chipLabel",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"isClosable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSecondLevel",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"backClicked"},{name:"eyebrowClicked"},{name:"close"}],slots:[{name:"titleTrailing"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue"]};export{Q as D,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-4iw56M9S.js";import{I as n}from"./Icon-CytrC3Ws.js";import"./vue.esm-bundler-C__e7YM5.js";import"./Button-BspEkV6x.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Divider-C8Drds6C.js";import"./IconButton-D1G48iNF.js";import"./device-9fgosCm4.js";import"./Chip-DQKjSxOw.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,j as r,b as _,r as c,o as t}from"./vue.esm-bundler-C__e7YM5.js";import{a as l,I,b as m}from"./Icon-
|
|
1
|
+
import{d as i,c as a,a as d,j as r,b as _,r as c,o as t}from"./vue.esm-bundler-C__e7YM5.js";import{a as l,I,b as m}from"./Icon-CytrC3Ws.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 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-CNCj3QWp.js → DrawerListItem.stories-BTDse0Ly.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-BcMjiOPy.js";import"./vue.esm-bundler-C__e7YM5.js";import"./Icon-CytrC3Ws.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-DHghqnvr.js";import{D as m}from"./DrawerListItem-
|
|
1
|
+
import{D as s}from"./DrawerListItemGroup-DHghqnvr.js";import{D as m}from"./DrawerListItem-BcMjiOPy.js";import"./vue.esm-bundler-C__e7YM5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CytrC3Ws.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-CytrC3Ws.js";import"./IconButton-D1G48iNF.js";import{i as f,I as p}from"./Button-BspEkV6x.js";import{b as c,S as a,a as s}from"./SectionHeader-BB4a8U3x.js";import{d as m,t as n,c as i,b as E,g as o,f as r,r as S,o as t}from"./vue.esm-bundler-C__e7YM5.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(f),ICON_BUTTON_SIZES:Object.freeze(p),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"},I={key:1},b={key:2};function C(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",I,[r(e.$slots,"default")])):o("",!0),e.$slots.uncollapsible?(t(),i("div",b,[r(e.$slots,"uncollapsible")])):o("",!0)])}const A=O(d,[["render",C]]);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{A as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as r}from"./DrawerSection-
|
|
1
|
+
import{D as r}from"./DrawerSection-CJve_uPO.js";import{S as n,a as l}from"./SectionHeader-BB4a8U3x.js";import{I as t}from"./Icon-CytrC3Ws.js";import"./IconButton-D1G48iNF.js";import"./Button-BspEkV6x.js";import"./vue.esm-bundler-C__e7YM5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./device-9fgosCm4.js";import"./Divider-C8Drds6C.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{c as n,p as t}from"./Tile-
|
|
1
|
+
import{c as n,p as t}from"./Tile-DXOYbUz7.js";import{d as a,c as i,k as c,p,r as l,o as m}from"./vue.esm-bundler-C__e7YM5.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o=a({name:"DrawerTile",components:{DsTile:n},props:t,emits:{click:()=>!0}}),_={class:"ds-drawerTile"};function f(e,s,u,k,w,D){const r=l("ds-tile");return m(),i("div",_,[c(r,p(e.$props,{onClick:s[0]||(s[0]=T=>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-CJMOxl7M.js";import{a as p,b as n,t as m,d as i}from"./Tile.sb.shared-9_Eyhwmq.js";import"./Tile-DXOYbUz7.js";import"./Icon-CytrC3Ws.js";import"./vue.esm-bundler-C__e7YM5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Banner-B9Tr_i8L.js";import"./Button-BspEkV6x.js";import"./Divider-C8Drds6C.js";import"./IconButton-D1G48iNF.js";import"./device-9fgosCm4.js";const _={title:"Components/Drawer/DrawerTile",component:o},c=s=>({components:{DrawerTile:o},setup(){return s},template:m("drawer-tile"),data:i}),e=c.bind({});e.argTypes=p;e.args=n;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-T-DajGjx.js";import{S as c}from"./SelectList-D5Bts8VC.js";import{S as p}from"./SelectListItem-
|
|
1
|
+
import{D as i,a,b as r,c as l}from"./Dropdown-T-DajGjx.js";import{S as c}from"./SelectList-D5Bts8VC.js";import{S as p}from"./SelectListItem-Bd8O0NCh.js";import"./vue-popper-BvR5iCy5.js";import"./_commonjsHelpers-Chg3vePA.js";import"./vue.esm-bundler-C__e7YM5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-CytrC3Ws.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-CytrC3Ws.js";import{d as i,t as E,c as t,k as d,n as c,r as I,o as R}from"./vue.esm-bundler-C__e7YM5.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-D1pT2eRN.js";import{I as a}from"./Icon-CytrC3Ws.js";import"./vue.esm-bundler-C__e7YM5.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 g,t as D,c as l,f as o,g as s,a as d,n as i,k as f,x as c,s as p,b,r as C,o as t}from"./vue.esm-bundler-C__e7YM5.js";import{D as M}from"./Divider-C8Drds6C.js";import{D as V}from"./Checkbox-BvMvx4PF.js";import{a as $,I as v,c as U,b as z}from"./Icon-mlOEH8dY.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={DEFAULT:"default",FLAT:"flat"},n={DEFAULT:"default",LOADING:"loading",DRAG:"drag"},m={SMALL:"small",MEDIUM:"medium"},y={DEFAULT:"default",PRIMARY:"primary",PRIMARY_WEAK:"primary-weak",NEUTRAL_HEAVY:"neutral-heavy",NEUTRAL_STRONG:"neutral-strong",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak",NEUTRAL_GHOST:"neutral-ghost",DANGER:"danger",DANGER_WEAK:"danger-weak",FAIL:"fail",FAIL_WEAK:"fail-weak",WARNING:"warning",WARNING_WEAK:"warning-weak",SUCCESS:"success",SUCCESS_WEAK:"success-weak",INFO:"info",INFO_WEAK:"info-weak",ACCENT:"accent",ACCENT_WEAK:"accent-weak"},L={NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak"},G={SMALL:"small"},I={HORIZONTAL:"horizontal",VERTICAL:"vertical"},E=g({name:"RichListItem",components:{DsCheckbox:V,DsDivider:M,DsIcon:$},props:{type:{type:String,default:r.DEFAULT,validator(e){return Object.values(r).includes(e)}},layout:{type:String,default:I.HORIZONTAL,validator(e){return Object.values(I).includes(e)}},state:{type:String,default:n.DEFAULT,validator(e){return Object.values(n).includes(e)}},size:{type:String,default:m.MEDIUM,validator(e){return Object.values(m).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(v).includes(D(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(U).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(y).includes(e)}},borderColorHex:{type:String,default:null},draggableIconClassName:{type:String,default:null},backgroundColor:{type:String,default:L.NEUTRAL,validator(e){return Object.values(L).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(G).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1}},emits:{"icon-click":()=>!0,click:e=>!0,"update:is-selected":e=>!0},data(){return{ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(z),RICH_LIST_ITEM_TYPE:Object.freeze(r),RICH_LIST_ITEM_STATE:Object.freeze(n),RICH_LIST_ITEM_SIZE:Object.freeze(m)}},computed:{classList(){return{"-ds-default":this.type===r.DEFAULT,"-ds-flat":this.type===r.FLAT,"-ds-horizontal":this.isHorizontal,"-ds-verticalWithMedia":this.isVertical&&this.hasMedia,"-ds-vertical":this.isVertical,"-ds-loading":this.state===n.LOADING,"-ds-dimmed":this.isDimmed,"-ds-interactive":this.isInteractive,"-ds-small":this.size===m.SMALL,...this.backgroundColor&&this.type!==r.FLAT&&{[`-ds-background-${this.backgroundColor}`]:!0},...this.elevation&&this.type!==r.FLAT&&{[`-ds-elevation-${this.elevation}`]:!0},"-ds-draggable":this.isDraggable,"-ds-draggable-without-handler":this.isDraggable&&!this.hasDraggableHandler,"-ds-has-media":this.hasMedia,"-ds-drag":this.isDragging}},isHorizontal(){return this.layout===I.HORIZONTAL},isVertical(){return this.layout===I.VERTICAL},iconColorClass(){if(!(!this.iconColor||this.iconColor&&this.iconColorHex))return`-ds-${this.iconColor}`},iconColorStyle(){if(!(!this.iconColor||!this.iconColorHex))return{color:this.iconColorHex}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}},hasMedia(){return!!this.$slots.media},isDragging(){return this.isDraggable&&this.state===n.DRAG}}}),B={key:0,class:"ds-richListItem__mediaVertical -ds-dimmable"},j={class:"ds-richListItem__container -ds-dimmable"},F={key:0,class:"ds-richListItem__mediaHorizontal"},w={key:2,class:"ds-richListItem__iconWrapper"},Z={class:"ds-richListItem__content"},K={class:"ds-richListItem__rightContainer"},W={key:0,class:"ds-richListItem__metadata"},P={key:2,class:"ds-richListItem__checkbox"},Y={key:1,class:"ds-richListItem__metadata -ds-dimmable"};function X(e,a,A,O,k,N){const h=C("ds-icon"),_=C("ds-divider"),H=C("ds-checkbox");return t(),l("div",{class:i(["ds-richListItem",e.classList]),onClick:a[5]||(a[5]=u=>e.$emit("click",u))},[e.hasMedia&&e.isVertical?(t(),l("div",B,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),d("div",j,[e.hasMedia&&e.isHorizontal?(t(),l("div",F,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),e.isDraggable&&e.hasDraggableHandler?(t(),l("div",{key:1,class:i(["ds-richListItem__dragAndDrop",{[e.draggableIconClassName]:!!e.draggableIconClassName}])},[f(h,{icon:e.ICONS.FA_BARS,class:"ds-richListItem__dragAndDropIcon",size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,onClick:a[0]||(a[0]=c(()=>{},["stop"]))},null,8,["icon","size"])],2)):s("",!0),e.icon?(t(),l("div",w,[f(h,{icon:e.icon,class:i(["ds-richListItem__icon",e.iconColorClass]),size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,style:p(e.iconColorStyle),onClick:a[1]||(a[1]=c(u=>e.$emit("icon-click"),["prevent"]))},null,8,["icon","size","class","style"])])):s("",!0),d("div",Z,[o(e.$slots,"content",{},void 0,!0)]),d("div",K,[e.$slots.metadata&&e.isHorizontal?(t(),l("div",W,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.$slots.actions?(t(),l("div",{key:1,class:"ds-richListItem__actionSlot",onClick:a[2]||(a[2]=c(()=>{},["stop"]))},[e.$slots.actions&&e.hasActionsSlotDivider&&e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),o(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),l("div",P,[e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),f(H,{"is-selected":e.isSelected,"onUpdate:isSelected":a[3]||(a[3]=u=>e.$emit("update:is-selected",u)),onClick:a[4]||(a[4]=c(()=>{},["stop"]))},null,8,["is-selected"])])):s("",!0)])]),e.$slots.metadata&&e.isVertical?(t(),l("div",Y,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:2,class:i(["ds-richListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const re=R(E,[["render",X],["__scopeId","data-v-306ca009"]]);E.__docgenInfo={displayName:"RichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"draggableIconClassName",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"click"},{name:"icon-click"},{name:"update:is-selected"}],slots:[{name:"media"},{name:"content"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/RichListItem/RichListItem.vue"]};const q={...y},S={...L},T=g({name:"GroupRichListItem",props:{isExpanded:{type:Boolean,default:!1},borderColor:{type:String,default:null,validator(e){return Object.values(q).includes(e)}},borderColorHex:{type:String,default:null},backgroundColor:{type:String,default:S.NEUTRAL,validator(e){return Object.values(S).includes(e)}}},computed:{classList(){return{...this.backgroundColor&&{[`-ds-background-${this.backgroundColor}`]:!0}}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}}}}),J={class:"ds-groupRichListItem__wrapper"},Q={class:"ds-groupRichListItem__parent"},x={key:0,class:"ds-groupRichListItem__children"};function ee(e,a,A,O,k,N){return t(),l("div",{class:i(["ds-groupRichListItem",e.classList])},[d("div",J,[d("div",Q,[o(e.$slots,"parent",{},void 0,!0)]),e.isExpanded?(t(),l("div",x,[o(e.$slots,"children",{},void 0,!0)])):s("",!0)]),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:0,class:i(["ds-groupRichListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ie=R(T,[["render",ee],["__scopeId","data-v-f6870d20"]]);T.__docgenInfo={displayName:"GroupRichListItem",exportName:"default",description:"",tags:{},props:[{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"borderColor",type:{name:"GroupRichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"GroupRichListItemBackgroundColor"},defaultValue:{func:!1,value:"GROUP_RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}}],slots:[{name:"parent"},{name:"children"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue"]};export{ie as G,r as R,m as a,I as b,n as c,y as d,L as e,G as f,S as g,q as h,re as i};
|
|
1
|
+
import{d as g,t as D,c as l,f as o,g as s,a as d,n as i,k as f,x as c,s as p,b,r as C,o as t}from"./vue.esm-bundler-C__e7YM5.js";import{D as M}from"./Divider-C8Drds6C.js";import{D as V}from"./Checkbox-C4-1HpKO.js";import{a as $,I as v,c as U,b as z}from"./Icon-CytrC3Ws.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";const r={DEFAULT:"default",FLAT:"flat"},n={DEFAULT:"default",LOADING:"loading",DRAG:"drag"},m={SMALL:"small",MEDIUM:"medium"},y={DEFAULT:"default",PRIMARY:"primary",PRIMARY_WEAK:"primary-weak",NEUTRAL_HEAVY:"neutral-heavy",NEUTRAL_STRONG:"neutral-strong",NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak",NEUTRAL_GHOST:"neutral-ghost",DANGER:"danger",DANGER_WEAK:"danger-weak",FAIL:"fail",FAIL_WEAK:"fail-weak",WARNING:"warning",WARNING_WEAK:"warning-weak",SUCCESS:"success",SUCCESS_WEAK:"success-weak",INFO:"info",INFO_WEAK:"info-weak",ACCENT:"accent",ACCENT_WEAK:"accent-weak"},L={NEUTRAL:"neutral",NEUTRAL_WEAK:"neutral-weak"},G={SMALL:"small"},I={HORIZONTAL:"horizontal",VERTICAL:"vertical"},E=g({name:"RichListItem",components:{DsCheckbox:V,DsDivider:M,DsIcon:$},props:{type:{type:String,default:r.DEFAULT,validator(e){return Object.values(r).includes(e)}},layout:{type:String,default:I.HORIZONTAL,validator(e){return Object.values(I).includes(e)}},state:{type:String,default:n.DEFAULT,validator(e){return Object.values(n).includes(e)}},size:{type:String,default:m.MEDIUM,validator(e){return Object.values(m).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(v).includes(D(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(U).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(y).includes(e)}},borderColorHex:{type:String,default:null},draggableIconClassName:{type:String,default:null},backgroundColor:{type:String,default:L.NEUTRAL,validator(e){return Object.values(L).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(G).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1}},emits:{"icon-click":()=>!0,click:e=>!0,"update:is-selected":e=>!0},data(){return{ICONS:Object.freeze(v),ICON_SIZES:Object.freeze(z),RICH_LIST_ITEM_TYPE:Object.freeze(r),RICH_LIST_ITEM_STATE:Object.freeze(n),RICH_LIST_ITEM_SIZE:Object.freeze(m)}},computed:{classList(){return{"-ds-default":this.type===r.DEFAULT,"-ds-flat":this.type===r.FLAT,"-ds-horizontal":this.isHorizontal,"-ds-verticalWithMedia":this.isVertical&&this.hasMedia,"-ds-vertical":this.isVertical,"-ds-loading":this.state===n.LOADING,"-ds-dimmed":this.isDimmed,"-ds-interactive":this.isInteractive,"-ds-small":this.size===m.SMALL,...this.backgroundColor&&this.type!==r.FLAT&&{[`-ds-background-${this.backgroundColor}`]:!0},...this.elevation&&this.type!==r.FLAT&&{[`-ds-elevation-${this.elevation}`]:!0},"-ds-draggable":this.isDraggable,"-ds-draggable-without-handler":this.isDraggable&&!this.hasDraggableHandler,"-ds-has-media":this.hasMedia,"-ds-drag":this.isDragging}},isHorizontal(){return this.layout===I.HORIZONTAL},isVertical(){return this.layout===I.VERTICAL},iconColorClass(){if(!(!this.iconColor||this.iconColor&&this.iconColorHex))return`-ds-${this.iconColor}`},iconColorStyle(){if(!(!this.iconColor||!this.iconColorHex))return{color:this.iconColorHex}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}},hasMedia(){return!!this.$slots.media},isDragging(){return this.isDraggable&&this.state===n.DRAG}}}),B={key:0,class:"ds-richListItem__mediaVertical -ds-dimmable"},j={class:"ds-richListItem__container -ds-dimmable"},F={key:0,class:"ds-richListItem__mediaHorizontal"},w={key:2,class:"ds-richListItem__iconWrapper"},Z={class:"ds-richListItem__content"},K={class:"ds-richListItem__rightContainer"},W={key:0,class:"ds-richListItem__metadata"},P={key:2,class:"ds-richListItem__checkbox"},Y={key:1,class:"ds-richListItem__metadata -ds-dimmable"};function X(e,a,A,O,k,N){const h=C("ds-icon"),_=C("ds-divider"),H=C("ds-checkbox");return t(),l("div",{class:i(["ds-richListItem",e.classList]),onClick:a[5]||(a[5]=u=>e.$emit("click",u))},[e.hasMedia&&e.isVertical?(t(),l("div",B,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),d("div",j,[e.hasMedia&&e.isHorizontal?(t(),l("div",F,[o(e.$slots,"media",{},void 0,!0)])):s("",!0),e.isDraggable&&e.hasDraggableHandler?(t(),l("div",{key:1,class:i(["ds-richListItem__dragAndDrop",{[e.draggableIconClassName]:!!e.draggableIconClassName}])},[f(h,{icon:e.ICONS.FA_BARS,class:"ds-richListItem__dragAndDropIcon",size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,onClick:a[0]||(a[0]=c(()=>{},["stop"]))},null,8,["icon","size"])],2)):s("",!0),e.icon?(t(),l("div",w,[f(h,{icon:e.icon,class:i(["ds-richListItem__icon",e.iconColorClass]),size:e.size===e.RICH_LIST_ITEM_SIZE.SMALL?e.ICON_SIZES.XX_SMALL:e.ICON_SIZES.X_SMALL,style:p(e.iconColorStyle),onClick:a[1]||(a[1]=c(u=>e.$emit("icon-click"),["prevent"]))},null,8,["icon","size","class","style"])])):s("",!0),d("div",Z,[o(e.$slots,"content",{},void 0,!0)]),d("div",K,[e.$slots.metadata&&e.isHorizontal?(t(),l("div",W,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.$slots.actions?(t(),l("div",{key:1,class:"ds-richListItem__actionSlot",onClick:a[2]||(a[2]=c(()=>{},["stop"]))},[e.$slots.actions&&e.hasActionsSlotDivider&&e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),o(e.$slots,"actions",{},void 0,!0)])):s("",!0),e.isSelectable?(t(),l("div",P,[e.isHorizontal?(t(),b(_,{key:0,"is-vertical":""})):s("",!0),f(H,{"is-selected":e.isSelected,"onUpdate:isSelected":a[3]||(a[3]=u=>e.$emit("update:is-selected",u)),onClick:a[4]||(a[4]=c(()=>{},["stop"]))},null,8,["is-selected"])])):s("",!0)])]),e.$slots.metadata&&e.isVertical?(t(),l("div",Y,[o(e.$slots,"metadata",{},void 0,!0)])):s("",!0),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:2,class:i(["ds-richListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const re=R(E,[["render",X],["__scopeId","data-v-306ca009"]]);E.__docgenInfo={displayName:"RichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"draggableIconClassName",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"click"},{name:"icon-click"},{name:"update:is-selected"}],slots:[{name:"media"},{name:"content"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/RichListItem/RichListItem.vue"]};const q={...y},S={...L},T=g({name:"GroupRichListItem",props:{isExpanded:{type:Boolean,default:!1},borderColor:{type:String,default:null,validator(e){return Object.values(q).includes(e)}},borderColorHex:{type:String,default:null},backgroundColor:{type:String,default:S.NEUTRAL,validator(e){return Object.values(S).includes(e)}}},computed:{classList(){return{...this.backgroundColor&&{[`-ds-background-${this.backgroundColor}`]:!0}}},borderColorClass(){if(!(!this.borderColor||this.borderColorHex))return`-ds-border-${this.borderColor}`},borderColorStyle(){if(this.borderColorHex)return{backgroundColor:this.borderColorHex}}}}),J={class:"ds-groupRichListItem__wrapper"},Q={class:"ds-groupRichListItem__parent"},x={key:0,class:"ds-groupRichListItem__children"};function ee(e,a,A,O,k,N){return t(),l("div",{class:i(["ds-groupRichListItem",e.classList])},[d("div",J,[d("div",Q,[o(e.$slots,"parent",{},void 0,!0)]),e.isExpanded?(t(),l("div",x,[o(e.$slots,"children",{},void 0,!0)])):s("",!0)]),e.borderColorClass||e.borderColorStyle?(t(),l("div",{key:0,class:i(["ds-groupRichListItem__border",e.borderColorClass]),style:p(e.borderColorStyle)},null,6)):s("",!0)],2)}const ie=R(T,[["render",ee],["__scopeId","data-v-f6870d20"]]);T.__docgenInfo={displayName:"GroupRichListItem",exportName:"default",description:"",tags:{},props:[{name:"isExpanded",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"borderColor",type:{name:"GroupRichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"backgroundColor",type:{name:"GroupRichListItemBackgroundColor"},defaultValue:{func:!1,value:"GROUP_RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}}],slots:[{name:"parent"},{name:"children"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue"]};export{ie as G,r as R,m as a,I as b,n as c,y as d,L as e,G as f,S as g,q as h,re as i};
|
package/docs/assets/{GroupRichListItem.stories-C-HPJVJV.js → GroupRichListItem.stories-CANW2eUN.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-ZRcp4uu7.js";import{D as T}from"./Divider-C8Drds6C.js";import{c,I as d}from"./Icon-CytrC3Ws.js";import"./vue.esm-bundler-C__e7YM5.js";import"./Checkbox-C4-1HpKO.js";import"./SelectionControl-k2rO_ZDX.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"
|