@bethinkpl/design-system 26.3.0 → 26.3.2
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 +2 -2
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +6 -7
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +1 -0
- package/docs/assets/{AccessStatus-hWUALK-7.js → AccessStatus-KfjdezRr.js} +1 -1
- package/docs/assets/{AccessStatus.stories-tYSFEaM3.js → AccessStatus.stories-B-FW84re.js} +1 -1
- package/docs/assets/{BadgeScore-Bz-odlMA.js → BadgeScore-BYJ9mn5O.js} +1 -1
- package/docs/assets/{BadgeScore.stories-MUc8H4FV.js → BadgeScore.stories-BY5eZiIr.js} +1 -1
- package/docs/assets/{Banner-C2UT61lH.js → Banner-BSU1gXM_.js} +1 -1
- package/docs/assets/{Banner.stories-kNlG5iAF.js → Banner.stories-B740yP5P.js} +1 -1
- package/docs/assets/{BasicRichListItem-DyO0o6sl.js → BasicRichListItem-9ckdYmhR.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-l5jdRiuM.js → BasicRichListItem.stories-2Mp5GNiG.js} +1 -1
- package/docs/assets/{BlockadeStatus-CNSUsB1u.js → BlockadeStatus-37PTgF2i.js} +1 -1
- package/docs/assets/{BlockedeStatus.stories-BnymGZoo.js → BlockedeStatus.stories-DZBnuXNP.js} +1 -1
- package/docs/assets/{Button-B8CAc1rL.js → Button-Dh75PBKU.js} +1 -1
- package/docs/assets/{Button.stories-DMUT6CSE.js → Button.stories-DTT_NICP.js} +1 -1
- package/docs/assets/{Card-DQn9130w.js → Card-CbIL2Iiq.js} +1 -1
- package/docs/assets/{Card.stories-Bws-4i9c.js → Card.stories-sWfj8JIt.js} +1 -1
- package/docs/assets/{CardExpandable-DcS9Rs_k.js → CardExpandable-Cdo8gDEP.js} +1 -1
- package/docs/assets/{CardExpandable.stories-BWlKtdtN.js → CardExpandable.stories-Bv67Q_c3.js} +1 -1
- package/docs/assets/{Checkbox-B7oe-wbJ.js → Checkbox-B8jh1kTW.js} +1 -1
- package/docs/assets/{Checkbox.stories-CqXhEcpy.js → Checkbox.stories-DcgV8gG7.js} +1 -1
- package/docs/assets/{Chip-BiYhA48J.js → Chip-srBCAONP.js} +1 -1
- package/docs/assets/{Chip.stories-OjxSnWys.js → Chip.stories-OzaUIE7M.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-BLsax895.js → Color-ERTF36HU-D3_uicJr.js} +1 -1
- package/docs/assets/{Colors.stories-B9f3lzBZ.js → Colors.stories-CrtG5S4A.js} +1 -1
- package/docs/assets/{ColorsThemes.stories-DnjmHl__.js → ColorsThemes.stories-B_DRVheO.js} +1 -1
- package/docs/assets/{ColorsTokensLms.stories-BwtJlugM.js → ColorsTokensLms.stories-DNXNDpp5.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryBodywork.stories-C-UIhsfw.js → ColorsTokensPrimaryBodywork.stories-MZpI5IXh.js} +1 -1
- package/docs/assets/{ColorsTokensPrimaryWnl.stories-pZHESTNX.js → ColorsTokensPrimaryWnl.stories-D8POK0cA.js} +1 -1
- package/docs/assets/{CounterToggle-ByCgwkoS.js → CounterToggle-CmXnI_Hp.js} +1 -1
- package/docs/assets/{CounterToggle.stories-DZbjvhdl.js → CounterToggle.stories-BUoy8evs.js} +1 -1
- package/docs/assets/{DatePicker-DqotUwDn.js → DatePicker-BcqpPNIA.js} +1 -1
- package/docs/assets/{DatePicker.stories-DrD5SntF.js → DatePicker.stories-DiL6ARRQ.js} +1 -1
- package/docs/assets/DateRangePicker-Bht7xtRs.js +1 -0
- package/docs/assets/{DateRangePicker.stories-lwVpg4Fv.js → DateRangePicker.stories-B-A8kreJ.js} +1 -1
- package/docs/assets/{Divider-ClNbKvxH.js → Divider-4HN2u4Et.js} +1 -1
- package/docs/assets/{Divider.stories-DjiliY9Q.js → Divider.stories-BCrs-P64.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-DjdO6PcD.js → DocsRenderer-CFRXHY34-DM9BzBWX.js} +5 -5
- package/docs/assets/{Drawer-CPwHZ_w7.js → Drawer-DRYKGdtt.js} +1 -1
- package/docs/assets/{Drawer.stories-COUOUpGR.js → Drawer.stories-DNAfMM9D.js} +1 -1
- package/docs/assets/{DrawerContent-D-JrB94m.js → DrawerContent-CY64oeID.js} +1 -1
- package/docs/assets/{DrawerContent.stories-C01c08bP.js → DrawerContent.stories-CJRbiAKZ.js} +1 -1
- package/docs/assets/{DrawerDivider-glZ2sb5T.js → DrawerDivider-B6matEEg.js} +1 -1
- package/docs/assets/{DrawerDivider.stories-KJO8nE32.js → DrawerDivider.stories-DkEGw1YV.js} +1 -1
- package/docs/assets/{DrawerHeader-uLWF4ZhP.js → DrawerHeader-teQBLXB_.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-Bj5E3Ypw.js → DrawerHeader.stories-DDNF60C4.js} +1 -1
- package/docs/assets/{DrawerListItem-DHCAMWPh.js → DrawerListItem-FKIwTwlM.js} +1 -1
- package/docs/assets/{DrawerListItem.stories-B7eEIAHJ.js → DrawerListItem.stories-D1Nj5lHM.js} +1 -1
- package/docs/assets/{DrawerListItemGroup-BJGU_uck.js → DrawerListItemGroup-B40g16RV.js} +1 -1
- package/docs/assets/{DrawerListItemGroup.stories-B374u25r.js → DrawerListItemGroup.stories-BTyLKxIr.js} +1 -1
- package/docs/assets/DrawerSection-Cpk56_6l.js +1 -0
- package/docs/assets/{DrawerSection.stories-B8c0mEzB.js → DrawerSection.stories-DREyaq-9.js} +1 -1
- package/docs/assets/{DrawerTile-CHylUbA8.js → DrawerTile-CaoekvN8.js} +1 -1
- package/docs/assets/{DrawerTile.stories-BrRxiBDk.js → DrawerTile.stories-B0hTjaen.js} +1 -1
- package/docs/assets/{Dropdown-BFqYgkV7.js → Dropdown-CR-eIdCF.js} +1 -1
- package/docs/assets/{Dropdown.stories-TKrTFBJN.js → Dropdown.stories-DeahnjZy.js} +1 -1
- package/docs/assets/{FeatureIcon-Ds4nRKfB.js → FeatureIcon-YmpbTfAx.js} +1 -1
- package/docs/assets/{FeatureIcon.stories-bccPUPZf.js → FeatureIcon.stories-BnMS5-Md.js} +1 -1
- package/docs/assets/{GroupRichListItem-DLFn195Q.js → GroupRichListItem-CoI-0_Bu.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-wLdB-0Oa.js → GroupRichListItem.stories-CB7qAzP9.js} +1 -1
- package/docs/assets/{Icon-DOGQpP6-.js → Icon-ABi09a6P.js} +1 -1
- package/docs/assets/{Icon.stories-B3V1ckLg.js → Icon.stories-DgOiWEZU.js} +1 -1
- package/docs/assets/{IconButton-BSj_HuA7.js → IconButton-B4R8ltMn.js} +1 -1
- package/docs/assets/{IconButton.stories-DiZwDb6r.js → IconButton.stories-DM6-ciZG.js} +1 -1
- package/docs/assets/{IconText-Dow4OhZ0.js → IconText-BcLsq_-S.js} +1 -1
- package/docs/assets/{IconText.stories-CN_rDFNI.js → IconText.stories-Bzh9Hk-m.js} +1 -1
- package/docs/assets/{Image-DQHO1hnh.js → Image-BF_Kx0up.js} +1 -1
- package/docs/assets/{Image.stories-Dwie4X6O.js → Image.stories-BXYD86R1.js} +1 -1
- package/docs/assets/{ItemsList-MJRUsJOD.js → ItemsList-DxGr2MB5.js} +1 -1
- package/docs/assets/{LoadingBar-Bo6mXGaA.js → LoadingBar-BeOPZFzu.js} +1 -1
- package/docs/assets/{LoadingBar.stories-DeC3pmh8.js → LoadingBar.stories-BJeb9oll.js} +1 -1
- package/docs/assets/{Modal-DSJUdAlr.js → Modal-BWeCCzxt.js} +1 -1
- package/docs/assets/{Modal.stories-B2usDY_X.js → Modal.stories-SHE1hlx9.js} +1 -1
- package/docs/assets/{ModalDialog-Dh8qNpS6.js → ModalDialog-COvcohSF.js} +1 -1
- package/docs/assets/{ModalDialog.stories-B5GSajrD.js → ModalDialog.stories-Dtk3QShO.js} +1 -1
- package/docs/assets/{NumberInCircle-CvJAMxEl.js → NumberInCircle-Cqbd2PUf.js} +1 -1
- package/docs/assets/{NumberInCircle.stories-CIPheFEZ.js → NumberInCircle.stories--_6-RNlU.js} +1 -1
- package/docs/assets/{OutlineDivider-F421Sb92.js → OutlineDivider-9phD7EaD.js} +1 -1
- package/docs/assets/{OutlineDivider.stories-DOJmAB4N.js → OutlineDivider.stories-LsrVcpfQ.js} +1 -1
- package/docs/assets/{OutlineItem-CIOJyOIB.js → OutlineItem-Cm_NXJhs.js} +1 -1
- package/docs/assets/{OutlineItem.stories-YOVlI8zj.js → OutlineItem.stories-C_VtrROL.js} +1 -1
- package/docs/assets/{OutlineSectionHeader-BTQYgDGK.js → OutlineSectionHeader-BDh6TrVb.js} +1 -1
- package/docs/assets/{OutlineSectionHeader.stories-DAOIEP47.js → OutlineSectionHeader.stories-CPuYAPXa.js} +1 -1
- package/docs/assets/{OverlayHeader-CoVz91vL.js → OverlayHeader-CI3smnP5.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-Ksx3RyBb.js → OverlayHeader.stories-BsRUysZD.js} +1 -1
- package/docs/assets/{PageHeader-ybo14zma.js → PageHeader-CwyCLKPQ.js} +1 -1
- package/docs/assets/{PageHeader.stories-C84k8UsA.js → PageHeader.stories-BaavDroe.js} +1 -1
- package/docs/assets/{Pagination-vyNg72zL.js → Pagination-Vcu4FLTw.js} +1 -1
- package/docs/assets/{Pagination.stories-3Zjk2w5F.js → Pagination.stories-QIhOlSaD.js} +1 -1
- package/docs/assets/{PopOver-Das8oa0-.js → PopOver-BUJnGsNw.js} +1 -1
- package/docs/assets/{PopOver.stories-yEOxDdKI.js → PopOver.stories-CfAMAZIU.js} +1 -1
- package/docs/assets/{ProgressBar-CagavvzY.js → ProgressBar-D4J5hEaF.js} +1 -1
- package/docs/assets/{ProgressBar.stories-JYo8zUrL.js → ProgressBar.stories-Dnzk-Udf.js} +1 -1
- package/docs/assets/{ProgressDonutChart-wBkk51RI.js → ProgressDonutChart-lCc0Z3Wh.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-aVcnSkw6.js → ProgressDonutChart.stories-C9DSZRWQ.js} +1 -1
- package/docs/assets/{RadioButton-fLgXVSYQ.js → RadioButton-CX1lvG0h.js} +1 -1
- package/docs/assets/{RadioButton.stories-BaGOqO1m.js → RadioButton.stories-DCNMmqO0.js} +1 -1
- package/docs/assets/{RichListItem.stories-DBlPmY7z.js → RichListItem.stories-CIlUu4q1.js} +1 -1
- package/docs/assets/{SectionHeader-wxwJCOPp.js → SectionHeader-EF4lruHo.js} +1 -1
- package/docs/assets/{SectionHeader.stories-BmXbtH8Z.js → SectionHeader.stories-BLGrxW9o.js} +1 -1
- package/docs/assets/{SectionTitle-Bo_ArbM7.js → SectionTitle-B1v2FcuB.js} +1 -1
- package/docs/assets/{SectionTitle.stories-DWuWduVl.js → SectionTitle.stories-BogJgzAG.js} +1 -1
- package/docs/assets/{SelectList-DWop0yaP.js → SelectList-CiuxFUk4.js} +1 -1
- package/docs/assets/{SelectList.stories-Brddzccq.js → SelectList.stories-YNom4XEI.js} +1 -1
- package/docs/assets/{SelectListItem-BFm33ncs.js → SelectListItem-pLbSh-eN.js} +1 -1
- package/docs/assets/{SelectListItem.stories-COXy-xBv.js → SelectListItem.stories-DhvTm42H.js} +1 -1
- package/docs/assets/{SelectListItemDivider-CU5vX-7p.js → SelectListItemDivider-CIueguWt.js} +1 -1
- package/docs/assets/{SelectListItemDivider.stories-DSXQ6aee.js → SelectListItemDivider.stories-CYkoQqyL.js} +1 -1
- package/docs/assets/{SelectListItemTile-C4fBfRzh.js → SelectListItemTile-D-UZn7FY.js} +1 -1
- package/docs/assets/{SelectListItemTile.stories-Cb0ZqUS7.js → SelectListItemTile.stories-DbPHWyRm.js} +1 -1
- package/docs/assets/{SelectListItemToggle-QxU9-4E7.js → SelectListItemToggle-BJNxDGCU.js} +1 -1
- package/docs/assets/{SelectListItemToggle.stories-B8DgBtuT.js → SelectListItemToggle.stories-CB3DAO5O.js} +1 -1
- package/docs/assets/{SelectListSectionTitle-DKYayu9U.js → SelectListSectionTitle-DBd3RwED.js} +1 -1
- package/docs/assets/{SelectListSectionTitle.stories-DM4MR7e2.js → SelectListSectionTitle.stories-BrIWdRit.js} +1 -1
- package/docs/assets/{SelectionControl-rpcCdIb9.js → SelectionControl-mJVlL5Qd.js} +1 -1
- package/docs/assets/{SelectionTile-C5PZ7JlM.js → SelectionTile-sTjis2qP.js} +2 -2
- package/docs/assets/{SelectionTile.stories-CtCJqnDP.js → SelectionTile.stories-Dd8cT7uK.js} +1 -1
- package/docs/assets/{Skeleton-CMYm0ueF.js → Skeleton-Budxm1Jq.js} +1 -1
- package/docs/assets/{Skeleton.stories-CepOvJUE.js → Skeleton.stories-C5oyivEw.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-BsVd4zvh.js → SurveyQuestionOpenEnded-D-3pHCFY.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-BEeTsSOi.js → SurveyQuestionOpenEnded.stories-CJdTJVDG.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-gccsfvoW.js → SurveyQuestionScale-of5LlD9w.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-B0OLLgu4.js → SurveyQuestionScale.stories-R59dSNLz.js} +1 -1
- package/docs/assets/SurveyToggle-DtzBuCqj.js +1 -0
- package/docs/assets/{SurveyToggle.stories-Dd3iq7iU.js → SurveyToggle.stories-iawdGRsW.js} +1 -1
- package/docs/assets/{Switch-DKKwg29G.js → Switch-D7dezY9z.js} +1 -1
- package/docs/assets/{Switch.stories-DgeYLJ9S.js → Switch.stories-C6ko6YNH.js} +1 -1
- package/docs/assets/{TabItem-CI2T_BRa.js → TabItem-BYAxBR-9.js} +1 -1
- package/docs/assets/{TabItem.stories-BuDITNix.js → TabItem.stories-CIBOypXI.js} +1 -1
- package/docs/assets/{TextGroup-F6Fc0qPD.js → TextGroup-C6PK25ok.js} +1 -1
- package/docs/assets/{TextGroup.stories-BZSgsAp8.js → TextGroup.stories-DnrIWKMT.js} +1 -1
- package/docs/assets/{ThreeColumnLayout-DLip97ZI.js → ThreeColumnLayout-CRPRmmvx.js} +1 -1
- package/docs/assets/{ThreeColumnLayout.stories-pCRL0b7M.js → ThreeColumnLayout.stories-CeCLjYHh.js} +1 -1
- package/docs/assets/{Tile-D02Mnslq.js → Tile-DTQwVtNE.js} +1 -1
- package/docs/assets/{Tile.sb.shared-Bw4hCqo6.js → Tile.sb.shared-DCUTsFEl.js} +1 -1
- package/docs/assets/{Tile.stories-DuT3b3-t.js → Tile.stories-D2WNhLXh.js} +1 -1
- package/docs/assets/{Toast-2b3fjN6i.js → Toast-D7KueX5U.js} +1 -1
- package/docs/assets/{Toast.stories-D8AB_V4U.js → Toast.stories-DVGxl_F7.js} +1 -1
- package/docs/assets/{ToggleButton-D0n6uWjI.js → ToggleButton-DTUmOg8a.js} +1 -1
- package/docs/assets/{ToggleButton.stories-CSQaRNeF.js → ToggleButton.stories-oXazndlH.js} +1 -1
- package/docs/assets/{Tooltip-CPu68UXg.js → Tooltip-4m2CjENZ.js} +1 -1
- package/docs/assets/{Tooltip.stories-DrbKu0eB.js → Tooltip.stories-DTRr8MvC.js} +1 -1
- package/docs/assets/{TypographyTokensLms.stories-CGkGkK-q.js → TypographyTokensLms.stories-PrEmdBHF.js} +1 -1
- package/docs/assets/{TypographyVariables.stories-BfiRWJuY.js → TypographyVariables.stories-CP8aNZmQ.js} +1 -1
- package/docs/assets/{Well-D7yLLQH0.js → Well-DSgC9yDa.js} +1 -1
- package/docs/assets/{Well.stories-e-ci7Apm.js → Well.stories-02Hpe7cX.js} +1 -1
- package/docs/assets/{entry-preview-BJQG7gOd.js → entry-preview-Dzwhc6UB.js} +1 -1
- package/docs/assets/{entry-preview-docs-ivqbfzAL.js → entry-preview-docs-b1BM2N0G.js} +1 -1
- package/docs/assets/{iframe-CJ6pEGcC.js → iframe-oaKRiQ_P.js} +4 -4
- package/docs/assets/{index-BSknCd7o.js → index-BCDWZ2LO.js} +1 -1
- package/docs/assets/{index-BEw2AnXW.js → index-bHY3QwHF.js} +1 -1
- package/docs/assets/{preview-B5IC-Rg7.js → preview-DO1Ck2J3.js} +1 -1
- package/docs/assets/{preview-CbdjlZhy.js → preview-DY37tsiJ.js} +2 -2
- package/docs/assets/{string-LgH8jFZ8.js → string-DqTIC7fa.js} +1 -1
- package/docs/assets/{vue-popper-D-VHfyeL.js → vue-popper-CpfGMX4Q.js} +1 -1
- package/docs/assets/{vue.esm-bundler-CzUSCRPq.js → vue.esm-bundler-CWlcb7ht.js} +1 -1
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +7 -3
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +1 -1
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +2 -1
- package/package.json +1 -1
- package/docs/assets/DateRangePicker-Cw7vxxMt.js +0 -1
- package/docs/assets/DrawerSection-R-ei7dU4.js +0 -1
- package/docs/assets/SurveyToggle-XYZbLcE5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as T,t as h,c as a,a as r,b as S,
|
|
1
|
+
import{d as T,t as h,c as a,a as r,b as S,g as i,j as u,n,r as p,o as s}from"./vue.esm-bundler-CWlcb7ht.js";import{a as L,I as c,b}from"./Icon-ABi09a6P.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o={SMALL:"small",MEDIUM:"medium"},I={CAPSULE:"capsule",ROUNDED:"rounded"},l={DEFAULT:"default",DISABLED:"disabled"},t={LEFT:"left",RIGHT:"right"},m=T({name:"Switch",components:{DsIcon:L},props:{size:{type:String,default:o.MEDIUM,validator(e){return Object.values(o).includes(e)}},radius:{type:String,default:I.CAPSULE,validator(e){return Object.values(I).includes(e)}},iconLeft:{type:Object,default:null,validator(e){return Object.values(c).includes(h(e))}},iconRight:{type:Object,default:null,validator(e){return Object.values(c).includes(h(e))}},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},state:{type:String,default:l.DEFAULT,validator(e){return Object.values(l).includes(e)}},selectedSide:{type:String,default:t.LEFT,validator(e){return Object.values(t).includes(e)}}},emits:["update:selectedSide"],data(){return{ICONS:Object.freeze(c),ICON_SIZES:Object.freeze(b),SWITCH_RADIUSES:Object.freeze(I),SWITCH_SIDE:Object.freeze(t),SWITCH_SIZE:Object.freeze(o),SWITCH_STATE:Object.freeze(l),currentSide:this.selectedSide}},computed:{currentIcon(){return this.currentSide===t.LEFT?this.iconLeft:this.iconRight},currentLabel(){return this.currentSide===t.LEFT?this.labelLeft:this.labelRight},oppositeSide(){return this.currentSide===t.LEFT?t.RIGHT:t.LEFT}},watch:{selectedSide:{handler(e){e!==this.currentSide&&(this.currentSide=e)},immediate:!0}},methods:{onSwitch(){this.state!==l.DISABLED&&(this.currentSide=this.oppositeSide,this.$emit("update:selectedSide",this.currentSide))}}}),D=["title"],v={key:1,class:"ds-switch__label"},_=["title"],H={key:1,class:"ds-switch__label"},g={key:1,class:"ds-switch__label"};function y(e,f,A,w,R,W){const d=p("ds-icon");return s(),a("div",{class:n(["ds-switch",{"-ds-small":e.size===e.SWITCH_SIZE.SMALL,"-ds-medium":e.size===e.SWITCH_SIZE.MEDIUM,"-ds-rounded":e.radius===e.SWITCH_RADIUSES.ROUNDED,"-ds-disabled":e.state===e.SWITCH_STATE.DISABLED}]),onClick:f[0]||(f[0]=(...E)=>e.onSwitch&&e.onSwitch(...E))},[r("div",{class:n(["ds-switch__item -ds-left",{"-ds-clickable":e.currentSide!==e.SWITCH_SIDE.LEFT&&e.state!==e.SWITCH_STATE.DISABLED,"-ds-selected":e.currentSide===e.SWITCH_SIDE.LEFT}]),title:e.labelLeft},[e.iconLeft?(s(),S(d,{key:0,class:"ds-switch__icon",icon:e.iconLeft,size:e.ICON_SIZES.XX_SMALL},null,8,["icon","size"])):i("",!0),e.labelLeft?(s(),a("div",v,u(e.labelLeft),1)):i("",!0)],10,D),r("div",{class:n(["ds-switch__item -ds-right",{"-ds-clickable":e.currentSide!==e.SWITCH_SIDE.RIGHT&&e.state!==e.SWITCH_STATE.DISABLED,"-ds-selected":e.currentSide===e.SWITCH_SIDE.RIGHT}]),title:e.labelRight},[e.iconRight?(s(),S(d,{key:0,class:"ds-switch__icon",icon:e.iconRight,size:e.ICON_SIZES.XX_SMALL},null,8,["icon","size"])):i("",!0),e.labelRight?(s(),a("div",H,u(e.labelRight),1)):i("",!0)],10,_),r("div",{class:n(["ds-switch__item -ds-selection",{"-ds-left":e.currentSide===e.SWITCH_SIDE.LEFT,"-ds-right":e.currentSide===e.SWITCH_SIDE.RIGHT}])},[e.currentIcon?(s(),S(d,{key:0,class:"ds-switch__icon",icon:e.currentIcon,size:e.ICON_SIZES.XX_SMALL},null,8,["icon","size"])):i("",!0),e.currentLabel?(s(),a("div",g,u(e.currentLabel),1)):i("",!0)],2)],2)}const U=C(m,[["render",y],["__scopeId","data-v-1d345819"]]);m.__docgenInfo={displayName:"Switch",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"SwitchSize"},defaultValue:{func:!1,value:"SWITCH_SIZES.MEDIUM"}},{name:"radius",type:{name:"SwitchRadius"},defaultValue:{func:!1,value:"SWITCH_RADIUSES.CAPSULE"}},{name:"iconLeft",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconRight",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"labelLeft",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"labelRight",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"state",type:{name:"SwitchState"},defaultValue:{func:!1,value:"SWITCH_STATE.DEFAULT"}},{name:"selectedSide",type:{name:"SwitchSelection"},defaultValue:{func:!1,value:"SWITCH_SIDE.LEFT"}}],events:[{name:"update:selectedSide",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Switch/Switch.vue"]};export{U as D,o as S,I as a,l as b,t as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as i,S as a,a as l,b as c,c as d}from"./Switch-
|
|
1
|
+
import{D as i,S as a,a as l,b as c,c as d}from"./Switch-D7dezY9z.js";import{I as t,a as S}from"./Icon-ABi09a6P.js";import{w as g}from"./decorator-CSnIf-k5.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./v4-BZawosSj.js";const v={title:"Components/Switch",component:i,decorators:[g]},h=r=>({components:{DsSwitch:i,Icon:S},setup(){return r},methods:{onSelectedUpdated(p){console.log(p)}},data(){return{ICONS:Object.freeze(t)}},template:`
|
|
2
2
|
<div style="width: 500px; height: 300px; padding: 10px; border: 1px solid var(--raw-gray-100); position:relative">
|
|
3
3
|
<ds-switch
|
|
4
4
|
:size="size"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,I as m,b as c}from"./Icon-
|
|
1
|
+
import{a as u,I as m,b as c}from"./Icon-ABi09a6P.js";import{d,t as p,c as s,b as I,g as n,n as t,j as f,r as S,o as l}from"./vue.esm-bundler-CWlcb7ht.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";const o={SMALL:"S",MEDIUM:"M"},i=d({name:"TabItem",components:{DsIcon:u},props:{icon:{type:[Object,null],default:null,validator(e){return e===null||Object.values(m).includes(p(e))}},isSelected:{type:Boolean,required:!0},label:{type:[String,null],default:null},labelEllipsis:{type:Boolean,default:!1},size:{type:String,default:o.MEDIUM}},emits:["click"],data(){return{TAB_ITEM_SIZES:Object.freeze(o),ICON_SIZES:Object.freeze(c)}}}),E=["title"];function _(e,a,M,y,T,v){const r=S("ds-icon");return l(),s("div",{class:t(["ds-tabItem",{"-ds-sizeMedium":e.size===e.TAB_ITEM_SIZES.MEDIUM,"-ds-sizeSmall":e.size===e.TAB_ITEM_SIZES.SMALL,"-ds-isSelected":e.isSelected}]),title:e.label,onClick:a[0]||(a[0]=z=>e.$emit("click"))},[e.icon!==null?(l(),I(r,{key:0,class:"ds-tabItem__icon",icon:e.icon,size:e.ICON_SIZES.X_SMALL},null,8,["icon","size"])):n("",!0),e.label?(l(),s("span",{key:1,class:t(["ds-tabItem__label",{"-ds-ellipsis":e.labelEllipsis}])},f(e.label),3)):n("",!0)],10,E)}const C=b(i,[["render",_],["__scopeId","data-v-2e13f3b0"]]);i.__docgenInfo={displayName:"TabItem",exportName:"default",description:"",tags:{},props:[{name:"icon",type:{name:"object|null"},defaultValue:{func:!1,value:"null"}},{name:"isSelected",type:{name:"boolean"},required:!0},{name:"label",type:{name:"string|null"},defaultValue:{func:!1,value:"null"}},{name:"labelEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"TAB_ITEM_SIZES.MEDIUM"}}],events:[{name:"click"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/TabItem/TabItem.vue"]};export{C as T,o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as a,a as o}from"./TabItem-
|
|
1
|
+
import{T as a,a as o}from"./TabItem-BYAxBR-9.js";import{I as i}from"./Icon-ABi09a6P.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const d={title:"Components/TabItem",component:a},n=r=>({components:{TabItem:a},setup(){return r},template:'<tab-item style="max-width: 150px" :icon="ICONS[icon]" :is-selected="isSelected" :label="label" :size="TAB_ITEM_SIZES[size]" :label-ellipsis="labelEllipsis" />',data(){return{ICONS:Object.freeze(i),TAB_ITEM_SIZES:Object.freeze(o)}}}),e=n.bind({}),c={icon:null,size:"MEDIUM",label:"Tab item",isSelected:!1,labelEllipsis:!1},p={icon:{control:"select",options:[...Object.keys(i),null]},size:{control:"select",options:Object.keys(o)},label:{control:"text"},isSelected:{control:"boolean"},labelEllipsis:{control:"boolean"}};e.argTypes=p;e.args=c;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=1552%3A34956"}};var t,s,l;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`args => ({
|
|
2
2
|
components: {
|
|
3
3
|
TabItem
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,c as a,n as t,
|
|
1
|
+
import{d,c as a,n as t,k as n,j as u,g as o,r as T,o as s}from"./vue.esm-bundler-CWlcb7ht.js";import{D as f}from"./Skeleton-Budxm1Jq.js";import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";const E={NEUTRAL:"neutral"},y={SMALL:"small",MEDIUM:"medium",LARGE:"large"},r={SMALL:"small",MEDIUM:"medium"},i={DEFAULT:"default",HOVERED:"hovered",DISABLED:"disabled",LOADING:"loading"},p=d({name:"TextGroup",components:{DsSkeleton:f},props:{size:{type:String,default:r.MEDIUM},color:{type:String,default:E.NEUTRAL},eyebrowText:{type:String,default:null},eyebrowTextEllipsis:{type:Boolean,default:!1},isEyebrowTextUppercase:{type:Boolean,default:!0},mainText:{type:String,default:null},mainTextEllipsis:{type:Boolean,default:!1},supportingText:{type:String,default:null},supportingTextEllipsis:{type:Boolean,default:!1},isInteractive:{type:Boolean,default:!0},skeletonLoadingSize:{type:String,default:y.LARGE},isSelected:{type:Boolean,default:!1},state:{type:String,default:i.DEFAULT}},data(){return{TEXT_GROUP_SIZES:Object.freeze(r),TEXT_GROUP_STATES:Object.freeze(i)}},computed:{colorClassName(){return`-ds-${this.color}`},isLoading(){return this.state===i.LOADING},loadingSizeClassName(){return`-ds-loading-${this.skeletonLoadingSize}`}}}),c={key:0,class:"ds-textGroup__skeletonWrapper"},S={key:1},_={key:2},g={key:0,class:"ds-textGroup__skeletonWrapper"},G={key:1},L={key:2},v={key:0,class:"ds-textGroup__skeletonWrapper"},A={key:1},U=["innerHTML"];function b(e,h,k,O,R,x){const l=T("ds-skeleton");return s(),a("div",{class:t(["ds-textGroup",{"-ds-small":e.size===e.TEXT_GROUP_SIZES.SMALL,"-ds-hovered":e.state===e.TEXT_GROUP_STATES.HOVERED,"-ds-loading":e.isLoading,"-ds-disabled":e.state===e.TEXT_GROUP_STATES.DISABLED,"-ds-interactive":e.isInteractive,"-ds-selected":e.isSelected,[e.loadingSizeClassName]:e.isLoading,[e.colorClassName]:!0}])},[e.eyebrowText!==null?(s(),a("div",{key:0,class:t(["ds-textGroup__eyebrow",{"-ds-ellipsis":e.eyebrowTextEllipsis,"-ds-uppercase":e.isEyebrowTextUppercase}])},[e.isLoading?(s(),a("div",c,[n(l,{width:"50%",height:"100%"})])):e.eyebrowText===""?(s(),a("span",S," ")):(s(),a("span",_,u(e.eyebrowText),1))],2)):o("",!0),e.mainText!==null?(s(),a("div",{key:1,class:t(["ds-textGroup__main",{"-ds-ellipsis":e.mainTextEllipsis}])},[e.isLoading?(s(),a("div",g,[n(l,{width:"100%",height:"100%"})])):e.mainText===""?(s(),a("span",G," ")):(s(),a("span",L,u(e.mainText),1))],2)):o("",!0),e.supportingText!==null?(s(),a("div",{key:2,class:t(["ds-textGroup__supporting",{"-ds-ellipsis":e.supportingTextEllipsis}])},[e.isLoading?(s(),a("div",v,[n(l,{width:"100%",height:"100%"})])):e.supportingText===""?(s(),a("span",A," ")):(s(),a("span",{key:2,innerHTML:e.supportingText},null,8,U))],2)):o("",!0)],2)}const w=m(p,[["render",b],["__scopeId","data-v-14aab7cc"]]);p.__docgenInfo={displayName:"TextGroup",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"TextGroupSize"},defaultValue:{func:!1,value:"TEXT_GROUP_SIZES.MEDIUM"}},{name:"color",type:{name:"TextGroupColor"},defaultValue:{func:!1,value:"TEXT_GROUP_COLORS.NEUTRAL"}},{name:"eyebrowText",type:{name:"string | null"},defaultValue:{func:!1,value:"null"}},{name:"eyebrowTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isEyebrowTextUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"mainText",type:{name:"string | null"},defaultValue:{func:!1,value:"null"}},{name:"mainTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"supportingText",type:{name:"string | null"},defaultValue:{func:!1,value:"null"}},{name:"supportingTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"skeletonLoadingSize",type:{name:"TextGroupLoadingSize"},defaultValue:{func:!1,value:"TEXT_GROUP_LOADING_SIZES.LARGE"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"state",type:{name:"TextGroupState"},defaultValue:{func:!1,value:"TEXT_GROUP_STATES.DEFAULT"}}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/TextGroup/TextGroup.vue"]};export{w as D,r as T,E as a,y as b,i as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as u}from"./Divider-
|
|
1
|
+
import{D as u}from"./Divider-4HN2u4Et.js";import{D as o,T as l,a as r,b as a,c as n}from"./TextGroup-C6PK25ok.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Skeleton-Budxm1Jq.js";const b={title:"Components/TextGroup",component:o},c=p=>({components:{DsDivider:u,DsTextGroup:o},setup(){return p},template:`
|
|
2
2
|
<ds-text-group
|
|
3
3
|
:size="size"
|
|
4
4
|
:color="color"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,c as u,a as l,n as i,f as o,o as m}from"./vue.esm-bundler-
|
|
1
|
+
import{d as s,c as u,a as l,n as i,f as o,o as m}from"./vue.esm-bundler-CWlcb7ht.js";import{_ as r}from"./_plugin-vue_export-helper-DlAUqK2U.js";const t={MEDIUM:"medium",LARGE:"large"},a=s({name:"ThreeColumnLayout",props:{rightColumnSize:{type:String,default:t.MEDIUM,validator(e){return Object.values(t).includes(e)}},rightColumnVisible:{type:Boolean,default:!0},leftColumnVisible:{type:Boolean,default:!0},initialMobileRightColumnVisibleState:{type:Boolean,default:!1},initialMobileLeftColumnVisibleState:{type:Boolean,default:!1},contentWithoutPadding:{type:Boolean,default:!1}},emits:["overlay-clicked"],data(){return{THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE:Object.freeze(t),leftColumnVisibleMobile:!1,rightColumnVisibleMobile:!1}},watch:{leftColumnVisible(e){this.leftColumnVisibleMobile!==e&&(this.leftColumnVisibleMobile=e)},rightColumnVisible(e){this.rightColumnVisibleMobile!==e&&(this.rightColumnVisibleMobile=e)}},created(){this.leftColumnVisibleMobile=this.initialMobileLeftColumnVisibleState,this.rightColumnVisibleMobile=this.initialMobileRightColumnVisibleState}}),d={class:"ds-threeColumnLayout"},f={class:"ds-threeColumnLayout__contentColumn"};function C(e,n,b,h,V,M){return m(),u("div",d,[l("div",{class:i(["ds-threeColumnLayout__overlay",{"-ds-visible":e.rightColumnVisibleMobile||e.leftColumnVisibleMobile}]),onClick:n[0]||(n[0]=g=>e.$emit("overlay-clicked"))},null,2),l("div",{class:i(["ds-threeColumnLayout__leftColumn",{"-ds-desktopVisible":e.leftColumnVisible||e.leftColumnVisibleMobile,"-ds-mobileVisible":e.leftColumnVisibleMobile}])},[o(e.$slots,"leftColumn",{},void 0,!0)],2),l("div",f,[l("div",{class:i(["ds-threeColumnLayout__content",{"-ds-noPadding":e.contentWithoutPadding}])},[o(e.$slots,"default",{},void 0,!0)],2)]),l("div",{class:i(["ds-threeColumnLayout__rightColumn",{"-ds-medium":e.rightColumnSize===e.THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.MEDIUM,"-ds-large":e.rightColumnSize===e.THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.LARGE,"-ds-desktopVisible":e.rightColumnVisible||e.rightColumnVisibleMobile,"-ds-mobileVisible":e.rightColumnVisibleMobile}])},[o(e.$slots,"rightColumn",{},void 0,!0)],2)])}const _=r(a,[["render",C],["__scopeId","data-v-f26c3551"]]);a.__docgenInfo={displayName:"ThreeColumnLayout",exportName:"default",description:"",tags:{},props:[{name:"rightColumnSize",type:{name:"ThreeColumnLayoutRightColumnSize"},defaultValue:{func:!1,value:"THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.MEDIUM"}},{name:"rightColumnVisible",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"leftColumnVisible",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"initialMobileRightColumnVisibleState",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"initialMobileLeftColumnVisibleState",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"contentWithoutPadding",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"overlay-clicked"}],slots:[{name:"leftColumn"},{name:"default"},{name:"rightColumn"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue"]};export{_ as T,t as a};
|
package/docs/assets/{ThreeColumnLayout.stories-pCRL0b7M.js → ThreeColumnLayout.stories-CeCLjYHh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as n,a}from"./ThreeColumnLayout-
|
|
1
|
+
import{T as n,a}from"./ThreeColumnLayout-CRPRmmvx.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const c={title:"Components/Layouts/ThreeColumnLayout",component:n,decorators:[e=>({components:{story:e},template:`<div style='display: flex; width: 100vw; height: 100vh; background: lightgray; flex-direction: column;'><div style="padding: 16px; background: lightcoral; z-index: 1">Example header</div><story /></div>`}),e=>({components:{story:e},template:"<div style='display: flex; width: 100%; height: 100%; font-size: 12px; color: #fff;'><story /></div>"})]},r=e=>({components:{ThreeColumnLayout:n},setup(){return e},template:`
|
|
2
2
|
<three-column-layout :rightColumnSize='rightColumnSize'
|
|
3
3
|
:rightColumnVisible='rightColumnVisible'
|
|
4
4
|
:leftColumnVisible='leftColumnVisible'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as c,a as I,b as f}from"./Icon-
|
|
1
|
+
import{I as c,a as I,b as f}from"./Icon-ABi09a6P.js";import{t as u,d as E,r as T,o as s,c as o,b as l,g as r,a as p,n,j as d}from"./vue.esm-bundler-CWlcb7ht.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const t={NEUTRAL:"neutral",NEUTRAL_WEAK:"neutralWeak",PRIMARY:"primary",SUCCESS:"success",FAIL:"fail",DANGER:"danger",WARNING:"warning",INFO:"info"},i={DEFAULT:"default",DISABLED:"disabled",LOADING:"loading"},A={interactive:{type:Boolean,default:!1},iconLeft:{type:Object,default:null,validator(e){return Object.values(c).includes(u(e))}},iconRight:{type:Object,default:null,validator(e){return Object.values(c).includes(u(e))}},isIconRightHiddenOnMobile:{type:Boolean,default:!1},text:{type:String,required:!0},eyebrowText:{type:String,default:null},additionalText:{type:String,default:null},color:{type:String,default:t.NEUTRAL,validator(e){return Object.values(t).includes(e)}},isEyebrowTextUppercase:{type:Boolean,default:!1},state:{type:String,default:i.DEFAULT,validator(e){return Object.values(i).includes(e)}},eyebrowEllipsis:{type:Boolean,default:!0},textEllipsis:{type:Boolean,default:!0},hasBorder:{type:Boolean,default:!1}},S=E({name:"Tile",components:{DsIcon:I},props:A,data(){return{ICONS:Object.freeze(c),ICON_SIZES:Object.freeze(f),TILE_STATES:Object.freeze(i)}},computed:{tileColor(){return{[t.NEUTRAL]:"-ds-neutral",[t.NEUTRAL_WEAK]:"-ds-neutralWeak",[t.PRIMARY]:"-ds-primary",[t.SUCCESS]:"-ds-success",[t.FAIL]:"-ds-fail",[t.DANGER]:"-ds-danger",[t.WARNING]:"-ds-warning",[t.INFO]:"-ds-info"}[this.color]},tileState(){return{[i.DEFAULT]:null,[i.DISABLED]:"-ds-disabled",[i.LOADING]:"-ds-loading"}[this.state]}}}),L={class:"ds-tile__center"},N=["textContent"],_=["textContent"],O={key:3,class:"ds-tile__additionalText"};function b(e,g,m,R,C,h){const a=T("ds-icon");return s(),o("div",{class:n([[e.tileColor,e.tileState,{"-ds-interactive":e.interactive,"-ds-hasBorder":e.hasBorder}],"ds-tile"])},[e.iconLeft?(s(),l(a,{key:0,icon:e.iconLeft,size:e.ICON_SIZES.SMALL,class:"ds-tile__iconLeft"},null,8,["icon","size"])):r("",!0),p("div",L,[e.eyebrowText?(s(),o("span",{key:0,class:n(["ds-tile__eyebrowText",{"-ds-uppercase":e.isEyebrowTextUppercase,"-ds-ellipsis":e.eyebrowEllipsis}]),textContent:d(e.eyebrowText)},null,10,N)):r("",!0),p("span",{class:n(["ds-tile__text",{"-ds-ellipsis":e.textEllipsis}]),textContent:d(e.text)},null,10,_)]),e.state===e.TILE_STATES.LOADING?(s(),l(a,{key:1,class:"ds-tile__iconRight",icon:e.ICONS.FAD_SPINNER_THIRD,size:e.ICON_SIZES.SMALL,spinning:""},null,8,["icon","size"])):e.iconRight?(s(),l(a,{key:2,class:n(["ds-tile__iconRight",{"-ds-hiddenOnMobile":e.isIconRightHiddenOnMobile}]),icon:e.iconRight,size:e.ICON_SIZES.SMALL},null,8,["class","icon","size"])):e.additionalText?(s(),o("div",O,d(e.additionalText),1)):r("",!0)],2)}const w=y(S,[["render",b],["__scopeId","data-v-5c630595"]]);S.__docgenInfo={displayName:"Tile",exportName:"default",description:"",tags:{},sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Tile/Tile.vue"]};export{t as T,i as a,w as b,A as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as a,a as d}from"./Tile-
|
|
1
|
+
import{b as a,a as d}from"./Tile-DTQwVtNE.js";import{d as l,t as T,a as x,b as c}from"./Tile.sb.shared-DCUTsFEl.js";import{w as g}from"./decorator-CSnIf-k5.js";import"./Icon-ABi09a6P.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./v4-BZawosSj.js";const E={title:"Components/Tile",component:a,decorators:[g],render:p=>({components:{Tile:a},setup(){return p},data:l,template:T("tile")}),argTypes:x,parameters:{actions:{handles:["click"]},design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS---Components?node-id=1923%3A34378"}}},t={args:c},e={args:{...c,interactive:!1,text:"this is a text text",eyebrowText:"this is an eyebrowText text",additionalText:"this is some additionalText",state:d.DEFAULT}};var s,r,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
|
2
2
|
args
|
|
3
3
|
}`,...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};var o,n,m;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
|
4
4
|
args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as R,b as o,c as I,a as v}from"./Button-
|
|
1
|
+
import{D as R,b as o,c as I,a as v}from"./Button-Dh75PBKU.js";import{C as B}from"./Card-CbIL2Iiq.js";import{d as C,t as d,c as D,k as U,h as A,e as r,s as _,n as z,r as f,o as i,a as m,b as S,l as p,j as T,g as b,f as L}from"./vue.esm-bundler-CWlcb7ht.js";import{I as y}from"./Icon-ABi09a6P.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";const O={SMALL:"small",MEDIUM:"medium"},l={NEUTRAL_HEAVY:"neutralHeavy",NEUTRAL_STRONG:"neutralStrong",SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},h={LEFT:"left",CENTER:"center",RIGHT:"right"};function k(e){const t=window.getComputedStyle(e).borderLeftWidth,u=window.getComputedStyle(e).borderRightWidth,n=e.getBoundingClientRect(),a=n.left+parseInt(t,10),c=n.right-parseInt(u,10)-parseInt(t,10),s=n.width;return{left:{left:`${a}px`},right:{left:`${c}px`,transform:"translateX(-100%)"},center:{left:`${a+s/2}px`,transform:"translateX(-50%)"}}}const g=C({name:"Toast",components:{DsButton:R,DsCard:B},props:{size:{type:String,default:O.MEDIUM},position:{type:String,default:h.CENTER},boundariesSelector:{type:[String,HTMLElement],default:null},color:{type:String,default:l.INFO},footerPrimaryButtonText:{type:String,default:""},footerPrimaryButtonIcon:{type:Object,default:null,validator(e){return e==null||Object.values(y).includes(d(e))}},footerSecondaryButtonText:{type:String,default:""},footerSecondaryButtonIcon:{type:Object,default:null,validator(e){return e==null||Object.values(y).includes(d(e))}},isDisappearing:{type:Boolean,default:!0},disappearingTimeout:{type:String,default:"0",validator(e){return(e==="0"||!isNaN(parseInt(e,10)))&&parseInt(e,10)>=0}}},emits:{close:()=>!0,"primary-button-click":()=>!0,"secondary-button-click":()=>!0},data(){return{boundariesSelectorElement:null,boundariesSelectorElementResizeObserver:null,styles:{},BUTTON_COLORS:Object.freeze(o),BUTTON_RADIUSES:Object.freeze(I),BUTTON_TYPES:Object.freeze(v),TOAST_SIZES:Object.freeze(O),TOAST_POSITIONS:Object.freeze(h)}},computed:{buttonPrimaryColor(){return this.color===l.DANGER?o.NEUTRAL:o.PRIMARY},buttonSecondaryColor(){return this.color===l.DANGER?o.DANGER:o.NEUTRAL},toastPosition(){return`-ds-position-${this.position.toLowerCase()}`},toastSize(){return`-ds-size-${this.size.toLowerCase()}`}},mounted(){var e;this.setBoundariesSelectorElement(),this.calculateStyles(),(e=this.boundariesSelectorElementResizeObserver)==null||e.disconnect(),this.boundariesSelectorElementResizeObserver=new ResizeObserver(()=>{this.calculateStyles()}),this.boundariesSelectorElement?this.boundariesSelectorElementResizeObserver.observe(this.boundariesSelectorElement):this.boundariesSelectorElementResizeObserver.observe(document.querySelector("body")),this.isDisappearing&&this.disappearingTimeout!=="0"&&setTimeout(()=>this.$emit("close"),parseInt(this.disappearingTimeout,10)*1e3+100)},beforeUnmount(){this.boundariesSelectorElementResizeObserver.disconnect(),this.boundariesSelectorElementResizeObserver=null},updated(){const{right:e,left:t}=this.$el.getClientRects()[0];(parseInt(t,10)<0||e>document.documentElement.clientWidth)&&(this.styles={left:"50%",transform:"translateX(-50%)"})},methods:{calculateStyles(){this.boundariesSelectorElement?this.styles=k(this.boundariesSelectorElement)[this.position]:this.styles={}},setBoundariesSelectorElement(){typeof this.boundariesSelector=="string"?this.boundariesSelectorElement=document.querySelector(this.boundariesSelector)||null:this.boundariesSelector instanceof HTMLElement&&(this.boundariesSelectorElement=this.boundariesSelector)}}}),$={class:"ds-toast__content"},V={class:"ds-toast__footerButtons"};function j(e,t,u,n,a,c){const s=f("ds-button"),E=f("ds-card");return i(),D("div",{style:_(e.styles),class:z(["ds-toast",e.toastSize,e.toastPosition])},[U(E,{"loading-bar-color":e.color,"has-loading-bar":"","loading-bar-time":e.disappearingTimeout},A({content:r(()=>[m("div",$,[L(e.$slots,"content",{},void 0,!0)])]),_:2},[e.footerPrimaryButtonText.length>0||e.footerSecondaryButtonText.length>0?{name:"footer",fn:r(()=>[m("div",V,[e.footerSecondaryButtonText.length?(i(),S(s,{key:0,color:e.buttonSecondaryColor,"icon-right":e.footerSecondaryButtonIcon,type:e.BUTTON_TYPES.OUTLINED,radius:e.BUTTON_RADIUSES.ROUNDED,onClick:t[0]||(t[0]=N=>e.$emit("secondary-button-click"))},{default:r(()=>[p(T(e.footerSecondaryButtonText),1)]),_:1},8,["color","icon-right","type","radius"])):b("",!0),e.footerPrimaryButtonText.length?(i(),S(s,{key:1,color:e.buttonPrimaryColor,"icon-right":e.footerPrimaryButtonIcon,radius:e.BUTTON_RADIUSES.ROUNDED,onClick:t[1]||(t[1]=N=>e.$emit("primary-button-click"))},{default:r(()=>[p(T(e.footerPrimaryButtonText),1)]),_:1},8,["color","icon-right","radius"])):b("",!0)])]),key:"0"}:void 0]),1032,["loading-bar-color","loading-bar-time"])],6)}const F=P(g,[["render",j],["__scopeId","data-v-1898598e"]]);g.__docgenInfo={displayName:"Toast",exportName:"default",description:"",tags:{},props:[{name:"size",type:{name:"ToastSizes"},defaultValue:{func:!1,value:"TOAST_SIZES.MEDIUM"}},{name:"position",type:{name:"ToastPositions"},defaultValue:{func:!1,value:"TOAST_POSITIONS.CENTER"}},{name:"boundariesSelector",type:{name:"string|HTMLElement"},defaultValue:{func:!1,value:"null"}},{name:"color",type:{name:"ToastColors"},defaultValue:{func:!1,value:"TOAST_COLORS.INFO"}},{name:"footerPrimaryButtonText",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"footerPrimaryButtonIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"footerSecondaryButtonText",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"footerSecondaryButtonIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"isDisappearing",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"disappearingTimeout",type:{name:"string"},defaultValue:{func:!1,value:"'0'"}}],events:[{name:"secondary-button-click"},{name:"primary-button-click"},{name:"close"}],slots:[{name:"content"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Toast/Toast.vue"]};export{F as D,O as T,h as a,l as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as i,T as s,a,b as c}from"./Toast-
|
|
1
|
+
import{D as i,T as s,a,b as c}from"./Toast-D7KueX5U.js";import{I as o}from"./Icon-ABi09a6P.js";import{w as d}from"./decorator-CSnIf-k5.js";import"./Button-Dh75PBKU.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Card-CbIL2Iiq.js";import"./Divider-4HN2u4Et.js";import"./LoadingBar-BeOPZFzu.js";import"./v4-BZawosSj.js";const x={title:"Components/Toast",component:i,decorators:[d]},p=l=>({components:{DsToast:i},setup(){return l},data(){return{ICONS:Object.freeze(o),isVisible:!0,boundariesSelectorId:this.boundariesSelector!=null?`#${this.boundariesSelector}`:null}},template:`<div style="display: flex; justify-content: space-around; height: 1200px; width: 100%;">
|
|
2
2
|
<ds-toast
|
|
3
3
|
v-if="isVisible"
|
|
4
4
|
:size="size"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as L,t as c,c as S,a as E,b as o,
|
|
1
|
+
import{d as L,t as c,c as S,a as E,b as o,g as l,n as i,j as m,r as p,o as a}from"./vue.esm-bundler-CWlcb7ht.js";import{a as g,I as u,b as O}from"./Icon-ABi09a6P.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const t={SMALL:"small",MEDIUM:"medium",LARGE:"large"},r={NEUTRAL:"neutral",NEUTRAL_STRONG:"neutralStrong",NEUTRAL_HEAVY:"neutralHeavy",PRIMARY:"primary"},d={CAPSULE:"capsule",ROUNDED:"rounded"},G={SMALL:"small",MEDIUM:"medium"},n={DEFAULT:"default",DISABLED:"disabled",LOADING:"loading"},f=L({name:"ToggleButton",components:{DsIcon:g},props:{color:{type:String,default:r.NEUTRAL,validator(e){return Object.values(r).includes(e)}},hasSmallHorizontalPadding:{type:Boolean,default:!1},iconLeft:{type:Object,default:null,validator(e){return Object.values(u).includes(c(e))}},iconRight:{type:Object,default:null,validator(e){return Object.values(u).includes(c(e))}},isInteractive:{type:Boolean,default:!0},isLabelUppercase:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},label:{type:String,default:""},labelSize:{type:String,default:t.MEDIUM},radius:{type:String,default:d.CAPSULE,validator(e){return Object.values(d).includes(e)}},size:{type:String,default:t.MEDIUM,validator(e){return Object.values(t).includes(e)}},state:{type:String,default:n.DEFAULT,validator(e){return Object.values(n).includes(e)}}},emits:["click"],data(){return{ICONS:Object.freeze(u),TOGGLE_BUTTON_COLORS:Object.freeze(r),TOGGLE_BUTTON_LABEL_SIZES:Object.freeze(G),TOGGLE_BUTTON_RADIUSES:Object.freeze(d),TOGGLE_BUTTON_SIZES:Object.freeze(t),TOGGLE_BUTTON_STATES:Object.freeze(n)}},computed:{colorClassName(){return`-ds-color-${this.color}`},iconSize(){return this.size===t.LARGE?O.X_SMALL:O.XX_SMALL},isInteractiveComputed(){return this.state!==n.DEFAULT?!1:this.isInteractive}}}),U={class:"ds-toggleButton__contentWrapper"};function _(e,T,I,N,A,v){const s=p("ds-icon");return a(),S("div",{class:i(["ds-toggleButtonWrapper",{"-rounded":e.radius===e.TOGGLE_BUTTON_RADIUSES.ROUNDED}])},[E("div",{class:i(["ds-toggleButton",{"-ds-small":e.size===e.TOGGLE_BUTTON_SIZES.SMALL,"-ds-medium":e.size===e.TOGGLE_BUTTON_SIZES.MEDIUM,"-ds-large":e.size===e.TOGGLE_BUTTON_SIZES.LARGE,"-ds-hasSmallHorizontalPadding":e.hasSmallHorizontalPadding,"-ds-rounded":e.radius===e.TOGGLE_BUTTON_RADIUSES.ROUNDED,[e.colorClassName]:!0,"-ds-disabled":e.state===e.TOGGLE_BUTTON_STATES.DISABLED,"-ds-loading":e.state===e.TOGGLE_BUTTON_STATES.LOADING,"-ds-interactive":e.isInteractiveComputed,"-ds-selected":e.isSelected}]),onClick:T[0]||(T[0]=b=>e.isInteractiveComputed&&e.$emit("click"))},[E("div",U,[e.iconLeft?(a(),o(s,{key:0,class:"ds-toggleButton__icon",icon:e.iconLeft,size:e.iconSize},null,8,["icon","size"])):l("",!0),e.label?(a(),S("span",{key:1,class:i(["ds-toggleButton__content",{"-ds-small":e.labelSize===e.TOGGLE_BUTTON_LABEL_SIZES.SMALL,"-ds-uppercase":e.isLabelUppercase}])},m(e.label),3)):l("",!0),e.iconRight?(a(),o(s,{key:2,class:"ds-toggleButton__icon",icon:e.iconRight,size:e.iconSize},null,8,["icon","size"])):l("",!0)]),e.state===e.TOGGLE_BUTTON_STATES.LOADING?(a(),o(s,{key:0,class:"ds-toggleButton__icon ds-toggleButton__loadingSpinner",icon:e.ICONS.FAD_SPINNER_THIRD,size:e.iconSize,spinning:""},null,8,["icon","size"])):l("",!0)],2)],2)}const R=B(f,[["render",_],["__scopeId","data-v-05c17106"]]);f.__docgenInfo={displayName:"ToggleButton",exportName:"default",description:"",tags:{},props:[{name:"color",type:{name:"ToggleButtonColor"},defaultValue:{func:!1,value:"TOGGLE_BUTTON_COLORS.NEUTRAL"}},{name:"hasSmallHorizontalPadding",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"iconLeft",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconRight",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isLabelUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"label",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"labelSize",type:{name:"ToggleButtonLabelSize"},defaultValue:{func:!1,value:"TOGGLE_BUTTON_SIZES.MEDIUM"}},{name:"radius",type:{name:"ToggleButtonRadius"},defaultValue:{func:!1,value:"TOGGLE_BUTTON_RADIUSES.CAPSULE"}},{name:"size",type:{name:"ToggleButtonSize"},defaultValue:{func:!1,value:"TOGGLE_BUTTON_SIZES.MEDIUM"}},{name:"state",type:{name:"ToggleButtonState"},defaultValue:{func:!1,value:"TOGGLE_BUTTON_STATES.DEFAULT"}}],events:[{name:"click"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Toggles/ToggleButton/ToggleButton.vue"]};export{R as T,t as a,r as b,d as c,G as d,n as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as n,a as l,b as i,c as r,d as c,e as p}from"./ToggleButton-
|
|
1
|
+
import{T as n,a as l,b as i,c as r,d as c,e as p}from"./ToggleButton-DTUmOg8a.js";import{I as t}from"./Icon-ABi09a6P.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const I={title:"Components/Toggles/ToggleButton",component:n},d=g=>({components:{ToggleButton:n},setup(){return g},data(){return{ICONS:Object.freeze(t)}},template:`
|
|
2
2
|
<toggle-button
|
|
3
3
|
:color="color"
|
|
4
4
|
:has-small-horizontal-padding="hasSmallHorizontalPadding"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p,z as a,c as o,f as s,A as r,o as i}from"./vue.esm-bundler-
|
|
1
|
+
import{d as p,z as a,c as o,f as s,A as r,o as i}from"./vue.esm-bundler-CWlcb7ht.js";import{i as u}from"./device-9fgosCm4.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";const n={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},l=p({name:"Tooltip",props:{placement:{type:String,default:n.BOTTOM,validator(e){return Object.values(n).includes(e)}},text:{type:String,default:""},isDisabled:{type:Boolean,default:!1},isPointerVisible:{type:Boolean,default:!0},inline:{type:Boolean,default:!1}},computed:{tooltipParams(){return{position:this.placement,event:u()?"focus":"hover"}},options(){return{value:this.text,disabled:this.isDisabled,dt:{shadow:"0px 0px 4px 0px rgba(12, 23, 38, 0.08), 0px 6px 12px 0px rgba(12, 23, 38, 0.12), 0px 2px 4px 0px rgba(12, 23, 38, 0.06)",padding:"var(--spacing-space-3xs, 6px) var(--spacing-space-2xs, 8px)",background:"var(--neutral-background-medium, #E5E7ED)",color:"var(--neutral-text-heavy, #343C50)",borderRadius:"4px",maxWidth:"240px"},ptOptions:{mergeProps:!0},pt:{text:"ds-tooltip-text",arrow:this.isPointerVisible?"":"ds-tooltip-arrow-hide"}}}}}),f={key:0,tabindex:"-1"},m={key:1,tabindex:"-1"};function c(e,v,x,T,b,g){const t=r("pv-tooltip");return e.inline?a((i(),o("span",f,[s(e.$slots,"default")])),[[t,e.options,e.tooltipParams]]):a((i(),o("div",m,[s(e.$slots,"default")])),[[t,e.options,e.tooltipParams]])}const P=d(l,[["render",c]]);l.__docgenInfo={displayName:"Tooltip",exportName:"default",description:"",tags:{},props:[{name:"placement",type:{name:"TooltipPlacement"},defaultValue:{func:!1,value:"TOOLTIP_PLACEMENTS.BOTTOM"}},{name:"text",type:{name:"string"},defaultValue:{func:!1,value:"''"}},{name:"isDisabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isPointerVisible",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"inline",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Tooltip/Tooltip.vue"]};export{P as T,n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as n,a as x}from"./Tooltip-
|
|
1
|
+
import{T as n,a as x}from"./Tooltip-4m2CjENZ.js";import{D as v}from"./Switch-D7dezY9z.js";import{D as y}from"./Button-Dh75PBKU.js";import"./vue.esm-bundler-CWlcb7ht.js";import"./device-9fgosCm4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Icon-ABi09a6P.js";const B={title:"Prime Vue Components/Tooltip",component:n},f=s=>({components:{Tooltip:n},setup(){return s},template:`
|
|
2
2
|
<div style="padding: 60px; width: 100%;display: flex; justify-content: center">
|
|
3
3
|
<div style="padding: 60px;">
|
|
4
4
|
<span>This is a text with </span>
|