scu-web-components 0.0.13 → 0.0.14
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/chunks/{chunk.J4652OYR.js → chunk.24V5767A.js} +2 -2
- package/dist/chunks/{chunk.J4652OYR.js.map → chunk.24V5767A.js.map} +0 -0
- package/dist/chunks/chunk.25CFFZIW.js +2 -0
- package/dist/chunks/{chunk.K5EGUHA7.js.map → chunk.25CFFZIW.js.map} +0 -0
- package/dist/chunks/chunk.2JGLMQBO.js +17 -0
- package/dist/chunks/chunk.2JGLMQBO.js.map +7 -0
- package/dist/chunks/chunk.2OGLBG6V.js +2 -0
- package/dist/chunks/chunk.2OGLBG6V.js.map +7 -0
- package/dist/chunks/chunk.2YPNWI6A.js +2 -0
- package/dist/chunks/{chunk.NV7WKBSI.js.map → chunk.2YPNWI6A.js.map} +0 -0
- package/dist/chunks/chunk.3LZ2QEZD.js +2 -0
- package/dist/chunks/chunk.3LZ2QEZD.js.map +7 -0
- package/dist/chunks/{chunk.6XBWUFHU.js → chunk.3VX5S2EF.js} +2 -2
- package/dist/chunks/{chunk.6XBWUFHU.js.map → chunk.3VX5S2EF.js.map} +0 -0
- package/dist/chunks/chunk.3XFY5V3W.js +2 -0
- package/dist/chunks/chunk.3XFY5V3W.js.map +7 -0
- package/dist/chunks/chunk.42T5K4LW.js +2 -0
- package/dist/chunks/chunk.42T5K4LW.js.map +7 -0
- package/dist/chunks/chunk.45IXZHTR.js +2 -0
- package/dist/chunks/{chunk.UXU6F5B7.js.map → chunk.45IXZHTR.js.map} +0 -0
- package/dist/chunks/chunk.4LETPOO6.js +17 -0
- package/dist/chunks/chunk.4LETPOO6.js.map +7 -0
- package/dist/chunks/chunk.4TPUL4UC.js +248 -0
- package/dist/chunks/chunk.4TPUL4UC.js.map +7 -0
- package/dist/chunks/chunk.4X3BTEJ5.js +2 -0
- package/dist/chunks/{chunk.VBLITHNX.js.map → chunk.4X3BTEJ5.js.map} +0 -0
- package/dist/chunks/chunk.5HFTCC2U.js +248 -0
- package/dist/chunks/chunk.5HFTCC2U.js.map +7 -0
- package/dist/chunks/chunk.5IS6RKXJ.js +2 -0
- package/dist/chunks/chunk.5IS6RKXJ.js.map +7 -0
- package/dist/chunks/chunk.5RNXQTNO.js +4 -0
- package/dist/chunks/{chunk.GWTC6GAS.js.map → chunk.5RNXQTNO.js.map} +1 -1
- package/dist/chunks/chunk.5WHRZ32E.js +2 -0
- package/dist/chunks/chunk.5WHRZ32E.js.map +7 -0
- package/dist/chunks/chunk.6EMPXCD2.js +2 -0
- package/dist/chunks/{chunk.MBDUC2JR.js.map → chunk.6EMPXCD2.js.map} +0 -0
- package/dist/chunks/chunk.6MEYURY5.js +17 -0
- package/dist/chunks/chunk.6MEYURY5.js.map +7 -0
- package/dist/chunks/chunk.6OM5IIEW.js +17 -0
- package/dist/chunks/chunk.6OM5IIEW.js.map +7 -0
- package/dist/chunks/chunk.6XFPEKI6.js +2 -0
- package/dist/chunks/chunk.6XFPEKI6.js.map +7 -0
- package/dist/chunks/chunk.72WKCCIK.js +2 -0
- package/dist/chunks/chunk.72WKCCIK.js.map +7 -0
- package/dist/chunks/chunk.7FPJHYYG.js +2 -0
- package/dist/chunks/chunk.7FPJHYYG.js.map +7 -0
- package/dist/chunks/chunk.7OLAPDNG.js +2 -0
- package/dist/chunks/chunk.7OLAPDNG.js.map +7 -0
- package/dist/chunks/chunk.7PVCEEH4.js +17 -0
- package/dist/chunks/chunk.7PVCEEH4.js.map +7 -0
- package/dist/chunks/chunk.7QLJ2WVO.js +4 -0
- package/dist/chunks/chunk.7QLJ2WVO.js.map +7 -0
- package/dist/chunks/{chunk.3PCUWNFQ.js → chunk.7WQZG5J4.js} +2 -2
- package/dist/chunks/chunk.7WQZG5J4.js.map +7 -0
- package/dist/chunks/chunk.A3L3HAIU.js +17 -0
- package/dist/chunks/chunk.A3L3HAIU.js.map +7 -0
- package/dist/chunks/chunk.A4CPTDR2.js +2 -0
- package/dist/chunks/chunk.A4CPTDR2.js.map +7 -0
- package/dist/chunks/{chunk.D3GWUZIF.js → chunk.A63K246D.js} +2 -2
- package/dist/chunks/{chunk.D3GWUZIF.js.map → chunk.A63K246D.js.map} +1 -1
- package/dist/chunks/{chunk.4F73JEPV.js → chunk.AFNXRHI4.js} +2 -2
- package/dist/chunks/{chunk.4F73JEPV.js.map → chunk.AFNXRHI4.js.map} +1 -1
- package/dist/chunks/chunk.AJNSUUTO.js +2 -0
- package/dist/chunks/chunk.AJNSUUTO.js.map +7 -0
- package/dist/chunks/chunk.ALWGDFKP.js +256 -0
- package/dist/chunks/chunk.ALWGDFKP.js.map +7 -0
- package/dist/chunks/chunk.AVHM62UB.js +2 -0
- package/dist/chunks/chunk.AVHM62UB.js.map +7 -0
- package/dist/chunks/chunk.B62UDWOE.js +2 -0
- package/dist/chunks/{chunk.BKAUBCSN.js.map → chunk.B62UDWOE.js.map} +0 -0
- package/dist/chunks/chunk.B7OPL7SY.js +2 -0
- package/dist/chunks/{chunk.2FOV3UTP.js.map → chunk.B7OPL7SY.js.map} +0 -0
- package/dist/chunks/chunk.BD5VVC7K.js +2 -0
- package/dist/chunks/chunk.BD5VVC7K.js.map +7 -0
- package/dist/chunks/chunk.BJKRRAIV.js +2 -0
- package/dist/chunks/chunk.BJKRRAIV.js.map +7 -0
- package/dist/chunks/chunk.BQFFP6YO.js +2 -0
- package/dist/chunks/chunk.BQFFP6YO.js.map +7 -0
- package/dist/chunks/chunk.BS63UGCN.js +2 -0
- package/dist/chunks/chunk.BS63UGCN.js.map +7 -0
- package/dist/chunks/chunk.BXFW7QFX.js +4 -0
- package/dist/chunks/chunk.BXFW7QFX.js.map +7 -0
- package/dist/chunks/chunk.BXNLDFIF.js +17 -0
- package/dist/chunks/chunk.BXNLDFIF.js.map +7 -0
- package/dist/chunks/chunk.BXQ2YYTJ.js +248 -0
- package/dist/chunks/chunk.BXQ2YYTJ.js.map +7 -0
- package/dist/chunks/chunk.C7HVESZZ.js +4 -0
- package/dist/chunks/chunk.C7HVESZZ.js.map +7 -0
- package/dist/chunks/chunk.C7YDEBNB.js +2 -0
- package/dist/chunks/chunk.C7YDEBNB.js.map +7 -0
- package/dist/chunks/chunk.CIHOF2AT.js +4 -0
- package/dist/chunks/chunk.CIHOF2AT.js.map +7 -0
- package/dist/chunks/chunk.CWNIRMSQ.js +2 -0
- package/dist/chunks/chunk.CWNIRMSQ.js.map +7 -0
- package/dist/chunks/chunk.D3NKZAQX.js +4 -0
- package/dist/chunks/chunk.D3NKZAQX.js.map +7 -0
- package/dist/chunks/chunk.DJT4JFAM.js +2 -0
- package/dist/chunks/chunk.DJT4JFAM.js.map +7 -0
- package/dist/chunks/chunk.DM37HC2Z.js +248 -0
- package/dist/chunks/chunk.DM37HC2Z.js.map +7 -0
- package/dist/chunks/chunk.DOB7NEBD.js +17 -0
- package/dist/chunks/chunk.DOB7NEBD.js.map +7 -0
- package/dist/chunks/chunk.DSURZFO6.js +17 -0
- package/dist/chunks/chunk.DSURZFO6.js.map +7 -0
- package/dist/chunks/chunk.DWQBU2W3.js +2 -0
- package/dist/chunks/chunk.DWQBU2W3.js.map +7 -0
- package/dist/chunks/chunk.EGOU5NNX.js +256 -0
- package/dist/chunks/chunk.EGOU5NNX.js.map +7 -0
- package/dist/chunks/chunk.EJN24JDG.js +4 -0
- package/dist/chunks/chunk.EJN24JDG.js.map +7 -0
- package/dist/chunks/chunk.EQU3VQAH.js +256 -0
- package/dist/chunks/{chunk.3PCUWNFQ.js.map → chunk.EQU3VQAH.js.map} +1 -1
- package/dist/chunks/chunk.ERS2LHPX.js +2 -0
- package/dist/chunks/chunk.ERS2LHPX.js.map +7 -0
- package/dist/chunks/chunk.FARGBWSO.js +2 -0
- package/dist/chunks/chunk.FARGBWSO.js.map +7 -0
- package/dist/chunks/chunk.FMESUIDM.js +248 -0
- package/dist/chunks/chunk.FMESUIDM.js.map +7 -0
- package/dist/chunks/chunk.FOYMD2Z3.js +248 -0
- package/dist/chunks/chunk.FOYMD2Z3.js.map +7 -0
- package/dist/chunks/chunk.FPIOHJIV.js +248 -0
- package/dist/chunks/chunk.FPIOHJIV.js.map +7 -0
- package/dist/chunks/chunk.FTGUVK33.js +2 -0
- package/dist/chunks/chunk.FTGUVK33.js.map +7 -0
- package/dist/chunks/chunk.FZVMLSWI.js +2 -0
- package/dist/chunks/chunk.FZVMLSWI.js.map +7 -0
- package/dist/chunks/chunk.GBRGIUR7.js +2 -0
- package/dist/chunks/chunk.GBRGIUR7.js.map +7 -0
- package/dist/chunks/{chunk.2AYSTJEB.js → chunk.GJCUUTXA.js} +2 -2
- package/dist/chunks/{chunk.2AYSTJEB.js.map → chunk.GJCUUTXA.js.map} +1 -1
- package/dist/chunks/chunk.GO5DFO25.js +17 -0
- package/dist/chunks/chunk.GO5DFO25.js.map +7 -0
- package/dist/chunks/chunk.GSAHIC5A.js +2 -0
- package/dist/chunks/chunk.GSAHIC5A.js.map +7 -0
- package/dist/chunks/chunk.GU6KITXR.js +4 -0
- package/dist/chunks/chunk.GU6KITXR.js.map +7 -0
- package/dist/chunks/chunk.H2FIZPAI.js +2 -0
- package/dist/chunks/{chunk.LGE4PCTK.js.map → chunk.H2FIZPAI.js.map} +0 -0
- package/dist/chunks/chunk.HO5WDOW7.js +4 -0
- package/dist/chunks/chunk.HO5WDOW7.js.map +7 -0
- package/dist/chunks/chunk.HQVBB74W.js +248 -0
- package/dist/chunks/chunk.HQVBB74W.js.map +7 -0
- package/dist/chunks/chunk.HUYDLW34.js +2 -0
- package/dist/chunks/{chunk.2VWN4TWK.js.map → chunk.HUYDLW34.js.map} +0 -0
- package/dist/chunks/chunk.IJYTCKBX.js +256 -0
- package/dist/chunks/chunk.IJYTCKBX.js.map +7 -0
- package/dist/chunks/chunk.JR7VHEBV.js +2 -0
- package/dist/chunks/chunk.JR7VHEBV.js.map +7 -0
- package/dist/chunks/chunk.JVWZSBDQ.js +2 -0
- package/dist/chunks/chunk.JVWZSBDQ.js.map +7 -0
- package/dist/chunks/{chunk.FYTBJA75.js → chunk.K3V3AEZG.js} +2 -2
- package/dist/chunks/{chunk.FYTBJA75.js.map → chunk.K3V3AEZG.js.map} +0 -0
- package/dist/chunks/chunk.K5K6KLKL.js +2 -0
- package/dist/chunks/chunk.K5K6KLKL.js.map +7 -0
- package/dist/chunks/chunk.KDQDIARJ.js +4 -0
- package/dist/chunks/chunk.KDQDIARJ.js.map +7 -0
- package/dist/chunks/chunk.KRXR5GLU.js +2 -0
- package/dist/chunks/chunk.KRXR5GLU.js.map +7 -0
- package/dist/chunks/{chunk.WTFXFTGO.js → chunk.LMHSSYLE.js} +2 -2
- package/dist/chunks/{chunk.WTFXFTGO.js.map → chunk.LMHSSYLE.js.map} +1 -1
- package/dist/chunks/chunk.LXVYLELY.js +256 -0
- package/dist/chunks/chunk.LXVYLELY.js.map +7 -0
- package/dist/chunks/chunk.LYU6SWCY.js +2 -0
- package/dist/chunks/chunk.LYU6SWCY.js.map +7 -0
- package/dist/chunks/chunk.M2RJBEKH.js +17 -0
- package/dist/chunks/chunk.M2RJBEKH.js.map +7 -0
- package/dist/chunks/chunk.M326OSG5.js +2 -0
- package/dist/chunks/chunk.M326OSG5.js.map +7 -0
- package/dist/chunks/chunk.MDBRRL2K.js +2 -0
- package/dist/chunks/chunk.MDBRRL2K.js.map +7 -0
- package/dist/chunks/chunk.MRG6GDNO.js +256 -0
- package/dist/chunks/chunk.MRG6GDNO.js.map +7 -0
- package/dist/chunks/chunk.MXLEDBOH.js +2 -0
- package/dist/chunks/chunk.MXLEDBOH.js.map +7 -0
- package/dist/chunks/chunk.NCGTJPXB.js +2 -0
- package/dist/chunks/chunk.NCGTJPXB.js.map +7 -0
- package/dist/chunks/chunk.NKEEMWC7.js +2 -0
- package/dist/chunks/chunk.NKEEMWC7.js.map +7 -0
- package/dist/chunks/chunk.NO662DMX.js +2 -0
- package/dist/chunks/chunk.NO662DMX.js.map +7 -0
- package/dist/chunks/chunk.NUBCUBHW.js +35 -0
- package/dist/chunks/chunk.NUBCUBHW.js.map +7 -0
- package/dist/chunks/chunk.NWMVTP6R.js +2 -0
- package/dist/chunks/chunk.NWMVTP6R.js.map +7 -0
- package/dist/chunks/chunk.OCWKTXPR.js +2 -0
- package/dist/chunks/chunk.OCWKTXPR.js.map +7 -0
- package/dist/chunks/chunk.OFJIWBBK.js +17 -0
- package/dist/chunks/chunk.OFJIWBBK.js.map +7 -0
- package/dist/chunks/{chunk.H6FT64OC.js → chunk.OOYBLK6J.js} +2 -2
- package/dist/chunks/{chunk.H6FT64OC.js.map → chunk.OOYBLK6J.js.map} +1 -1
- package/dist/chunks/chunk.OZFJTYAZ.js +256 -0
- package/dist/chunks/chunk.OZFJTYAZ.js.map +7 -0
- package/dist/chunks/chunk.P7VKJP7S.js +2 -0
- package/dist/chunks/{chunk.TLCK5WV6.js.map → chunk.P7VKJP7S.js.map} +0 -0
- package/dist/chunks/chunk.PLTBQ7DH.js +2 -0
- package/dist/chunks/chunk.PLTBQ7DH.js.map +7 -0
- package/dist/chunks/chunk.POMD6HP5.js +2 -0
- package/dist/chunks/chunk.POMD6HP5.js.map +7 -0
- package/dist/chunks/chunk.PQXWIVHO.js +2 -0
- package/dist/chunks/chunk.PQXWIVHO.js.map +7 -0
- package/dist/chunks/chunk.Q2ZM7GYB.js +2 -0
- package/dist/chunks/chunk.Q2ZM7GYB.js.map +7 -0
- package/dist/chunks/chunk.QJYAC5DP.js +2 -0
- package/dist/chunks/chunk.QJYAC5DP.js.map +7 -0
- package/dist/chunks/chunk.RAGWQGAB.js +2 -0
- package/dist/chunks/chunk.RAGWQGAB.js.map +7 -0
- package/dist/chunks/chunk.RC3Y4QKC.js +2 -0
- package/dist/chunks/chunk.RC3Y4QKC.js.map +7 -0
- package/dist/chunks/{chunk.WRX5V6OS.js → chunk.RGGLFZST.js} +2 -2
- package/dist/chunks/{chunk.WRX5V6OS.js.map → chunk.RGGLFZST.js.map} +0 -0
- package/dist/chunks/chunk.RKEALN5W.js +4 -0
- package/dist/chunks/{chunk.MWHEGR5W.js.map → chunk.RKEALN5W.js.map} +1 -1
- package/dist/chunks/{chunk.OVEUYUBM.js → chunk.ROLA6MNV.js} +2 -2
- package/dist/chunks/{chunk.OVEUYUBM.js.map → chunk.ROLA6MNV.js.map} +1 -1
- package/dist/chunks/chunk.RW7CRBOI.js +2 -0
- package/dist/chunks/chunk.RW7CRBOI.js.map +7 -0
- package/dist/chunks/chunk.RWTLTBM6.js +2 -0
- package/dist/chunks/chunk.RWTLTBM6.js.map +7 -0
- package/dist/chunks/chunk.S2NCWVSN.js +256 -0
- package/dist/chunks/chunk.S2NCWVSN.js.map +7 -0
- package/dist/chunks/chunk.SG4QRTJJ.js +256 -0
- package/dist/chunks/chunk.SG4QRTJJ.js.map +7 -0
- package/dist/chunks/chunk.SNPBQAU7.js +17 -0
- package/dist/chunks/chunk.SNPBQAU7.js.map +7 -0
- package/dist/chunks/chunk.SSIAYAIS.js +4 -0
- package/dist/chunks/chunk.SSIAYAIS.js.map +7 -0
- package/dist/chunks/chunk.TATO6JEE.js +2 -0
- package/dist/chunks/chunk.TATO6JEE.js.map +7 -0
- package/dist/chunks/chunk.TCZKT5R7.js +248 -0
- package/dist/chunks/chunk.TCZKT5R7.js.map +7 -0
- package/dist/chunks/chunk.TXY4KKCK.js +248 -0
- package/dist/chunks/chunk.TXY4KKCK.js.map +7 -0
- package/dist/chunks/chunk.U5YAJDOO.js +2 -0
- package/dist/chunks/chunk.U5YAJDOO.js.map +7 -0
- package/dist/chunks/chunk.UC62M6HO.js +256 -0
- package/dist/chunks/chunk.UC62M6HO.js.map +7 -0
- package/dist/chunks/chunk.UIEDTBCA.js +2 -0
- package/dist/chunks/chunk.UIEDTBCA.js.map +7 -0
- package/dist/chunks/chunk.VBADKI3X.js +2 -0
- package/dist/chunks/chunk.VBADKI3X.js.map +7 -0
- package/dist/chunks/chunk.VG2C3CXQ.js +2 -0
- package/dist/chunks/chunk.VG2C3CXQ.js.map +7 -0
- package/dist/chunks/chunk.VJOMSNKI.js +2 -0
- package/dist/chunks/chunk.VJOMSNKI.js.map +7 -0
- package/dist/chunks/chunk.VKEOYY6W.js +4 -0
- package/dist/chunks/chunk.VKEOYY6W.js.map +7 -0
- package/dist/chunks/{chunk.FFWFAT4Z.js → chunk.VSIKGAIE.js} +2 -2
- package/dist/chunks/{chunk.FFWFAT4Z.js.map → chunk.VSIKGAIE.js.map} +1 -1
- package/dist/chunks/chunk.WD5BLRHC.js +2 -0
- package/dist/chunks/chunk.WD5BLRHC.js.map +7 -0
- package/dist/chunks/chunk.WDWX2PYK.js +2 -0
- package/dist/chunks/chunk.WDWX2PYK.js.map +7 -0
- package/dist/chunks/chunk.WDXO7WKG.js +2 -0
- package/dist/chunks/{chunk.QH3AKX2X.js.map → chunk.WDXO7WKG.js.map} +0 -0
- package/dist/chunks/chunk.WKTCJRNO.js +256 -0
- package/dist/chunks/chunk.WKTCJRNO.js.map +7 -0
- package/dist/chunks/chunk.WMJFRAUU.js +248 -0
- package/dist/chunks/chunk.WMJFRAUU.js.map +7 -0
- package/dist/chunks/chunk.WSU6CE53.js +248 -0
- package/dist/chunks/chunk.WSU6CE53.js.map +7 -0
- package/dist/chunks/chunk.WURSPCXJ.js +4 -0
- package/dist/chunks/chunk.WURSPCXJ.js.map +7 -0
- package/dist/chunks/chunk.XIZENE33.js +2 -0
- package/dist/chunks/{chunk.RIF2YFHE.js.map → chunk.XIZENE33.js.map} +0 -0
- package/dist/chunks/chunk.YJ6TKSVL.js +2 -0
- package/dist/chunks/chunk.YJ6TKSVL.js.map +7 -0
- package/dist/chunks/chunk.YSV3QDAO.js +2 -0
- package/dist/chunks/chunk.YSV3QDAO.js.map +7 -0
- package/dist/chunks/chunk.Z2CV4J4E.js +256 -0
- package/dist/chunks/chunk.Z2CV4J4E.js.map +7 -0
- package/dist/chunks/chunk.ZMVZD46B.js +4 -0
- package/dist/chunks/{chunk.UPS6F4M6.js.map → chunk.ZMVZD46B.js.map} +1 -1
- package/dist/chunks/chunk.ZOTOB633.js +2 -0
- package/dist/chunks/chunk.ZOTOB633.js.map +7 -0
- package/dist/chunks/chunk.ZS4C3T6Z.js +7 -0
- package/dist/chunks/chunk.ZS4C3T6Z.js.map +7 -0
- package/dist/custom-elements.json +390 -390
- package/dist/docs/components/manifest.json +49 -49
- package/dist/scw-alert/ScwAlert.js +1 -1
- package/dist/scw-alert/scw-alert.js +1 -1
- package/dist/scw-button/ScwButton.js +1 -1
- package/dist/scw-button/scw-button.js +1 -1
- package/dist/scw-card/ScwCard.js +1 -1
- package/dist/scw-card/scw-card.js +1 -1
- package/dist/scw-center-component/ScwCenterComponent.js +1 -1
- package/dist/scw-center-component/scw-center-component.js +1 -1
- package/dist/scw-component/ScwComponent.js +1 -1
- package/dist/scw-component/scw-component.js +1 -1
- package/dist/scw-components.js +1 -1
- package/dist/scw-element-component/scw-element-component.js +1 -1
- package/dist/scw-element-component/scw-element-component.js.map +1 -1
- package/dist/scw-flex-h-component/scw-flex-h-component.js +1 -1
- package/dist/scw-flex-h-component/scw-flex-h-component.js.map +1 -1
- package/dist/scw-flex-v-component/scw-flex-v-component.js +1 -1
- package/dist/scw-flex-v-component/scw-flex-v-component.js.map +1 -1
- package/dist/scw-float-component/scw-float-component.js +1 -1
- package/dist/scw-float-component/scw-float-component.js.map +1 -1
- package/dist/scw-form/scw-form.js +1 -1
- package/dist/scw-form/scw-form.js.map +1 -1
- package/dist/scw-form-component/scw-form-component.js +1 -1
- package/dist/scw-heading/ScwHeading.js +1 -1
- package/dist/scw-heading/scw-heading.js +1 -1
- package/dist/scw-icon/ScwIcon.js +1 -1
- package/dist/scw-icon/scw-icon.js +1 -1
- package/dist/scw-image/ScwImage.js +1 -1
- package/dist/scw-image/scw-image.js +1 -1
- package/dist/scw-input/scw-input.js +1 -1
- package/dist/scw-input/scw-input.js.map +1 -1
- package/dist/scw-input-field/scw-input-field.js +1 -1
- package/dist/scw-input-field/scw-input-field.js.map +1 -1
- package/dist/scw-input-layout/scw-input-layout.js +1 -1
- package/dist/scw-input-layout/scw-input-layout.js.map +1 -1
- package/dist/scw-layout-component/scw-layout-component.js +1 -1
- package/dist/scw-link/ScwLink.js +1 -1
- package/dist/scw-link/scw-link.js +1 -1
- package/dist/scw-link-base/ScwLinkBase.js +1 -1
- package/dist/scw-link-base/scw-link-base.js +1 -1
- package/dist/scw-menu/scw-menu.js +1 -1
- package/dist/scw-menu/scw-menu.js.map +1 -1
- package/dist/scw-menu-item/scw-menu-item.js +1 -1
- package/dist/scw-menu-item/scw-menu-item.js.map +1 -1
- package/dist/scw-page-alert/scw-page-alert.js +1 -1
- package/dist/scw-page-alert/scw-page-alert.js.map +1 -1
- package/dist/scw-pane-component/scw-pane-component.js +1 -1
- package/dist/scw-pane-component/scw-pane-component.js.map +1 -1
- package/dist/scw-responsive/scw-responsive.js +1 -1
- package/dist/scw-responsive/scw-responsive.js.map +1 -1
- package/dist/scw-select/scw-select.js +1 -1
- package/dist/scw-select/scw-select.js.map +1 -1
- package/dist/scw-single-input/scw-single-input.js +6 -6
- package/dist/scw-single-input/scw-single-input.js.map +3 -3
- package/dist/scw-single-input-layout/scw-single-input-layout.js +1 -1
- package/dist/scw-stack-component/scw-stack-component.js +1 -1
- package/dist/scw-stack-component/scw-stack-component.js.map +1 -1
- package/dist/scw-test/ScwTest.js +1 -1
- package/dist/scw-test/scw-test.js +1 -1
- package/dist/scw-textarea/scw-textarea.js +1 -1
- package/dist/scw-textarea/scw-textarea.js.map +1 -1
- package/dist/scw-validate/scw-validate.js +1 -1
- package/dist/scw-validate/scw-validate.js.map +1 -1
- package/dist/scw-validation/scw-validation.js +1 -1
- package/dist/scw-validation/scw-validation.js.map +1 -1
- package/dist/scw.d.ts +1 -0
- package/dist/scw.js +1 -1
- package/dist/tokens/fonts.css +3 -3
- package/dist/tokens/fonts.css.gz +0 -0
- package/dist/tokens/source/cssFonts.css +3 -3
- package/dist/tokens/source/cssFonts.css.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/tokens/styles.css +3 -3
- package/dist/tokens/styles.css.gz +0 -0
- package/dist/utils/suffix.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk.2FOV3UTP.js +0 -2
- package/dist/chunks/chunk.2VWN4TWK.js +0 -2
- package/dist/chunks/chunk.BKAUBCSN.js +0 -2
- package/dist/chunks/chunk.CUPH5GST.js +0 -2
- package/dist/chunks/chunk.CUPH5GST.js.map +0 -7
- package/dist/chunks/chunk.GWTC6GAS.js +0 -4
- package/dist/chunks/chunk.HTYHFPGD.js +0 -35
- package/dist/chunks/chunk.HTYHFPGD.js.map +0 -7
- package/dist/chunks/chunk.K5EGUHA7.js +0 -2
- package/dist/chunks/chunk.LGE4PCTK.js +0 -2
- package/dist/chunks/chunk.MBDUC2JR.js +0 -2
- package/dist/chunks/chunk.MWHEGR5W.js +0 -4
- package/dist/chunks/chunk.NV7WKBSI.js +0 -2
- package/dist/chunks/chunk.QH3AKX2X.js +0 -2
- package/dist/chunks/chunk.RIF2YFHE.js +0 -2
- package/dist/chunks/chunk.TLCK5WV6.js +0 -2
- package/dist/chunks/chunk.UPS6F4M6.js +0 -4
- package/dist/chunks/chunk.UXU6F5B7.js +0 -2
- package/dist/chunks/chunk.VBLITHNX.js +0 -2
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import{b as g}from"./chunk.PXQQTQKT.js";import{a as n}from"./chunk.K3V3AEZG.js";import{a as c}from"./chunk.WCJ4CSRJ.js";import{c as d}from"./chunk.VSIKGAIE.js";import{a as i,b as r,c as l}from"./chunk.NUBCUBHW.js";import{a as t}from"./chunk.ZS4C3T6Z.js";import{g as o}from"./chunk.5YJY6NT6.js";var p=i`
|
|
2
|
+
:host .label {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}`;var w=i`
|
|
7
|
+
:host([design=text]) .scw-link-base {
|
|
8
|
+
outline: none;
|
|
9
|
+
display: inline;
|
|
10
|
+
}
|
|
11
|
+
:host([design=text]) .scw-link-base .label {
|
|
12
|
+
text-align: LEFT;
|
|
13
|
+
font: var(--scw-type-text-font);
|
|
14
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([design=text]:hover) a.scw-link-base .label,
|
|
19
|
+
:host([design=text][hover]) a.scw-link-base .label {
|
|
20
|
+
text-align: LEFT;
|
|
21
|
+
font: var(--scw-type-text-font);
|
|
22
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([design=text][aria-disabled=true]) .scw-link-base .label {
|
|
26
|
+
text-align: LEFT;
|
|
27
|
+
font: var(--scw-type-text-font);
|
|
28
|
+
color: var(--scw-color-grey-07);
|
|
29
|
+
}`;var h=i`
|
|
30
|
+
:host([design=solid]) .scw-link-base {
|
|
31
|
+
outline: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
background-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
34
|
+
border-radius: 10px 10px 10px 10px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: row nowrap;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
40
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
41
|
+
padding-top: calc(var(--scw-spacing-1) * 0.5);
|
|
42
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.5);
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
}
|
|
45
|
+
:host([design=solid]) .scw-link-base > *:not(:last-child) {
|
|
46
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
47
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
48
|
+
}
|
|
49
|
+
:host([design=solid]) .scw-link-base .label {
|
|
50
|
+
text-align: LEFT;
|
|
51
|
+
font: var(--scw-type-text-bold-06-font);
|
|
52
|
+
color: var(--scw-color-grey-10);
|
|
53
|
+
min-height: 22px;
|
|
54
|
+
}
|
|
55
|
+
:host([design=solid]) .scw-link-base .icon {
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
:host([design=solid]) .scw-link-base .icon svg {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
vertical-align: top;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
fill: var(--scw-color-grey-10);
|
|
65
|
+
}
|
|
66
|
+
:host([design=solid]) .scw-link-base .icon svg * {
|
|
67
|
+
fill: var(--scw-color-grey-10);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-flow: row nowrap;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
76
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
77
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
78
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
}
|
|
81
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
82
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
83
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-flow: row nowrap;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
92
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
93
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
94
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
}
|
|
97
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
98
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
99
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([design=solid]:hover) a.scw-link-base,
|
|
103
|
+
:host([design=solid][hover]) a.scw-link-base {
|
|
104
|
+
background-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
105
|
+
border-radius: 10px 10px 10px 10px;
|
|
106
|
+
}
|
|
107
|
+
:host([design=solid]:hover) a.scw-link-base .label,
|
|
108
|
+
:host([design=solid][hover]) a.scw-link-base .label {
|
|
109
|
+
text-align: LEFT;
|
|
110
|
+
font: var(--scw-type-text-bold-06-font);
|
|
111
|
+
color: var(--scw-color-grey-10);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base {
|
|
115
|
+
background-color: var(--scw-color-grey-095);
|
|
116
|
+
border-radius: 10px 10px 10px 10px;
|
|
117
|
+
}
|
|
118
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .label {
|
|
119
|
+
text-align: LEFT;
|
|
120
|
+
font: var(--scw-type-text-bold-06-font);
|
|
121
|
+
color: var(--scw-color-grey-07);
|
|
122
|
+
}
|
|
123
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {
|
|
124
|
+
fill: var(--scw-color-grey-07);
|
|
125
|
+
}
|
|
126
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
127
|
+
fill: var(--scw-color-grey-07);
|
|
128
|
+
}`;var f=i`
|
|
129
|
+
:host([design=outlined]) .scw-link-base {
|
|
130
|
+
outline: none;
|
|
131
|
+
user-select: none;
|
|
132
|
+
background-color: var(--scw-color-grey-10);
|
|
133
|
+
border-radius: 10px 10px 10px 10px;
|
|
134
|
+
border-width: 2px;
|
|
135
|
+
border-style: solid;
|
|
136
|
+
border-color: var(--scw-color-04, var(--scw-color-primary-04));
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-flow: row nowrap;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
align-items: center;
|
|
141
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
142
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
143
|
+
padding-top: calc(var(--scw-spacing-1) * 0.3);
|
|
144
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.3);
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
}
|
|
147
|
+
:host([design=outlined]) .scw-link-base > *:not(:last-child) {
|
|
148
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
149
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
150
|
+
}
|
|
151
|
+
:host([design=outlined]) .scw-link-base .label {
|
|
152
|
+
text-align: LEFT;
|
|
153
|
+
font: var(--scw-type-text-bold-06-font);
|
|
154
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
155
|
+
min-height: 22px;
|
|
156
|
+
}
|
|
157
|
+
:host([design=outlined]) .scw-link-base .icon {
|
|
158
|
+
width: 24px;
|
|
159
|
+
height: 24px;
|
|
160
|
+
}
|
|
161
|
+
:host([design=outlined]) .scw-link-base .icon svg {
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
vertical-align: top;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
fill: var(--scw-color-primary-03);
|
|
167
|
+
}
|
|
168
|
+
:host([design=outlined]) .scw-link-base .icon svg * {
|
|
169
|
+
fill: var(--scw-color-primary-03);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-flow: row nowrap;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
align-items: center;
|
|
177
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
178
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
179
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
180
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
}
|
|
183
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
184
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
185
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-flow: row nowrap;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
align-items: center;
|
|
193
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
194
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
195
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
196
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
}
|
|
199
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
200
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
201
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([design=outlined]:hover) a.scw-link-base,
|
|
205
|
+
:host([design=outlined][hover]) a.scw-link-base {
|
|
206
|
+
background-color: var(--scw-color-grey-10);
|
|
207
|
+
border-radius: 10px 10px 10px 10px;
|
|
208
|
+
border-width: 2px;
|
|
209
|
+
border-style: solid;
|
|
210
|
+
border-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
211
|
+
}
|
|
212
|
+
:host([design=outlined]:hover) a.scw-link-base .label,
|
|
213
|
+
:host([design=outlined][hover]) a.scw-link-base .label {
|
|
214
|
+
text-align: LEFT;
|
|
215
|
+
font: var(--scw-type-text-bold-06-font);
|
|
216
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base {
|
|
220
|
+
background-color: var(--scw-color-grey-10);
|
|
221
|
+
border-radius: 10px 10px 10px 10px;
|
|
222
|
+
border-width: 2px;
|
|
223
|
+
border-style: solid;
|
|
224
|
+
border-color: var(--scw-color-grey-09);
|
|
225
|
+
}
|
|
226
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .label {
|
|
227
|
+
text-align: LEFT;
|
|
228
|
+
font: var(--scw-type-text-bold-06-font);
|
|
229
|
+
color: var(--scw-color-grey-07);
|
|
230
|
+
}
|
|
231
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {
|
|
232
|
+
fill: var(--scw-color-grey-07);
|
|
233
|
+
}
|
|
234
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
235
|
+
fill: var(--scw-color-grey-07);
|
|
236
|
+
}`;var b=i`
|
|
237
|
+
:host([design=plain]) .scw-link-base {
|
|
238
|
+
outline: none;
|
|
239
|
+
display: inline-block;
|
|
240
|
+
}`;var e=class extends d{constructor(){super();this.iconSide="left";this.design="solid";this._svgInfo="";this.element="link",console.log("ICON"),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):(this._svgInfo=s,console.log("found it"))})}static get styles(){return[super.styles,p]}parseAndValidateLightDom(){super.parseAndValidateLightDom(),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):this._svgInfo=s})}validDesigns(){return g}doShowIcon(){return!!(this.icon&&this.design!=="plain"&&this.design!=="text")}renderContent(){let s=this.doShowIcon(),a=`<style>${this.findStyle().cssText}</style>`;return this.design==="plain"?t`
|
|
241
|
+
${n(a)}
|
|
242
|
+
<slot></slot>
|
|
243
|
+
`:t`
|
|
244
|
+
${s&&this.iconSide==="left"?t`
|
|
245
|
+
<div class="icon">
|
|
246
|
+
${n(this._svgInfo)}
|
|
247
|
+
</div>`:""}
|
|
248
|
+
${n(a)}
|
|
249
|
+
<div class="label">
|
|
250
|
+
${this.ariaLabel}
|
|
251
|
+
</div>
|
|
252
|
+
${s&&this.iconSide==="right"?t`
|
|
253
|
+
<div class="icon">
|
|
254
|
+
${n(this._svgInfo)}
|
|
255
|
+
</div>`:""}`}findStyle(){switch(this.design){case"solid":return h;case"outlined":return f;case"text":return w;case"plain":default:return b}}render(){return this.renderLink(this.renderContent())}};o([r({type:String,reflect:!0})],e.prototype,"icon",2),o([r({type:String,reflect:!0,attribute:"icon-side"})],e.prototype,"iconSide",2),o([r({type:String,reflect:!0})],e.prototype,"design",2),o([l()],e.prototype,"_svgInfo",2);export{e as a};
|
|
256
|
+
//# sourceMappingURL=chunk.S2NCWVSN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-text.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-solid.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-outlined.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-plain.scss", "../../src/scw-link/ScwLink.ts"],
|
|
4
|
+
"sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host .label {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=text]) .scw-link-base {\n outline: none;\n display: inline;\n}\n:host([design=text]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n text-decoration: underline;\n}\n\n:host([design=text]:hover) a.scw-link-base .label,\n:host([design=text][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=text][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=solid]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-03, var(--scw-color-primary-03));\n border-radius: 10px 10px 10px 10px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.5);\n padding-bottom: calc(var(--scw-spacing-1) * 0.5);\n display: inline-flex;\n}\n:host([design=solid]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=solid]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n min-height: 22px;\n}\n:host([design=solid]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=solid]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-grey-10);\n}\n:host([design=solid]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-10);\n}\n\n:host([design=solid][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid]:hover) a.scw-link-base,\n:host([design=solid][hover]) a.scw-link-base {\n background-color: var(--scw-color-01, var(--scw-color-primary-01));\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid]:hover) a.scw-link-base .label,\n:host([design=solid][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n}\n\n:host([design=solid][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-095);\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=outlined]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-04, var(--scw-color-primary-04));\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.3);\n padding-bottom: calc(var(--scw-spacing-1) * 0.3);\n display: inline-flex;\n}\n:host([design=outlined]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=outlined]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n min-height: 22px;\n}\n:host([design=outlined]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=outlined]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-primary-03);\n}\n:host([design=outlined]) .scw-link-base .icon svg * {\n fill: var(--scw-color-primary-03);\n}\n\n:host([design=outlined][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined]:hover) a.scw-link-base,\n:host([design=outlined][hover]) a.scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n:host([design=outlined]:hover) a.scw-link-base .label,\n:host([design=outlined][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=outlined][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-grey-09);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=plain]) .scw-link-base {\n outline: none;\n display: inline-block;\n}`;\n", "import {html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {unsafeHTML} from 'lit/directives/unsafe-html.js';\nimport styles from './scss/scw-link.scss';\nimport stylesText from './scss/scw-link-text.scss';\nimport stylesSolid from './scss/scw-link-solid.scss';\nimport stylesOutline from './scss/scw-link-outlined.scss';\nimport stylesPlain from './scss/scw-link-plain.scss';\nimport {\n ScwLinkSide,\n ScwLinkDesigns,\n} from './scw-link-enums';\nimport getIconSvg from '../utils/getIconSvg';\nimport {Components} from '../utils/enums/Components';\nimport {ScwMenuItemDesigns} from '../scw-menu-item/scw-menu-item-enums';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\n// import 'lit/experimental-hydrate-support.js';\n\n/**\n * ScwLink\n * @class\n * @tag scw-link\n *\n * @slot [default=\"<a href target />\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target.\n * @slot [default=\"<... />\"]\n (OPTIONAL) random content (paired with design=\"plain\") will wrap that\n content with a link.\n */\nexport default class ScwLink extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwLink ==================================================\n /**\n * (ScwLink) Determines the icon to use with the text\n * @type {string}\n */\n @property({type: String, reflect: true})\n icon: string | undefined;\n\n /**\n * (ScwLink) Determines which side the icon should show up on\n * @type {string}\n */\n @property({type: String, reflect: true, attribute: 'icon-side'})\n iconSide: ScwLinkSide = ScwLinkSide.left;\n\n /**\n * (ScwLink) The design style of the link.\n * @type {string}\n */\n @property({type: String, reflect: true})\n design: ScwLinkDesigns | ScwMenuItemDesigns = ScwLinkDesigns.solid;\n\n @state() _svgInfo : string = '';\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.link;\n console.log('ICON');\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n console.log('found it');\n }\n });\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n }\n });\n }\n\n /**\n * Way to extend valid design types...\n * @return {object} object of valid designs relative to this object\n */\n validDesigns() : object {\n return ScwLinkDesigns;\n }\n\n /**\n * Way to extend valid design icon types...\n * @return {boolean}\n */\n doShowIcon() : boolean {\n if ( this.icon &&\n this.design !== ScwLinkDesigns.plain &&\n this.design !== ScwLinkDesigns.text ) {\n return true;\n }\n return false;\n }\n\n /**\n * renderContent\n * @return {object} component DOM\n */\n renderContent(): object {\n const doShowIcon = this.doShowIcon();\n // ssr is fighting injecting css this way...\n const localCss = `<style>${this.findStyle().cssText}</style>`;\n\n if (this.design === ScwLinkDesigns.plain) {\n return html`\n ${unsafeHTML(localCss)}\n <slot></slot>\n `;\n }\n\n return html`\n ${doShowIcon && this.iconSide === ScwLinkSide.left ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}\n ${unsafeHTML(localCss)}\n <div class=\"label\">\n ${this.ariaLabel}\n </div>\n ${doShowIcon && this.iconSide === ScwLinkSide.right ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}`;\n }\n\n /**\n * find the style per design\n * @return {object}\n */\n findStyle() {\n switch (this.design) {\n case ScwLinkDesigns.solid:\n return stylesSolid;\n case ScwLinkDesigns.outlined:\n return stylesOutline;\n case ScwLinkDesigns.text:\n return stylesText;\n case ScwLinkDesigns.plain:\n default:\n return stylesPlain;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n this.renderContent(),\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "sSACA,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;GC4Bf,mBAAqC,EAAY,CAsC/C,aAAc,CACZ,MAAM,EAfN,cAAwB,OAOxB,YAA8C,QAEvC,cAAoB,GAO3B,KAAK,QAAU,OAClB,QAAQ,IAAI,MAAM,EACf,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,MAAK,SAAW,EAChB,QAAQ,IAAI,UAAU,EAE1B,CAAC,CACH,WA9CW,SAAS,CAClB,MAAO,CACL,MAAM,OACN,CACF,CACF,CA4CA,0BAA2B,CACzB,MAAM,yBAAyB,EAC/B,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,KAAK,SAAW,CAEpB,CAAC,CACH,CAMA,cAAwB,CACtB,MAAO,EACT,CAMA,YAAuB,CACrB,MAAK,QAAK,MACR,KAAK,SAAW,SAChB,KAAK,SAAW,OAIpB,CAMA,eAAwB,CACtB,GAAM,GAAa,KAAK,WAAW,EAE7B,EAAW,UAAU,KAAK,UAAU,EAAE,kBAE5C,MAAI,MAAK,SAAW,QACX;AAAA,UACH,EAAW,CAAQ;AAAA;AAAA,QAKlB;AAAA,QACH,GAAc,KAAK,WAAa,OAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB;AAAA,UACR,EAAW,CAAQ;AAAA;AAAA,YAEjB,KAAK;AAAA;AAAA,QAET,GAAc,KAAK,WAAa,QAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB,IAChB,CAMA,WAAY,CACV,OAAQ,KAAK,YACN,QACH,MAAO,OACJ,WACH,MAAO,OACJ,OACH,MAAO,OACJ,gBAEH,MAAO,GAEb,CAMC,QAAiB,CAChB,MAAO,MAAK,WACV,KAAK,cAAc,CACrB,CACF,CACF,EAhII,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AAjBJ,EAiBI,oBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,GAAM,UAAW,WAAW,CAAC,GAC7D,AAxBJ,EAwBI,wBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AA/BJ,EA+BI,sBAEO,GAAT,AAAC,EAAM,GAAE,AAjCX,EAiCW",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import{b as g}from"./chunk.PXQQTQKT.js";import{a as n}from"./chunk.K3V3AEZG.js";import{a as c}from"./chunk.WCJ4CSRJ.js";import{c as d}from"./chunk.VSIKGAIE.js";import{a as i,b as r,c as l}from"./chunk.NUBCUBHW.js";import{a as t}from"./chunk.ZS4C3T6Z.js";import{g as o}from"./chunk.5YJY6NT6.js";var p=i`
|
|
2
|
+
:host .label {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}`;var w=i`
|
|
7
|
+
:host([design=text]) .scw-link-base {
|
|
8
|
+
outline: none;
|
|
9
|
+
display: inline;
|
|
10
|
+
}
|
|
11
|
+
:host([design=text]) .scw-link-base .label {
|
|
12
|
+
text-align: LEFT;
|
|
13
|
+
font: var(--scw-type-text-font);
|
|
14
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([design=text]:hover) a.scw-link-base .label,
|
|
19
|
+
:host([design=text][hover]) a.scw-link-base .label {
|
|
20
|
+
text-align: LEFT;
|
|
21
|
+
font: var(--scw-type-text-font);
|
|
22
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([design=text][aria-disabled=true]) .scw-link-base .label {
|
|
26
|
+
text-align: LEFT;
|
|
27
|
+
font: var(--scw-type-text-font);
|
|
28
|
+
color: var(--scw-color-grey-07);
|
|
29
|
+
}`;var h=i`
|
|
30
|
+
:host([design=solid]) .scw-link-base {
|
|
31
|
+
outline: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
background-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
34
|
+
border-radius: 10px 10px 10px 10px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: row nowrap;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
40
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
41
|
+
padding-top: calc(var(--scw-spacing-1) * 0.5);
|
|
42
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.5);
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
}
|
|
45
|
+
:host([design=solid]) .scw-link-base > *:not(:last-child) {
|
|
46
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
47
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
48
|
+
}
|
|
49
|
+
:host([design=solid]) .scw-link-base .label {
|
|
50
|
+
text-align: LEFT;
|
|
51
|
+
font: var(--scw-type-text-bold-06-font);
|
|
52
|
+
color: var(--scw-color-grey-10);
|
|
53
|
+
min-height: 22px;
|
|
54
|
+
}
|
|
55
|
+
:host([design=solid]) .scw-link-base .icon {
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
:host([design=solid]) .scw-link-base .icon svg {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
vertical-align: top;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
fill: var(--scw-color-grey-10);
|
|
65
|
+
}
|
|
66
|
+
:host([design=solid]) .scw-link-base .icon svg * {
|
|
67
|
+
fill: var(--scw-color-grey-10);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-flow: row nowrap;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
76
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
77
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
78
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
}
|
|
81
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
82
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
83
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-flow: row nowrap;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
92
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
93
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
94
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
}
|
|
97
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
98
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
99
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([design=solid]:hover) a.scw-link-base,
|
|
103
|
+
:host([design=solid][hover]) a.scw-link-base {
|
|
104
|
+
background-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
105
|
+
border-radius: 10px 10px 10px 10px;
|
|
106
|
+
}
|
|
107
|
+
:host([design=solid]:hover) a.scw-link-base .label,
|
|
108
|
+
:host([design=solid][hover]) a.scw-link-base .label {
|
|
109
|
+
text-align: LEFT;
|
|
110
|
+
font: var(--scw-type-text-bold-06-font);
|
|
111
|
+
color: var(--scw-color-grey-10);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base {
|
|
115
|
+
background-color: var(--scw-color-grey-095);
|
|
116
|
+
border-radius: 10px 10px 10px 10px;
|
|
117
|
+
}
|
|
118
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .label {
|
|
119
|
+
text-align: LEFT;
|
|
120
|
+
font: var(--scw-type-text-bold-06-font);
|
|
121
|
+
color: var(--scw-color-grey-07);
|
|
122
|
+
}
|
|
123
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {
|
|
124
|
+
fill: var(--scw-color-grey-07);
|
|
125
|
+
}
|
|
126
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
127
|
+
fill: var(--scw-color-grey-07);
|
|
128
|
+
}`;var f=i`
|
|
129
|
+
:host([design=outlined]) .scw-link-base {
|
|
130
|
+
outline: none;
|
|
131
|
+
user-select: none;
|
|
132
|
+
background-color: var(--scw-color-grey-10);
|
|
133
|
+
border-radius: 10px 10px 10px 10px;
|
|
134
|
+
border-width: 2px;
|
|
135
|
+
border-style: solid;
|
|
136
|
+
border-color: var(--scw-color-04, var(--scw-color-primary-04));
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-flow: row nowrap;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
align-items: center;
|
|
141
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
142
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
143
|
+
padding-top: calc(var(--scw-spacing-1) * 0.3);
|
|
144
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.3);
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
}
|
|
147
|
+
:host([design=outlined]) .scw-link-base > *:not(:last-child) {
|
|
148
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
149
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
150
|
+
}
|
|
151
|
+
:host([design=outlined]) .scw-link-base .label {
|
|
152
|
+
text-align: LEFT;
|
|
153
|
+
font: var(--scw-type-text-bold-06-font);
|
|
154
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
155
|
+
min-height: 22px;
|
|
156
|
+
}
|
|
157
|
+
:host([design=outlined]) .scw-link-base .icon {
|
|
158
|
+
width: 24px;
|
|
159
|
+
height: 24px;
|
|
160
|
+
}
|
|
161
|
+
:host([design=outlined]) .scw-link-base .icon svg {
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
vertical-align: top;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
fill: var(--scw-color-primary-03);
|
|
167
|
+
}
|
|
168
|
+
:host([design=outlined]) .scw-link-base .icon svg * {
|
|
169
|
+
fill: var(--scw-color-primary-03);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-flow: row nowrap;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
align-items: center;
|
|
177
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
178
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
179
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
180
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
}
|
|
183
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
184
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
185
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-flow: row nowrap;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
align-items: center;
|
|
193
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
194
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
195
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
196
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
}
|
|
199
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
200
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
201
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([design=outlined]:hover) a.scw-link-base,
|
|
205
|
+
:host([design=outlined][hover]) a.scw-link-base {
|
|
206
|
+
background-color: var(--scw-color-grey-10);
|
|
207
|
+
border-radius: 10px 10px 10px 10px;
|
|
208
|
+
border-width: 2px;
|
|
209
|
+
border-style: solid;
|
|
210
|
+
border-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
211
|
+
}
|
|
212
|
+
:host([design=outlined]:hover) a.scw-link-base .label,
|
|
213
|
+
:host([design=outlined][hover]) a.scw-link-base .label {
|
|
214
|
+
text-align: LEFT;
|
|
215
|
+
font: var(--scw-type-text-bold-06-font);
|
|
216
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base {
|
|
220
|
+
background-color: var(--scw-color-grey-10);
|
|
221
|
+
border-radius: 10px 10px 10px 10px;
|
|
222
|
+
border-width: 2px;
|
|
223
|
+
border-style: solid;
|
|
224
|
+
border-color: var(--scw-color-grey-09);
|
|
225
|
+
}
|
|
226
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .label {
|
|
227
|
+
text-align: LEFT;
|
|
228
|
+
font: var(--scw-type-text-bold-06-font);
|
|
229
|
+
color: var(--scw-color-grey-07);
|
|
230
|
+
}
|
|
231
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {
|
|
232
|
+
fill: var(--scw-color-grey-07);
|
|
233
|
+
}
|
|
234
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
235
|
+
fill: var(--scw-color-grey-07);
|
|
236
|
+
}`;var b=i`
|
|
237
|
+
:host([design=plain]) .scw-link-base {
|
|
238
|
+
outline: none;
|
|
239
|
+
display: inline-block;
|
|
240
|
+
}`;var e=class extends d{constructor(){super();this.iconSide="left";this.design="solid";this._svgInfo="";this.element="link",console.log("ICON"),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):(this._svgInfo=s,console.log("found it"))})}static get styles(){return[super.styles,p]}requestUpdate(){super.requestUpdate(),console.log("hi")}parseAndValidateLightDom(){super.parseAndValidateLightDom(),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):this._svgInfo=s})}validDesigns(){return g}doShowIcon(){return!!(this.icon&&this.design!=="plain"&&this.design!=="text")}renderContent(){let s=this.doShowIcon(),a=`<style>${this.findStyle().cssText}</style>`;return this.design==="plain"?t`
|
|
241
|
+
${n(a)}
|
|
242
|
+
<slot></slot>
|
|
243
|
+
`:t`
|
|
244
|
+
${s&&this.iconSide==="left"?t`
|
|
245
|
+
<div class="icon">
|
|
246
|
+
${n(this._svgInfo)}
|
|
247
|
+
</div>`:""}
|
|
248
|
+
${n(a)}
|
|
249
|
+
<div class="label">
|
|
250
|
+
${this.ariaLabel}
|
|
251
|
+
</div>
|
|
252
|
+
${s&&this.iconSide==="right"?t`
|
|
253
|
+
<div class="icon">
|
|
254
|
+
${n(this._svgInfo)}
|
|
255
|
+
</div>`:""}`}findStyle(){switch(this.design){case"solid":return h;case"outlined":return f;case"text":return w;case"plain":default:return b}}render(){return this.renderLink(this.renderContent())}};o([r({type:String,reflect:!0})],e.prototype,"icon",2),o([r({type:String,reflect:!0,attribute:"icon-side"})],e.prototype,"iconSide",2),o([r({type:String,reflect:!0})],e.prototype,"design",2),o([l()],e.prototype,"_svgInfo",2);export{e as a};
|
|
256
|
+
//# sourceMappingURL=chunk.SG4QRTJJ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-text.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-solid.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-outlined.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-plain.scss", "../../src/scw-link/ScwLink.ts"],
|
|
4
|
+
"sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host .label {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=text]) .scw-link-base {\n outline: none;\n display: inline;\n}\n:host([design=text]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n text-decoration: underline;\n}\n\n:host([design=text]:hover) a.scw-link-base .label,\n:host([design=text][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=text][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=solid]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-03, var(--scw-color-primary-03));\n border-radius: 10px 10px 10px 10px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.5);\n padding-bottom: calc(var(--scw-spacing-1) * 0.5);\n display: inline-flex;\n}\n:host([design=solid]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=solid]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n min-height: 22px;\n}\n:host([design=solid]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=solid]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-grey-10);\n}\n:host([design=solid]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-10);\n}\n\n:host([design=solid][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid]:hover) a.scw-link-base,\n:host([design=solid][hover]) a.scw-link-base {\n background-color: var(--scw-color-01, var(--scw-color-primary-01));\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid]:hover) a.scw-link-base .label,\n:host([design=solid][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n}\n\n:host([design=solid][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-095);\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=outlined]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-04, var(--scw-color-primary-04));\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.3);\n padding-bottom: calc(var(--scw-spacing-1) * 0.3);\n display: inline-flex;\n}\n:host([design=outlined]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=outlined]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n min-height: 22px;\n}\n:host([design=outlined]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=outlined]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-primary-03);\n}\n:host([design=outlined]) .scw-link-base .icon svg * {\n fill: var(--scw-color-primary-03);\n}\n\n:host([design=outlined][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined]:hover) a.scw-link-base,\n:host([design=outlined][hover]) a.scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n:host([design=outlined]:hover) a.scw-link-base .label,\n:host([design=outlined][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=outlined][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-grey-09);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=plain]) .scw-link-base {\n outline: none;\n display: inline-block;\n}`;\n", "import {html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {unsafeHTML} from 'lit/directives/unsafe-html.js';\nimport styles from './scss/scw-link.scss';\nimport stylesText from './scss/scw-link-text.scss';\nimport stylesSolid from './scss/scw-link-solid.scss';\nimport stylesOutline from './scss/scw-link-outlined.scss';\nimport stylesPlain from './scss/scw-link-plain.scss';\nimport {\n ScwLinkSide,\n ScwLinkDesigns,\n} from './scw-link-enums';\nimport getIconSvg from '../utils/getIconSvg';\nimport {Components} from '../utils/enums/Components';\nimport {ScwMenuItemDesigns} from '../scw-menu-item/scw-menu-item-enums';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\n// import 'lit/experimental-hydrate-support.js';\n\n/**\n * ScwLink\n * @class\n * @tag scw-link\n *\n * @slot [default=\"<a href target />\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target.\n * @slot [default=\"<... />\"]\n (OPTIONAL) random content (paired with design=\"plain\") will wrap that\n content with a link.\n */\nexport default class ScwLink extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwLink ==================================================\n /**\n * (ScwLink) Determines the icon to use with the text\n * @type {string}\n */\n @property({type: String, reflect: true})\n icon: string | undefined;\n\n /**\n * (ScwLink) Determines which side the icon should show up on\n * @type {string}\n */\n @property({type: String, reflect: true, attribute: 'icon-side'})\n iconSide: ScwLinkSide = ScwLinkSide.left;\n\n /**\n * (ScwLink) The design style of the link.\n * @type {string}\n */\n @property({type: String, reflect: true})\n design: ScwLinkDesigns | ScwMenuItemDesigns = ScwLinkDesigns.solid;\n\n @state() _svgInfo : string = '';\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.link;\n console.log('ICON');\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n console.log('found it');\n }\n });\n }\n\n /**\n * connectedCallback\n */\n requestUpdate(): void {\n super.requestUpdate();\n console.log('hi');\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n }\n });\n }\n\n /**\n * Way to extend valid design types...\n * @return {object} object of valid designs relative to this object\n */\n validDesigns() : object {\n return ScwLinkDesigns;\n }\n\n /**\n * Way to extend valid design icon types...\n * @return {boolean}\n */\n doShowIcon() : boolean {\n if ( this.icon &&\n this.design !== ScwLinkDesigns.plain &&\n this.design !== ScwLinkDesigns.text ) {\n return true;\n }\n return false;\n }\n\n /**\n * renderContent\n * @return {object} component DOM\n */\n renderContent(): object {\n const doShowIcon = this.doShowIcon();\n // ssr is fighting injecting css this way...\n const localCss = `<style>${this.findStyle().cssText}</style>`;\n\n if (this.design === ScwLinkDesigns.plain) {\n return html`\n ${unsafeHTML(localCss)}\n <slot></slot>\n `;\n }\n\n return html`\n ${doShowIcon && this.iconSide === ScwLinkSide.left ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}\n ${unsafeHTML(localCss)}\n <div class=\"label\">\n ${this.ariaLabel}\n </div>\n ${doShowIcon && this.iconSide === ScwLinkSide.right ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}`;\n }\n\n /**\n * find the style per design\n * @return {object}\n */\n findStyle() {\n switch (this.design) {\n case ScwLinkDesigns.solid:\n return stylesSolid;\n case ScwLinkDesigns.outlined:\n return stylesOutline;\n case ScwLinkDesigns.text:\n return stylesText;\n case ScwLinkDesigns.plain:\n default:\n return stylesPlain;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n this.renderContent(),\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "sSACA,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;GC4Bf,mBAAqC,EAAY,CAsC/C,aAAc,CACZ,MAAM,EAfN,cAAwB,OAOxB,YAA8C,QAEvC,cAAoB,GAO3B,KAAK,QAAU,OAClB,QAAQ,IAAI,MAAM,EACf,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,MAAK,SAAW,EAChB,QAAQ,IAAI,UAAU,EAE1B,CAAC,CACH,WA9CW,SAAS,CAClB,MAAO,CACL,MAAM,OACN,CACF,CACF,CA8CA,eAAsB,CACpB,MAAM,cAAc,EACpB,QAAQ,IAAI,IAAI,CAClB,CAGA,0BAA2B,CACzB,MAAM,yBAAyB,EAC/B,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,KAAK,SAAW,CAEpB,CAAC,CACH,CAMA,cAAwB,CACtB,MAAO,EACT,CAMA,YAAuB,CACrB,MAAK,QAAK,MACR,KAAK,SAAW,SAChB,KAAK,SAAW,OAIpB,CAMA,eAAwB,CACtB,GAAM,GAAa,KAAK,WAAW,EAE7B,EAAW,UAAU,KAAK,UAAU,EAAE,kBAE5C,MAAI,MAAK,SAAW,QACX;AAAA,UACH,EAAW,CAAQ;AAAA;AAAA,QAKlB;AAAA,QACH,GAAc,KAAK,WAAa,OAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB;AAAA,UACR,EAAW,CAAQ;AAAA;AAAA,YAEjB,KAAK;AAAA;AAAA,QAET,GAAc,KAAK,WAAa,QAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB,IAChB,CAMA,WAAY,CACV,OAAQ,KAAK,YACN,QACH,MAAO,OACJ,WACH,MAAO,OACJ,OACH,MAAO,OACJ,gBAEH,MAAO,GAEb,CAMC,QAAiB,CAChB,MAAO,MAAK,WACV,KAAK,cAAc,CACrB,CACF,CACF,EAxII,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AAjBJ,EAiBI,oBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,GAAM,UAAW,WAAW,CAAC,GAC7D,AAxBJ,EAwBI,wBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AA/BJ,EA+BI,sBAEO,GAAT,AAAC,EAAM,GAAE,AAjCX,EAiCW",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{a as f}from"./chunk.5HZ4WTGH.js";import{c as u,e as w,f as d}from"./chunk.ZS4C3T6Z.js";var{H:O}=d,h=i=>i===null||typeof i!="object"&&typeof i!="function";var v=(i,a)=>{var r,n;return a===void 0?((r=i)===null||r===void 0?void 0:r._$litType$)!==void 0:((n=i)===null||n===void 0?void 0:n._$litType$)===a};var y=i=>i.strings===void 0;var{R:_,D:P,j:g,H:m,Z:E}=d,A=(i,a,r={})=>{if(a._$litPart$!==void 0)throw Error("container already contains a live render");let n,s,o=[],e=document.createTreeWalker(a,NodeFilter.SHOW_COMMENT,null,!1),t;for(;(t=e.nextNode())!==null;){let l=t.data;if(l.startsWith("lit-part")){if(o.length===0&&n!==void 0)throw Error("there must be only one root part per container");s=T(i,t,o,r),n!=null||(n=s)}else if(l.startsWith("lit-node")){R(t,o,r);let c=t.parentElement;c.hasAttribute("defer-hydration")&&c.removeAttribute("defer-hydration")}else if(l.startsWith("/lit-part")){if(o.length===1&&s!==n)throw Error("internal error");s=C(t,s,o)}}console.assert(n!==void 0,"there should be exactly one root part in a render container"),a._$litPart$=n},T=(i,a,r,n)=>{let s,o;if(r.length===0)o=new m(a,null,void 0,n),s=i;else{let e=r[r.length-1];if(e.type==="template-instance")o=new m(a,null,e.instance,n),e.instance.v.push(o),s=e.result.values[e.instancePartIndex++],e.templatePartIndex++;else if(e.type==="iterable"){o=new m(a,null,e.part,n);let t=e.iterator.next();if(t.done)throw s=void 0,e.done=!0,Error("Unhandled shorter than expected iterable");s=t.value,e.part._$AH.push(o)}else o=new m(a,null,e.part,n)}if(s=g(o,s),s===u)r.push({part:o,type:"leaf"});else if(h(s))r.push({part:o,type:"leaf"}),o._$AH=s;else if(v(s)){let e="lit-part "+H(s);if(a.data!==e)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let t=m.prototype._$AC(s),l=new _(t,o);r.push({type:"template-instance",instance:l,part:o,templatePartIndex:0,instancePartIndex:0,result:s}),o._$AH=l}}else P(s)?(r.push({part:o,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),o._$AH=[]):(r.push({part:o,type:"leaf"}),o._$AH=s==null?"":s);return o},C=(i,a,r)=>{if(a===void 0)throw Error("unbalanced part marker");a._$AB=i;let n=r.pop();if(n.type==="iterable"&&!n.iterator.next().done)throw Error("unexpected longer than expected iterable");if(r.length>0)return r[r.length-1].part},R=(i,a,r)=>{var n;let s=/lit-node (\d+)/.exec(i.data),o=parseInt(s[1]),e=(n=i.previousSibling)!==null&&n!==void 0?n:i.parentElement,t=a[a.length-1];if(t.type!=="template-instance")throw Error("internal error");{let l=t.instance;for(;;){let c=l._$AD.parts[t.templatePartIndex];if(c===void 0||c.type!==f.ATTRIBUTE&&c.type!==f.ELEMENT||c.index!==o)break;if(c.type===f.ATTRIBUTE){let p=new c.ctor(e,c.name,c.strings,t.instance,r),b=y(p)?t.result.values[t.instancePartIndex]:t.result.values,x=!(p.type===f.EVENT||p.type===f.PROPERTY);p._$AI(b,p,t.instancePartIndex,x),t.instancePartIndex+=c.strings.length-1,l.v.push(p)}else{let p=new E(e,t.instance,r);g(p,t.result.values[t.instancePartIndex++]),l.v.push(p)}t.templatePartIndex++}}},H=i=>{let a=new Uint32Array(2).fill(5381);for(let r of i.strings)for(let n=0;n<r.length;n++)a[n%2]=33*a[n%2]^r.charCodeAt(n);return btoa(String.fromCharCode(...new Uint8Array(a.buffer)))};globalThis.litElementHydrateSupport=({LitElement:i})=>{let a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"observedAttributes").get;Object.defineProperty(i,"observedAttributes",{get(){return[...a.call(this),"defer-hydration"]}});let r=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(e,t,l){e==="defer-hydration"&&l===null&&n.call(this),r.call(this,e,t,l)};let n=i.prototype.connectedCallback;i.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||n.call(this)};let s=i.prototype.createRenderRoot;i.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let o=Object.getPrototypeOf(i.prototype).update;i.prototype.update=function(e){let t=this.render();o.call(this,e),this._$AG?(this._$AG=!1,A(t,this.renderRoot,this.renderOptions)):w(t,this.renderRoot,this.renderOptions)}};var $={},I;async function V(i={}){let{components:a=!1,suffix:r=!1}=i;I={suffix:r};let n=!a,s=r?`-${r}`:"",o=[];function e(l,c){o.push((async()=>{let p=`${l}${s}`;$[p]||($[p]=!0,window.customElements.define(p,(await c).default))})())}function t(l){if(n)return!0;if(Array.isArray(a))return a?a.includes(l):!1}return t("scw-component")&&e("scw-component",import("../scw-component/ScwComponent.js")),t("scw-form-component")&&e("scw-form-component",import("../scw-form-component/scw-form-component.js")),t("scw-card")&&e("scw-card",import("../scw-card/ScwCard.js")),t("scw-input-field")&&e("scw-input-field",import("../scw-input-field/scw-input-field.js")),t("scw-input-layout")&&e("scw-input-layout",import("../scw-input-layout/scw-input-layout.js")),t("scw-link")&&e("scw-link",import("../scw-link/ScwLink.js")),t("scw-button")&&e("scw-button",import("../scw-button/ScwButton.js")),t("scw-menu")&&e("scw-menu",import("../scw-menu/scw-menu.js")),t("scw-menu-item")&&e("scw-menu-item",import("../scw-menu-item/scw-menu-item.js")),t("scw-icon")&&e("scw-icon",import("../scw-icon/ScwIcon.js")),t("scw-heading")&&e("scw-heading",import("../scw-heading/ScwHeading.js")),t("scw-image")&&e("scw-image",import("../scw-image/ScwImage.js")),t("scw-input")&&e("scw-input",import("../scw-input/scw-input.js")),t("scw-single-input")&&e("scw-single-input",import("../scw-single-input/scw-single-input.js")),t("scw-single-input-layout")&&e("scw-single-input-layout",import("../scw-single-input-layout/scw-single-input-layout.js")),t("scw-responsive")&&e("scw-responsive",import("../scw-responsive/scw-responsive.js")),t("scw-validation")&&e("scw-validation",import("../scw-validation/scw-validation.js")),t("scw-validate")&&e("scw-validate",import("../scw-validate/scw-validate.js")),t("scw-flex-h-component")&&e("scw-flex-h-component",import("../scw-flex-h-component/scw-flex-h-component.js")),t("scw-flex-v-component")&&e("scw-flex-v-component",import("../scw-flex-v-component/scw-flex-v-component.js")),t("scw-stack-component")&&e("scw-stack-component",import("../scw-stack-component/scw-stack-component.js")),t("scw-layout-component")&&e("scw-layout-component",import("../scw-layout-component/scw-layout-component.js")),t("scw-element-component")&&e("scw-element-component",import("../scw-element-component/scw-element-component.js")),t("scw-center-component")&&e("scw-center-component",import("../scw-center-component/ScwCenterComponent.js")),t("scw-float-component")&&e("scw-float-component",import("../scw-float-component/scw-float-component.js")),t("scw-pane-component")&&e("scw-pane-component",import("../scw-pane-component/scw-pane-component.js")),t("scw-form")&&e("scw-form",import("../scw-form/scw-form.js")),t("scw-page-alert")&&e("scw-page-alert",import("../scw-page-alert/scw-page-alert.js")),t("scw-link-base")&&e("scw-link-base",import("../scw-link-base/ScwLinkBase.js")),t("scw-textarea")&&e("scw-textarea",import("../scw-textarea/scw-textarea.js")),t("scw-select")&&e("scw-select",import("../scw-select/scw-select.js")),t("scw-alert")&&e("scw-alert",import("../scw-alert/ScwAlert.js")),t("scw-test")&&e("scw-test",import("../scw-test/ScwTest.js")),Promise.all(o)}export{y as a,I as b,V as c};
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2019 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2020 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=chunk.SNPBQAU7.js.map
|