@telesign/boreal-web-components 0.1.0-alpha.2 → 0.1.0-alpha.4
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/README.md +13 -16
- package/components-build/bds-avatar.d.ts +11 -0
- package/components-build/bds-avatar.js +1 -0
- package/components-build/bds-badge.d.ts +11 -0
- package/components-build/bds-badge.js +1 -0
- package/components-build/bds-banner.js +1 -1
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox.d.ts +11 -0
- package/components-build/bds-checkbox.js +1 -0
- package/components-build/bds-dialog.d.ts +11 -0
- package/components-build/bds-dialog.js +1 -0
- package/components-build/bds-divider.d.ts +11 -0
- package/components-build/bds-divider.js +1 -0
- package/components-build/bds-flag.d.ts +11 -0
- package/components-build/bds-flag.js +1 -0
- package/components-build/bds-grid-item.d.ts +11 -0
- package/components-build/bds-grid-item.js +1 -0
- package/components-build/bds-grid.d.ts +11 -0
- package/components-build/bds-grid.js +1 -0
- package/components-build/bds-list-menu-item.d.ts +11 -0
- package/components-build/bds-list-menu-item.js +1 -0
- package/components-build/bds-list-menu.d.ts +11 -0
- package/components-build/bds-list-menu.js +1 -0
- package/components-build/bds-popover.d.ts +11 -0
- package/components-build/bds-popover.js +1 -0
- package/components-build/bds-spinner.d.ts +11 -0
- package/components-build/bds-spinner.js +1 -0
- package/components-build/bds-status.d.ts +11 -0
- package/components-build/bds-status.js +1 -0
- package/components-build/bds-tag.d.ts +11 -0
- package/components-build/bds-tag.js +1 -0
- package/components-build/bds-text-field.d.ts +11 -0
- package/components-build/bds-text-field.js +1 -0
- package/components-build/bds-toggle.d.ts +11 -0
- package/components-build/bds-toggle.js +1 -0
- package/components-build/bds-tooltip.d.ts +11 -0
- package/components-build/bds-tooltip.js +1 -0
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-B8n1ru5i.js +1 -0
- package/components-build/p-Bfazyxqi.js +1 -0
- package/components-build/p-CGdxFth9.js +1 -0
- package/components-build/p-CaHOghy5.js +1 -0
- package/components-build/p-CrAt6pGl.js +1 -0
- package/components-build/p-DCXSEEVH.js +1 -0
- package/components-build/p-DCwT43Kz.js +1 -0
- package/components-build/p-DIY3CDNL.js +1 -0
- package/components-build/p-DhSchGPI.js +1 -0
- package/components-build/p-kGnB15Lz.js +1 -0
- package/custom-elements.json +4292 -94
- package/dist/boreal-web-components/boreal-web-components.css +1 -1
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/boreal-web-components.js +1 -1
- package/dist/boreal-web-components/constants/countries.ts +2675 -0
- package/dist/boreal-web-components/constants/flagUrl.ts +2 -0
- package/dist/boreal-web-components/constants/flags/4x3/ad.svg +150 -0
- package/dist/boreal-web-components/constants/flags/4x3/ae.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/af.svg +81 -0
- package/dist/boreal-web-components/constants/flags/4x3/ag.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/ai.svg +29 -0
- package/dist/boreal-web-components/constants/flags/4x3/al.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/am.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ao.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/aq.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ar.svg +32 -0
- package/dist/boreal-web-components/constants/flags/4x3/arab.svg +109 -0
- package/dist/boreal-web-components/constants/flags/4x3/as.svg +72 -0
- package/dist/boreal-web-components/constants/flags/4x3/asean.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/at.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/au.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/aw.svg +186 -0
- package/dist/boreal-web-components/constants/flags/4x3/ax.svg +18 -0
- package/dist/boreal-web-components/constants/flags/4x3/az.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/ba.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/bb.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/bd.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/be.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/bf.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/bg.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/bh.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/bi.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/bj.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/bl.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/bm.svg +97 -0
- package/dist/boreal-web-components/constants/flags/4x3/bn.svg +36 -0
- package/dist/boreal-web-components/constants/flags/4x3/bo.svg +673 -0
- package/dist/boreal-web-components/constants/flags/4x3/bq.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/br.svg +45 -0
- package/dist/boreal-web-components/constants/flags/4x3/bs.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/bt.svg +89 -0
- package/dist/boreal-web-components/constants/flags/4x3/bv.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/bw.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/by.svg +18 -0
- package/dist/boreal-web-components/constants/flags/4x3/bz.svg +145 -0
- package/dist/boreal-web-components/constants/flags/4x3/ca.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/cc.svg +19 -0
- package/dist/boreal-web-components/constants/flags/4x3/cd.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/cefta.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/cf.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/cg.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/ch.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/ci.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/ck.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/cl.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/cm.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/cn.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/co.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/cp.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/cr.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/cu.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/cv.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/cw.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/cx.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/cy.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/cz.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/de.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/dg.svg +130 -0
- package/dist/boreal-web-components/constants/flags/4x3/dj.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/dk.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/dm.svg +152 -0
- package/dist/boreal-web-components/constants/flags/4x3/do.svg +121 -0
- package/dist/boreal-web-components/constants/flags/4x3/dz.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/eac.svg +48 -0
- package/dist/boreal-web-components/constants/flags/4x3/ec.svg +138 -0
- package/dist/boreal-web-components/constants/flags/4x3/ee.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/eg.svg +38 -0
- package/dist/boreal-web-components/constants/flags/4x3/eh.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/er.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/es-ct.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/es-ga.svg +187 -0
- package/dist/boreal-web-components/constants/flags/4x3/es-pv.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/es.svg +544 -0
- package/dist/boreal-web-components/constants/flags/4x3/et.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/eu.svg +28 -0
- package/dist/boreal-web-components/constants/flags/4x3/fi.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/fj.svg +120 -0
- package/dist/boreal-web-components/constants/flags/4x3/fk.svg +90 -0
- package/dist/boreal-web-components/constants/flags/4x3/fm.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/fo.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/fr.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ga.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/gb-eng.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/gb-nir.svg +132 -0
- package/dist/boreal-web-components/constants/flags/4x3/gb-sct.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/gb-wls.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/gb.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/gd.svg +27 -0
- package/dist/boreal-web-components/constants/flags/4x3/ge.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/gf.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/gg.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/gh.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/gi.svg +32 -0
- package/dist/boreal-web-components/constants/flags/4x3/gl.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/gm.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/gn.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/gp.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/gq.svg +23 -0
- package/dist/boreal-web-components/constants/flags/4x3/gr.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/gs.svg +133 -0
- package/dist/boreal-web-components/constants/flags/4x3/gt.svg +204 -0
- package/dist/boreal-web-components/constants/flags/4x3/gu.svg +19 -0
- package/dist/boreal-web-components/constants/flags/4x3/gw.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/gy.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/hk.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/hm.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/hn.svg +18 -0
- package/dist/boreal-web-components/constants/flags/4x3/hr.svg +58 -0
- package/dist/boreal-web-components/constants/flags/4x3/ht.svg +116 -0
- package/dist/boreal-web-components/constants/flags/4x3/hu.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/ic.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/id.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/ie.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/il.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/im.svg +36 -0
- package/dist/boreal-web-components/constants/flags/4x3/in.svg +25 -0
- package/dist/boreal-web-components/constants/flags/4x3/io.svg +130 -0
- package/dist/boreal-web-components/constants/flags/4x3/iq.svg +10 -0
- package/dist/boreal-web-components/constants/flags/4x3/ir.svg +219 -0
- package/dist/boreal-web-components/constants/flags/4x3/is.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/it.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/je.svg +62 -0
- package/dist/boreal-web-components/constants/flags/4x3/jm.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/jo.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/jp.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/ke.svg +23 -0
- package/dist/boreal-web-components/constants/flags/4x3/kg.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/kh.svg +61 -0
- package/dist/boreal-web-components/constants/flags/4x3/ki.svg +36 -0
- package/dist/boreal-web-components/constants/flags/4x3/km.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/kn.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/kp.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/kr.svg +24 -0
- package/dist/boreal-web-components/constants/flags/4x3/kw.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/ky.svg +103 -0
- package/dist/boreal-web-components/constants/flags/4x3/kz.svg +36 -0
- package/dist/boreal-web-components/constants/flags/4x3/la.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/lb.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/lc.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/li.svg +43 -0
- package/dist/boreal-web-components/constants/flags/4x3/lk.svg +22 -0
- package/dist/boreal-web-components/constants/flags/4x3/lr.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/ls.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/lt.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/lu.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/lv.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/ly.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/ma.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/mc.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/md.svg +70 -0
- package/dist/boreal-web-components/constants/flags/4x3/me.svg +116 -0
- package/dist/boreal-web-components/constants/flags/4x3/mf.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/mg.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/mh.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/mk.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ml.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/mm.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/mn.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/mo.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/mp.svg +86 -0
- package/dist/boreal-web-components/constants/flags/4x3/mq.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/mr.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/ms.svg +29 -0
- package/dist/boreal-web-components/constants/flags/4x3/mt.svg +58 -0
- package/dist/boreal-web-components/constants/flags/4x3/mu.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/mv.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/mw.svg +10 -0
- package/dist/boreal-web-components/constants/flags/4x3/mx.svg +382 -0
- package/dist/boreal-web-components/constants/flags/4x3/my.svg +26 -0
- package/dist/boreal-web-components/constants/flags/4x3/mz.svg +21 -0
- package/dist/boreal-web-components/constants/flags/4x3/na.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/nc.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/ne.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/nf.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/ng.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/ni.svg +129 -0
- package/dist/boreal-web-components/constants/flags/4x3/nl.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/no.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/np.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/nr.svg +12 -0
- package/dist/boreal-web-components/constants/flags/4x3/nu.svg +10 -0
- package/dist/boreal-web-components/constants/flags/4x3/nz.svg +36 -0
- package/dist/boreal-web-components/constants/flags/4x3/om.svg +115 -0
- package/dist/boreal-web-components/constants/flags/4x3/pa.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/pc.svg +33 -0
- package/dist/boreal-web-components/constants/flags/4x3/pe.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/pf.svg +19 -0
- package/dist/boreal-web-components/constants/flags/4x3/pg.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/ph.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/pk.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/pl.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/pm.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/pn.svg +53 -0
- package/dist/boreal-web-components/constants/flags/4x3/pr.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/ps.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/pt.svg +57 -0
- package/dist/boreal-web-components/constants/flags/4x3/pw.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/py.svg +157 -0
- package/dist/boreal-web-components/constants/flags/4x3/qa.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/re.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ro.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/rs.svg +292 -0
- package/dist/boreal-web-components/constants/flags/4x3/ru.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/rw.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/sa.svg +25 -0
- package/dist/boreal-web-components/constants/flags/4x3/sb.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/sc.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/sd.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/se.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/sg.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/sh-ac.svg +689 -0
- package/dist/boreal-web-components/constants/flags/4x3/sh-hl.svg +164 -0
- package/dist/boreal-web-components/constants/flags/4x3/sh-ta.svg +76 -0
- package/dist/boreal-web-components/constants/flags/4x3/sh.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/si.svg +18 -0
- package/dist/boreal-web-components/constants/flags/4x3/sj.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/sk.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/sl.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/sm.svg +75 -0
- package/dist/boreal-web-components/constants/flags/4x3/sn.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/so.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/sr.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/ss.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/st.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/sv.svg +593 -0
- package/dist/boreal-web-components/constants/flags/4x3/sx.svg +56 -0
- package/dist/boreal-web-components/constants/flags/4x3/sy.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/sz.svg +34 -0
- package/dist/boreal-web-components/constants/flags/4x3/tc.svg +50 -0
- package/dist/boreal-web-components/constants/flags/4x3/td.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/tf.svg +15 -0
- package/dist/boreal-web-components/constants/flags/4x3/tg.svg +14 -0
- package/dist/boreal-web-components/constants/flags/4x3/th.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/tj.svg +22 -0
- package/dist/boreal-web-components/constants/flags/4x3/tk.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/tl.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/tm.svg +204 -0
- package/dist/boreal-web-components/constants/flags/4x3/tn.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/to.svg +10 -0
- package/dist/boreal-web-components/constants/flags/4x3/tr.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/tt.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/tv.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/tw.svg +34 -0
- package/dist/boreal-web-components/constants/flags/4x3/tz.svg +13 -0
- package/dist/boreal-web-components/constants/flags/4x3/ua.svg +6 -0
- package/dist/boreal-web-components/constants/flags/4x3/ug.svg +30 -0
- package/dist/boreal-web-components/constants/flags/4x3/um.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/un.svg +16 -0
- package/dist/boreal-web-components/constants/flags/4x3/us.svg +9 -0
- package/dist/boreal-web-components/constants/flags/4x3/uy.svg +28 -0
- package/dist/boreal-web-components/constants/flags/4x3/uz.svg +30 -0
- package/dist/boreal-web-components/constants/flags/4x3/va.svg +190 -0
- package/dist/boreal-web-components/constants/flags/4x3/vc.svg +8 -0
- package/dist/boreal-web-components/constants/flags/4x3/ve.svg +26 -0
- package/dist/boreal-web-components/constants/flags/4x3/vg.svg +59 -0
- package/dist/boreal-web-components/constants/flags/4x3/vi.svg +28 -0
- package/dist/boreal-web-components/constants/flags/4x3/vn.svg +11 -0
- package/dist/boreal-web-components/constants/flags/4x3/vu.svg +21 -0
- package/dist/boreal-web-components/constants/flags/4x3/wf.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/ws.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/xk.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/xx.svg +4 -0
- package/dist/boreal-web-components/constants/flags/4x3/ye.svg +7 -0
- package/dist/boreal-web-components/constants/flags/4x3/yt.svg +5 -0
- package/dist/boreal-web-components/constants/flags/4x3/za.svg +17 -0
- package/dist/boreal-web-components/constants/flags/4x3/zm.svg +27 -0
- package/dist/boreal-web-components/constants/flags/4x3/zw.svg +21 -0
- package/dist/boreal-web-components/constants/global.ts +13 -0
- package/dist/boreal-web-components/constants/index.ts +3 -0
- package/dist/boreal-web-components/css/boreal.css +1066 -1074
- package/dist/boreal-web-components/css/global.css +403 -407
- package/dist/boreal-web-components/css/theme-connect.css +163 -164
- package/dist/boreal-web-components/css/theme-engage.css +163 -164
- package/dist/boreal-web-components/css/theme-protect.css +163 -164
- package/dist/boreal-web-components/css/theme-proximus.css +164 -165
- package/dist/boreal-web-components/p-0028481c.entry.js +1 -0
- package/dist/boreal-web-components/p-127a4134.entry.js +1 -0
- package/dist/boreal-web-components/p-1466de58.system.entry.js +1 -0
- package/dist/boreal-web-components/p-1d1bb9d2.entry.js +1 -0
- package/dist/boreal-web-components/p-2158a7cd.entry.js +1 -0
- package/dist/boreal-web-components/p-251b3002.entry.js +1 -0
- package/dist/boreal-web-components/p-251d35df.system.entry.js +1 -0
- package/dist/boreal-web-components/p-2b8bd1dd.entry.js +1 -0
- package/dist/boreal-web-components/p-32c23246.system.entry.js +1 -0
- package/dist/boreal-web-components/p-3fbcc233.entry.js +1 -0
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41b48701.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44ceff4e.system.entry.js +1 -0
- package/dist/boreal-web-components/p-52600375.system.entry.js +1 -0
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +1 -0
- package/dist/boreal-web-components/p-649737e5.entry.js +1 -0
- package/dist/boreal-web-components/p-64cb5825.entry.js +1 -0
- package/dist/boreal-web-components/p-66360e63.entry.js +1 -0
- package/dist/boreal-web-components/p-695d0830.entry.js +1 -0
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-731b88cc.entry.js +1 -0
- package/dist/boreal-web-components/p-74c13bed.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7a4efddd.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7db870b7.entry.js +1 -0
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +1 -0
- package/dist/boreal-web-components/p-80822731.system.entry.js +1 -0
- package/dist/boreal-web-components/p-82d49661.entry.js +1 -0
- package/dist/boreal-web-components/p-83ca193e.entry.js +1 -0
- package/dist/boreal-web-components/p-871c9a9f.system.entry.js +1 -0
- package/dist/boreal-web-components/p-BHYhd1yq.system.js +1 -0
- package/dist/boreal-web-components/p-BQ_zoZa2.js +1 -0
- package/dist/boreal-web-components/p-Bfazyxqi.js +1 -0
- package/dist/boreal-web-components/p-BqJlOB6b.js +2 -0
- package/dist/boreal-web-components/p-BsZkk4oK.system.js +1 -0
- package/dist/boreal-web-components/p-BuxZeJbu.system.js +1 -0
- package/dist/boreal-web-components/p-C8mRvnTA.js +1 -0
- package/dist/boreal-web-components/p-CXz1RLGi.system.js +1 -0
- package/dist/boreal-web-components/p-CaHOghy5.js +1 -0
- package/dist/boreal-web-components/p-CdKFZYxk.system.js +1 -0
- package/dist/boreal-web-components/p-CtknSula.system.js +1 -0
- package/dist/boreal-web-components/p-CvK2d92c.js +1 -0
- package/dist/boreal-web-components/p-CzYQb3pP.js +1 -0
- package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
- package/dist/boreal-web-components/p-DCXSEEVH.js +1 -0
- package/dist/boreal-web-components/p-DZcx75cy.system.js +1 -0
- package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
- package/dist/boreal-web-components/p-Dme-NuTD.system.js +1 -0
- package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
- package/dist/boreal-web-components/p-ab5ffa15.system.entry.js +1 -0
- package/dist/boreal-web-components/p-b12d4788.system.entry.js +1 -0
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +1 -0
- package/dist/boreal-web-components/p-c7aee9f4.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e0bf8a6e.entry.js +1 -0
- package/dist/boreal-web-components/p-edca16b6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc24d963.entry.js +1 -0
- package/dist/boreal-web-components/p-kGnB15Lz.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -0
- package/dist/boreal-web-components/scss/maps/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +165 -166
- package/dist/boreal-web-components/scss/variables/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +165 -166
- package/dist/cjs/BaseAttributes-DBBhKt7O.js +14 -0
- package/dist/cjs/Keys-DbIXSJF2.js +22 -0
- package/dist/cjs/{attributes-D0WPida0.js → attributes-wIHueigW.js} +1 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +89 -0
- package/dist/cjs/bds-badge.cjs.entry.js +50 -0
- package/dist/cjs/bds-banner.cjs.entry.js +27 -40
- package/dist/cjs/bds-button.cjs.entry.js +18 -49
- package/dist/cjs/bds-checkbox.cjs.entry.js +146 -0
- package/dist/cjs/bds-dialog.cjs.entry.js +373 -0
- package/dist/cjs/bds-divider.cjs.entry.js +46 -0
- package/dist/cjs/bds-flag.cjs.entry.js +2952 -0
- package/dist/cjs/bds-grid-item.cjs.entry.js +93 -0
- package/dist/cjs/bds-grid.cjs.entry.js +37 -0
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +468 -0
- package/dist/cjs/bds-list-menu.cjs.entry.js +130 -0
- package/dist/cjs/bds-popover.cjs.entry.js +280 -0
- package/dist/cjs/bds-spinner.cjs.entry.js +54 -0
- package/dist/cjs/bds-status.cjs.entry.js +59 -0
- package/dist/cjs/bds-tag.cjs.entry.js +140 -0
- package/dist/cjs/bds-text-field.cjs.entry.js +363 -0
- package/dist/cjs/bds-toggle.cjs.entry.js +186 -0
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +320 -0
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/enum-DLblRCkQ.js +21 -0
- package/dist/cjs/floating.mixin-Bje4320w.js +195 -0
- package/dist/cjs/form-associated.mixin-DXwvF_vW.js +115 -0
- package/dist/cjs/getOffset-m4hBgyVP.js +2072 -0
- package/dist/cjs/{index-C9JKWXwa.js → index-CwYIVC9N.js} +108 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/states-BweP5Vpu.js +24 -0
- package/dist/cjs/validateProps-CJe9X5x8.js +42 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/actions/bds-button/bds-button.css +42 -26
- package/dist/collection/components/actions/bds-button/bds-button.js +3 -4
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +25 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +301 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +71 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +437 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/types.js +1 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +120 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +544 -0
- package/dist/collection/components/actions/bds-toggle/types/IEventChange.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/IToggle.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/index.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.css +76 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +120 -0
- package/dist/collection/components/feedback/bds-badge/types/IBadge.js +1 -0
- package/dist/collection/components/feedback/bds-badge/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.css +20 -2
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +80 -57
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.css +105 -0
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +128 -0
- package/dist/collection/components/feedback/bds-spinner/types/ISpinner.js +1 -0
- package/dist/collection/components/feedback/bds-spinner/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-spinner/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-status/bds-status.css +101 -0
- package/dist/collection/components/feedback/bds-status/bds-status.js +122 -0
- package/dist/collection/components/feedback/bds-status/types/IStatus.js +1 -0
- package/dist/collection/components/feedback/bds-status/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-status/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +202 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +375 -0
- package/dist/collection/components/feedback/bds-tag/types/ITag.js +1 -0
- package/dist/collection/components/feedback/bds-tag/types/enum.js +10 -0
- package/dist/collection/components/feedback/bds-tag/types/index.js +3 -0
- package/dist/collection/components/feedback/bds-tag/types/types.js +1 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +90 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +366 -0
- package/dist/collection/components/forms/bds-checkbox/types/ICheckbox.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.css +57 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +454 -0
- package/dist/collection/components/forms/bds-flag/constants/countries.js +2673 -0
- package/dist/collection/components/forms/bds-flag/constants/countries.ts +2675 -0
- package/dist/collection/components/forms/bds-flag/constants/flagUrl.js +2 -0
- package/dist/collection/components/forms/bds-flag/constants/flagUrl.ts +2 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ad.svg +150 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ae.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/af.svg +81 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ag.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ai.svg +29 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/al.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/am.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ao.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/aq.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ar.svg +32 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/arab.svg +109 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/as.svg +72 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/asean.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/at.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/au.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/aw.svg +186 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ax.svg +18 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/az.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ba.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bb.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bd.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/be.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bf.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bg.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bh.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bi.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bj.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bl.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bm.svg +97 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bn.svg +36 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bo.svg +673 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bq.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/br.svg +45 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bs.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bt.svg +89 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bv.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bw.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/by.svg +18 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/bz.svg +145 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ca.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cc.svg +19 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cd.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cefta.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cf.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cg.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ch.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ci.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ck.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cl.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cm.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cn.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/co.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cp.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cr.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cu.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cv.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cw.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cx.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cy.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/cz.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/de.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/dg.svg +130 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/dj.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/dk.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/dm.svg +152 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/do.svg +121 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/dz.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/eac.svg +48 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ec.svg +138 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ee.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/eg.svg +38 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/eh.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/er.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/es-ct.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/es-ga.svg +187 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/es-pv.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/es.svg +544 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/et.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/eu.svg +28 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fi.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fj.svg +120 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fk.svg +90 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fm.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fo.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/fr.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ga.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gb-eng.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gb-nir.svg +132 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gb-sct.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gb-wls.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gb.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gd.svg +27 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ge.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gf.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gg.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gh.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gi.svg +32 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gl.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gm.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gn.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gp.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gq.svg +23 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gr.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gs.svg +133 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gt.svg +204 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gu.svg +19 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gw.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/gy.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/hk.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/hm.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/hn.svg +18 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/hr.svg +58 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ht.svg +116 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/hu.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ic.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/id.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ie.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/il.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/im.svg +36 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/in.svg +25 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/io.svg +130 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/iq.svg +10 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ir.svg +219 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/is.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/it.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/je.svg +62 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/jm.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/jo.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/jp.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ke.svg +23 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kg.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kh.svg +61 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ki.svg +36 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/km.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kn.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kp.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kr.svg +24 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kw.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ky.svg +103 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/kz.svg +36 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/la.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lb.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lc.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/li.svg +43 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lk.svg +22 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lr.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ls.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lt.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lu.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/lv.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ly.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ma.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mc.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/md.svg +70 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/me.svg +116 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mf.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mg.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mh.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mk.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ml.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mm.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mn.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mo.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mp.svg +86 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mq.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mr.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ms.svg +29 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mt.svg +58 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mu.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mv.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mw.svg +10 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mx.svg +382 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/my.svg +26 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/mz.svg +21 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/na.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nc.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ne.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nf.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ng.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ni.svg +129 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nl.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/no.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/np.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nr.svg +12 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nu.svg +10 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/nz.svg +36 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/om.svg +115 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pa.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pc.svg +33 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pe.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pf.svg +19 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pg.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ph.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pk.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pl.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pm.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pn.svg +53 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pr.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ps.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pt.svg +57 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/pw.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/py.svg +157 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/qa.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/re.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ro.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/rs.svg +292 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ru.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/rw.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sa.svg +25 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sb.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sc.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sd.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/se.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sg.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sh-ac.svg +689 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sh-hl.svg +164 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sh-ta.svg +76 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sh.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/si.svg +18 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sj.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sk.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sl.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sm.svg +75 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sn.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/so.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sr.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ss.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/st.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sv.svg +593 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sx.svg +56 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sy.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/sz.svg +34 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tc.svg +50 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/td.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tf.svg +15 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tg.svg +14 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/th.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tj.svg +22 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tk.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tl.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tm.svg +204 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tn.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/to.svg +10 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tr.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tt.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tv.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tw.svg +34 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/tz.svg +13 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ua.svg +6 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ug.svg +30 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/um.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/un.svg +16 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/us.svg +9 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/uy.svg +28 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/uz.svg +30 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/va.svg +190 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/vc.svg +8 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ve.svg +26 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/vg.svg +59 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/vi.svg +28 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/vn.svg +11 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/vu.svg +21 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/wf.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ws.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/xk.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/xx.svg +4 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/ye.svg +7 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/yt.svg +5 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/za.svg +17 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/zm.svg +27 -0
- package/dist/collection/components/forms/bds-flag/constants/flags/4x3/zw.svg +21 -0
- package/dist/collection/components/forms/bds-flag/constants/global.js +11 -0
- package/dist/collection/components/forms/bds-flag/constants/global.ts +13 -0
- package/dist/collection/components/forms/bds-flag/constants/index.js +3 -0
- package/dist/collection/components/forms/bds-flag/constants/index.ts +3 -0
- package/dist/collection/components/forms/bds-flag/helpers/getNameFlag.js +53 -0
- package/dist/collection/components/forms/bds-flag/interfaces/ICountry.js +1 -0
- package/dist/collection/components/forms/bds-flag/interfaces/IFlag.js +1 -0
- package/dist/collection/components/forms/bds-flag/types/Flag.js +19 -0
- package/dist/collection/components/forms/bds-flag/types/Shape.js +10 -0
- package/dist/collection/components/forms/bds-flag/types/index.js +2 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.css +178 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1098 -0
- package/dist/collection/components/forms/bds-text-field/types/ITextField.js +1 -0
- package/dist/collection/components/forms/bds-text-field/types/enum.js +14 -0
- package/dist/collection/components/forms/bds-text-field/types/index.js +3 -0
- package/dist/collection/components/forms/bds-text-field/types/types.js +1 -0
- package/dist/collection/components/helpers/bds-divider.css +36 -0
- package/dist/collection/components/helpers/bds-divider.js +88 -0
- package/dist/collection/components/helpers/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/types/enum.js +4 -0
- package/dist/collection/components/helpers/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.css +52 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +219 -0
- package/dist/collection/components/images-icons/bds-avatar/types/IAvatar.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/types/enum.js +5 -0
- package/dist/collection/components/images-icons/bds-avatar/types/index.js +3 -0
- package/dist/collection/components/images-icons/bds-avatar/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.css +57 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.js +100 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/enum.js +4 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.css +70 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +306 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/enum.js +10 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/types.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.css +105 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +668 -0
- package/dist/collection/components/overlays/bds-dialog/types/IDialog.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/types/enum.js +26 -0
- package/dist/collection/components/overlays/bds-dialog/types/index.js +3 -0
- package/dist/collection/components/overlays/bds-dialog/types/types.js +1 -0
- package/dist/collection/components/overlays/bds-popover/bds-popover.css +130 -0
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +465 -0
- package/dist/collection/components/overlays/bds-popover/constants/Offset.js +1 -0
- package/dist/collection/components/overlays/bds-popover/types/IPopover.js +1 -0
- package/dist/collection/components/overlays/bds-popover/types/width.js +1 -0
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.css +75 -0
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +272 -0
- package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
- package/dist/collection/components/overlays/bds-tooltip/types/ITooltip.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +21 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +20 -19
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +2 -2
- package/dist/collection/css/boreal.css +1066 -1074
- package/dist/collection/css/global.css +403 -407
- package/dist/collection/css/theme-connect.css +163 -164
- package/dist/collection/css/theme-engage.css +163 -164
- package/dist/collection/css/theme-protect.css +163 -164
- package/dist/collection/css/theme-proximus.css +164 -165
- package/dist/collection/mixins/anchored.mixin.js +44 -4
- package/dist/collection/mixins/backdrop.mixin.js +162 -0
- package/dist/collection/mixins/floating.mixin.js +10 -0
- package/dist/collection/mixins/form-associated.mixin.js +14 -80
- package/dist/collection/mixins/index.js +3 -0
- package/dist/collection/mixins/links.mixin.js +153 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +113 -0
- package/dist/collection/scss/maps/_primitives.scss +404 -408
- package/dist/collection/scss/maps/_theme-connect.scss +164 -165
- package/dist/collection/scss/maps/_theme-engage.scss +164 -165
- package/dist/collection/scss/maps/_theme-protect.scss +164 -165
- package/dist/collection/scss/maps/_theme-proximus.scss +165 -166
- package/dist/collection/scss/variables/_primitives.scss +404 -408
- package/dist/collection/scss/variables/_theme-connect.scss +164 -165
- package/dist/collection/scss/variables/_theme-engage.scss +164 -165
- package/dist/collection/scss/variables/_theme-protect.scss +164 -165
- package/dist/collection/scss/variables/_theme-proximus.scss +165 -166
- package/dist/collection/services/floating/index.js +3 -0
- package/dist/collection/services/floating/interfaces/Anchored.js +1 -0
- package/dist/collection/services/floating/interfaces/Backdrop.js +1 -0
- package/dist/collection/services/floating/interfaces/index.js +5 -0
- package/dist/collection/services/floating/positioning.service.js +1 -1
- package/dist/collection/services/floating/types/index.js +1 -0
- package/dist/collection/services/index.js +2 -0
- package/dist/collection/services/logger/index.js +1 -0
- package/dist/collection/types/IFormProps.js +1 -0
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/links.js +1 -0
- package/dist/collection/types/menu.js +8 -0
- package/dist/collection/types/position.js +10 -0
- package/dist/collection/utils/constants/common/Aria.js +10 -0
- package/dist/collection/utils/constants/common/Events.js +1 -0
- package/dist/collection/utils/constants/common/Icons.js +16 -0
- package/dist/collection/utils/constants/common/Keys.js +12 -0
- package/dist/collection/utils/constants/common/index.js +4 -0
- package/dist/collection/utils/constants/index.js +1 -0
- package/dist/collection/utils/form/internals.js +2 -2
- package/dist/collection/utils/helpers/common/BaseAttributes.js +7 -14
- package/dist/collection/utils/helpers/common/index.js +1 -0
- package/dist/collection/utils/helpers/index.js +2 -0
- package/dist/collection/utils/helpers/overlays/getOffset.js +13 -0
- package/dist/collection/utils/helpers/validateProps.js +21 -0
- package/dist/collection/utils/index.js +4 -0
- package/dist/collection/utils/menu/index.js +1 -0
- package/dist/collection/utils/menu/menu-item.utils.js +81 -0
- package/dist/collection/utils/testing/constants.js +2 -0
- package/dist/collection/utils/testing/fixtures.js +6 -0
- package/dist/collection/utils/testing/helpers.js +16 -0
- package/dist/collection/utils/testing/index.js +4 -0
- package/dist/collection/utils/testing/mocks/backdrop.js +19 -0
- package/dist/collection/utils/testing/mocks/console.js +30 -0
- package/dist/collection/utils/testing/mocks/elementInternals.js +64 -0
- package/dist/collection/utils/testing/mocks/index.js +4 -0
- package/dist/collection/utils/testing/mocks/popover.js +19 -0
- package/dist/css/boreal.css +1066 -1074
- package/dist/css/global.css +403 -407
- package/dist/css/theme-connect.css +163 -164
- package/dist/css/theme-engage.css +163 -164
- package/dist/css/theme-protect.css +163 -164
- package/dist/css/theme-proximus.css +164 -165
- package/dist/esm/BaseAttributes-DhSchGPI.js +12 -0
- package/dist/esm/Keys-CzYQb3pP.js +20 -0
- package/dist/esm/{attributes-Ba6iHqJA.js → attributes-CaHOghy5.js} +1 -1
- package/dist/esm/bds-avatar.entry.js +87 -0
- package/dist/esm/bds-badge.entry.js +48 -0
- package/dist/esm/bds-banner.entry.js +27 -40
- package/dist/esm/bds-button.entry.js +8 -39
- package/dist/esm/bds-checkbox.entry.js +144 -0
- package/dist/esm/bds-dialog.entry.js +371 -0
- package/dist/esm/bds-divider.entry.js +44 -0
- package/dist/esm/bds-flag.entry.js +2950 -0
- package/dist/esm/bds-grid-item.entry.js +91 -0
- package/dist/esm/bds-grid.entry.js +35 -0
- package/dist/esm/bds-list-menu-item.entry.js +466 -0
- package/dist/esm/bds-list-menu.entry.js +128 -0
- package/dist/esm/bds-popover.entry.js +278 -0
- package/dist/esm/bds-spinner.entry.js +52 -0
- package/dist/esm/bds-status.entry.js +57 -0
- package/dist/esm/bds-tag.entry.js +138 -0
- package/dist/esm/bds-text-field.entry.js +361 -0
- package/dist/esm/bds-toggle.entry.js +184 -0
- package/dist/esm/bds-tooltip_2.entry.js +317 -0
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/enum-C8mRvnTA.js +17 -0
- package/dist/esm/floating.mixin-DCXSEEVH.js +193 -0
- package/dist/esm/form-associated.mixin-CvK2d92c.js +111 -0
- package/dist/esm/getOffset-DKPjeBHi.js +2069 -0
- package/dist/esm/{index-DQvmq159.js → index-BqJlOB6b.js} +106 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/states-Bfazyxqi.js +20 -0
- package/dist/esm/validateProps-kGnB15Lz.js +39 -0
- package/dist/esm-es5/BaseAttributes-DhSchGPI.js +1 -0
- package/dist/esm-es5/Keys-CzYQb3pP.js +1 -0
- package/dist/esm-es5/{attributes-Ba6iHqJA.js → attributes-CaHOghy5.js} +1 -1
- package/dist/esm-es5/bds-avatar.entry.js +1 -0
- package/dist/esm-es5/bds-badge.entry.js +1 -0
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox.entry.js +1 -0
- package/dist/esm-es5/bds-dialog.entry.js +1 -0
- package/dist/esm-es5/bds-divider.entry.js +1 -0
- package/dist/esm-es5/bds-flag.entry.js +1 -0
- package/dist/esm-es5/bds-grid-item.entry.js +1 -0
- package/dist/esm-es5/bds-grid.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu.entry.js +1 -0
- package/dist/esm-es5/bds-popover.entry.js +1 -0
- package/dist/esm-es5/bds-spinner.entry.js +1 -0
- package/dist/esm-es5/bds-status.entry.js +1 -0
- package/dist/esm-es5/bds-tag.entry.js +1 -0
- package/dist/esm-es5/bds-text-field.entry.js +1 -0
- package/dist/esm-es5/bds-toggle.entry.js +1 -0
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -0
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/enum-C8mRvnTA.js +1 -0
- package/dist/esm-es5/floating.mixin-DCXSEEVH.js +1 -0
- package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +1 -0
- package/dist/esm-es5/getOffset-DKPjeBHi.js +1 -0
- package/dist/esm-es5/index-BqJlOB6b.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/states-Bfazyxqi.js +1 -0
- package/dist/esm-es5/validateProps-kGnB15Lz.js +1 -0
- package/dist/scss/maps/_primitives.scss +404 -408
- package/dist/scss/maps/_theme-connect.scss +164 -165
- package/dist/scss/maps/_theme-engage.scss +164 -165
- package/dist/scss/maps/_theme-protect.scss +164 -165
- package/dist/scss/maps/_theme-proximus.scss +165 -166
- package/dist/scss/variables/_primitives.scss +404 -408
- package/dist/scss/variables/_theme-connect.scss +164 -165
- package/dist/scss/variables/_theme-engage.scss +164 -165
- package/dist/scss/variables/_theme-protect.scss +164 -165
- package/dist/scss/variables/_theme-proximus.scss +165 -166
- package/dist/types/components/actions/bds-button/bds-button.d.ts +1 -1
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +70 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +116 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +12 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-toggle/bds-toggle.d.ts +91 -0
- package/dist/types/components/actions/bds-toggle/types/IEventChange.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +12 -0
- package/dist/types/components/actions/bds-toggle/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/index.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-badge/bds-badge.d.ts +31 -0
- package/dist/types/components/feedback/bds-badge/types/IBadge.d.ts +6 -0
- package/dist/types/components/feedback/bds-badge/types/enum.d.ts +9 -0
- package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +20 -16
- package/dist/types/components/feedback/bds-banner/types/IBanner.d.ts +3 -4
- package/dist/types/components/feedback/bds-spinner/bds-spinner.d.ts +32 -0
- package/dist/types/components/feedback/bds-spinner/types/ISpinner.d.ts +6 -0
- package/dist/types/components/feedback/bds-spinner/types/enum.d.ts +6 -0
- package/dist/types/components/feedback/bds-spinner/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-status/bds-status.d.ts +26 -0
- package/dist/types/components/feedback/bds-status/types/IStatus.d.ts +7 -0
- package/dist/types/components/feedback/bds-status/types/enum.d.ts +6 -0
- package/dist/types/components/feedback/bds-status/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-tag/bds-tag.d.ts +71 -0
- package/dist/types/components/feedback/bds-tag/types/ITag.d.ts +13 -0
- package/dist/types/components/feedback/bds-tag/types/enum.d.ts +11 -0
- package/dist/types/components/feedback/bds-tag/types/index.d.ts +4 -0
- package/dist/types/components/feedback/bds-tag/types/types.d.ts +8 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox.d.ts +65 -0
- package/dist/types/components/forms/bds-checkbox/types/ICheckbox.d.ts +36 -0
- package/dist/types/components/forms/bds-flag/bds-flag.d.ts +134 -0
- package/dist/types/components/forms/bds-flag/constants/countries.d.ts +3 -0
- package/dist/types/components/forms/bds-flag/constants/flagUrl.d.ts +2 -0
- package/dist/types/components/forms/bds-flag/constants/global.d.ts +3 -0
- package/dist/types/components/forms/bds-flag/constants/index.d.ts +4 -0
- package/dist/types/components/forms/bds-flag/helpers/getNameFlag.d.ts +17 -0
- package/dist/types/components/forms/bds-flag/interfaces/ICountry.d.ts +16 -0
- package/dist/types/components/forms/bds-flag/interfaces/IFlag.d.ts +14 -0
- package/dist/types/components/forms/bds-flag/types/Flag.d.ts +22 -0
- package/dist/types/components/forms/bds-flag/types/Shape.d.ts +12 -0
- package/dist/types/components/forms/bds-flag/types/index.d.ts +3 -0
- package/dist/types/components/forms/bds-text-field/bds-text-field.d.ts +196 -0
- package/dist/types/components/forms/bds-text-field/types/ITextField.d.ts +31 -0
- package/dist/types/components/forms/bds-text-field/types/enum.d.ts +15 -0
- package/dist/types/components/forms/bds-text-field/types/index.d.ts +4 -0
- package/dist/types/components/forms/bds-text-field/types/types.d.ts +5 -0
- package/dist/types/components/helpers/bds-divider.d.ts +26 -0
- package/dist/types/components/helpers/types/IDivider.d.ts +5 -0
- package/dist/types/components/helpers/types/enum.d.ts +5 -0
- package/dist/types/components/helpers/types/types.d.ts +3 -0
- package/dist/types/components/images-icons/bds-avatar/bds-avatar.d.ts +51 -0
- package/dist/types/components/images-icons/bds-avatar/types/IAvatar.d.ts +9 -0
- package/dist/types/components/images-icons/bds-avatar/types/enum.d.ts +6 -0
- package/dist/types/components/images-icons/bds-avatar/types/index.d.ts +4 -0
- package/dist/types/components/images-icons/bds-avatar/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid/bds-grid.d.ts +19 -0
- package/dist/types/components/layouts/bds-grid/grid/types/IGrid.d.ts +6 -0
- package/dist/types/components/layouts/bds-grid/grid/types/enum.d.ts +5 -0
- package/dist/types/components/layouts/bds-grid/grid/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid-item/bds-grid-item.d.ts +31 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/IGridItem.d.ts +12 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/enum.d.ts +11 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/types.d.ts +3 -0
- package/dist/types/components/overlays/bds-dialog/bds-dialog.d.ts +147 -0
- package/dist/types/components/overlays/bds-dialog/types/IDialog.d.ts +17 -0
- package/dist/types/components/overlays/bds-dialog/types/enum.d.ts +29 -0
- package/dist/types/components/overlays/bds-dialog/types/index.d.ts +4 -0
- package/dist/types/components/overlays/bds-dialog/types/types.d.ts +6 -0
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +209 -0
- package/dist/types/components/overlays/bds-popover/constants/Offset.d.ts +2 -0
- package/dist/types/components/overlays/bds-popover/types/IPopover.d.ts +11 -0
- package/dist/types/components/overlays/bds-popover/types/width.d.ts +2 -0
- package/dist/types/components/overlays/bds-tooltip/bds-tooltip.d.ts +143 -0
- package/dist/types/components/overlays/bds-tooltip/constants/Offset.d.ts +2 -0
- package/dist/types/components/overlays/bds-tooltip/types/ITooltip.d.ts +11 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +9 -9
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +2 -2
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +1 -1
- package/dist/types/components.d.ts +3071 -308
- package/dist/types/mixins/anchored.mixin.d.ts +14 -4
- package/dist/types/mixins/backdrop.mixin.d.ts +103 -0
- package/dist/types/mixins/floating.mixin.d.ts +11 -3
- package/dist/types/mixins/form-associated.mixin.d.ts +20 -16
- package/dist/types/mixins/index.d.ts +3 -0
- package/dist/types/mixins/links.mixin.d.ts +85 -0
- package/dist/types/mixins/menu-behavior.mixin.d.ts +91 -0
- package/dist/types/services/floating/index.d.ts +4 -0
- package/dist/types/services/floating/interfaces/Anchored.d.ts +7 -0
- package/dist/types/services/floating/interfaces/Backdrop.d.ts +5 -0
- package/dist/types/services/floating/interfaces/Floating.d.ts +2 -2
- package/dist/types/services/floating/interfaces/Props.d.ts +4 -3
- package/dist/types/services/floating/interfaces/index.d.ts +6 -0
- package/dist/types/services/floating/types/index.d.ts +2 -0
- package/dist/types/services/index.d.ts +3 -0
- package/dist/types/services/logger/index.d.ts +2 -0
- package/dist/types/types/IFormProps.d.ts +25 -0
- package/dist/types/types/form.d.ts +0 -1
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/links.d.ts +14 -0
- package/dist/types/types/menu.d.ts +16 -0
- package/dist/types/types/position.d.ts +11 -0
- package/dist/types/utils/constants/common/Aria.d.ts +14 -0
- package/dist/types/utils/constants/common/Icons.d.ts +14 -0
- package/dist/types/utils/constants/common/Keys.d.ts +7 -6
- package/dist/types/utils/constants/common/index.d.ts +5 -0
- package/dist/types/utils/constants/index.d.ts +2 -0
- package/dist/types/utils/helpers/common/BaseAttributes.d.ts +6 -13
- package/dist/types/utils/helpers/common/index.d.ts +2 -0
- package/dist/types/utils/helpers/index.d.ts +3 -0
- package/dist/types/utils/helpers/overlays/getOffset.d.ts +9 -0
- package/dist/types/utils/helpers/validateProps.d.ts +11 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/menu/index.d.ts +2 -0
- package/dist/types/utils/menu/menu-item.utils.d.ts +50 -0
- package/dist/types/utils/testing/constants.d.ts +2 -0
- package/dist/types/utils/testing/fixtures.d.ts +6 -0
- package/dist/types/utils/testing/helpers.d.ts +14 -0
- package/dist/types/utils/testing/index.d.ts +5 -0
- package/dist/types/utils/testing/mocks/backdrop.d.ts +5 -0
- package/dist/types/utils/testing/mocks/console.d.ts +17 -0
- package/dist/types/utils/testing/mocks/elementInternals.d.ts +46 -0
- package/dist/types/utils/testing/mocks/index.d.ts +5 -0
- package/dist/types/utils/testing/mocks/popover.d.ts +2 -0
- package/package.json +1 -1
- package/components-build/p-Ba6iHqJA.js +0 -1
- package/components-build/p-DQR-jjOl.js +0 -1
- package/dist/boreal-web-components/p-08bd6bed.system.entry.js +0 -1
- package/dist/boreal-web-components/p-1575fe61.system.entry.js +0 -1
- package/dist/boreal-web-components/p-657c12a3.system.entry.js +0 -1
- package/dist/boreal-web-components/p-66bb3c44.entry.js +0 -1
- package/dist/boreal-web-components/p-742f39ef.entry.js +0 -1
- package/dist/boreal-web-components/p-BG1kmb4c.system.js +0 -1
- package/dist/boreal-web-components/p-B_tL_RWF.system.js +0 -2
- package/dist/boreal-web-components/p-Ba6iHqJA.js +0 -1
- package/dist/boreal-web-components/p-DIvR9Mw7.system.js +0 -1
- package/dist/boreal-web-components/p-DKPZ4_C0.system.js +0 -1
- package/dist/boreal-web-components/p-DQR-jjOl.js +0 -1
- package/dist/boreal-web-components/p-DQvmq159.js +0 -2
- package/dist/boreal-web-components/p-e4a075ba.entry.js +0 -1
- package/dist/cjs/bds-typography.cjs.entry.js +0 -168
- package/dist/cjs/states-C03fKOhs.js +0 -12
- package/dist/esm/bds-typography.entry.js +0 -166
- package/dist/esm/states-DQR-jjOl.js +0 -9
- package/dist/esm-es5/bds-typography.entry.js +0 -1
- package/dist/esm-es5/index-DQvmq159.js +0 -2
- package/dist/esm-es5/states-DQR-jjOl.js +0 -1
|
@@ -5,40 +5,140 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { IAvatar } from "./components/images-icons/bds-avatar/types";
|
|
9
|
+
import { IBadge } from "./components/feedback/bds-badge/types/IBadge";
|
|
8
10
|
import { IBanner } from "./components/feedback/bds-banner/types/IBanner";
|
|
9
11
|
import { IButton } from "./components/actions/bds-button/types/IButton";
|
|
12
|
+
import { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
13
|
+
import { IDialog } from "./components/overlays/bds-dialog/types";
|
|
14
|
+
import { IDivider } from "./components/helpers/types/IDivider";
|
|
15
|
+
import { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
16
|
+
import { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
17
|
+
import { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
18
|
+
import { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
19
|
+
import { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
20
|
+
import { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
21
|
+
import { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
22
|
+
import { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
23
|
+
import { IFormValidator } from "./types/index";
|
|
24
|
+
import { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
25
|
+
import { Event } from "./stencil-public-runtime";
|
|
26
|
+
import { IToggle } from "./components/actions/bds-toggle/types";
|
|
27
|
+
import { IToggleEventChange } from "./components/actions/bds-toggle/types/IEventChange";
|
|
28
|
+
import { ITooltip } from "./components/overlays/bds-tooltip/types/ITooltip";
|
|
29
|
+
import { FloatingTooltipProp } from "./services/index";
|
|
10
30
|
import { ITypography } from "./components/titles-text/bds-typography/types/ITypography";
|
|
31
|
+
export { IAvatar } from "./components/images-icons/bds-avatar/types";
|
|
32
|
+
export { IBadge } from "./components/feedback/bds-badge/types/IBadge";
|
|
11
33
|
export { IBanner } from "./components/feedback/bds-banner/types/IBanner";
|
|
12
34
|
export { IButton } from "./components/actions/bds-button/types/IButton";
|
|
35
|
+
export { CheckboxChangeDetail } from "./components/forms/bds-checkbox/types/ICheckbox";
|
|
36
|
+
export { IDialog } from "./components/overlays/bds-dialog/types";
|
|
37
|
+
export { IDivider } from "./components/helpers/types/IDivider";
|
|
38
|
+
export { IFlag } from "./components/forms/bds-flag/interfaces/IFlag";
|
|
39
|
+
export { IGrid } from "./components/layouts/bds-grid/grid/types";
|
|
40
|
+
export { IGridItem } from "./components/layouts/bds-grid/grid-item/types";
|
|
41
|
+
export { IListMenuItem, IListMenuItemEvent } from "./components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem";
|
|
42
|
+
export { IPopover } from "./components/overlays/bds-popover/types/IPopover";
|
|
43
|
+
export { ISpinner } from "./components/feedback/bds-spinner/types/ISpinner";
|
|
44
|
+
export { IStatus } from "./components/feedback/bds-status/types/IStatus";
|
|
45
|
+
export { ITag, TagEventPayload } from "./components/feedback/bds-tag/types";
|
|
46
|
+
export { IFormValidator } from "./types/index";
|
|
47
|
+
export { TextFieldType, TextFieldValidationTiming, TextFieldVariant } from "./components/forms/bds-text-field/types";
|
|
48
|
+
export { Event } from "./stencil-public-runtime";
|
|
49
|
+
export { IToggle } from "./components/actions/bds-toggle/types";
|
|
50
|
+
export { IToggleEventChange } from "./components/actions/bds-toggle/types/IEventChange";
|
|
51
|
+
export { ITooltip } from "./components/overlays/bds-tooltip/types/ITooltip";
|
|
52
|
+
export { FloatingTooltipProp } from "./services/index";
|
|
13
53
|
export { ITypography } from "./components/titles-text/bds-typography/types/ITypography";
|
|
14
54
|
export namespace Components {
|
|
55
|
+
/**
|
|
56
|
+
* Avatar component used to display user initials or names for visual identification.
|
|
57
|
+
* @summary Displays a circular avatar with user initials and optional name label.
|
|
58
|
+
* Uses Boreal Design System tokens for consistent styling across platforms.
|
|
59
|
+
* @attr {string} username - The full name used to generate initials or display as label.
|
|
60
|
+
* @attr {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
61
|
+
* @attr {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
62
|
+
* @attr {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
63
|
+
* @property {string} username - The full name used to generate initials or display as label.
|
|
64
|
+
* @property {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
65
|
+
* @property {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
66
|
+
* @property {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
67
|
+
* @cssprop --bds-avatar-background - Custom background color HEX code.
|
|
68
|
+
* @cssprop --bds-avatar-initials-color - Custom text color HEX code.
|
|
69
|
+
*/
|
|
70
|
+
interface BdsAvatar {
|
|
71
|
+
/**
|
|
72
|
+
* Custom background color as hex code. If not provided, defaults to Boreal success color *
|
|
73
|
+
* @default ''
|
|
74
|
+
*/
|
|
75
|
+
"background": IAvatar['background'];
|
|
76
|
+
/**
|
|
77
|
+
* Custom text color as hex code. If not provided, defaults to white *
|
|
78
|
+
* @default ''
|
|
79
|
+
*/
|
|
80
|
+
"initialsColor": IAvatar['initialsColor'];
|
|
81
|
+
/**
|
|
82
|
+
* The full name used to generate initials or display as label *
|
|
83
|
+
* @default ''
|
|
84
|
+
*/
|
|
85
|
+
"username": IAvatar['username'];
|
|
86
|
+
/**
|
|
87
|
+
* Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
88
|
+
* @default 'full'
|
|
89
|
+
*/
|
|
90
|
+
"variant": IAvatar['variant'];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Badge component for displaying contextual status information with optional icon support.
|
|
94
|
+
* @summary A compact label component that communicates status or category using color-coded variants. Supports an optional icon slot and a disabled state.
|
|
95
|
+
* @attr {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
96
|
+
* @attr {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
97
|
+
* @property {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
98
|
+
* @property {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
99
|
+
*/
|
|
100
|
+
interface BdsBadge {
|
|
101
|
+
/**
|
|
102
|
+
* Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
"disabled": IBadge['disabled'];
|
|
106
|
+
/**
|
|
107
|
+
* Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
108
|
+
* @default BADGE_VARIANT.DEFAULT
|
|
109
|
+
*/
|
|
110
|
+
"variant": IBadge['variant'];
|
|
111
|
+
}
|
|
15
112
|
/**
|
|
16
113
|
* Banner component used to display important messages with different status variants.
|
|
17
114
|
* @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
|
|
18
115
|
* @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
|
|
19
|
-
* @attr {boolean}
|
|
20
|
-
* @attr {string} idComponent - Unique identifier for the banner element.
|
|
21
|
-
* @property {string} idComponent - Unique identifier for the banner element.
|
|
116
|
+
* @attr {boolean} closable - When true, renders a close button that triggers the close event.
|
|
22
117
|
* @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
|
|
23
|
-
* @property {boolean}
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
118
|
+
* @property {boolean} closable - Shows a close button that allows users to close the banner. Defaults to false.
|
|
119
|
+
* @property {boolean} closeButtonLabel - Aria label for the close button when visible.
|
|
120
|
+
* @fires bdsClose - Emitted when the banner is closed via the close button or `close` method.
|
|
121
|
+
* @method close - Programmatic method to close the banner and emit the `bdsClose` event.
|
|
26
122
|
*/
|
|
27
123
|
interface BdsBanner {
|
|
28
124
|
/**
|
|
29
|
-
*
|
|
125
|
+
* Shows a close button that allows users to close the banner.
|
|
126
|
+
* @default false
|
|
30
127
|
*/
|
|
31
|
-
"
|
|
128
|
+
"closable": boolean;
|
|
32
129
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @default false
|
|
130
|
+
* Programmatic method to close the banner and emit the `bdsClose` event
|
|
35
131
|
*/
|
|
36
|
-
"
|
|
132
|
+
"close": () => Promise<void>;
|
|
37
133
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @default
|
|
134
|
+
* The aria label for the close button.
|
|
135
|
+
* @default ""
|
|
136
|
+
*/
|
|
137
|
+
"closeButtonLabel": IBanner['closeButtonLabel'];
|
|
138
|
+
/**
|
|
139
|
+
* Programmatic method to close the banner and emit the `bdsClose` event
|
|
40
140
|
*/
|
|
41
|
-
"
|
|
141
|
+
"open": () => Promise<void>;
|
|
42
142
|
/**
|
|
43
143
|
* Visual style variant: 'info', 'success', 'warning', or 'danger'.
|
|
44
144
|
* @default "info"
|
|
@@ -125,231 +225,830 @@ export namespace Components {
|
|
|
125
225
|
"variant": IButton['variant'];
|
|
126
226
|
}
|
|
127
227
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary A
|
|
130
|
-
* @
|
|
131
|
-
* @
|
|
132
|
-
* @
|
|
133
|
-
* @
|
|
134
|
-
* @
|
|
135
|
-
* @
|
|
136
|
-
* @
|
|
137
|
-
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
138
|
-
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
139
|
-
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
140
|
-
* @attr {boolean} is-downloadable - Makes the `link` download a file.
|
|
141
|
-
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
142
|
-
* @attr {string} html-for - The for attribute when rendered as a label
|
|
143
|
-
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
144
|
-
* @attr {string} custom-class - Additional custom CSS class
|
|
145
|
-
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
146
|
-
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
147
|
-
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
148
|
-
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
149
|
-
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
150
|
-
* @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
|
|
151
|
-
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
152
|
-
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
153
|
-
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
154
|
-
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
155
|
-
* @property {boolean} isDownloadable - Makes the `link` download a file.
|
|
156
|
-
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
157
|
-
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
158
|
-
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
159
|
-
* @property {string} customClass - Additional custom CSS class
|
|
160
|
-
* @default 'display' - Default variant value
|
|
161
|
-
* @default 'p' - Default element value
|
|
162
|
-
* @default 'start' - Default align value
|
|
163
|
-
* @default 'md' - Default size value
|
|
164
|
-
* @default 'default' - Default state value
|
|
165
|
-
* @default false - Default isRequired state
|
|
166
|
-
* @default false - Default ellipsis state
|
|
167
|
-
* @default 1 - Default maxLines value
|
|
168
|
-
* @default '' - Default href value
|
|
169
|
-
* @default '' - Default target value
|
|
170
|
-
* @default false - Default isDownloadable state
|
|
171
|
-
* @default 'download' - Default filename value
|
|
172
|
-
* @default '' - Default tooltipText value
|
|
228
|
+
* Checkbox component for boolean selection with three visual states.
|
|
229
|
+
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
230
|
+
* @property {boolean} checked - Whether the checkbox is selected. Defaults to `false`.
|
|
231
|
+
* @property {boolean} indeterminate - Whether the checkbox shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
232
|
+
* @property {boolean} error - Shows error styling on the checkbox. Defaults to `false`.
|
|
233
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
234
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
235
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model).
|
|
236
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
173
237
|
*/
|
|
174
|
-
interface
|
|
238
|
+
interface BdsCheckbox {
|
|
175
239
|
/**
|
|
176
|
-
*
|
|
177
|
-
* @default
|
|
240
|
+
* Whether the checkbox is selected.
|
|
241
|
+
* @default false
|
|
178
242
|
*/
|
|
179
|
-
"
|
|
243
|
+
"checked": boolean;
|
|
180
244
|
/**
|
|
181
|
-
*
|
|
245
|
+
* Disables the control.
|
|
246
|
+
* @default false
|
|
247
|
+
*/
|
|
248
|
+
"disabled": boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Shows error styling on the checkbox.
|
|
251
|
+
* @default false
|
|
252
|
+
*/
|
|
253
|
+
"error": boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Whether the checkbox shows an indeterminate ("mixed") visual state.
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
"indeterminate": boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
182
261
|
* @default ''
|
|
183
262
|
*/
|
|
184
|
-
"
|
|
263
|
+
"label": string;
|
|
185
264
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @default TAG_ELEMENT.P
|
|
265
|
+
* Name of the form control, submitted as a key in the form data.
|
|
188
266
|
*/
|
|
189
|
-
"
|
|
267
|
+
"name": string;
|
|
190
268
|
/**
|
|
191
|
-
*
|
|
269
|
+
* Marks the control as required for form submission.
|
|
192
270
|
* @default false
|
|
193
271
|
*/
|
|
194
|
-
"
|
|
272
|
+
"required": boolean;
|
|
195
273
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @default
|
|
274
|
+
* Value submitted with the form data when checked.
|
|
275
|
+
* @default 'on'
|
|
198
276
|
*/
|
|
199
|
-
"
|
|
277
|
+
"value": string;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Modal dialog component for displaying content in an overlay.
|
|
281
|
+
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
282
|
+
* @attr {boolean} active - Controls dialog visibility.
|
|
283
|
+
* @attr {boolean} prevent-close - Disables closing the dialog.
|
|
284
|
+
* @attr {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
285
|
+
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
286
|
+
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
287
|
+
* @attr {boolean} escape-close - Close on Escape key.
|
|
288
|
+
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
289
|
+
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
290
|
+
* @attr {string} title-dialog - Dialog title text.
|
|
291
|
+
* @attr {boolean} maximizable - Show maximize button.
|
|
292
|
+
* @attr {boolean} closable - Show close button.
|
|
293
|
+
* @attr {string} width - Custom width for the dialog.
|
|
294
|
+
* @attr {string} height - Custom height for the dialog.
|
|
295
|
+
* @property {boolean} active - Controls whether the dialog is open.
|
|
296
|
+
* @property {boolean} preventClose - Disables closing the dialog.
|
|
297
|
+
* @property {string} height - Custom height for the dialog.
|
|
298
|
+
* @property {string} width - Custom width for the dialog.
|
|
299
|
+
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
300
|
+
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
301
|
+
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
302
|
+
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
303
|
+
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
304
|
+
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
305
|
+
* @property {string} titleDialog - Title text displayed in the header.
|
|
306
|
+
* @property {boolean} maximizable - Show maximize button.
|
|
307
|
+
* @property {boolean} closable - Hide the close button in the header.
|
|
308
|
+
* @fires bdsOpen - Emitted when the dialog opens.
|
|
309
|
+
* @fires bdsClose - Emitted when the dialog closes.
|
|
310
|
+
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
311
|
+
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
312
|
+
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
313
|
+
*/
|
|
314
|
+
interface BdsDialog {
|
|
200
315
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @default
|
|
316
|
+
* Controls whether the dialog is open.
|
|
317
|
+
* @default false
|
|
203
318
|
*/
|
|
204
|
-
"
|
|
319
|
+
"active": IDialog['active'];
|
|
205
320
|
/**
|
|
206
|
-
*
|
|
207
|
-
* @default
|
|
321
|
+
* Close dialog when clicking the backdrop.
|
|
322
|
+
* @default false
|
|
208
323
|
*/
|
|
209
|
-
"
|
|
324
|
+
"backdropClose": IDialog['backdropClose'];
|
|
210
325
|
/**
|
|
211
|
-
*
|
|
326
|
+
* Hide the close button in the header.
|
|
212
327
|
* @default false
|
|
213
328
|
*/
|
|
214
|
-
"
|
|
329
|
+
"closable": IDialog['closable'];
|
|
215
330
|
/**
|
|
216
|
-
*
|
|
331
|
+
* Closes the dialog programmatically. This method triggers the close functionality to hide the dialog.
|
|
332
|
+
*/
|
|
333
|
+
"close": () => Promise<void>;
|
|
334
|
+
/**
|
|
335
|
+
* Content padding: 'default' or 'none'.
|
|
336
|
+
* @default DIALOG_CONTENT_PADDING.DEFAULT
|
|
337
|
+
*/
|
|
338
|
+
"contentPadding": IDialog['contentPadding'];
|
|
339
|
+
/**
|
|
340
|
+
* Close dialog when pressing Escape.
|
|
217
341
|
* @default false
|
|
218
342
|
*/
|
|
219
|
-
"
|
|
343
|
+
"escapeClose": IDialog['escapeClose'];
|
|
220
344
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @default
|
|
345
|
+
* Dialog custom height
|
|
346
|
+
* @default ''
|
|
223
347
|
*/
|
|
224
|
-
"
|
|
348
|
+
"height": IDialog['height'];
|
|
225
349
|
/**
|
|
226
|
-
*
|
|
227
|
-
* @default
|
|
350
|
+
* Layout type: 'default', 'headerless', or 'footerless'.
|
|
351
|
+
* @default DIALOG_LAYOUT.DEFAULT
|
|
228
352
|
*/
|
|
229
|
-
"
|
|
353
|
+
"layout": IDialog['layout'];
|
|
230
354
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @default
|
|
355
|
+
* Show maximize button to toggle full-screen.
|
|
356
|
+
* @default false
|
|
233
357
|
*/
|
|
234
|
-
"
|
|
358
|
+
"maximizable": IDialog['maximizable'];
|
|
235
359
|
/**
|
|
236
|
-
*
|
|
237
|
-
* @default null
|
|
360
|
+
* Opens the dialog programmatically. This method triggers the show functionality to display the dialog.
|
|
238
361
|
*/
|
|
239
|
-
"
|
|
362
|
+
"open": () => Promise<void>;
|
|
240
363
|
/**
|
|
241
|
-
*
|
|
364
|
+
* Controls whether the dialog is closable.
|
|
365
|
+
* @default false
|
|
366
|
+
*/
|
|
367
|
+
"preventClose": IDialog['preventClose'];
|
|
368
|
+
/**
|
|
369
|
+
* Dialog size: 'small', 'medium', 'large', or 'full'.
|
|
370
|
+
* @default DIALOG_SIZES.MEDIUM
|
|
371
|
+
*/
|
|
372
|
+
"size": IDialog['size'];
|
|
373
|
+
/**
|
|
374
|
+
* Title text displayed in the header.
|
|
242
375
|
* @default ''
|
|
243
376
|
*/
|
|
244
|
-
"
|
|
377
|
+
"titleDialog": IDialog['titleDialog'];
|
|
245
378
|
/**
|
|
246
|
-
*
|
|
247
|
-
* @default
|
|
379
|
+
* Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
380
|
+
* @default DIALOG_VARIANT.DEFAULT
|
|
248
381
|
*/
|
|
249
|
-
"variant":
|
|
382
|
+
"variant": IDialog['variant'];
|
|
383
|
+
/**
|
|
384
|
+
* Dialog custom width
|
|
385
|
+
* @default ''
|
|
386
|
+
*/
|
|
387
|
+
"width": IDialog['width'];
|
|
250
388
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
389
|
+
/**
|
|
390
|
+
* Divider component for creating visual separators between content sections.
|
|
391
|
+
* @summary A simple visual separator that can be oriented horizontally or vertically.
|
|
392
|
+
* @csspart divider - A divider element that visually separates content.
|
|
393
|
+
* @attr {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
394
|
+
* @property {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
395
|
+
*/
|
|
396
|
+
interface BdsDivider {
|
|
397
|
+
/**
|
|
398
|
+
* The orientation of the divider. Allowed values: horizontal | vertical
|
|
399
|
+
* @default DIVIDER_ORIENTATIONS.HORIZONTAL
|
|
400
|
+
*/
|
|
401
|
+
"orientation": IDivider['orientation'];
|
|
263
402
|
}
|
|
264
403
|
/**
|
|
265
|
-
*
|
|
266
|
-
* @summary
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
* @attr {
|
|
270
|
-
* @
|
|
271
|
-
* @
|
|
272
|
-
* @
|
|
273
|
-
* @
|
|
274
|
-
* @
|
|
404
|
+
* Flag component used to display a country flag together with its corresponding label.
|
|
405
|
+
* @summary Renders a flag icon based on a country identifier and optionally displays
|
|
406
|
+
* the country name, short name, or call sign. Supports custom flag sources, different
|
|
407
|
+
* shapes, and flag alignment on either side of the label.
|
|
408
|
+
* @attr {boolean} label - When true, displays a textual label next to the flag.
|
|
409
|
+
* @attr {boolean} short-name - When true, displays the abbreviated country name (ISO2/ISO3) instead of the full name.
|
|
410
|
+
* @attr {boolean} call-sign - When true, displays the country calling code next to the label.
|
|
411
|
+
* @attr {string} country - Country value used to resolve the flag and label.
|
|
412
|
+
* @attr {AlignFlag} align-flag - Controls whether the flag is rendered on the left or right side.
|
|
413
|
+
* @attr {FlagIdentifier} identifier - Defines which country field is used to resolve the value.
|
|
414
|
+
* @attr {Shape} shape - Visual shape of the rendered flag.
|
|
415
|
+
* @attr {ICountry[]} custom-flags - Additional custom flag definitions that can override defaults.
|
|
416
|
+
* @property {boolean} label - Whether the country label should be displayed. Defaults to false.
|
|
417
|
+
* @property {boolean} shortName - Whether to display the abbreviated country name. Defaults to false.
|
|
418
|
+
* @property {boolean} callSign - Whether to display the country calling code. Defaults to false.
|
|
419
|
+
* @property {string} country - Country value used to find the matching flag entry. Defaults to ''.
|
|
420
|
+
* @property {AlignFlag} alignFlag - Position of the flag relative to the label. Defaults to `AlignFlag.LEFT`.
|
|
421
|
+
* @property {FlagIdentifier} identifier - Identifier used to resolve the country value. Defaults to `FlagIdentifier.CODE`.
|
|
422
|
+
* @property {Shape} shape - Shape variant used for the flag. Defaults to `Shape.RECTANGLE`.
|
|
423
|
+
* @property {ICountry[]} customFlags - List of custom flag definitions merged with the default catalog. Defaults to `[]`.
|
|
275
424
|
*/
|
|
276
|
-
interface
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
425
|
+
interface BdsFlag {
|
|
426
|
+
/**
|
|
427
|
+
* Determines whether the flag is displayed on the left or right side of the label.
|
|
428
|
+
* @default AlignFlag.LEFT
|
|
429
|
+
*/
|
|
430
|
+
"alignFlag": IFlag['alignFlag'];
|
|
431
|
+
/**
|
|
432
|
+
* Whether the country calling code should be displayed next to the label.
|
|
433
|
+
* @default false
|
|
434
|
+
*/
|
|
435
|
+
"callSign": IFlag['callSign'];
|
|
436
|
+
/**
|
|
437
|
+
* Country value used to resolve the matching flag entry. The expected value depends on the configured `identifier`.
|
|
438
|
+
* @default ''
|
|
439
|
+
*/
|
|
440
|
+
"country": IFlag['country'];
|
|
441
|
+
/**
|
|
442
|
+
* Custom flag definitions merged with the default country catalog. Custom entries can override default asset sources when the same `iso2` is used.
|
|
443
|
+
* @default []
|
|
444
|
+
*/
|
|
445
|
+
"customFlags": IFlag['customFlags'];
|
|
446
|
+
/**
|
|
447
|
+
* Defines which field should be used to identify the country. For example, code, iso2, or iso3.
|
|
448
|
+
* @default FlagIdentifier.CODE
|
|
449
|
+
*/
|
|
450
|
+
"identifier": IFlag['identifier'];
|
|
451
|
+
/**
|
|
452
|
+
* Whether the country name label should be displayed next to the flag.
|
|
453
|
+
* @default false
|
|
454
|
+
*/
|
|
455
|
+
"label": IFlag['label'];
|
|
456
|
+
/**
|
|
457
|
+
* Visual shape used to render the flag.
|
|
458
|
+
* @default Shape.RECTANGLE
|
|
459
|
+
*/
|
|
460
|
+
"shape": IFlag['shape'];
|
|
461
|
+
/**
|
|
462
|
+
* Whether the abbreviated country name (ISO2/ISO3) should be displayed instead of the full name.
|
|
463
|
+
* @default false
|
|
464
|
+
*/
|
|
465
|
+
"shortName": IFlag['shortName'];
|
|
285
466
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
interface
|
|
291
|
-
|
|
467
|
+
/**
|
|
468
|
+
* 12-column CSS Grid layout container with 5 responsive breakpoints.
|
|
469
|
+
* Minimum browser support: Chrome/Edge (last 2), Firefox (last 2), Safari (last 2).
|
|
470
|
+
*/
|
|
471
|
+
interface BdsGrid {
|
|
472
|
+
/**
|
|
473
|
+
* `'fluid'` fills full width; `'fixed'` caps the column area at 960px and centres the container.
|
|
474
|
+
* @default GRID_LAYOUT.FLUID
|
|
475
|
+
*/
|
|
476
|
+
"layout": IGrid['layout'];
|
|
477
|
+
/**
|
|
478
|
+
* Overrides the row gap independently of the column gutter.
|
|
479
|
+
*/
|
|
480
|
+
"rowGap": IGrid['rowGap'];
|
|
292
481
|
}
|
|
293
482
|
/**
|
|
294
|
-
*
|
|
295
|
-
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
296
|
-
* @attr {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
297
|
-
* @attr {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
298
|
-
* @attr {string} name - The name attribute for the button, useful for form submissions.
|
|
299
|
-
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
300
|
-
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
301
|
-
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
302
|
-
* @attr {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
303
|
-
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
304
|
-
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
305
|
-
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
306
|
-
* @property {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
307
|
-
* @property {string} name - The name attribute for the button, useful for form submissions.
|
|
308
|
-
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
309
|
-
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
310
|
-
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
311
|
-
* @property {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
312
|
-
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
313
|
-
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
314
|
-
* @default 'button' - Default type value
|
|
315
|
-
* @default 'default' - Default color value
|
|
316
|
-
* @default 'default' - Default variant value
|
|
317
|
-
* @default 'medium' - Default size value
|
|
318
|
-
* @default 'default' - Default status value
|
|
319
|
-
* @default false - Default disabled value
|
|
320
|
-
* @default '' - Default label value
|
|
321
|
-
* @default '' - Default name value
|
|
322
|
-
* @default false - Default loading value
|
|
323
|
-
* @default false - Default disclosure value
|
|
483
|
+
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
324
484
|
*/
|
|
325
|
-
interface
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
485
|
+
interface BdsGridItem {
|
|
486
|
+
/**
|
|
487
|
+
* Column span at all breakpoints (fallback). `'full'` spans all columns (`grid-column: 1 / -1`).
|
|
488
|
+
* @default GRID_ITEM_COL_SPAN.DEFAULT
|
|
489
|
+
*/
|
|
490
|
+
"colSpan": IGridItem['colSpan'];
|
|
491
|
+
/**
|
|
492
|
+
* Override col-span at the `2xl` breakpoint (≥1344px).
|
|
493
|
+
*/
|
|
494
|
+
"colSpan2xl": IGridItem['colSpan2xl'];
|
|
495
|
+
/**
|
|
496
|
+
* Override col-span at the `lg` breakpoint (≥960px).
|
|
497
|
+
*/
|
|
498
|
+
"colSpanLg": IGridItem['colSpanLg'];
|
|
499
|
+
/**
|
|
500
|
+
* Override col-span at the `md` breakpoint (≥769px).
|
|
501
|
+
*/
|
|
502
|
+
"colSpanMd": IGridItem['colSpanMd'];
|
|
503
|
+
/**
|
|
504
|
+
* Override col-span at the `sm` breakpoint (≥320px).
|
|
505
|
+
*/
|
|
506
|
+
"colSpanSm": IGridItem['colSpanSm'];
|
|
507
|
+
/**
|
|
508
|
+
* Override col-span at the `xl` breakpoint (≥1152px).
|
|
509
|
+
*/
|
|
510
|
+
"colSpanXl": IGridItem['colSpanXl'];
|
|
511
|
+
/**
|
|
512
|
+
* Column offset: shifts the item right by N columns (0–11).
|
|
513
|
+
* @default 0
|
|
514
|
+
*/
|
|
515
|
+
"offset": IGridItem['offset'];
|
|
516
|
+
/**
|
|
517
|
+
* Row span. `'full'` maps to `grid-row: 1 / -1`.
|
|
518
|
+
*/
|
|
519
|
+
"rowSpan": IGridItem['rowSpan'];
|
|
334
520
|
}
|
|
335
|
-
var HTMLBdsButtonElement: {
|
|
336
|
-
prototype: HTMLBdsButtonElement;
|
|
337
|
-
new (): HTMLBdsButtonElement;
|
|
338
|
-
};
|
|
339
521
|
/**
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* @
|
|
522
|
+
* Container component that manages a list of menu items.
|
|
523
|
+
* It handles selection logic (single/multiple) and maintains the data state.
|
|
524
|
+
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
525
|
+
* @attr {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
526
|
+
* @attr {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
527
|
+
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
528
|
+
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
529
|
+
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
530
|
+
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
531
|
+
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
532
|
+
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
533
|
+
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
534
|
+
*/
|
|
535
|
+
interface BdsListMenu {
|
|
536
|
+
/**
|
|
537
|
+
* Retrieves the currently selected value(s) programmatically.
|
|
538
|
+
* @method getSelectedValues
|
|
539
|
+
* @returns The selected value(s) based on the 'multiple' prop.
|
|
540
|
+
*/
|
|
541
|
+
"getSelectedValues": () => Promise<string | string[]>;
|
|
542
|
+
/**
|
|
543
|
+
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
544
|
+
* @default 'menu'
|
|
545
|
+
*/
|
|
546
|
+
"menuRole": 'menu' | 'listbox';
|
|
547
|
+
/**
|
|
548
|
+
* If true, allows multiple items to be selected. Default is false (single selection).
|
|
549
|
+
* @default false
|
|
550
|
+
*/
|
|
551
|
+
"multiple": boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Sets the selected values programmatically. Useful for initializing the menu from an external data source or form reset.
|
|
554
|
+
* @method setSelectedValues
|
|
555
|
+
* @param values - The value or values to be marked as selected.
|
|
556
|
+
*/
|
|
557
|
+
"setSelectedValues": (values: string | string[]) => Promise<void>;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Component representing an individual item within a list menu for navigations and selection.
|
|
561
|
+
* @summary A menu item component that supports different variants, disabled state, and selection state, it also supports link behavior when the href prop is provided.
|
|
562
|
+
* @attr {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
563
|
+
* @attr {string} name - The name of the list menu item.
|
|
564
|
+
* @attr {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
565
|
+
* @attr {boolean} selected - If true, the menu item is styled as selected.
|
|
566
|
+
* @attr {boolean} activeItem - If true, the menu item is styled as active.
|
|
567
|
+
* @attr {string} value - The value associated with the menu item, emitted in events when activated.\
|
|
568
|
+
* @attr {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
569
|
+
* @attr {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
570
|
+
* @attr {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
571
|
+
* @attr {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
572
|
+
* @property {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
573
|
+
* @property {string} name - The name of the list menu item.
|
|
574
|
+
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
575
|
+
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
576
|
+
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
577
|
+
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
578
|
+
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
579
|
+
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
580
|
+
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
581
|
+
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
582
|
+
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
583
|
+
* @default '' - By default, the name of the menu item is an empty string.
|
|
584
|
+
* @default false - By default, the menu item is not disabled and is interactive.
|
|
585
|
+
* @default false - By default, the menu item is not selected.
|
|
586
|
+
* @default false - By default, the menu item is not active.
|
|
587
|
+
* @default '' - By default, the value of the menu item is an empty string.
|
|
588
|
+
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
589
|
+
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
590
|
+
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
591
|
+
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
592
|
+
*/
|
|
593
|
+
interface BdsListMenuItem {
|
|
594
|
+
/**
|
|
595
|
+
* Active state item
|
|
596
|
+
* @default false
|
|
597
|
+
*/
|
|
598
|
+
"activeItem": IListMenuItem['activeItem'];
|
|
599
|
+
/**
|
|
600
|
+
* Disabled state item
|
|
601
|
+
* @default false
|
|
602
|
+
*/
|
|
603
|
+
"disabled": IListMenuItem['disabled'];
|
|
604
|
+
/**
|
|
605
|
+
* Makes the link downloadable if true
|
|
606
|
+
* @default ''
|
|
607
|
+
*/
|
|
608
|
+
"download": IListMenuItem['download'];
|
|
609
|
+
/**
|
|
610
|
+
* Link behavior props
|
|
611
|
+
* @default ''
|
|
612
|
+
*/
|
|
613
|
+
"href": IListMenuItem['href'];
|
|
614
|
+
/**
|
|
615
|
+
* The name of the list menu item
|
|
616
|
+
* @default ''
|
|
617
|
+
*/
|
|
618
|
+
"name": IListMenuItem['name'];
|
|
619
|
+
/**
|
|
620
|
+
* Opens the link in a new tab if true
|
|
621
|
+
* @default false
|
|
622
|
+
*/
|
|
623
|
+
"newTab": IListMenuItem['newTab'];
|
|
624
|
+
/**
|
|
625
|
+
* Selected item state
|
|
626
|
+
* @default false
|
|
627
|
+
*/
|
|
628
|
+
"selected": IListMenuItem['selected'];
|
|
629
|
+
/**
|
|
630
|
+
* Value associated with the menu item
|
|
631
|
+
* @default ''
|
|
632
|
+
*/
|
|
633
|
+
"value": IListMenuItem['value'];
|
|
634
|
+
/**
|
|
635
|
+
* Defines the visual style of the list menu item. - 'button': A standard clickable item. - 'label': A non-interactive label, typically used for grouping items.
|
|
636
|
+
* @default LIST_MENU_ITEM_VARIANTS.BUTTON
|
|
637
|
+
*/
|
|
638
|
+
"variant": IListMenuItem['variant'];
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
642
|
+
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
643
|
+
* @attr {boolean} header - When true, displays the popover header.
|
|
644
|
+
* @attr {boolean} footer - When true, displays the popover footer.
|
|
645
|
+
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
646
|
+
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
647
|
+
* @csspart popover-content - The main popover container element.
|
|
648
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
649
|
+
* @csspart popover-trigger - The trigger element for the popover.
|
|
650
|
+
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
651
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
652
|
+
*/
|
|
653
|
+
interface BdsPopover {
|
|
654
|
+
/**
|
|
655
|
+
* If true, displays a close button inside the header. Requires `header` to be true.
|
|
656
|
+
* @default false
|
|
657
|
+
*/
|
|
658
|
+
"closable"?: boolean;
|
|
659
|
+
/**
|
|
660
|
+
* If true, disables the popover.
|
|
661
|
+
* @default false
|
|
662
|
+
*/
|
|
663
|
+
"disabled"?: IPopover['disabled'];
|
|
664
|
+
/**
|
|
665
|
+
* Override default options for the floating mixin. This can be overridden by passing a different object to the `floatingOptions` prop.
|
|
666
|
+
* @default {}
|
|
667
|
+
*/
|
|
668
|
+
"floatingOptions": IPopover['floatingOptions'];
|
|
669
|
+
/**
|
|
670
|
+
* If true, displays the footer section with helper and button slots.
|
|
671
|
+
* @default false
|
|
672
|
+
*/
|
|
673
|
+
"footer"?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* If true, displays the header section with icon and title slots.
|
|
676
|
+
* @default false
|
|
677
|
+
*/
|
|
678
|
+
"header"?: boolean;
|
|
679
|
+
/**
|
|
680
|
+
* Width of the popover content. - number: width in pixels (e.g. 320 → "320px") - 'full': 100% of the trigger/parent width - 'auto': fits the content
|
|
681
|
+
* @default 320
|
|
682
|
+
*/
|
|
683
|
+
"width"?: IPopover['width'];
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Spinner component used to indicate a loading or processing state.
|
|
687
|
+
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
688
|
+
* @attr {"small"|"medium"|"large"} size - Size of the spinner. Defaults to "small".
|
|
689
|
+
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
690
|
+
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
691
|
+
* @property {string} label - Text used as the accessible label for screen readers.
|
|
692
|
+
*/
|
|
693
|
+
interface BdsSpinner {
|
|
694
|
+
/**
|
|
695
|
+
* Accessible label announced by screen readers to describe the loading state.
|
|
696
|
+
* @default "Loading"
|
|
697
|
+
*/
|
|
698
|
+
"label": ISpinner['label'];
|
|
699
|
+
/**
|
|
700
|
+
* Controls the visual size of the spinner.
|
|
701
|
+
* @default "small"
|
|
702
|
+
*/
|
|
703
|
+
"size": ISpinner['size'];
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Status badge component for communicating the current state of an item or process.
|
|
707
|
+
*/
|
|
708
|
+
interface BdsStatus {
|
|
709
|
+
/**
|
|
710
|
+
* indicator is a string attribute. Controls the type of indicator rendered before the slotted label. An invalid value falls back to `"none"` and a warning is set on the host element.
|
|
711
|
+
* @default INDICATOR_TYPES.NONE
|
|
712
|
+
*/
|
|
713
|
+
"indicator": IStatus['indicator'];
|
|
714
|
+
/**
|
|
715
|
+
* state is a string attribute. Controls the visual state variant of the status badge. Determines the background, accent, and text colors applied to the element. An invalid value falls back to `"neutral"` and a warning is set on the host element.
|
|
716
|
+
* @default PROCESS_STATUS.NEUTRAL
|
|
717
|
+
*/
|
|
718
|
+
"state": IStatus['state'];
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Tag component used to represent categories, metadata, or removable filters.
|
|
722
|
+
* @summary Displays a label with optional leading/trailing icons and dismissal capability.
|
|
723
|
+
* @fires bdsClose - Emitted when the tag is closed via the close button or Delete key.
|
|
724
|
+
* @fires bdsSelect - Emitted when the tag is selected via a click or Space/Enter key.
|
|
725
|
+
*/
|
|
726
|
+
interface BdsTag {
|
|
727
|
+
/**
|
|
728
|
+
* Aria label for the close button when visible.
|
|
729
|
+
* @default 'Close tag'
|
|
730
|
+
*/
|
|
731
|
+
"closeButtonLabel": ITag['closeButtonLabel'];
|
|
732
|
+
/**
|
|
733
|
+
* Visual color variant: 'gray', 'cyan', 'cobalt', 'teal', 'lime', 'orange', 'rose', or 'purple'.
|
|
734
|
+
* @default "gray"
|
|
735
|
+
*/
|
|
736
|
+
"color": ITag['color'];
|
|
737
|
+
/**
|
|
738
|
+
* Disables interaction with the tag. Reduces opacity and prevents interactions.
|
|
739
|
+
* @default false
|
|
740
|
+
*/
|
|
741
|
+
"disabled": ITag['disabled'];
|
|
742
|
+
/**
|
|
743
|
+
* Whether the tag is selectable or not.
|
|
744
|
+
* @default false
|
|
745
|
+
*/
|
|
746
|
+
"multiselect": ITag['multiselect'];
|
|
747
|
+
/**
|
|
748
|
+
* Hides the close button that allows users to dismiss the tag.
|
|
749
|
+
* @default false
|
|
750
|
+
*/
|
|
751
|
+
"readonly": ITag['readonly'];
|
|
752
|
+
/**
|
|
753
|
+
* Whether the tag is selected or not.
|
|
754
|
+
* @default false
|
|
755
|
+
*/
|
|
756
|
+
"selected": ITag['selected'];
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Text field component for user input with validation and form integration.
|
|
760
|
+
* @summary Single-line text input with label, validation, password toggle, and clear action.
|
|
761
|
+
* @attr {string} name - The name submitted with the form.
|
|
762
|
+
* @attr {string} value - The current value of the input.
|
|
763
|
+
* @attr {boolean} disabled - Disables the input.
|
|
764
|
+
* @attr {boolean} required - Marks the input as required.
|
|
765
|
+
* @attr {boolean} error - Applies the error visual state.
|
|
766
|
+
* @attr {"text"|"password"} type - Input type.
|
|
767
|
+
* @attr {"outline"|"plain"} variant - Visual style of the container.
|
|
768
|
+
* @attr {boolean} readonly - Makes the input read-only. The value is still submitted with the form.
|
|
769
|
+
* @property {string} label - Label text rendered above the input.
|
|
770
|
+
* @property {string} sublabel - Sublabel rendered inside the input container, before the text area.
|
|
771
|
+
* @property {string} placeholder - Native placeholder forwarded to the inner `<input>`.
|
|
772
|
+
* @property {string} helperText - Assistive text shown below the input when there is no error.
|
|
773
|
+
* @property {string} errorMessage - Error message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
774
|
+
* @property {string} info - Tooltip content attached to the label.
|
|
775
|
+
* @property {string} icon - Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
776
|
+
* @property {boolean} clearable - Shows a clear button when the input has a value.
|
|
777
|
+
* @property {boolean} clearOnHover - Shows a clear button that is hidden at rest and revealed on hover.
|
|
778
|
+
* @property {boolean} readOnly - Makes the input readonly. The value is still submitted with the form.
|
|
779
|
+
* @property {string} autocomplete - Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
780
|
+
* @property {string} pattern - Native `pattern` attribute forwarded to the inner `<input>`.
|
|
781
|
+
* @property {number} minLength - Minimum character count. `0` means no minimum.
|
|
782
|
+
* @property {number} maxLength - Maximum character count. `0` means no maximum.
|
|
783
|
+
* @property {boolean} counter - Enables the character counter in the footer. Requires `charCount`.
|
|
784
|
+
* @property {number} charCount - Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
785
|
+
* @property {IFormValidator[]} customValidators - Additional validators merged with the built-in ones.
|
|
786
|
+
* @property {"blur"|"input"|"submit"|"change"} validationTiming - When built-in validation runs.
|
|
787
|
+
* @property {string} pattern - Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
788
|
+
* @property {string} customWidth - Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
789
|
+
* @fires valueChange - Emitted on every value change; used for framework 2-way binding.
|
|
790
|
+
* @fires bdsInput - Emitted on every keystroke with `{ value, event }`.
|
|
791
|
+
* @fires bdsChange - Emitted when focus leaves after the value changed, with `{ value, event }`.
|
|
792
|
+
* @fires bdsFocus - Emitted when the input gains focus, with `{ event }`.
|
|
793
|
+
* @fires bdsBlur - Emitted when the input loses focus, with `{ event }`.
|
|
794
|
+
* @fires bdsClear - Emitted when the user activates the clear button.
|
|
795
|
+
* @fires bdsValidationChange - Emitted after each validation run with `{ valid, validity, value, touched, dirty }`.
|
|
796
|
+
* @cssprop --bds-text-field-width - Sets a custom width for the component.
|
|
797
|
+
*/
|
|
798
|
+
interface BdsTextField {
|
|
799
|
+
/**
|
|
800
|
+
* Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
801
|
+
* @default 'off'
|
|
802
|
+
*/
|
|
803
|
+
"autocomplete": string;
|
|
804
|
+
/**
|
|
805
|
+
* Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
806
|
+
* @default 0
|
|
807
|
+
*/
|
|
808
|
+
"charCount": number;
|
|
809
|
+
/**
|
|
810
|
+
* Returns `true` if the element's value passes all constraints; `false` otherwise. Also fires an `invalid` event if constraints are violated.
|
|
811
|
+
*/
|
|
812
|
+
"checkValidity": () => Promise<boolean>;
|
|
813
|
+
/**
|
|
814
|
+
* Shows a clear button that is hidden at rest and revealed when the user hovers over the field.
|
|
815
|
+
* @default false
|
|
816
|
+
*/
|
|
817
|
+
"clearOnHover": boolean;
|
|
818
|
+
/**
|
|
819
|
+
* Shows a clear button when the input has a value.
|
|
820
|
+
* @default false
|
|
821
|
+
*/
|
|
822
|
+
"clearable": boolean;
|
|
823
|
+
/**
|
|
824
|
+
* Enables the character counter in the footer. Requires `charCount` to be set.
|
|
825
|
+
* @default false
|
|
826
|
+
*/
|
|
827
|
+
"counter": boolean;
|
|
828
|
+
/**
|
|
829
|
+
* Additional validators merged with the built-in ones.
|
|
830
|
+
* @default []
|
|
831
|
+
*/
|
|
832
|
+
"customValidators": IFormValidator[];
|
|
833
|
+
/**
|
|
834
|
+
* Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
835
|
+
* @default ''
|
|
836
|
+
*/
|
|
837
|
+
"customWidth": string;
|
|
838
|
+
/**
|
|
839
|
+
* Disables the input. Also toggled by `formDisabledCallback` via the mixin.
|
|
840
|
+
* @default false
|
|
841
|
+
*/
|
|
842
|
+
"disabled": boolean;
|
|
843
|
+
/**
|
|
844
|
+
* When `true`, applies the error visual state.
|
|
845
|
+
* @default false
|
|
846
|
+
*/
|
|
847
|
+
"error": boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
850
|
+
* @default ''
|
|
851
|
+
*/
|
|
852
|
+
"errorMessage": string;
|
|
853
|
+
/**
|
|
854
|
+
* Helper text shown below the input when there is no error.
|
|
855
|
+
* @default ''
|
|
856
|
+
*/
|
|
857
|
+
"helperText": string;
|
|
858
|
+
/**
|
|
859
|
+
* Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
860
|
+
* @default ''
|
|
861
|
+
*/
|
|
862
|
+
"icon": string;
|
|
863
|
+
/**
|
|
864
|
+
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
865
|
+
* @default ''
|
|
866
|
+
*/
|
|
867
|
+
"info": string;
|
|
868
|
+
/**
|
|
869
|
+
* Label text rendered above the input.
|
|
870
|
+
* @default ''
|
|
871
|
+
*/
|
|
872
|
+
"label": string;
|
|
873
|
+
/**
|
|
874
|
+
* Maximum character count. `0` means no maximum.
|
|
875
|
+
* @default 0
|
|
876
|
+
*/
|
|
877
|
+
"maxLength": number;
|
|
878
|
+
/**
|
|
879
|
+
* Minimum character count. `0` means no minimum.
|
|
880
|
+
* @default 0
|
|
881
|
+
*/
|
|
882
|
+
"minLength": number;
|
|
883
|
+
/**
|
|
884
|
+
* The name submitted with the form.
|
|
885
|
+
* @default ''
|
|
886
|
+
*/
|
|
887
|
+
"name": string;
|
|
888
|
+
/**
|
|
889
|
+
* Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
890
|
+
* @default ''
|
|
891
|
+
*/
|
|
892
|
+
"pattern": string;
|
|
893
|
+
/**
|
|
894
|
+
* Native `placeholder` attribute forwarded to the inner `<input>`.
|
|
895
|
+
* @default ''
|
|
896
|
+
*/
|
|
897
|
+
"placeholder": string;
|
|
898
|
+
/**
|
|
899
|
+
* Makes the input read-only. The value is still submitted with the form.
|
|
900
|
+
* @default false
|
|
901
|
+
*/
|
|
902
|
+
"readOnly": boolean;
|
|
903
|
+
/**
|
|
904
|
+
* Returns `true` if the element's value passes all constraints; `false` otherwise. Shows the browser's native validation UI when constraints are violated.
|
|
905
|
+
*/
|
|
906
|
+
"reportValidity": () => Promise<boolean>;
|
|
907
|
+
/**
|
|
908
|
+
* Marks the input as required for form validation.
|
|
909
|
+
* @default false
|
|
910
|
+
*/
|
|
911
|
+
"required": boolean;
|
|
912
|
+
/**
|
|
913
|
+
* Sublabel rendered inside the input container, before the text area.
|
|
914
|
+
* @default ''
|
|
915
|
+
*/
|
|
916
|
+
"sublabel": string;
|
|
917
|
+
/**
|
|
918
|
+
* The input type. Use `'password'` to enable the visibility toggle.
|
|
919
|
+
* @default TEXT_FIELD_TYPES.TEXT
|
|
920
|
+
*/
|
|
921
|
+
"type": TextFieldType;
|
|
922
|
+
/**
|
|
923
|
+
* Controls when built-in validation runs: `'blur'` | `'input'` | `'submit'` | `'change'`.
|
|
924
|
+
* @default TEXT_FIELD_VALIDATION_TIMING.BLUR
|
|
925
|
+
*/
|
|
926
|
+
"validationTiming": TextFieldValidationTiming;
|
|
927
|
+
/**
|
|
928
|
+
* The current value of the input.
|
|
929
|
+
* @default ''
|
|
930
|
+
*/
|
|
931
|
+
"value": string;
|
|
932
|
+
/**
|
|
933
|
+
* Visual style of the input container. `'outline'` shows a border; `'plain'` hides it at rest.
|
|
934
|
+
* @default TEXT_FIELD_VARIANTS.OUTLINE
|
|
935
|
+
*/
|
|
936
|
+
"variant": TextFieldVariant;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Toggle/Switch component for boolean selection.
|
|
940
|
+
* @summary A toggle switch form control with label positioning support.
|
|
941
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
942
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
943
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
944
|
+
* @property {boolean} checked - Whether the toggle is on. Defaults to `false`.
|
|
945
|
+
* @property {string} placement - Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `"left"`.
|
|
946
|
+
* @property {string} label - Label displayed next to the toggle. Defaults to `""`.
|
|
947
|
+
* @property {string} helperText - Help text displayed below the toggle. Defaults to `""`.
|
|
948
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
949
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
950
|
+
* @fires bdsChange - Emitted when the user toggles the switch. Payload: `IToggleEventChange`.
|
|
951
|
+
*/
|
|
952
|
+
interface BdsToggle {
|
|
953
|
+
/**
|
|
954
|
+
* Whether the toggle is on. Defaults to `false`.
|
|
955
|
+
* @default false
|
|
956
|
+
*/
|
|
957
|
+
"checked": IToggle['checked'];
|
|
958
|
+
/**
|
|
959
|
+
* Disables the control. Defaults to `false`.
|
|
960
|
+
* @default false
|
|
961
|
+
*/
|
|
962
|
+
"disabled": IToggle['disabled'];
|
|
963
|
+
/**
|
|
964
|
+
* When `true`, applies the error visual state.
|
|
965
|
+
* @default false
|
|
966
|
+
*/
|
|
967
|
+
"error": IToggle['error'];
|
|
968
|
+
/**
|
|
969
|
+
* Message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
970
|
+
* @default ''
|
|
971
|
+
*/
|
|
972
|
+
"errorMessage": IToggle['errorMessage'];
|
|
973
|
+
/**
|
|
974
|
+
* Help text displayed below the toggle. Defaults to `""`.
|
|
975
|
+
* @default ''
|
|
976
|
+
*/
|
|
977
|
+
"helperText": IToggle['helperText'];
|
|
978
|
+
/**
|
|
979
|
+
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
980
|
+
* @default ''
|
|
981
|
+
*/
|
|
982
|
+
"info": IToggle['info'];
|
|
983
|
+
/**
|
|
984
|
+
* Label displayed next to the toggle. Defaults to `""`.
|
|
985
|
+
* @default ''
|
|
986
|
+
*/
|
|
987
|
+
"label": IToggle['label'];
|
|
988
|
+
/**
|
|
989
|
+
* Name of the form control, submitted as a key in the form data.
|
|
990
|
+
*/
|
|
991
|
+
"name": IToggle['name'];
|
|
992
|
+
/**
|
|
993
|
+
* Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `TOGGLE_PLACEMENT.LEFT`.
|
|
994
|
+
* @default TOGGLE_PLACEMENT.LEFT
|
|
995
|
+
*/
|
|
996
|
+
"placement": IToggle['placement'];
|
|
997
|
+
/**
|
|
998
|
+
* Marks the control as required for form submission. Defaults to `false`.
|
|
999
|
+
* @default false
|
|
1000
|
+
*/
|
|
1001
|
+
"required": IToggle['required'];
|
|
1002
|
+
/**
|
|
1003
|
+
* Value submitted with the form data when checked. Behaves like the `value` attribute of a native `<input type="checkbox">`. Defaults to `"on"`.
|
|
1004
|
+
* @default 'on'
|
|
1005
|
+
*/
|
|
1006
|
+
"value": IToggle['value'];
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Tooltip component that displays a short label anchored to a trigger element on hover.
|
|
1010
|
+
* @summary Displays a floating tooltip anchored to a trigger element on mouseenter/mouseleave,
|
|
1011
|
+
* with configurable placement, optional arrow, and multiline support.
|
|
1012
|
+
* @attr {boolean} disabled - When true, prevents the tooltip from being shown.
|
|
1013
|
+
* @attr {boolean} multiline - When true, allows the tooltip content to wrap across multiple lines.
|
|
1014
|
+
* @attr {Partial<FloatingTooltipProp>} floating-options - Configuration object for floating behavior.
|
|
1015
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
1016
|
+
* @csspart tooltip-content - The inner content wrapper inside the tooltip.
|
|
1017
|
+
* @cssprop data-placement - Reflects the resolved placement on the tooltip container element.
|
|
1018
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option on the tooltip container element.
|
|
1019
|
+
* @cssprop data-multiline - Reflects the multiline prop on the tooltip container element.
|
|
1020
|
+
*/
|
|
1021
|
+
interface BdsTooltip {
|
|
1022
|
+
/**
|
|
1023
|
+
* If true, disables the tooltip.
|
|
1024
|
+
* @default false
|
|
1025
|
+
*/
|
|
1026
|
+
"disabled"?: ITooltip['disabled'];
|
|
1027
|
+
/**
|
|
1028
|
+
* Override default options for the floating mixin. This can be overridden by passing a different object to the `floatingOptions` prop.
|
|
1029
|
+
* @default {}
|
|
1030
|
+
*/
|
|
1031
|
+
"floatingOptions": Partial<FloatingTooltipProp>;
|
|
1032
|
+
/**
|
|
1033
|
+
* If true, allows multiline content in the tooltip.
|
|
1034
|
+
* @default false
|
|
1035
|
+
*/
|
|
1036
|
+
"multiline"?: ITooltip['multiline'];
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
1040
|
+
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
1041
|
+
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
343
1042
|
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
344
1043
|
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
345
1044
|
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
346
1045
|
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
347
|
-
* @attr {boolean}
|
|
1046
|
+
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
348
1047
|
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
349
1048
|
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
350
1049
|
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
351
1050
|
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
352
|
-
* @attr {boolean}
|
|
1051
|
+
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
353
1052
|
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
354
1053
|
* @attr {string} html-for - The for attribute when rendered as a label
|
|
355
1054
|
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -359,12 +1058,12 @@ declare global {
|
|
|
359
1058
|
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
360
1059
|
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
361
1060
|
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
362
|
-
* @property {boolean}
|
|
1061
|
+
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
363
1062
|
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
364
1063
|
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
365
1064
|
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
366
1065
|
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
367
|
-
* @property {boolean}
|
|
1066
|
+
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
368
1067
|
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
369
1068
|
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
370
1069
|
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -374,147 +1073,1785 @@ declare global {
|
|
|
374
1073
|
* @default 'start' - Default align value
|
|
375
1074
|
* @default 'md' - Default size value
|
|
376
1075
|
* @default 'default' - Default state value
|
|
377
|
-
* @default false - Default
|
|
1076
|
+
* @default false - Default required state
|
|
378
1077
|
* @default false - Default ellipsis state
|
|
379
1078
|
* @default 1 - Default maxLines value
|
|
380
1079
|
* @default '' - Default href value
|
|
381
1080
|
* @default '' - Default target value
|
|
382
|
-
* @default false - Default
|
|
1081
|
+
* @default false - Default downloadable state
|
|
383
1082
|
* @default 'download' - Default filename value
|
|
384
1083
|
* @default '' - Default tooltipText value
|
|
385
1084
|
*/
|
|
386
|
-
interface
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
1085
|
+
interface BdsTypography {
|
|
1086
|
+
/**
|
|
1087
|
+
* Text alignment.
|
|
1088
|
+
* @default ALIGNMENT.START
|
|
1089
|
+
*/
|
|
1090
|
+
"align": ITypography['align'];
|
|
1091
|
+
/**
|
|
1092
|
+
* Additional custom CSS class.
|
|
1093
|
+
* @default ''
|
|
1094
|
+
*/
|
|
1095
|
+
"customClass": string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Enables download behavior for anchor.
|
|
1098
|
+
* @default false
|
|
1099
|
+
*/
|
|
1100
|
+
"downloadable": ITypography['downloadable'];
|
|
1101
|
+
/**
|
|
1102
|
+
* HTML tag used for rendering.
|
|
1103
|
+
* @default TAG_ELEMENT.P
|
|
1104
|
+
*/
|
|
1105
|
+
"element": ITypography['element'];
|
|
1106
|
+
/**
|
|
1107
|
+
* Enables text ellipsis.
|
|
1108
|
+
* @default false
|
|
1109
|
+
*/
|
|
1110
|
+
"ellipsis": ITypography['ellipsis'];
|
|
1111
|
+
/**
|
|
1112
|
+
* Suggested download filename.
|
|
1113
|
+
* @default FILENAME
|
|
1114
|
+
*/
|
|
1115
|
+
"filename": ITypography['filename'];
|
|
1116
|
+
/**
|
|
1117
|
+
* Link href when rendered as anchor.
|
|
1118
|
+
* @default null
|
|
1119
|
+
*/
|
|
1120
|
+
"href": ITypography['href'];
|
|
1121
|
+
/**
|
|
1122
|
+
* For attribute when rendered as a label.
|
|
1123
|
+
* @default undefined
|
|
1124
|
+
*/
|
|
1125
|
+
"htmlFor": ITypography['htmlFor'];
|
|
1126
|
+
/**
|
|
1127
|
+
* Max lines when ellipsis is enabled.
|
|
1128
|
+
* @default 1
|
|
1129
|
+
*/
|
|
1130
|
+
"maxLines": ITypography['maxLines'];
|
|
1131
|
+
/**
|
|
1132
|
+
* Marks the field as required.
|
|
1133
|
+
* @default false
|
|
1134
|
+
*/
|
|
1135
|
+
"required": ITypography['required'];
|
|
1136
|
+
/**
|
|
1137
|
+
* Typography size token.
|
|
1138
|
+
* @default SIZES.M
|
|
1139
|
+
*/
|
|
1140
|
+
"size": ITypography['size'];
|
|
1141
|
+
/**
|
|
1142
|
+
* Visual state (if supported by variant).
|
|
1143
|
+
* @default COMPONENT_STATES.DEFAULT
|
|
1144
|
+
*/
|
|
1145
|
+
"state": ITypography['state'];
|
|
1146
|
+
/**
|
|
1147
|
+
* Anchor target.
|
|
1148
|
+
* @default null
|
|
1149
|
+
*/
|
|
1150
|
+
"target": ITypography['target'];
|
|
1151
|
+
/**
|
|
1152
|
+
* Tooltip text (variant must support it).
|
|
1153
|
+
* @default ''
|
|
1154
|
+
*/
|
|
1155
|
+
"tooltipText": ITypography['tooltipText'];
|
|
1156
|
+
/**
|
|
1157
|
+
* Typography visual variant.
|
|
1158
|
+
* @default VARIANT_TYPOGRAPHY.DISPLAY
|
|
1159
|
+
*/
|
|
1160
|
+
"variant": ITypography['variant'];
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
export interface BdsBannerCustomEvent<T> extends CustomEvent<T> {
|
|
1164
|
+
detail: T;
|
|
1165
|
+
target: HTMLBdsBannerElement;
|
|
1166
|
+
}
|
|
1167
|
+
export interface BdsButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1168
|
+
detail: T;
|
|
1169
|
+
target: HTMLBdsButtonElement;
|
|
1170
|
+
}
|
|
1171
|
+
export interface BdsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1172
|
+
detail: T;
|
|
1173
|
+
target: HTMLBdsCheckboxElement;
|
|
1174
|
+
}
|
|
1175
|
+
export interface BdsDialogCustomEvent<T> extends CustomEvent<T> {
|
|
1176
|
+
detail: T;
|
|
1177
|
+
target: HTMLBdsDialogElement;
|
|
1178
|
+
}
|
|
1179
|
+
export interface BdsListMenuCustomEvent<T> extends CustomEvent<T> {
|
|
1180
|
+
detail: T;
|
|
1181
|
+
target: HTMLBdsListMenuElement;
|
|
1182
|
+
}
|
|
1183
|
+
export interface BdsListMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
1184
|
+
detail: T;
|
|
1185
|
+
target: HTMLBdsListMenuItemElement;
|
|
1186
|
+
}
|
|
1187
|
+
export interface BdsTagCustomEvent<T> extends CustomEvent<T> {
|
|
1188
|
+
detail: T;
|
|
1189
|
+
target: HTMLBdsTagElement;
|
|
1190
|
+
}
|
|
1191
|
+
export interface BdsTextFieldCustomEvent<T> extends CustomEvent<T> {
|
|
1192
|
+
detail: T;
|
|
1193
|
+
target: HTMLBdsTextFieldElement;
|
|
1194
|
+
}
|
|
1195
|
+
export interface BdsToggleCustomEvent<T> extends CustomEvent<T> {
|
|
1196
|
+
detail: T;
|
|
1197
|
+
target: HTMLBdsToggleElement;
|
|
1198
|
+
}
|
|
1199
|
+
declare global {
|
|
1200
|
+
/**
|
|
1201
|
+
* Avatar component used to display user initials or names for visual identification.
|
|
1202
|
+
* @summary Displays a circular avatar with user initials and optional name label.
|
|
1203
|
+
* Uses Boreal Design System tokens for consistent styling across platforms.
|
|
1204
|
+
* @attr {string} username - The full name used to generate initials or display as label.
|
|
1205
|
+
* @attr {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
1206
|
+
* @attr {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
1207
|
+
* @attr {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
1208
|
+
* @property {string} username - The full name used to generate initials or display as label.
|
|
1209
|
+
* @property {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
1210
|
+
* @property {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
1211
|
+
* @property {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
1212
|
+
* @cssprop --bds-avatar-background - Custom background color HEX code.
|
|
1213
|
+
* @cssprop --bds-avatar-initials-color - Custom text color HEX code.
|
|
1214
|
+
*/
|
|
1215
|
+
interface HTMLBdsAvatarElement extends Components.BdsAvatar, HTMLStencilElement {
|
|
1216
|
+
}
|
|
1217
|
+
var HTMLBdsAvatarElement: {
|
|
1218
|
+
prototype: HTMLBdsAvatarElement;
|
|
1219
|
+
new (): HTMLBdsAvatarElement;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Badge component for displaying contextual status information with optional icon support.
|
|
1223
|
+
* @summary A compact label component that communicates status or category using color-coded variants. Supports an optional icon slot and a disabled state.
|
|
1224
|
+
* @attr {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
1225
|
+
* @attr {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
1226
|
+
* @property {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
1227
|
+
* @property {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
1228
|
+
*/
|
|
1229
|
+
interface HTMLBdsBadgeElement extends Components.BdsBadge, HTMLStencilElement {
|
|
1230
|
+
}
|
|
1231
|
+
var HTMLBdsBadgeElement: {
|
|
1232
|
+
prototype: HTMLBdsBadgeElement;
|
|
1233
|
+
new (): HTMLBdsBadgeElement;
|
|
1234
|
+
};
|
|
1235
|
+
interface HTMLBdsBannerElementEventMap {
|
|
1236
|
+
"bdsClose": void;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Banner component used to display important messages with different status variants.
|
|
1240
|
+
* @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
|
|
1241
|
+
* @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
|
|
1242
|
+
* @attr {boolean} closable - When true, renders a close button that triggers the close event.
|
|
1243
|
+
* @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
|
|
1244
|
+
* @property {boolean} closable - Shows a close button that allows users to close the banner. Defaults to false.
|
|
1245
|
+
* @property {boolean} closeButtonLabel - Aria label for the close button when visible.
|
|
1246
|
+
* @fires bdsClose - Emitted when the banner is closed via the close button or `close` method.
|
|
1247
|
+
* @method close - Programmatic method to close the banner and emit the `bdsClose` event.
|
|
1248
|
+
*/
|
|
1249
|
+
interface HTMLBdsBannerElement extends Components.BdsBanner, HTMLStencilElement {
|
|
1250
|
+
addEventListener<K extends keyof HTMLBdsBannerElementEventMap>(type: K, listener: (this: HTMLBdsBannerElement, ev: BdsBannerCustomEvent<HTMLBdsBannerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1251
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1252
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1253
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1254
|
+
removeEventListener<K extends keyof HTMLBdsBannerElementEventMap>(type: K, listener: (this: HTMLBdsBannerElement, ev: BdsBannerCustomEvent<HTMLBdsBannerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1255
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1256
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1257
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1258
|
+
}
|
|
1259
|
+
var HTMLBdsBannerElement: {
|
|
1260
|
+
prototype: HTMLBdsBannerElement;
|
|
1261
|
+
new (): HTMLBdsBannerElement;
|
|
1262
|
+
};
|
|
1263
|
+
interface HTMLBdsButtonElementEventMap {
|
|
1264
|
+
"bdsClick": UIEvent;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
1268
|
+
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
1269
|
+
* @attr {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1270
|
+
* @attr {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
1271
|
+
* @attr {string} name - The name attribute for the button, useful for form submissions.
|
|
1272
|
+
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1273
|
+
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1274
|
+
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1275
|
+
* @attr {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
1276
|
+
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1277
|
+
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1278
|
+
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1279
|
+
* @property {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
1280
|
+
* @property {string} name - The name attribute for the button, useful for form submissions.
|
|
1281
|
+
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1282
|
+
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1283
|
+
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1284
|
+
* @property {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
1285
|
+
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1286
|
+
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1287
|
+
* @default 'button' - Default type value
|
|
1288
|
+
* @default 'default' - Default color value
|
|
1289
|
+
* @default 'default' - Default variant value
|
|
1290
|
+
* @default 'medium' - Default size value
|
|
1291
|
+
* @default 'default' - Default status value
|
|
1292
|
+
* @default false - Default disabled value
|
|
1293
|
+
* @default '' - Default label value
|
|
1294
|
+
* @default '' - Default name value
|
|
1295
|
+
* @default false - Default loading value
|
|
1296
|
+
* @default false - Default disclosure value
|
|
1297
|
+
*/
|
|
1298
|
+
interface HTMLBdsButtonElement extends Components.BdsButton, HTMLStencilElement {
|
|
1299
|
+
addEventListener<K extends keyof HTMLBdsButtonElementEventMap>(type: K, listener: (this: HTMLBdsButtonElement, ev: BdsButtonCustomEvent<HTMLBdsButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1300
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1301
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1302
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1303
|
+
removeEventListener<K extends keyof HTMLBdsButtonElementEventMap>(type: K, listener: (this: HTMLBdsButtonElement, ev: BdsButtonCustomEvent<HTMLBdsButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1304
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1305
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1306
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1307
|
+
}
|
|
1308
|
+
var HTMLBdsButtonElement: {
|
|
1309
|
+
prototype: HTMLBdsButtonElement;
|
|
1310
|
+
new (): HTMLBdsButtonElement;
|
|
1311
|
+
};
|
|
1312
|
+
interface HTMLBdsCheckboxElementEventMap {
|
|
1313
|
+
"valueChange": boolean;
|
|
1314
|
+
"bdsChange": CheckboxChangeDetail;
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Checkbox component for boolean selection with three visual states.
|
|
1318
|
+
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
1319
|
+
* @property {boolean} checked - Whether the checkbox is selected. Defaults to `false`.
|
|
1320
|
+
* @property {boolean} indeterminate - Whether the checkbox shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
1321
|
+
* @property {boolean} error - Shows error styling on the checkbox. Defaults to `false`.
|
|
1322
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
1323
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
1324
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model).
|
|
1325
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
1326
|
+
*/
|
|
1327
|
+
interface HTMLBdsCheckboxElement extends Components.BdsCheckbox, HTMLStencilElement {
|
|
1328
|
+
addEventListener<K extends keyof HTMLBdsCheckboxElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxElement, ev: BdsCheckboxCustomEvent<HTMLBdsCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1329
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1330
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1331
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1332
|
+
removeEventListener<K extends keyof HTMLBdsCheckboxElementEventMap>(type: K, listener: (this: HTMLBdsCheckboxElement, ev: BdsCheckboxCustomEvent<HTMLBdsCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1333
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1334
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1335
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1336
|
+
}
|
|
1337
|
+
var HTMLBdsCheckboxElement: {
|
|
1338
|
+
prototype: HTMLBdsCheckboxElement;
|
|
1339
|
+
new (): HTMLBdsCheckboxElement;
|
|
1340
|
+
};
|
|
1341
|
+
interface HTMLBdsDialogElementEventMap {
|
|
1342
|
+
"bdsOpen": void;
|
|
1343
|
+
"bdsClose": void;
|
|
1344
|
+
"bdsMaximize": void;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Modal dialog component for displaying content in an overlay.
|
|
1348
|
+
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
1349
|
+
* @attr {boolean} active - Controls dialog visibility.
|
|
1350
|
+
* @attr {boolean} prevent-close - Disables closing the dialog.
|
|
1351
|
+
* @attr {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
1352
|
+
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
1353
|
+
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
1354
|
+
* @attr {boolean} escape-close - Close on Escape key.
|
|
1355
|
+
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
1356
|
+
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
1357
|
+
* @attr {string} title-dialog - Dialog title text.
|
|
1358
|
+
* @attr {boolean} maximizable - Show maximize button.
|
|
1359
|
+
* @attr {boolean} closable - Show close button.
|
|
1360
|
+
* @attr {string} width - Custom width for the dialog.
|
|
1361
|
+
* @attr {string} height - Custom height for the dialog.
|
|
1362
|
+
* @property {boolean} active - Controls whether the dialog is open.
|
|
1363
|
+
* @property {boolean} preventClose - Disables closing the dialog.
|
|
1364
|
+
* @property {string} height - Custom height for the dialog.
|
|
1365
|
+
* @property {string} width - Custom width for the dialog.
|
|
1366
|
+
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
1367
|
+
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
1368
|
+
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
1369
|
+
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
1370
|
+
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
1371
|
+
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
1372
|
+
* @property {string} titleDialog - Title text displayed in the header.
|
|
1373
|
+
* @property {boolean} maximizable - Show maximize button.
|
|
1374
|
+
* @property {boolean} closable - Hide the close button in the header.
|
|
1375
|
+
* @fires bdsOpen - Emitted when the dialog opens.
|
|
1376
|
+
* @fires bdsClose - Emitted when the dialog closes.
|
|
1377
|
+
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
1378
|
+
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
1379
|
+
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
1380
|
+
*/
|
|
1381
|
+
interface HTMLBdsDialogElement extends Components.BdsDialog, HTMLStencilElement {
|
|
1382
|
+
addEventListener<K extends keyof HTMLBdsDialogElementEventMap>(type: K, listener: (this: HTMLBdsDialogElement, ev: BdsDialogCustomEvent<HTMLBdsDialogElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1383
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1384
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1385
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1386
|
+
removeEventListener<K extends keyof HTMLBdsDialogElementEventMap>(type: K, listener: (this: HTMLBdsDialogElement, ev: BdsDialogCustomEvent<HTMLBdsDialogElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1387
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1388
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1389
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1390
|
+
}
|
|
1391
|
+
var HTMLBdsDialogElement: {
|
|
1392
|
+
prototype: HTMLBdsDialogElement;
|
|
1393
|
+
new (): HTMLBdsDialogElement;
|
|
1394
|
+
};
|
|
1395
|
+
/**
|
|
1396
|
+
* Divider component for creating visual separators between content sections.
|
|
1397
|
+
* @summary A simple visual separator that can be oriented horizontally or vertically.
|
|
1398
|
+
* @csspart divider - A divider element that visually separates content.
|
|
1399
|
+
* @attr {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
1400
|
+
* @property {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
1401
|
+
*/
|
|
1402
|
+
interface HTMLBdsDividerElement extends Components.BdsDivider, HTMLStencilElement {
|
|
1403
|
+
}
|
|
1404
|
+
var HTMLBdsDividerElement: {
|
|
1405
|
+
prototype: HTMLBdsDividerElement;
|
|
1406
|
+
new (): HTMLBdsDividerElement;
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* Flag component used to display a country flag together with its corresponding label.
|
|
1410
|
+
* @summary Renders a flag icon based on a country identifier and optionally displays
|
|
1411
|
+
* the country name, short name, or call sign. Supports custom flag sources, different
|
|
1412
|
+
* shapes, and flag alignment on either side of the label.
|
|
1413
|
+
* @attr {boolean} label - When true, displays a textual label next to the flag.
|
|
1414
|
+
* @attr {boolean} short-name - When true, displays the abbreviated country name (ISO2/ISO3) instead of the full name.
|
|
1415
|
+
* @attr {boolean} call-sign - When true, displays the country calling code next to the label.
|
|
1416
|
+
* @attr {string} country - Country value used to resolve the flag and label.
|
|
1417
|
+
* @attr {AlignFlag} align-flag - Controls whether the flag is rendered on the left or right side.
|
|
1418
|
+
* @attr {FlagIdentifier} identifier - Defines which country field is used to resolve the value.
|
|
1419
|
+
* @attr {Shape} shape - Visual shape of the rendered flag.
|
|
1420
|
+
* @attr {ICountry[]} custom-flags - Additional custom flag definitions that can override defaults.
|
|
1421
|
+
* @property {boolean} label - Whether the country label should be displayed. Defaults to false.
|
|
1422
|
+
* @property {boolean} shortName - Whether to display the abbreviated country name. Defaults to false.
|
|
1423
|
+
* @property {boolean} callSign - Whether to display the country calling code. Defaults to false.
|
|
1424
|
+
* @property {string} country - Country value used to find the matching flag entry. Defaults to ''.
|
|
1425
|
+
* @property {AlignFlag} alignFlag - Position of the flag relative to the label. Defaults to `AlignFlag.LEFT`.
|
|
1426
|
+
* @property {FlagIdentifier} identifier - Identifier used to resolve the country value. Defaults to `FlagIdentifier.CODE`.
|
|
1427
|
+
* @property {Shape} shape - Shape variant used for the flag. Defaults to `Shape.RECTANGLE`.
|
|
1428
|
+
* @property {ICountry[]} customFlags - List of custom flag definitions merged with the default catalog. Defaults to `[]`.
|
|
1429
|
+
*/
|
|
1430
|
+
interface HTMLBdsFlagElement extends Components.BdsFlag, HTMLStencilElement {
|
|
1431
|
+
}
|
|
1432
|
+
var HTMLBdsFlagElement: {
|
|
1433
|
+
prototype: HTMLBdsFlagElement;
|
|
1434
|
+
new (): HTMLBdsFlagElement;
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* 12-column CSS Grid layout container with 5 responsive breakpoints.
|
|
1438
|
+
* Minimum browser support: Chrome/Edge (last 2), Firefox (last 2), Safari (last 2).
|
|
1439
|
+
*/
|
|
1440
|
+
interface HTMLBdsGridElement extends Components.BdsGrid, HTMLStencilElement {
|
|
1441
|
+
}
|
|
1442
|
+
var HTMLBdsGridElement: {
|
|
1443
|
+
prototype: HTMLBdsGridElement;
|
|
1444
|
+
new (): HTMLBdsGridElement;
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
1448
|
+
*/
|
|
1449
|
+
interface HTMLBdsGridItemElement extends Components.BdsGridItem, HTMLStencilElement {
|
|
1450
|
+
}
|
|
1451
|
+
var HTMLBdsGridItemElement: {
|
|
1452
|
+
prototype: HTMLBdsGridItemElement;
|
|
1453
|
+
new (): HTMLBdsGridItemElement;
|
|
1454
|
+
};
|
|
1455
|
+
interface HTMLBdsListMenuElementEventMap {
|
|
1456
|
+
"bdsChange": string | string[];
|
|
1457
|
+
"bdsClicked": HTMLElement;
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Container component that manages a list of menu items.
|
|
1461
|
+
* It handles selection logic (single/multiple) and maintains the data state.
|
|
1462
|
+
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
1463
|
+
* @attr {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
1464
|
+
* @attr {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
1465
|
+
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
1466
|
+
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
1467
|
+
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
1468
|
+
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
1469
|
+
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
1470
|
+
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
1471
|
+
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
1472
|
+
*/
|
|
1473
|
+
interface HTMLBdsListMenuElement extends Components.BdsListMenu, HTMLStencilElement {
|
|
1474
|
+
addEventListener<K extends keyof HTMLBdsListMenuElementEventMap>(type: K, listener: (this: HTMLBdsListMenuElement, ev: BdsListMenuCustomEvent<HTMLBdsListMenuElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1475
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1476
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1477
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1478
|
+
removeEventListener<K extends keyof HTMLBdsListMenuElementEventMap>(type: K, listener: (this: HTMLBdsListMenuElement, ev: BdsListMenuCustomEvent<HTMLBdsListMenuElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1479
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1480
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1481
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1482
|
+
}
|
|
1483
|
+
var HTMLBdsListMenuElement: {
|
|
1484
|
+
prototype: HTMLBdsListMenuElement;
|
|
1485
|
+
new (): HTMLBdsListMenuElement;
|
|
1486
|
+
};
|
|
1487
|
+
interface HTMLBdsListMenuItemElementEventMap {
|
|
1488
|
+
"bdsSelect": IListMenuItemEvent;
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Component representing an individual item within a list menu for navigations and selection.
|
|
1492
|
+
* @summary A menu item component that supports different variants, disabled state, and selection state, it also supports link behavior when the href prop is provided.
|
|
1493
|
+
* @attr {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
1494
|
+
* @attr {string} name - The name of the list menu item.
|
|
1495
|
+
* @attr {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
1496
|
+
* @attr {boolean} selected - If true, the menu item is styled as selected.
|
|
1497
|
+
* @attr {boolean} activeItem - If true, the menu item is styled as active.
|
|
1498
|
+
* @attr {string} value - The value associated with the menu item, emitted in events when activated.\
|
|
1499
|
+
* @attr {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
1500
|
+
* @attr {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
1501
|
+
* @attr {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
1502
|
+
* @attr {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
1503
|
+
* @property {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
1504
|
+
* @property {string} name - The name of the list menu item.
|
|
1505
|
+
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
1506
|
+
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
1507
|
+
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
1508
|
+
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
1509
|
+
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
1510
|
+
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
1511
|
+
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
1512
|
+
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
1513
|
+
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
1514
|
+
* @default '' - By default, the name of the menu item is an empty string.
|
|
1515
|
+
* @default false - By default, the menu item is not disabled and is interactive.
|
|
1516
|
+
* @default false - By default, the menu item is not selected.
|
|
1517
|
+
* @default false - By default, the menu item is not active.
|
|
1518
|
+
* @default '' - By default, the value of the menu item is an empty string.
|
|
1519
|
+
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
1520
|
+
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
1521
|
+
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
1522
|
+
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
1523
|
+
*/
|
|
1524
|
+
interface HTMLBdsListMenuItemElement extends Components.BdsListMenuItem, HTMLStencilElement {
|
|
1525
|
+
addEventListener<K extends keyof HTMLBdsListMenuItemElementEventMap>(type: K, listener: (this: HTMLBdsListMenuItemElement, ev: BdsListMenuItemCustomEvent<HTMLBdsListMenuItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1526
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1527
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1528
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1529
|
+
removeEventListener<K extends keyof HTMLBdsListMenuItemElementEventMap>(type: K, listener: (this: HTMLBdsListMenuItemElement, ev: BdsListMenuItemCustomEvent<HTMLBdsListMenuItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1530
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1531
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1532
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1533
|
+
}
|
|
1534
|
+
var HTMLBdsListMenuItemElement: {
|
|
1535
|
+
prototype: HTMLBdsListMenuItemElement;
|
|
1536
|
+
new (): HTMLBdsListMenuItemElement;
|
|
1537
|
+
};
|
|
1538
|
+
/**
|
|
1539
|
+
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
1540
|
+
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
1541
|
+
* @attr {boolean} header - When true, displays the popover header.
|
|
1542
|
+
* @attr {boolean} footer - When true, displays the popover footer.
|
|
1543
|
+
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
1544
|
+
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
1545
|
+
* @csspart popover-content - The main popover container element.
|
|
1546
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
1547
|
+
* @csspart popover-trigger - The trigger element for the popover.
|
|
1548
|
+
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
1549
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
1550
|
+
*/
|
|
1551
|
+
interface HTMLBdsPopoverElement extends Components.BdsPopover, HTMLStencilElement {
|
|
1552
|
+
}
|
|
1553
|
+
var HTMLBdsPopoverElement: {
|
|
1554
|
+
prototype: HTMLBdsPopoverElement;
|
|
1555
|
+
new (): HTMLBdsPopoverElement;
|
|
1556
|
+
};
|
|
1557
|
+
/**
|
|
1558
|
+
* Spinner component used to indicate a loading or processing state.
|
|
1559
|
+
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
1560
|
+
* @attr {"small"|"medium"|"large"} size - Size of the spinner. Defaults to "small".
|
|
1561
|
+
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
1562
|
+
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
1563
|
+
* @property {string} label - Text used as the accessible label for screen readers.
|
|
1564
|
+
*/
|
|
1565
|
+
interface HTMLBdsSpinnerElement extends Components.BdsSpinner, HTMLStencilElement {
|
|
1566
|
+
}
|
|
1567
|
+
var HTMLBdsSpinnerElement: {
|
|
1568
|
+
prototype: HTMLBdsSpinnerElement;
|
|
1569
|
+
new (): HTMLBdsSpinnerElement;
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* Status badge component for communicating the current state of an item or process.
|
|
1573
|
+
*/
|
|
1574
|
+
interface HTMLBdsStatusElement extends Components.BdsStatus, HTMLStencilElement {
|
|
1575
|
+
}
|
|
1576
|
+
var HTMLBdsStatusElement: {
|
|
1577
|
+
prototype: HTMLBdsStatusElement;
|
|
1578
|
+
new (): HTMLBdsStatusElement;
|
|
1579
|
+
};
|
|
1580
|
+
interface HTMLBdsTagElementEventMap {
|
|
1581
|
+
"bdsClose": TagEventPayload;
|
|
1582
|
+
"bdsSelect": TagEventPayload;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Tag component used to represent categories, metadata, or removable filters.
|
|
1586
|
+
* @summary Displays a label with optional leading/trailing icons and dismissal capability.
|
|
1587
|
+
* @fires bdsClose - Emitted when the tag is closed via the close button or Delete key.
|
|
1588
|
+
* @fires bdsSelect - Emitted when the tag is selected via a click or Space/Enter key.
|
|
1589
|
+
*/
|
|
1590
|
+
interface HTMLBdsTagElement extends Components.BdsTag, HTMLStencilElement {
|
|
1591
|
+
addEventListener<K extends keyof HTMLBdsTagElementEventMap>(type: K, listener: (this: HTMLBdsTagElement, ev: BdsTagCustomEvent<HTMLBdsTagElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1592
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1593
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1594
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1595
|
+
removeEventListener<K extends keyof HTMLBdsTagElementEventMap>(type: K, listener: (this: HTMLBdsTagElement, ev: BdsTagCustomEvent<HTMLBdsTagElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1596
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1597
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1598
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1599
|
+
}
|
|
1600
|
+
var HTMLBdsTagElement: {
|
|
1601
|
+
prototype: HTMLBdsTagElement;
|
|
1602
|
+
new (): HTMLBdsTagElement;
|
|
1603
|
+
};
|
|
1604
|
+
interface HTMLBdsTextFieldElementEventMap {
|
|
1605
|
+
"valueChange": string;
|
|
1606
|
+
"bdsInput": { value: string; event: InputEvent };
|
|
1607
|
+
"bdsChange": { value: string; event: Event };
|
|
1608
|
+
"bdsFocus": { event: FocusEvent };
|
|
1609
|
+
"bdsBlur": { event: FocusEvent };
|
|
1610
|
+
"bdsClear": void;
|
|
1611
|
+
"bdsValidationChange": {
|
|
1612
|
+
valid: boolean;
|
|
1613
|
+
validity: ValidityState;
|
|
1614
|
+
value: string;
|
|
1615
|
+
touched: boolean;
|
|
1616
|
+
dirty: boolean;
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* Text field component for user input with validation and form integration.
|
|
1621
|
+
* @summary Single-line text input with label, validation, password toggle, and clear action.
|
|
1622
|
+
* @attr {string} name - The name submitted with the form.
|
|
1623
|
+
* @attr {string} value - The current value of the input.
|
|
1624
|
+
* @attr {boolean} disabled - Disables the input.
|
|
1625
|
+
* @attr {boolean} required - Marks the input as required.
|
|
1626
|
+
* @attr {boolean} error - Applies the error visual state.
|
|
1627
|
+
* @attr {"text"|"password"} type - Input type.
|
|
1628
|
+
* @attr {"outline"|"plain"} variant - Visual style of the container.
|
|
1629
|
+
* @attr {boolean} readonly - Makes the input read-only. The value is still submitted with the form.
|
|
1630
|
+
* @property {string} label - Label text rendered above the input.
|
|
1631
|
+
* @property {string} sublabel - Sublabel rendered inside the input container, before the text area.
|
|
1632
|
+
* @property {string} placeholder - Native placeholder forwarded to the inner `<input>`.
|
|
1633
|
+
* @property {string} helperText - Assistive text shown below the input when there is no error.
|
|
1634
|
+
* @property {string} errorMessage - Error message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
1635
|
+
* @property {string} info - Tooltip content attached to the label.
|
|
1636
|
+
* @property {string} icon - Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
1637
|
+
* @property {boolean} clearable - Shows a clear button when the input has a value.
|
|
1638
|
+
* @property {boolean} clearOnHover - Shows a clear button that is hidden at rest and revealed on hover.
|
|
1639
|
+
* @property {boolean} readOnly - Makes the input readonly. The value is still submitted with the form.
|
|
1640
|
+
* @property {string} autocomplete - Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
1641
|
+
* @property {string} pattern - Native `pattern` attribute forwarded to the inner `<input>`.
|
|
1642
|
+
* @property {number} minLength - Minimum character count. `0` means no minimum.
|
|
1643
|
+
* @property {number} maxLength - Maximum character count. `0` means no maximum.
|
|
1644
|
+
* @property {boolean} counter - Enables the character counter in the footer. Requires `charCount`.
|
|
1645
|
+
* @property {number} charCount - Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
1646
|
+
* @property {IFormValidator[]} customValidators - Additional validators merged with the built-in ones.
|
|
1647
|
+
* @property {"blur"|"input"|"submit"|"change"} validationTiming - When built-in validation runs.
|
|
1648
|
+
* @property {string} pattern - Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
1649
|
+
* @property {string} customWidth - Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
1650
|
+
* @fires valueChange - Emitted on every value change; used for framework 2-way binding.
|
|
1651
|
+
* @fires bdsInput - Emitted on every keystroke with `{ value, event }`.
|
|
1652
|
+
* @fires bdsChange - Emitted when focus leaves after the value changed, with `{ value, event }`.
|
|
1653
|
+
* @fires bdsFocus - Emitted when the input gains focus, with `{ event }`.
|
|
1654
|
+
* @fires bdsBlur - Emitted when the input loses focus, with `{ event }`.
|
|
1655
|
+
* @fires bdsClear - Emitted when the user activates the clear button.
|
|
1656
|
+
* @fires bdsValidationChange - Emitted after each validation run with `{ valid, validity, value, touched, dirty }`.
|
|
1657
|
+
* @cssprop --bds-text-field-width - Sets a custom width for the component.
|
|
1658
|
+
*/
|
|
1659
|
+
interface HTMLBdsTextFieldElement extends Components.BdsTextField, HTMLStencilElement {
|
|
1660
|
+
addEventListener<K extends keyof HTMLBdsTextFieldElementEventMap>(type: K, listener: (this: HTMLBdsTextFieldElement, ev: BdsTextFieldCustomEvent<HTMLBdsTextFieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1661
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1662
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1663
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1664
|
+
removeEventListener<K extends keyof HTMLBdsTextFieldElementEventMap>(type: K, listener: (this: HTMLBdsTextFieldElement, ev: BdsTextFieldCustomEvent<HTMLBdsTextFieldElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1665
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1666
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1667
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1668
|
+
}
|
|
1669
|
+
var HTMLBdsTextFieldElement: {
|
|
1670
|
+
prototype: HTMLBdsTextFieldElement;
|
|
1671
|
+
new (): HTMLBdsTextFieldElement;
|
|
1672
|
+
};
|
|
1673
|
+
interface HTMLBdsToggleElementEventMap {
|
|
1674
|
+
"valueChange": boolean;
|
|
1675
|
+
"bdsChange": IToggleEventChange;
|
|
1676
|
+
}
|
|
1677
|
+
/**
|
|
1678
|
+
* Toggle/Switch component for boolean selection.
|
|
1679
|
+
* @summary A toggle switch form control with label positioning support.
|
|
1680
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
1681
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
1682
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
1683
|
+
* @property {boolean} checked - Whether the toggle is on. Defaults to `false`.
|
|
1684
|
+
* @property {string} placement - Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `"left"`.
|
|
1685
|
+
* @property {string} label - Label displayed next to the toggle. Defaults to `""`.
|
|
1686
|
+
* @property {string} helperText - Help text displayed below the toggle. Defaults to `""`.
|
|
1687
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
1688
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
1689
|
+
* @fires bdsChange - Emitted when the user toggles the switch. Payload: `IToggleEventChange`.
|
|
1690
|
+
*/
|
|
1691
|
+
interface HTMLBdsToggleElement extends Components.BdsToggle, HTMLStencilElement {
|
|
1692
|
+
addEventListener<K extends keyof HTMLBdsToggleElementEventMap>(type: K, listener: (this: HTMLBdsToggleElement, ev: BdsToggleCustomEvent<HTMLBdsToggleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1693
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1694
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1695
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1696
|
+
removeEventListener<K extends keyof HTMLBdsToggleElementEventMap>(type: K, listener: (this: HTMLBdsToggleElement, ev: BdsToggleCustomEvent<HTMLBdsToggleElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1697
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1698
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1699
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1700
|
+
}
|
|
1701
|
+
var HTMLBdsToggleElement: {
|
|
1702
|
+
prototype: HTMLBdsToggleElement;
|
|
1703
|
+
new (): HTMLBdsToggleElement;
|
|
1704
|
+
};
|
|
1705
|
+
/**
|
|
1706
|
+
* Tooltip component that displays a short label anchored to a trigger element on hover.
|
|
1707
|
+
* @summary Displays a floating tooltip anchored to a trigger element on mouseenter/mouseleave,
|
|
1708
|
+
* with configurable placement, optional arrow, and multiline support.
|
|
1709
|
+
* @attr {boolean} disabled - When true, prevents the tooltip from being shown.
|
|
1710
|
+
* @attr {boolean} multiline - When true, allows the tooltip content to wrap across multiple lines.
|
|
1711
|
+
* @attr {Partial<FloatingTooltipProp>} floating-options - Configuration object for floating behavior.
|
|
1712
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
1713
|
+
* @csspart tooltip-content - The inner content wrapper inside the tooltip.
|
|
1714
|
+
* @cssprop data-placement - Reflects the resolved placement on the tooltip container element.
|
|
1715
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option on the tooltip container element.
|
|
1716
|
+
* @cssprop data-multiline - Reflects the multiline prop on the tooltip container element.
|
|
1717
|
+
*/
|
|
1718
|
+
interface HTMLBdsTooltipElement extends Components.BdsTooltip, HTMLStencilElement {
|
|
1719
|
+
}
|
|
1720
|
+
var HTMLBdsTooltipElement: {
|
|
1721
|
+
prototype: HTMLBdsTooltipElement;
|
|
1722
|
+
new (): HTMLBdsTooltipElement;
|
|
1723
|
+
};
|
|
1724
|
+
/**
|
|
1725
|
+
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
1726
|
+
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
1727
|
+
* @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1728
|
+
* @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1729
|
+
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1730
|
+
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
1731
|
+
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1732
|
+
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1733
|
+
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1734
|
+
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
1735
|
+
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1736
|
+
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1737
|
+
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
1738
|
+
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1739
|
+
* @attr {string} html-for - The for attribute when rendered as a label
|
|
1740
|
+
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1741
|
+
* @attr {string} custom-class - Additional custom CSS class
|
|
1742
|
+
* @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
|
|
1743
|
+
* @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
|
|
1744
|
+
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
1745
|
+
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
1746
|
+
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
1747
|
+
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
1748
|
+
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
1749
|
+
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
1750
|
+
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
1751
|
+
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
1752
|
+
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
1753
|
+
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
1754
|
+
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
1755
|
+
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
1756
|
+
* @property {string} customClass - Additional custom CSS class
|
|
1757
|
+
* @default 'display' - Default variant value
|
|
1758
|
+
* @default 'p' - Default element value
|
|
1759
|
+
* @default 'start' - Default align value
|
|
1760
|
+
* @default 'md' - Default size value
|
|
1761
|
+
* @default 'default' - Default state value
|
|
1762
|
+
* @default false - Default required state
|
|
1763
|
+
* @default false - Default ellipsis state
|
|
1764
|
+
* @default 1 - Default maxLines value
|
|
1765
|
+
* @default '' - Default href value
|
|
1766
|
+
* @default '' - Default target value
|
|
1767
|
+
* @default false - Default downloadable state
|
|
1768
|
+
* @default 'download' - Default filename value
|
|
1769
|
+
* @default '' - Default tooltipText value
|
|
1770
|
+
*/
|
|
1771
|
+
interface HTMLBdsTypographyElement extends Components.BdsTypography, HTMLStencilElement {
|
|
1772
|
+
}
|
|
1773
|
+
var HTMLBdsTypographyElement: {
|
|
1774
|
+
prototype: HTMLBdsTypographyElement;
|
|
1775
|
+
new (): HTMLBdsTypographyElement;
|
|
1776
|
+
};
|
|
1777
|
+
interface HTMLElementTagNameMap {
|
|
1778
|
+
"bds-avatar": HTMLBdsAvatarElement;
|
|
1779
|
+
"bds-badge": HTMLBdsBadgeElement;
|
|
1780
|
+
"bds-banner": HTMLBdsBannerElement;
|
|
1781
|
+
"bds-button": HTMLBdsButtonElement;
|
|
1782
|
+
"bds-checkbox": HTMLBdsCheckboxElement;
|
|
1783
|
+
"bds-dialog": HTMLBdsDialogElement;
|
|
1784
|
+
"bds-divider": HTMLBdsDividerElement;
|
|
1785
|
+
"bds-flag": HTMLBdsFlagElement;
|
|
1786
|
+
"bds-grid": HTMLBdsGridElement;
|
|
1787
|
+
"bds-grid-item": HTMLBdsGridItemElement;
|
|
1788
|
+
"bds-list-menu": HTMLBdsListMenuElement;
|
|
1789
|
+
"bds-list-menu-item": HTMLBdsListMenuItemElement;
|
|
1790
|
+
"bds-popover": HTMLBdsPopoverElement;
|
|
1791
|
+
"bds-spinner": HTMLBdsSpinnerElement;
|
|
1792
|
+
"bds-status": HTMLBdsStatusElement;
|
|
1793
|
+
"bds-tag": HTMLBdsTagElement;
|
|
1794
|
+
"bds-text-field": HTMLBdsTextFieldElement;
|
|
1795
|
+
"bds-toggle": HTMLBdsToggleElement;
|
|
1796
|
+
"bds-tooltip": HTMLBdsTooltipElement;
|
|
1797
|
+
"bds-typography": HTMLBdsTypographyElement;
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
declare namespace LocalJSX {
|
|
1801
|
+
type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}` | `prop:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K | `prop:${K}`]?: never } | { [P in `prop:${K}`]: PropT } & { [P in K | `attr:${K}`]?: never };
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Avatar component used to display user initials or names for visual identification.
|
|
1805
|
+
* @summary Displays a circular avatar with user initials and optional name label.
|
|
1806
|
+
* Uses Boreal Design System tokens for consistent styling across platforms.
|
|
1807
|
+
* @attr {string} username - The full name used to generate initials or display as label.
|
|
1808
|
+
* @attr {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
1809
|
+
* @attr {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
1810
|
+
* @attr {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
1811
|
+
* @property {string} username - The full name used to generate initials or display as label.
|
|
1812
|
+
* @property {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
1813
|
+
* @property {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
1814
|
+
* @property {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
1815
|
+
* @cssprop --bds-avatar-background - Custom background color HEX code.
|
|
1816
|
+
* @cssprop --bds-avatar-initials-color - Custom text color HEX code.
|
|
1817
|
+
*/
|
|
1818
|
+
interface BdsAvatar {
|
|
1819
|
+
/**
|
|
1820
|
+
* Custom background color as hex code. If not provided, defaults to Boreal success color *
|
|
1821
|
+
* @default ''
|
|
1822
|
+
*/
|
|
1823
|
+
"background"?: IAvatar['background'];
|
|
1824
|
+
/**
|
|
1825
|
+
* Custom text color as hex code. If not provided, defaults to white *
|
|
1826
|
+
* @default ''
|
|
1827
|
+
*/
|
|
1828
|
+
"initialsColor"?: IAvatar['initialsColor'];
|
|
1829
|
+
/**
|
|
1830
|
+
* The full name used to generate initials or display as label *
|
|
1831
|
+
* @default ''
|
|
1832
|
+
*/
|
|
1833
|
+
"username"?: IAvatar['username'];
|
|
1834
|
+
/**
|
|
1835
|
+
* Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
1836
|
+
* @default 'full'
|
|
1837
|
+
*/
|
|
1838
|
+
"variant"?: IAvatar['variant'];
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Badge component for displaying contextual status information with optional icon support.
|
|
1842
|
+
* @summary A compact label component that communicates status or category using color-coded variants. Supports an optional icon slot and a disabled state.
|
|
1843
|
+
* @attr {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
1844
|
+
* @attr {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
1845
|
+
* @property {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
1846
|
+
* @property {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
1847
|
+
*/
|
|
1848
|
+
interface BdsBadge {
|
|
1849
|
+
/**
|
|
1850
|
+
* Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
1851
|
+
* @default false
|
|
1852
|
+
*/
|
|
1853
|
+
"disabled"?: IBadge['disabled'];
|
|
1854
|
+
/**
|
|
1855
|
+
* Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
1856
|
+
* @default BADGE_VARIANT.DEFAULT
|
|
1857
|
+
*/
|
|
1858
|
+
"variant"?: IBadge['variant'];
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Banner component used to display important messages with different status variants.
|
|
1862
|
+
* @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
|
|
1863
|
+
* @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
|
|
1864
|
+
* @attr {boolean} closable - When true, renders a close button that triggers the close event.
|
|
1865
|
+
* @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
|
|
1866
|
+
* @property {boolean} closable - Shows a close button that allows users to close the banner. Defaults to false.
|
|
1867
|
+
* @property {boolean} closeButtonLabel - Aria label for the close button when visible.
|
|
1868
|
+
* @fires bdsClose - Emitted when the banner is closed via the close button or `close` method.
|
|
1869
|
+
* @method close - Programmatic method to close the banner and emit the `bdsClose` event.
|
|
1870
|
+
*/
|
|
1871
|
+
interface BdsBanner {
|
|
1872
|
+
/**
|
|
1873
|
+
* Shows a close button that allows users to close the banner.
|
|
1874
|
+
* @default false
|
|
1875
|
+
*/
|
|
1876
|
+
"closable"?: boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* The aria label for the close button.
|
|
1879
|
+
* @default ""
|
|
1880
|
+
*/
|
|
1881
|
+
"closeButtonLabel"?: IBanner['closeButtonLabel'];
|
|
1882
|
+
/**
|
|
1883
|
+
* Emitted when the banner is closed via the close button or close method.
|
|
1884
|
+
*/
|
|
1885
|
+
"onBdsClose"?: (event: BdsBannerCustomEvent<void>) => void;
|
|
1886
|
+
/**
|
|
1887
|
+
* Visual style variant: 'info', 'success', 'warning', or 'danger'.
|
|
1888
|
+
* @default "info"
|
|
1889
|
+
*/
|
|
1890
|
+
"variant"?: IBanner['variant'];
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* Button component for user interactions, form submissions, supporting various styles, sizes, and states.
|
|
1894
|
+
* @summary A versatile button component that can be customized with different colors, sizes, variants and states to fit various use cases in the application.
|
|
1895
|
+
* @attr {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1896
|
+
* @attr {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
1897
|
+
* @attr {string} name - The name attribute for the button, useful for form submissions.
|
|
1898
|
+
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1899
|
+
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1900
|
+
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1901
|
+
* @attr {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
1902
|
+
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1903
|
+
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1904
|
+
* @property {string} label - The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1905
|
+
* @property {boolean} disabled - Disables the button when true, preventing user interaction and applying disabled styles.
|
|
1906
|
+
* @property {string} name - The name attribute for the button, useful for form submissions.
|
|
1907
|
+
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1908
|
+
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1909
|
+
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1910
|
+
* @property {string} size - The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
1911
|
+
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1912
|
+
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
1913
|
+
* @default 'button' - Default type value
|
|
1914
|
+
* @default 'default' - Default color value
|
|
1915
|
+
* @default 'default' - Default variant value
|
|
1916
|
+
* @default 'medium' - Default size value
|
|
1917
|
+
* @default 'default' - Default status value
|
|
1918
|
+
* @default false - Default disabled value
|
|
1919
|
+
* @default '' - Default label value
|
|
1920
|
+
* @default '' - Default name value
|
|
1921
|
+
* @default false - Default loading value
|
|
1922
|
+
* @default false - Default disclosure value
|
|
1923
|
+
*/
|
|
1924
|
+
interface BdsButton {
|
|
1925
|
+
/**
|
|
1926
|
+
* color is a string attribute. The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
1927
|
+
* @default CORE_COLORS.DEFAULT
|
|
1928
|
+
*/
|
|
1929
|
+
"color"?: IButton['color'];
|
|
1930
|
+
/**
|
|
1931
|
+
* disabled is a boolean attribute. Disables the button when true, preventing user interaction and applying disabled styles.
|
|
1932
|
+
* @default false
|
|
1933
|
+
*/
|
|
1934
|
+
"disabled"?: IButton['disabled'];
|
|
1935
|
+
/**
|
|
1936
|
+
* disclosure is a boolean attribute. Used to show a chevron down at the of the content
|
|
1937
|
+
* @default false
|
|
1938
|
+
*/
|
|
1939
|
+
"disclosure"?: IButton['disclosure'];
|
|
1940
|
+
/**
|
|
1941
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1942
|
+
*/
|
|
1943
|
+
"form"?: string;
|
|
1944
|
+
/**
|
|
1945
|
+
* The accessible name for the button, used for screen readers. It should be provided by the user for accessibility purposes.
|
|
1946
|
+
* @default ''
|
|
1947
|
+
*/
|
|
1948
|
+
"label"?: IButton['label'];
|
|
1949
|
+
/**
|
|
1950
|
+
* loading is a boolean attribute. Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
1951
|
+
* @default false
|
|
1952
|
+
*/
|
|
1953
|
+
"loading"?: IButton['loading'];
|
|
1954
|
+
/**
|
|
1955
|
+
* name is a string attribute. The name attribute for the button, useful for form submissions.
|
|
1956
|
+
* @default ''
|
|
1957
|
+
*/
|
|
1958
|
+
"name"?: IButton['name'];
|
|
1959
|
+
/**
|
|
1960
|
+
* emit event to click
|
|
1961
|
+
*/
|
|
1962
|
+
"onBdsClick"?: (event: BdsButtonCustomEvent<UIEvent>) => void;
|
|
1963
|
+
/**
|
|
1964
|
+
* size is a string attribute. The size of the button, which can be 'small', 'medium', or 'large'. Default is 'medium'.
|
|
1965
|
+
* @default BUTTON_SIZES.MEDIUM
|
|
1966
|
+
*/
|
|
1967
|
+
"size"?: IButton['size'];
|
|
1968
|
+
/**
|
|
1969
|
+
* type is a string attribute. The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
1970
|
+
* @default BUTTON_TYPES.BUTTON
|
|
1971
|
+
*/
|
|
1972
|
+
"type"?: IButton['type'];
|
|
1973
|
+
/**
|
|
1974
|
+
* variant is a string attribute. The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
1975
|
+
* @default BUTTON_VARIANTS.DEFAULT
|
|
1976
|
+
*/
|
|
1977
|
+
"variant"?: IButton['variant'];
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Checkbox component for boolean selection with three visual states.
|
|
1981
|
+
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
1982
|
+
* @property {boolean} checked - Whether the checkbox is selected. Defaults to `false`.
|
|
1983
|
+
* @property {boolean} indeterminate - Whether the checkbox shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
1984
|
+
* @property {boolean} error - Shows error styling on the checkbox. Defaults to `false`.
|
|
1985
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
1986
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
1987
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model).
|
|
1988
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
1989
|
+
*/
|
|
1990
|
+
interface BdsCheckbox {
|
|
1991
|
+
/**
|
|
1992
|
+
* Whether the checkbox is selected.
|
|
1993
|
+
* @default false
|
|
1994
|
+
*/
|
|
1995
|
+
"checked"?: boolean;
|
|
1996
|
+
/**
|
|
1997
|
+
* Disables the control.
|
|
1998
|
+
* @default false
|
|
1999
|
+
*/
|
|
2000
|
+
"disabled"?: boolean;
|
|
2001
|
+
/**
|
|
2002
|
+
* Shows error styling on the checkbox.
|
|
2003
|
+
* @default false
|
|
2004
|
+
*/
|
|
2005
|
+
"error"?: boolean;
|
|
2006
|
+
/**
|
|
2007
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
2008
|
+
*/
|
|
2009
|
+
"form"?: string;
|
|
2010
|
+
/**
|
|
2011
|
+
* Whether the checkbox shows an indeterminate ("mixed") visual state.
|
|
2012
|
+
* @default false
|
|
2013
|
+
*/
|
|
2014
|
+
"indeterminate"?: boolean;
|
|
2015
|
+
/**
|
|
2016
|
+
* Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
2017
|
+
* @default ''
|
|
2018
|
+
*/
|
|
2019
|
+
"label"?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Name of the form control, submitted as a key in the form data.
|
|
2022
|
+
*/
|
|
2023
|
+
"name": string;
|
|
2024
|
+
/**
|
|
2025
|
+
* Emitted when the user toggles the checkbox.
|
|
2026
|
+
*/
|
|
2027
|
+
"onBdsChange"?: (event: BdsCheckboxCustomEvent<CheckboxChangeDetail>) => void;
|
|
2028
|
+
/**
|
|
2029
|
+
* Emitted when the checked state changes (for 2-way binding / v-model).
|
|
2030
|
+
*/
|
|
2031
|
+
"onValueChange"?: (event: BdsCheckboxCustomEvent<boolean>) => void;
|
|
2032
|
+
/**
|
|
2033
|
+
* Marks the control as required for form submission.
|
|
2034
|
+
* @default false
|
|
2035
|
+
*/
|
|
2036
|
+
"required"?: boolean;
|
|
2037
|
+
/**
|
|
2038
|
+
* Value submitted with the form data when checked.
|
|
2039
|
+
* @default 'on'
|
|
2040
|
+
*/
|
|
2041
|
+
"value"?: string;
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Modal dialog component for displaying content in an overlay.
|
|
2045
|
+
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
2046
|
+
* @attr {boolean} active - Controls dialog visibility.
|
|
2047
|
+
* @attr {boolean} prevent-close - Disables closing the dialog.
|
|
2048
|
+
* @attr {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
2049
|
+
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
2050
|
+
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
2051
|
+
* @attr {boolean} escape-close - Close on Escape key.
|
|
2052
|
+
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
2053
|
+
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
2054
|
+
* @attr {string} title-dialog - Dialog title text.
|
|
2055
|
+
* @attr {boolean} maximizable - Show maximize button.
|
|
2056
|
+
* @attr {boolean} closable - Show close button.
|
|
2057
|
+
* @attr {string} width - Custom width for the dialog.
|
|
2058
|
+
* @attr {string} height - Custom height for the dialog.
|
|
2059
|
+
* @property {boolean} active - Controls whether the dialog is open.
|
|
2060
|
+
* @property {boolean} preventClose - Disables closing the dialog.
|
|
2061
|
+
* @property {string} height - Custom height for the dialog.
|
|
2062
|
+
* @property {string} width - Custom width for the dialog.
|
|
2063
|
+
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
2064
|
+
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
2065
|
+
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
2066
|
+
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
2067
|
+
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
2068
|
+
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
2069
|
+
* @property {string} titleDialog - Title text displayed in the header.
|
|
2070
|
+
* @property {boolean} maximizable - Show maximize button.
|
|
2071
|
+
* @property {boolean} closable - Hide the close button in the header.
|
|
2072
|
+
* @fires bdsOpen - Emitted when the dialog opens.
|
|
2073
|
+
* @fires bdsClose - Emitted when the dialog closes.
|
|
2074
|
+
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
2075
|
+
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
2076
|
+
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
2077
|
+
*/
|
|
2078
|
+
interface BdsDialog {
|
|
2079
|
+
/**
|
|
2080
|
+
* Controls whether the dialog is open.
|
|
2081
|
+
* @default false
|
|
2082
|
+
*/
|
|
2083
|
+
"active"?: IDialog['active'];
|
|
2084
|
+
/**
|
|
2085
|
+
* Close dialog when clicking the backdrop.
|
|
2086
|
+
* @default false
|
|
2087
|
+
*/
|
|
2088
|
+
"backdropClose"?: IDialog['backdropClose'];
|
|
2089
|
+
/**
|
|
2090
|
+
* Hide the close button in the header.
|
|
2091
|
+
* @default false
|
|
2092
|
+
*/
|
|
2093
|
+
"closable"?: IDialog['closable'];
|
|
2094
|
+
/**
|
|
2095
|
+
* Content padding: 'default' or 'none'.
|
|
2096
|
+
* @default DIALOG_CONTENT_PADDING.DEFAULT
|
|
2097
|
+
*/
|
|
2098
|
+
"contentPadding"?: IDialog['contentPadding'];
|
|
2099
|
+
/**
|
|
2100
|
+
* Close dialog when pressing Escape.
|
|
2101
|
+
* @default false
|
|
2102
|
+
*/
|
|
2103
|
+
"escapeClose"?: IDialog['escapeClose'];
|
|
2104
|
+
/**
|
|
2105
|
+
* Dialog custom height
|
|
2106
|
+
* @default ''
|
|
2107
|
+
*/
|
|
2108
|
+
"height"?: IDialog['height'];
|
|
2109
|
+
/**
|
|
2110
|
+
* Layout type: 'default', 'headerless', or 'footerless'.
|
|
2111
|
+
* @default DIALOG_LAYOUT.DEFAULT
|
|
2112
|
+
*/
|
|
2113
|
+
"layout"?: IDialog['layout'];
|
|
2114
|
+
/**
|
|
2115
|
+
* Show maximize button to toggle full-screen.
|
|
2116
|
+
* @default false
|
|
2117
|
+
*/
|
|
2118
|
+
"maximizable"?: IDialog['maximizable'];
|
|
2119
|
+
/**
|
|
2120
|
+
* Emitted when the dialog closes.
|
|
2121
|
+
*/
|
|
2122
|
+
"onBdsClose"?: (event: BdsDialogCustomEvent<void>) => void;
|
|
2123
|
+
/**
|
|
2124
|
+
* Emitted when the dialog maximize button is clicked.
|
|
2125
|
+
*/
|
|
2126
|
+
"onBdsMaximize"?: (event: BdsDialogCustomEvent<void>) => void;
|
|
2127
|
+
/**
|
|
2128
|
+
* Emitted when the dialog opens.
|
|
2129
|
+
*/
|
|
2130
|
+
"onBdsOpen"?: (event: BdsDialogCustomEvent<void>) => void;
|
|
2131
|
+
/**
|
|
2132
|
+
* Controls whether the dialog is closable.
|
|
2133
|
+
* @default false
|
|
2134
|
+
*/
|
|
2135
|
+
"preventClose"?: IDialog['preventClose'];
|
|
2136
|
+
/**
|
|
2137
|
+
* Dialog size: 'small', 'medium', 'large', or 'full'.
|
|
2138
|
+
* @default DIALOG_SIZES.MEDIUM
|
|
2139
|
+
*/
|
|
2140
|
+
"size"?: IDialog['size'];
|
|
2141
|
+
/**
|
|
2142
|
+
* Title text displayed in the header.
|
|
2143
|
+
* @default ''
|
|
2144
|
+
*/
|
|
2145
|
+
"titleDialog"?: IDialog['titleDialog'];
|
|
2146
|
+
/**
|
|
2147
|
+
* Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
2148
|
+
* @default DIALOG_VARIANT.DEFAULT
|
|
2149
|
+
*/
|
|
2150
|
+
"variant"?: IDialog['variant'];
|
|
2151
|
+
/**
|
|
2152
|
+
* Dialog custom width
|
|
2153
|
+
* @default ''
|
|
2154
|
+
*/
|
|
2155
|
+
"width"?: IDialog['width'];
|
|
2156
|
+
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Divider component for creating visual separators between content sections.
|
|
2159
|
+
* @summary A simple visual separator that can be oriented horizontally or vertically.
|
|
2160
|
+
* @csspart divider - A divider element that visually separates content.
|
|
2161
|
+
* @attr {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
2162
|
+
* @property {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
2163
|
+
*/
|
|
2164
|
+
interface BdsDivider {
|
|
2165
|
+
/**
|
|
2166
|
+
* The orientation of the divider. Allowed values: horizontal | vertical
|
|
2167
|
+
* @default DIVIDER_ORIENTATIONS.HORIZONTAL
|
|
2168
|
+
*/
|
|
2169
|
+
"orientation"?: IDivider['orientation'];
|
|
2170
|
+
}
|
|
2171
|
+
/**
|
|
2172
|
+
* Flag component used to display a country flag together with its corresponding label.
|
|
2173
|
+
* @summary Renders a flag icon based on a country identifier and optionally displays
|
|
2174
|
+
* the country name, short name, or call sign. Supports custom flag sources, different
|
|
2175
|
+
* shapes, and flag alignment on either side of the label.
|
|
2176
|
+
* @attr {boolean} label - When true, displays a textual label next to the flag.
|
|
2177
|
+
* @attr {boolean} short-name - When true, displays the abbreviated country name (ISO2/ISO3) instead of the full name.
|
|
2178
|
+
* @attr {boolean} call-sign - When true, displays the country calling code next to the label.
|
|
2179
|
+
* @attr {string} country - Country value used to resolve the flag and label.
|
|
2180
|
+
* @attr {AlignFlag} align-flag - Controls whether the flag is rendered on the left or right side.
|
|
2181
|
+
* @attr {FlagIdentifier} identifier - Defines which country field is used to resolve the value.
|
|
2182
|
+
* @attr {Shape} shape - Visual shape of the rendered flag.
|
|
2183
|
+
* @attr {ICountry[]} custom-flags - Additional custom flag definitions that can override defaults.
|
|
2184
|
+
* @property {boolean} label - Whether the country label should be displayed. Defaults to false.
|
|
2185
|
+
* @property {boolean} shortName - Whether to display the abbreviated country name. Defaults to false.
|
|
2186
|
+
* @property {boolean} callSign - Whether to display the country calling code. Defaults to false.
|
|
2187
|
+
* @property {string} country - Country value used to find the matching flag entry. Defaults to ''.
|
|
2188
|
+
* @property {AlignFlag} alignFlag - Position of the flag relative to the label. Defaults to `AlignFlag.LEFT`.
|
|
2189
|
+
* @property {FlagIdentifier} identifier - Identifier used to resolve the country value. Defaults to `FlagIdentifier.CODE`.
|
|
2190
|
+
* @property {Shape} shape - Shape variant used for the flag. Defaults to `Shape.RECTANGLE`.
|
|
2191
|
+
* @property {ICountry[]} customFlags - List of custom flag definitions merged with the default catalog. Defaults to `[]`.
|
|
2192
|
+
*/
|
|
2193
|
+
interface BdsFlag {
|
|
2194
|
+
/**
|
|
2195
|
+
* Determines whether the flag is displayed on the left or right side of the label.
|
|
2196
|
+
* @default AlignFlag.LEFT
|
|
2197
|
+
*/
|
|
2198
|
+
"alignFlag"?: IFlag['alignFlag'];
|
|
2199
|
+
/**
|
|
2200
|
+
* Whether the country calling code should be displayed next to the label.
|
|
2201
|
+
* @default false
|
|
2202
|
+
*/
|
|
2203
|
+
"callSign"?: IFlag['callSign'];
|
|
2204
|
+
/**
|
|
2205
|
+
* Country value used to resolve the matching flag entry. The expected value depends on the configured `identifier`.
|
|
2206
|
+
* @default ''
|
|
2207
|
+
*/
|
|
2208
|
+
"country"?: IFlag['country'];
|
|
2209
|
+
/**
|
|
2210
|
+
* Custom flag definitions merged with the default country catalog. Custom entries can override default asset sources when the same `iso2` is used.
|
|
2211
|
+
* @default []
|
|
2212
|
+
*/
|
|
2213
|
+
"customFlags"?: IFlag['customFlags'];
|
|
2214
|
+
/**
|
|
2215
|
+
* Defines which field should be used to identify the country. For example, code, iso2, or iso3.
|
|
2216
|
+
* @default FlagIdentifier.CODE
|
|
2217
|
+
*/
|
|
2218
|
+
"identifier"?: IFlag['identifier'];
|
|
2219
|
+
/**
|
|
2220
|
+
* Whether the country name label should be displayed next to the flag.
|
|
2221
|
+
* @default false
|
|
2222
|
+
*/
|
|
2223
|
+
"label"?: IFlag['label'];
|
|
2224
|
+
/**
|
|
2225
|
+
* Visual shape used to render the flag.
|
|
2226
|
+
* @default Shape.RECTANGLE
|
|
2227
|
+
*/
|
|
2228
|
+
"shape"?: IFlag['shape'];
|
|
2229
|
+
/**
|
|
2230
|
+
* Whether the abbreviated country name (ISO2/ISO3) should be displayed instead of the full name.
|
|
2231
|
+
* @default false
|
|
2232
|
+
*/
|
|
2233
|
+
"shortName"?: IFlag['shortName'];
|
|
2234
|
+
}
|
|
2235
|
+
/**
|
|
2236
|
+
* 12-column CSS Grid layout container with 5 responsive breakpoints.
|
|
2237
|
+
* Minimum browser support: Chrome/Edge (last 2), Firefox (last 2), Safari (last 2).
|
|
2238
|
+
*/
|
|
2239
|
+
interface BdsGrid {
|
|
2240
|
+
/**
|
|
2241
|
+
* `'fluid'` fills full width; `'fixed'` caps the column area at 960px and centres the container.
|
|
2242
|
+
* @default GRID_LAYOUT.FLUID
|
|
2243
|
+
*/
|
|
2244
|
+
"layout"?: IGrid['layout'];
|
|
2245
|
+
/**
|
|
2246
|
+
* Overrides the row gap independently of the column gutter.
|
|
2247
|
+
*/
|
|
2248
|
+
"rowGap"?: IGrid['rowGap'];
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
2252
|
+
*/
|
|
2253
|
+
interface BdsGridItem {
|
|
2254
|
+
/**
|
|
2255
|
+
* Column span at all breakpoints (fallback). `'full'` spans all columns (`grid-column: 1 / -1`).
|
|
2256
|
+
* @default GRID_ITEM_COL_SPAN.DEFAULT
|
|
2257
|
+
*/
|
|
2258
|
+
"colSpan"?: IGridItem['colSpan'];
|
|
2259
|
+
/**
|
|
2260
|
+
* Override col-span at the `2xl` breakpoint (≥1344px).
|
|
2261
|
+
*/
|
|
2262
|
+
"colSpan2xl"?: IGridItem['colSpan2xl'];
|
|
2263
|
+
/**
|
|
2264
|
+
* Override col-span at the `lg` breakpoint (≥960px).
|
|
2265
|
+
*/
|
|
2266
|
+
"colSpanLg"?: IGridItem['colSpanLg'];
|
|
2267
|
+
/**
|
|
2268
|
+
* Override col-span at the `md` breakpoint (≥769px).
|
|
2269
|
+
*/
|
|
2270
|
+
"colSpanMd"?: IGridItem['colSpanMd'];
|
|
2271
|
+
/**
|
|
2272
|
+
* Override col-span at the `sm` breakpoint (≥320px).
|
|
2273
|
+
*/
|
|
2274
|
+
"colSpanSm"?: IGridItem['colSpanSm'];
|
|
2275
|
+
/**
|
|
2276
|
+
* Override col-span at the `xl` breakpoint (≥1152px).
|
|
2277
|
+
*/
|
|
2278
|
+
"colSpanXl"?: IGridItem['colSpanXl'];
|
|
2279
|
+
/**
|
|
2280
|
+
* Column offset: shifts the item right by N columns (0–11).
|
|
2281
|
+
* @default 0
|
|
2282
|
+
*/
|
|
2283
|
+
"offset"?: IGridItem['offset'];
|
|
2284
|
+
/**
|
|
2285
|
+
* Row span. `'full'` maps to `grid-row: 1 / -1`.
|
|
2286
|
+
*/
|
|
2287
|
+
"rowSpan"?: IGridItem['rowSpan'];
|
|
2288
|
+
}
|
|
2289
|
+
/**
|
|
2290
|
+
* Container component that manages a list of menu items.
|
|
2291
|
+
* It handles selection logic (single/multiple) and maintains the data state.
|
|
2292
|
+
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
2293
|
+
* @attr {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
2294
|
+
* @attr {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2295
|
+
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
2296
|
+
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2297
|
+
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
2298
|
+
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
2299
|
+
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
2300
|
+
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
2301
|
+
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
2302
|
+
*/
|
|
2303
|
+
interface BdsListMenu {
|
|
2304
|
+
/**
|
|
2305
|
+
* Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
2306
|
+
* @default 'menu'
|
|
2307
|
+
*/
|
|
2308
|
+
"menuRole"?: 'menu' | 'listbox';
|
|
2309
|
+
/**
|
|
2310
|
+
* If true, allows multiple items to be selected. Default is false (single selection).
|
|
2311
|
+
* @default false
|
|
2312
|
+
*/
|
|
2313
|
+
"multiple"?: boolean;
|
|
2314
|
+
/**
|
|
2315
|
+
* Emitted when the selection changes, providing the current selected value(s).
|
|
2316
|
+
*/
|
|
2317
|
+
"onBdsChange"?: (event: BdsListMenuCustomEvent<string | string[]>) => void;
|
|
2318
|
+
/**
|
|
2319
|
+
* Emitted when the selection changes, providing the current selected value(s).
|
|
2320
|
+
*/
|
|
2321
|
+
"onBdsClicked"?: (event: BdsListMenuCustomEvent<HTMLElement>) => void;
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* Component representing an individual item within a list menu for navigations and selection.
|
|
2325
|
+
* @summary A menu item component that supports different variants, disabled state, and selection state, it also supports link behavior when the href prop is provided.
|
|
2326
|
+
* @attr {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
2327
|
+
* @attr {string} name - The name of the list menu item.
|
|
2328
|
+
* @attr {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
2329
|
+
* @attr {boolean} selected - If true, the menu item is styled as selected.
|
|
2330
|
+
* @attr {boolean} activeItem - If true, the menu item is styled as active.
|
|
2331
|
+
* @attr {string} value - The value associated with the menu item, emitted in events when activated.\
|
|
2332
|
+
* @attr {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
2333
|
+
* @attr {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
2334
|
+
* @attr {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
2335
|
+
* @attr {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
2336
|
+
* @property {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
2337
|
+
* @property {string} name - The name of the list menu item.
|
|
2338
|
+
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
2339
|
+
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
2340
|
+
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
2341
|
+
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
2342
|
+
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
2343
|
+
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
2344
|
+
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
2345
|
+
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
2346
|
+
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
2347
|
+
* @default '' - By default, the name of the menu item is an empty string.
|
|
2348
|
+
* @default false - By default, the menu item is not disabled and is interactive.
|
|
2349
|
+
* @default false - By default, the menu item is not selected.
|
|
2350
|
+
* @default false - By default, the menu item is not active.
|
|
2351
|
+
* @default '' - By default, the value of the menu item is an empty string.
|
|
2352
|
+
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
2353
|
+
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
2354
|
+
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
2355
|
+
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
2356
|
+
*/
|
|
2357
|
+
interface BdsListMenuItem {
|
|
2358
|
+
/**
|
|
2359
|
+
* Active state item
|
|
2360
|
+
* @default false
|
|
2361
|
+
*/
|
|
2362
|
+
"activeItem"?: IListMenuItem['activeItem'];
|
|
2363
|
+
/**
|
|
2364
|
+
* Disabled state item
|
|
2365
|
+
* @default false
|
|
2366
|
+
*/
|
|
2367
|
+
"disabled"?: IListMenuItem['disabled'];
|
|
2368
|
+
/**
|
|
2369
|
+
* Makes the link downloadable if true
|
|
2370
|
+
* @default ''
|
|
2371
|
+
*/
|
|
2372
|
+
"download"?: IListMenuItem['download'];
|
|
2373
|
+
/**
|
|
2374
|
+
* Link behavior props
|
|
2375
|
+
* @default ''
|
|
2376
|
+
*/
|
|
2377
|
+
"href"?: IListMenuItem['href'];
|
|
2378
|
+
/**
|
|
2379
|
+
* The name of the list menu item
|
|
2380
|
+
* @default ''
|
|
2381
|
+
*/
|
|
2382
|
+
"name"?: IListMenuItem['name'];
|
|
2383
|
+
/**
|
|
2384
|
+
* Opens the link in a new tab if true
|
|
2385
|
+
* @default false
|
|
2386
|
+
*/
|
|
2387
|
+
"newTab"?: IListMenuItem['newTab'];
|
|
2388
|
+
/**
|
|
2389
|
+
* Event handler for activation
|
|
2390
|
+
*/
|
|
2391
|
+
"onBdsSelect"?: (event: BdsListMenuItemCustomEvent<IListMenuItemEvent>) => void;
|
|
2392
|
+
/**
|
|
2393
|
+
* Selected item state
|
|
2394
|
+
* @default false
|
|
2395
|
+
*/
|
|
2396
|
+
"selected"?: IListMenuItem['selected'];
|
|
2397
|
+
/**
|
|
2398
|
+
* Value associated with the menu item
|
|
2399
|
+
* @default ''
|
|
2400
|
+
*/
|
|
2401
|
+
"value"?: IListMenuItem['value'];
|
|
2402
|
+
/**
|
|
2403
|
+
* Defines the visual style of the list menu item. - 'button': A standard clickable item. - 'label': A non-interactive label, typically used for grouping items.
|
|
2404
|
+
* @default LIST_MENU_ITEM_VARIANTS.BUTTON
|
|
2405
|
+
*/
|
|
2406
|
+
"variant"?: IListMenuItem['variant'];
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
2410
|
+
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
2411
|
+
* @attr {boolean} header - When true, displays the popover header.
|
|
2412
|
+
* @attr {boolean} footer - When true, displays the popover footer.
|
|
2413
|
+
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
2414
|
+
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
2415
|
+
* @csspart popover-content - The main popover container element.
|
|
2416
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
2417
|
+
* @csspart popover-trigger - The trigger element for the popover.
|
|
2418
|
+
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
2419
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
2420
|
+
*/
|
|
2421
|
+
interface BdsPopover {
|
|
2422
|
+
/**
|
|
2423
|
+
* If true, displays a close button inside the header. Requires `header` to be true.
|
|
2424
|
+
* @default false
|
|
2425
|
+
*/
|
|
2426
|
+
"closable"?: boolean;
|
|
2427
|
+
/**
|
|
2428
|
+
* If true, disables the popover.
|
|
2429
|
+
* @default false
|
|
2430
|
+
*/
|
|
2431
|
+
"disabled"?: IPopover['disabled'];
|
|
2432
|
+
/**
|
|
2433
|
+
* Override default options for the floating mixin. This can be overridden by passing a different object to the `floatingOptions` prop.
|
|
2434
|
+
* @default {}
|
|
2435
|
+
*/
|
|
2436
|
+
"floatingOptions"?: IPopover['floatingOptions'];
|
|
2437
|
+
/**
|
|
2438
|
+
* If true, displays the footer section with helper and button slots.
|
|
2439
|
+
* @default false
|
|
2440
|
+
*/
|
|
2441
|
+
"footer"?: boolean;
|
|
2442
|
+
/**
|
|
2443
|
+
* If true, displays the header section with icon and title slots.
|
|
2444
|
+
* @default false
|
|
2445
|
+
*/
|
|
2446
|
+
"header"?: boolean;
|
|
2447
|
+
/**
|
|
2448
|
+
* Width of the popover content. - number: width in pixels (e.g. 320 → "320px") - 'full': 100% of the trigger/parent width - 'auto': fits the content
|
|
2449
|
+
* @default 320
|
|
2450
|
+
*/
|
|
2451
|
+
"width"?: IPopover['width'];
|
|
2452
|
+
}
|
|
2453
|
+
/**
|
|
2454
|
+
* Spinner component used to indicate a loading or processing state.
|
|
2455
|
+
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
2456
|
+
* @attr {"small"|"medium"|"large"} size - Size of the spinner. Defaults to "small".
|
|
2457
|
+
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
2458
|
+
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
2459
|
+
* @property {string} label - Text used as the accessible label for screen readers.
|
|
2460
|
+
*/
|
|
2461
|
+
interface BdsSpinner {
|
|
2462
|
+
/**
|
|
2463
|
+
* Accessible label announced by screen readers to describe the loading state.
|
|
2464
|
+
* @default "Loading"
|
|
2465
|
+
*/
|
|
2466
|
+
"label"?: ISpinner['label'];
|
|
2467
|
+
/**
|
|
2468
|
+
* Controls the visual size of the spinner.
|
|
2469
|
+
* @default "small"
|
|
2470
|
+
*/
|
|
2471
|
+
"size"?: ISpinner['size'];
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2474
|
+
* Status badge component for communicating the current state of an item or process.
|
|
2475
|
+
*/
|
|
2476
|
+
interface BdsStatus {
|
|
2477
|
+
/**
|
|
2478
|
+
* indicator is a string attribute. Controls the type of indicator rendered before the slotted label. An invalid value falls back to `"none"` and a warning is set on the host element.
|
|
2479
|
+
* @default INDICATOR_TYPES.NONE
|
|
2480
|
+
*/
|
|
2481
|
+
"indicator"?: IStatus['indicator'];
|
|
2482
|
+
/**
|
|
2483
|
+
* state is a string attribute. Controls the visual state variant of the status badge. Determines the background, accent, and text colors applied to the element. An invalid value falls back to `"neutral"` and a warning is set on the host element.
|
|
2484
|
+
* @default PROCESS_STATUS.NEUTRAL
|
|
2485
|
+
*/
|
|
2486
|
+
"state"?: IStatus['state'];
|
|
396
2487
|
}
|
|
397
|
-
}
|
|
398
|
-
declare namespace LocalJSX {
|
|
399
2488
|
/**
|
|
400
|
-
*
|
|
401
|
-
* @summary Displays a
|
|
402
|
-
* @
|
|
403
|
-
* @
|
|
404
|
-
* @attr {string} idComponent - Unique identifier for the banner element.
|
|
405
|
-
* @property {string} idComponent - Unique identifier for the banner element.
|
|
406
|
-
* @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
|
|
407
|
-
* @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
|
|
408
|
-
* @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
|
|
409
|
-
* @method closeBanner - Programmatic method to close the banner and emit the `close` event.
|
|
2489
|
+
* Tag component used to represent categories, metadata, or removable filters.
|
|
2490
|
+
* @summary Displays a label with optional leading/trailing icons and dismissal capability.
|
|
2491
|
+
* @fires bdsClose - Emitted when the tag is closed via the close button or Delete key.
|
|
2492
|
+
* @fires bdsSelect - Emitted when the tag is selected via a click or Space/Enter key.
|
|
410
2493
|
*/
|
|
411
|
-
interface
|
|
2494
|
+
interface BdsTag {
|
|
2495
|
+
/**
|
|
2496
|
+
* Aria label for the close button when visible.
|
|
2497
|
+
* @default 'Close tag'
|
|
2498
|
+
*/
|
|
2499
|
+
"closeButtonLabel"?: ITag['closeButtonLabel'];
|
|
412
2500
|
/**
|
|
413
|
-
*
|
|
2501
|
+
* Visual color variant: 'gray', 'cyan', 'cobalt', 'teal', 'lime', 'orange', 'rose', or 'purple'.
|
|
2502
|
+
* @default "gray"
|
|
2503
|
+
*/
|
|
2504
|
+
"color"?: ITag['color'];
|
|
2505
|
+
/**
|
|
2506
|
+
* Disables interaction with the tag. Reduces opacity and prevents interactions.
|
|
414
2507
|
* @default false
|
|
415
2508
|
*/
|
|
416
|
-
"
|
|
2509
|
+
"disabled"?: ITag['disabled'];
|
|
417
2510
|
/**
|
|
418
|
-
*
|
|
419
|
-
* @default
|
|
2511
|
+
* Whether the tag is selectable or not.
|
|
2512
|
+
* @default false
|
|
420
2513
|
*/
|
|
421
|
-
"
|
|
2514
|
+
"multiselect"?: ITag['multiselect'];
|
|
422
2515
|
/**
|
|
423
|
-
* Emitted when the
|
|
2516
|
+
* Emitted when the tag is closed via the close button or Delete key.
|
|
424
2517
|
*/
|
|
425
|
-
"
|
|
2518
|
+
"onBdsClose"?: (event: BdsTagCustomEvent<TagEventPayload>) => void;
|
|
426
2519
|
/**
|
|
427
|
-
*
|
|
428
|
-
* @default "info"
|
|
2520
|
+
* Emitted when the tag is selected via a click or Space/Enter key.
|
|
429
2521
|
*/
|
|
430
|
-
"
|
|
2522
|
+
"onBdsSelect"?: (event: BdsTagCustomEvent<TagEventPayload>) => void;
|
|
2523
|
+
/**
|
|
2524
|
+
* Hides the close button that allows users to dismiss the tag.
|
|
2525
|
+
* @default false
|
|
2526
|
+
*/
|
|
2527
|
+
"readonly"?: ITag['readonly'];
|
|
2528
|
+
/**
|
|
2529
|
+
* Whether the tag is selected or not.
|
|
2530
|
+
* @default false
|
|
2531
|
+
*/
|
|
2532
|
+
"selected"?: ITag['selected'];
|
|
431
2533
|
}
|
|
432
2534
|
/**
|
|
433
|
-
*
|
|
434
|
-
* @summary
|
|
435
|
-
* @attr {string}
|
|
436
|
-
* @attr {
|
|
437
|
-
* @attr {
|
|
438
|
-
* @attr {
|
|
439
|
-
* @attr {
|
|
440
|
-
* @attr {
|
|
441
|
-
* @attr {
|
|
442
|
-
* @attr {boolean}
|
|
443
|
-
* @
|
|
444
|
-
* @property {string}
|
|
445
|
-
* @property {
|
|
446
|
-
* @property {string}
|
|
447
|
-
* @property {string}
|
|
448
|
-
* @property {string}
|
|
449
|
-
* @property {string}
|
|
450
|
-
* @property {
|
|
451
|
-
* @property {boolean}
|
|
452
|
-
* @property {boolean}
|
|
453
|
-
* @
|
|
454
|
-
* @
|
|
455
|
-
* @
|
|
456
|
-
* @
|
|
457
|
-
* @
|
|
458
|
-
* @
|
|
459
|
-
* @
|
|
460
|
-
* @
|
|
461
|
-
* @
|
|
462
|
-
* @
|
|
2535
|
+
* Text field component for user input with validation and form integration.
|
|
2536
|
+
* @summary Single-line text input with label, validation, password toggle, and clear action.
|
|
2537
|
+
* @attr {string} name - The name submitted with the form.
|
|
2538
|
+
* @attr {string} value - The current value of the input.
|
|
2539
|
+
* @attr {boolean} disabled - Disables the input.
|
|
2540
|
+
* @attr {boolean} required - Marks the input as required.
|
|
2541
|
+
* @attr {boolean} error - Applies the error visual state.
|
|
2542
|
+
* @attr {"text"|"password"} type - Input type.
|
|
2543
|
+
* @attr {"outline"|"plain"} variant - Visual style of the container.
|
|
2544
|
+
* @attr {boolean} readonly - Makes the input read-only. The value is still submitted with the form.
|
|
2545
|
+
* @property {string} label - Label text rendered above the input.
|
|
2546
|
+
* @property {string} sublabel - Sublabel rendered inside the input container, before the text area.
|
|
2547
|
+
* @property {string} placeholder - Native placeholder forwarded to the inner `<input>`.
|
|
2548
|
+
* @property {string} helperText - Assistive text shown below the input when there is no error.
|
|
2549
|
+
* @property {string} errorMessage - Error message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
2550
|
+
* @property {string} info - Tooltip content attached to the label.
|
|
2551
|
+
* @property {string} icon - Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
2552
|
+
* @property {boolean} clearable - Shows a clear button when the input has a value.
|
|
2553
|
+
* @property {boolean} clearOnHover - Shows a clear button that is hidden at rest and revealed on hover.
|
|
2554
|
+
* @property {boolean} readOnly - Makes the input readonly. The value is still submitted with the form.
|
|
2555
|
+
* @property {string} autocomplete - Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
2556
|
+
* @property {string} pattern - Native `pattern` attribute forwarded to the inner `<input>`.
|
|
2557
|
+
* @property {number} minLength - Minimum character count. `0` means no minimum.
|
|
2558
|
+
* @property {number} maxLength - Maximum character count. `0` means no maximum.
|
|
2559
|
+
* @property {boolean} counter - Enables the character counter in the footer. Requires `charCount`.
|
|
2560
|
+
* @property {number} charCount - Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
2561
|
+
* @property {IFormValidator[]} customValidators - Additional validators merged with the built-in ones.
|
|
2562
|
+
* @property {"blur"|"input"|"submit"|"change"} validationTiming - When built-in validation runs.
|
|
2563
|
+
* @property {string} pattern - Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
2564
|
+
* @property {string} customWidth - Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
2565
|
+
* @fires valueChange - Emitted on every value change; used for framework 2-way binding.
|
|
2566
|
+
* @fires bdsInput - Emitted on every keystroke with `{ value, event }`.
|
|
2567
|
+
* @fires bdsChange - Emitted when focus leaves after the value changed, with `{ value, event }`.
|
|
2568
|
+
* @fires bdsFocus - Emitted when the input gains focus, with `{ event }`.
|
|
2569
|
+
* @fires bdsBlur - Emitted when the input loses focus, with `{ event }`.
|
|
2570
|
+
* @fires bdsClear - Emitted when the user activates the clear button.
|
|
2571
|
+
* @fires bdsValidationChange - Emitted after each validation run with `{ valid, validity, value, touched, dirty }`.
|
|
2572
|
+
* @cssprop --bds-text-field-width - Sets a custom width for the component.
|
|
463
2573
|
*/
|
|
464
|
-
interface
|
|
2574
|
+
interface BdsTextField {
|
|
465
2575
|
/**
|
|
466
|
-
*
|
|
467
|
-
* @default
|
|
2576
|
+
* Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
2577
|
+
* @default 'off'
|
|
468
2578
|
*/
|
|
469
|
-
"
|
|
2579
|
+
"autocomplete"?: string;
|
|
470
2580
|
/**
|
|
471
|
-
*
|
|
2581
|
+
* Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
2582
|
+
* @default 0
|
|
2583
|
+
*/
|
|
2584
|
+
"charCount"?: number;
|
|
2585
|
+
/**
|
|
2586
|
+
* Shows a clear button that is hidden at rest and revealed when the user hovers over the field.
|
|
472
2587
|
* @default false
|
|
473
2588
|
*/
|
|
474
|
-
"
|
|
2589
|
+
"clearOnHover"?: boolean;
|
|
475
2590
|
/**
|
|
476
|
-
*
|
|
2591
|
+
* Shows a clear button when the input has a value.
|
|
477
2592
|
* @default false
|
|
478
2593
|
*/
|
|
479
|
-
"
|
|
2594
|
+
"clearable"?: boolean;
|
|
2595
|
+
/**
|
|
2596
|
+
* Enables the character counter in the footer. Requires `charCount` to be set.
|
|
2597
|
+
* @default false
|
|
2598
|
+
*/
|
|
2599
|
+
"counter"?: boolean;
|
|
2600
|
+
/**
|
|
2601
|
+
* Additional validators merged with the built-in ones.
|
|
2602
|
+
* @default []
|
|
2603
|
+
*/
|
|
2604
|
+
"customValidators"?: IFormValidator[];
|
|
2605
|
+
/**
|
|
2606
|
+
* Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
2607
|
+
* @default ''
|
|
2608
|
+
*/
|
|
2609
|
+
"customWidth"?: string;
|
|
2610
|
+
/**
|
|
2611
|
+
* Disables the input. Also toggled by `formDisabledCallback` via the mixin.
|
|
2612
|
+
* @default false
|
|
2613
|
+
*/
|
|
2614
|
+
"disabled"?: boolean;
|
|
2615
|
+
/**
|
|
2616
|
+
* When `true`, applies the error visual state.
|
|
2617
|
+
* @default false
|
|
2618
|
+
*/
|
|
2619
|
+
"error"?: boolean;
|
|
2620
|
+
/**
|
|
2621
|
+
* Message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
2622
|
+
* @default ''
|
|
2623
|
+
*/
|
|
2624
|
+
"errorMessage"?: string;
|
|
480
2625
|
/**
|
|
481
2626
|
* The `id` of a `<form>` element to associate this element with.
|
|
482
2627
|
*/
|
|
483
2628
|
"form"?: string;
|
|
484
2629
|
/**
|
|
485
|
-
*
|
|
2630
|
+
* Helper text shown below the input when there is no error.
|
|
486
2631
|
* @default ''
|
|
487
2632
|
*/
|
|
488
|
-
"
|
|
2633
|
+
"helperText"?: string;
|
|
489
2634
|
/**
|
|
490
|
-
*
|
|
2635
|
+
* Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
2636
|
+
* @default ''
|
|
2637
|
+
*/
|
|
2638
|
+
"icon"?: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
2641
|
+
* @default ''
|
|
2642
|
+
*/
|
|
2643
|
+
"info"?: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* Label text rendered above the input.
|
|
2646
|
+
* @default ''
|
|
2647
|
+
*/
|
|
2648
|
+
"label"?: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* Maximum character count. `0` means no maximum.
|
|
2651
|
+
* @default 0
|
|
2652
|
+
*/
|
|
2653
|
+
"maxLength"?: number;
|
|
2654
|
+
/**
|
|
2655
|
+
* Minimum character count. `0` means no minimum.
|
|
2656
|
+
* @default 0
|
|
2657
|
+
*/
|
|
2658
|
+
"minLength"?: number;
|
|
2659
|
+
/**
|
|
2660
|
+
* The name submitted with the form.
|
|
2661
|
+
* @default ''
|
|
2662
|
+
*/
|
|
2663
|
+
"name"?: string;
|
|
2664
|
+
/**
|
|
2665
|
+
* Emitted when the input loses focus.
|
|
2666
|
+
*/
|
|
2667
|
+
"onBdsBlur"?: (event: BdsTextFieldCustomEvent<{ event: FocusEvent }>) => void;
|
|
2668
|
+
/**
|
|
2669
|
+
* Emitted when the input loses focus after the value has changed.
|
|
2670
|
+
*/
|
|
2671
|
+
"onBdsChange"?: (event: BdsTextFieldCustomEvent<{ value: string; event: Event }>) => void;
|
|
2672
|
+
/**
|
|
2673
|
+
* Emitted when the user activates the clear button.
|
|
2674
|
+
*/
|
|
2675
|
+
"onBdsClear"?: (event: BdsTextFieldCustomEvent<void>) => void;
|
|
2676
|
+
/**
|
|
2677
|
+
* Emitted when the input gains focus.
|
|
2678
|
+
*/
|
|
2679
|
+
"onBdsFocus"?: (event: BdsTextFieldCustomEvent<{ event: FocusEvent }>) => void;
|
|
2680
|
+
/**
|
|
2681
|
+
* Emitted on every keystroke with the current value and the originating event.
|
|
2682
|
+
*/
|
|
2683
|
+
"onBdsInput"?: (event: BdsTextFieldCustomEvent<{ value: string; event: InputEvent }>) => void;
|
|
2684
|
+
/**
|
|
2685
|
+
* Emitted after each validation run with the full validity snapshot.
|
|
2686
|
+
*/
|
|
2687
|
+
"onBdsValidationChange"?: (event: BdsTextFieldCustomEvent<{
|
|
2688
|
+
valid: boolean;
|
|
2689
|
+
validity: ValidityState;
|
|
2690
|
+
value: string;
|
|
2691
|
+
touched: boolean;
|
|
2692
|
+
dirty: boolean;
|
|
2693
|
+
}>) => void;
|
|
2694
|
+
/**
|
|
2695
|
+
* Emitted whenever the value changes. Used by framework wrappers for 2-way binding.
|
|
2696
|
+
*/
|
|
2697
|
+
"onValueChange"?: (event: BdsTextFieldCustomEvent<string>) => void;
|
|
2698
|
+
/**
|
|
2699
|
+
* Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
2700
|
+
* @default ''
|
|
2701
|
+
*/
|
|
2702
|
+
"pattern"?: string;
|
|
2703
|
+
/**
|
|
2704
|
+
* Native `placeholder` attribute forwarded to the inner `<input>`.
|
|
2705
|
+
* @default ''
|
|
2706
|
+
*/
|
|
2707
|
+
"placeholder"?: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* Makes the input read-only. The value is still submitted with the form.
|
|
491
2710
|
* @default false
|
|
492
2711
|
*/
|
|
493
|
-
"
|
|
2712
|
+
"readOnly"?: boolean;
|
|
494
2713
|
/**
|
|
495
|
-
*
|
|
2714
|
+
* Marks the input as required for form validation.
|
|
2715
|
+
* @default false
|
|
2716
|
+
*/
|
|
2717
|
+
"required"?: boolean;
|
|
2718
|
+
/**
|
|
2719
|
+
* Sublabel rendered inside the input container, before the text area.
|
|
496
2720
|
* @default ''
|
|
497
2721
|
*/
|
|
498
|
-
"
|
|
2722
|
+
"sublabel"?: string;
|
|
499
2723
|
/**
|
|
500
|
-
*
|
|
2724
|
+
* The input type. Use `'password'` to enable the visibility toggle.
|
|
2725
|
+
* @default TEXT_FIELD_TYPES.TEXT
|
|
501
2726
|
*/
|
|
502
|
-
"
|
|
2727
|
+
"type"?: TextFieldType;
|
|
503
2728
|
/**
|
|
504
|
-
*
|
|
505
|
-
* @default
|
|
2729
|
+
* Controls when built-in validation runs: `'blur'` | `'input'` | `'submit'` | `'change'`.
|
|
2730
|
+
* @default TEXT_FIELD_VALIDATION_TIMING.BLUR
|
|
506
2731
|
*/
|
|
507
|
-
"
|
|
2732
|
+
"validationTiming"?: TextFieldValidationTiming;
|
|
508
2733
|
/**
|
|
509
|
-
*
|
|
510
|
-
* @default
|
|
2734
|
+
* The current value of the input.
|
|
2735
|
+
* @default ''
|
|
511
2736
|
*/
|
|
512
|
-
"
|
|
2737
|
+
"value"?: string;
|
|
513
2738
|
/**
|
|
514
|
-
*
|
|
515
|
-
* @default
|
|
2739
|
+
* Visual style of the input container. `'outline'` shows a border; `'plain'` hides it at rest.
|
|
2740
|
+
* @default TEXT_FIELD_VARIANTS.OUTLINE
|
|
516
2741
|
*/
|
|
517
|
-
"variant"?:
|
|
2742
|
+
"variant"?: TextFieldVariant;
|
|
2743
|
+
}
|
|
2744
|
+
/**
|
|
2745
|
+
* Toggle/Switch component for boolean selection.
|
|
2746
|
+
* @summary A toggle switch form control with label positioning support.
|
|
2747
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
2748
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
2749
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
2750
|
+
* @property {boolean} checked - Whether the toggle is on. Defaults to `false`.
|
|
2751
|
+
* @property {string} placement - Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `"left"`.
|
|
2752
|
+
* @property {string} label - Label displayed next to the toggle. Defaults to `""`.
|
|
2753
|
+
* @property {string} helperText - Help text displayed below the toggle. Defaults to `""`.
|
|
2754
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
2755
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
2756
|
+
* @fires bdsChange - Emitted when the user toggles the switch. Payload: `IToggleEventChange`.
|
|
2757
|
+
*/
|
|
2758
|
+
interface BdsToggle {
|
|
2759
|
+
/**
|
|
2760
|
+
* Whether the toggle is on. Defaults to `false`.
|
|
2761
|
+
* @default false
|
|
2762
|
+
*/
|
|
2763
|
+
"checked"?: IToggle['checked'];
|
|
2764
|
+
/**
|
|
2765
|
+
* Disables the control. Defaults to `false`.
|
|
2766
|
+
* @default false
|
|
2767
|
+
*/
|
|
2768
|
+
"disabled"?: IToggle['disabled'];
|
|
2769
|
+
/**
|
|
2770
|
+
* When `true`, applies the error visual state.
|
|
2771
|
+
* @default false
|
|
2772
|
+
*/
|
|
2773
|
+
"error"?: IToggle['error'];
|
|
2774
|
+
/**
|
|
2775
|
+
* Message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
2776
|
+
* @default ''
|
|
2777
|
+
*/
|
|
2778
|
+
"errorMessage"?: IToggle['errorMessage'];
|
|
2779
|
+
/**
|
|
2780
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
2781
|
+
*/
|
|
2782
|
+
"form"?: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Help text displayed below the toggle. Defaults to `""`.
|
|
2785
|
+
* @default ''
|
|
2786
|
+
*/
|
|
2787
|
+
"helperText"?: IToggle['helperText'];
|
|
2788
|
+
/**
|
|
2789
|
+
* Tooltip content attached to the label. Rendered via `bds-typography` `tooltipText` prop.
|
|
2790
|
+
* @default ''
|
|
2791
|
+
*/
|
|
2792
|
+
"info"?: IToggle['info'];
|
|
2793
|
+
/**
|
|
2794
|
+
* Label displayed next to the toggle. Defaults to `""`.
|
|
2795
|
+
* @default ''
|
|
2796
|
+
*/
|
|
2797
|
+
"label"?: IToggle['label'];
|
|
2798
|
+
/**
|
|
2799
|
+
* Name of the form control, submitted as a key in the form data.
|
|
2800
|
+
*/
|
|
2801
|
+
"name": IToggle['name'];
|
|
2802
|
+
/**
|
|
2803
|
+
* Emitted when the user toggles the switch. Payload: `{ checked: boolean, value: string }`.
|
|
2804
|
+
*/
|
|
2805
|
+
"onBdsChange"?: (event: BdsToggleCustomEvent<IToggleEventChange>) => void;
|
|
2806
|
+
/**
|
|
2807
|
+
* Emitted when the checked state changes. Useful for 2-way binding / v-model. Payload: `boolean`.
|
|
2808
|
+
*/
|
|
2809
|
+
"onValueChange"?: (event: BdsToggleCustomEvent<boolean>) => void;
|
|
2810
|
+
/**
|
|
2811
|
+
* Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `TOGGLE_PLACEMENT.LEFT`.
|
|
2812
|
+
* @default TOGGLE_PLACEMENT.LEFT
|
|
2813
|
+
*/
|
|
2814
|
+
"placement"?: IToggle['placement'];
|
|
2815
|
+
/**
|
|
2816
|
+
* Marks the control as required for form submission. Defaults to `false`.
|
|
2817
|
+
* @default false
|
|
2818
|
+
*/
|
|
2819
|
+
"required"?: IToggle['required'];
|
|
2820
|
+
/**
|
|
2821
|
+
* Value submitted with the form data when checked. Behaves like the `value` attribute of a native `<input type="checkbox">`. Defaults to `"on"`.
|
|
2822
|
+
* @default 'on'
|
|
2823
|
+
*/
|
|
2824
|
+
"value"?: IToggle['value'];
|
|
2825
|
+
}
|
|
2826
|
+
/**
|
|
2827
|
+
* Tooltip component that displays a short label anchored to a trigger element on hover.
|
|
2828
|
+
* @summary Displays a floating tooltip anchored to a trigger element on mouseenter/mouseleave,
|
|
2829
|
+
* with configurable placement, optional arrow, and multiline support.
|
|
2830
|
+
* @attr {boolean} disabled - When true, prevents the tooltip from being shown.
|
|
2831
|
+
* @attr {boolean} multiline - When true, allows the tooltip content to wrap across multiple lines.
|
|
2832
|
+
* @attr {Partial<FloatingTooltipProp>} floating-options - Configuration object for floating behavior.
|
|
2833
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
2834
|
+
* @csspart tooltip-content - The inner content wrapper inside the tooltip.
|
|
2835
|
+
* @cssprop data-placement - Reflects the resolved placement on the tooltip container element.
|
|
2836
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option on the tooltip container element.
|
|
2837
|
+
* @cssprop data-multiline - Reflects the multiline prop on the tooltip container element.
|
|
2838
|
+
*/
|
|
2839
|
+
interface BdsTooltip {
|
|
2840
|
+
/**
|
|
2841
|
+
* If true, disables the tooltip.
|
|
2842
|
+
* @default false
|
|
2843
|
+
*/
|
|
2844
|
+
"disabled"?: ITooltip['disabled'];
|
|
2845
|
+
/**
|
|
2846
|
+
* Override default options for the floating mixin. This can be overridden by passing a different object to the `floatingOptions` prop.
|
|
2847
|
+
* @default {}
|
|
2848
|
+
*/
|
|
2849
|
+
"floatingOptions"?: Partial<FloatingTooltipProp>;
|
|
2850
|
+
/**
|
|
2851
|
+
* If true, allows multiline content in the tooltip.
|
|
2852
|
+
* @default false
|
|
2853
|
+
*/
|
|
2854
|
+
"multiline"?: ITooltip['multiline'];
|
|
518
2855
|
}
|
|
519
2856
|
/**
|
|
520
2857
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
@@ -524,12 +2861,12 @@ declare namespace LocalJSX {
|
|
|
524
2861
|
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
525
2862
|
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
526
2863
|
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
527
|
-
* @attr {boolean}
|
|
2864
|
+
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
528
2865
|
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
529
2866
|
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
530
2867
|
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
531
2868
|
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
532
|
-
* @attr {boolean}
|
|
2869
|
+
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
533
2870
|
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
534
2871
|
* @attr {string} html-for - The for attribute when rendered as a label
|
|
535
2872
|
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -539,12 +2876,12 @@ declare namespace LocalJSX {
|
|
|
539
2876
|
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
540
2877
|
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
541
2878
|
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
542
|
-
* @property {boolean}
|
|
2879
|
+
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
543
2880
|
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
544
2881
|
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
545
2882
|
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
546
2883
|
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
547
|
-
* @property {boolean}
|
|
2884
|
+
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
548
2885
|
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
549
2886
|
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
550
2887
|
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -554,12 +2891,12 @@ declare namespace LocalJSX {
|
|
|
554
2891
|
* @default 'start' - Default align value
|
|
555
2892
|
* @default 'md' - Default size value
|
|
556
2893
|
* @default 'default' - Default state value
|
|
557
|
-
* @default false - Default
|
|
2894
|
+
* @default false - Default required state
|
|
558
2895
|
* @default false - Default ellipsis state
|
|
559
2896
|
* @default 1 - Default maxLines value
|
|
560
2897
|
* @default '' - Default href value
|
|
561
2898
|
* @default '' - Default target value
|
|
562
|
-
* @default false - Default
|
|
2899
|
+
* @default false - Default downloadable state
|
|
563
2900
|
* @default 'download' - Default filename value
|
|
564
2901
|
* @default '' - Default tooltipText value
|
|
565
2902
|
*/
|
|
@@ -574,6 +2911,11 @@ declare namespace LocalJSX {
|
|
|
574
2911
|
* @default ''
|
|
575
2912
|
*/
|
|
576
2913
|
"customClass"?: string;
|
|
2914
|
+
/**
|
|
2915
|
+
* Enables download behavior for anchor.
|
|
2916
|
+
* @default false
|
|
2917
|
+
*/
|
|
2918
|
+
"downloadable"?: ITypography['downloadable'];
|
|
577
2919
|
/**
|
|
578
2920
|
* HTML tag used for rendering.
|
|
579
2921
|
* @default TAG_ELEMENT.P
|
|
@@ -600,20 +2942,15 @@ declare namespace LocalJSX {
|
|
|
600
2942
|
*/
|
|
601
2943
|
"htmlFor"?: ITypography['htmlFor'];
|
|
602
2944
|
/**
|
|
603
|
-
*
|
|
604
|
-
* @default
|
|
2945
|
+
* Max lines when ellipsis is enabled.
|
|
2946
|
+
* @default 1
|
|
605
2947
|
*/
|
|
606
|
-
"
|
|
2948
|
+
"maxLines"?: ITypography['maxLines'];
|
|
607
2949
|
/**
|
|
608
2950
|
* Marks the field as required.
|
|
609
2951
|
* @default false
|
|
610
2952
|
*/
|
|
611
|
-
"
|
|
612
|
-
/**
|
|
613
|
-
* Max lines when ellipsis is enabled.
|
|
614
|
-
* @default 1
|
|
615
|
-
*/
|
|
616
|
-
"maxLines"?: ITypography['maxLines'];
|
|
2953
|
+
"required"?: ITypography['required'];
|
|
617
2954
|
/**
|
|
618
2955
|
* Typography size token.
|
|
619
2956
|
* @default SIZES.M
|
|
@@ -641,10 +2978,20 @@ declare namespace LocalJSX {
|
|
|
641
2978
|
"variant"?: ITypography['variant'];
|
|
642
2979
|
}
|
|
643
2980
|
|
|
2981
|
+
interface BdsAvatarAttributes {
|
|
2982
|
+
"username": IAvatar['username'];
|
|
2983
|
+
"variant": IAvatar['variant'];
|
|
2984
|
+
"background": IAvatar['background'];
|
|
2985
|
+
"initialsColor": IAvatar['initialsColor'];
|
|
2986
|
+
}
|
|
2987
|
+
interface BdsBadgeAttributes {
|
|
2988
|
+
"variant": IBadge['variant'];
|
|
2989
|
+
"disabled": IBadge['disabled'];
|
|
2990
|
+
}
|
|
644
2991
|
interface BdsBannerAttributes {
|
|
645
|
-
"idComponent": string;
|
|
646
2992
|
"variant": IBanner['variant'];
|
|
647
|
-
"
|
|
2993
|
+
"closable": boolean;
|
|
2994
|
+
"closeButtonLabel": IBanner['closeButtonLabel'];
|
|
648
2995
|
}
|
|
649
2996
|
interface BdsButtonAttributes {
|
|
650
2997
|
"label": IButton['label'];
|
|
@@ -657,6 +3004,139 @@ declare namespace LocalJSX {
|
|
|
657
3004
|
"loading": IButton['loading'];
|
|
658
3005
|
"disclosure": IButton['disclosure'];
|
|
659
3006
|
}
|
|
3007
|
+
interface BdsCheckboxAttributes {
|
|
3008
|
+
"name": string;
|
|
3009
|
+
"disabled": boolean;
|
|
3010
|
+
"required": boolean;
|
|
3011
|
+
"checked": boolean;
|
|
3012
|
+
"indeterminate": boolean;
|
|
3013
|
+
"error": boolean;
|
|
3014
|
+
"value": string;
|
|
3015
|
+
"label": string;
|
|
3016
|
+
}
|
|
3017
|
+
interface BdsDialogAttributes {
|
|
3018
|
+
"active": IDialog['active'];
|
|
3019
|
+
"preventClose": IDialog['preventClose'];
|
|
3020
|
+
"height": IDialog['height'];
|
|
3021
|
+
"width": IDialog['width'];
|
|
3022
|
+
"layout": IDialog['layout'];
|
|
3023
|
+
"contentPadding": IDialog['contentPadding'];
|
|
3024
|
+
"backdropClose": IDialog['backdropClose'];
|
|
3025
|
+
"escapeClose": IDialog['escapeClose'];
|
|
3026
|
+
"size": IDialog['size'];
|
|
3027
|
+
"variant": IDialog['variant'];
|
|
3028
|
+
"titleDialog": IDialog['titleDialog'];
|
|
3029
|
+
"maximizable": IDialog['maximizable'];
|
|
3030
|
+
"closable": IDialog['closable'];
|
|
3031
|
+
}
|
|
3032
|
+
interface BdsDividerAttributes {
|
|
3033
|
+
"orientation": IDivider['orientation'];
|
|
3034
|
+
}
|
|
3035
|
+
interface BdsFlagAttributes {
|
|
3036
|
+
"alignFlag": IFlag['alignFlag'];
|
|
3037
|
+
"callSign": IFlag['callSign'];
|
|
3038
|
+
"country": IFlag['country'];
|
|
3039
|
+
"identifier": IFlag['identifier'];
|
|
3040
|
+
"label": IFlag['label'];
|
|
3041
|
+
"shape": IFlag['shape'];
|
|
3042
|
+
"shortName": IFlag['shortName'];
|
|
3043
|
+
}
|
|
3044
|
+
interface BdsGridAttributes {
|
|
3045
|
+
"layout": IGrid['layout'];
|
|
3046
|
+
"rowGap": IGrid['rowGap'];
|
|
3047
|
+
}
|
|
3048
|
+
interface BdsGridItemAttributes {
|
|
3049
|
+
"colSpan": string;
|
|
3050
|
+
"colSpanSm": string;
|
|
3051
|
+
"colSpanMd": string;
|
|
3052
|
+
"colSpanLg": string;
|
|
3053
|
+
"colSpanXl": string;
|
|
3054
|
+
"colSpan2xl": string;
|
|
3055
|
+
"rowSpan": string;
|
|
3056
|
+
"offset": IGridItem['offset'];
|
|
3057
|
+
}
|
|
3058
|
+
interface BdsListMenuAttributes {
|
|
3059
|
+
"multiple": boolean;
|
|
3060
|
+
"menuRole": 'menu' | 'listbox';
|
|
3061
|
+
}
|
|
3062
|
+
interface BdsListMenuItemAttributes {
|
|
3063
|
+
"variant": IListMenuItem['variant'];
|
|
3064
|
+
"name": IListMenuItem['name'];
|
|
3065
|
+
"disabled": IListMenuItem['disabled'];
|
|
3066
|
+
"selected": IListMenuItem['selected'];
|
|
3067
|
+
"value": IListMenuItem['value'];
|
|
3068
|
+
"activeItem": IListMenuItem['activeItem'];
|
|
3069
|
+
"href": IListMenuItem['href'];
|
|
3070
|
+
"newTab": IListMenuItem['newTab'];
|
|
3071
|
+
"download": IListMenuItem['download'];
|
|
3072
|
+
}
|
|
3073
|
+
interface BdsPopoverAttributes {
|
|
3074
|
+
"disabled": IPopover['disabled'];
|
|
3075
|
+
"width": string;
|
|
3076
|
+
"header": boolean;
|
|
3077
|
+
"footer": boolean;
|
|
3078
|
+
"closable": boolean;
|
|
3079
|
+
}
|
|
3080
|
+
interface BdsSpinnerAttributes {
|
|
3081
|
+
"size": ISpinner['size'];
|
|
3082
|
+
"label": ISpinner['label'];
|
|
3083
|
+
}
|
|
3084
|
+
interface BdsStatusAttributes {
|
|
3085
|
+
"state": IStatus['state'];
|
|
3086
|
+
"indicator": IStatus['indicator'];
|
|
3087
|
+
}
|
|
3088
|
+
interface BdsTagAttributes {
|
|
3089
|
+
"multiselect": ITag['multiselect'];
|
|
3090
|
+
"selected": ITag['selected'];
|
|
3091
|
+
"closeButtonLabel": ITag['closeButtonLabel'];
|
|
3092
|
+
"color": ITag['color'];
|
|
3093
|
+
"readonly": ITag['readonly'];
|
|
3094
|
+
"disabled": ITag['disabled'];
|
|
3095
|
+
}
|
|
3096
|
+
interface BdsTextFieldAttributes {
|
|
3097
|
+
"name": string;
|
|
3098
|
+
"disabled": boolean;
|
|
3099
|
+
"required": boolean;
|
|
3100
|
+
"value": string;
|
|
3101
|
+
"error": boolean;
|
|
3102
|
+
"errorMessage": string;
|
|
3103
|
+
"validationTiming": TextFieldValidationTiming;
|
|
3104
|
+
"type": TextFieldType;
|
|
3105
|
+
"variant": TextFieldVariant;
|
|
3106
|
+
"placeholder": string;
|
|
3107
|
+
"readOnly": boolean;
|
|
3108
|
+
"autocomplete": string;
|
|
3109
|
+
"pattern": string;
|
|
3110
|
+
"minLength": number;
|
|
3111
|
+
"maxLength": number;
|
|
3112
|
+
"label": string;
|
|
3113
|
+
"sublabel": string;
|
|
3114
|
+
"icon": string;
|
|
3115
|
+
"helperText": string;
|
|
3116
|
+
"info": string;
|
|
3117
|
+
"clearable": boolean;
|
|
3118
|
+
"clearOnHover": boolean;
|
|
3119
|
+
"charCount": number;
|
|
3120
|
+
"counter": boolean;
|
|
3121
|
+
"customWidth": string;
|
|
3122
|
+
}
|
|
3123
|
+
interface BdsToggleAttributes {
|
|
3124
|
+
"name": IToggle['name'];
|
|
3125
|
+
"disabled": IToggle['disabled'];
|
|
3126
|
+
"required": IToggle['required'];
|
|
3127
|
+
"info": IToggle['info'];
|
|
3128
|
+
"error": IToggle['error'];
|
|
3129
|
+
"errorMessage": IToggle['errorMessage'];
|
|
3130
|
+
"checked": IToggle['checked'];
|
|
3131
|
+
"placement": IToggle['placement'];
|
|
3132
|
+
"label": IToggle['label'];
|
|
3133
|
+
"helperText": IToggle['helperText'];
|
|
3134
|
+
"value": IToggle['value'];
|
|
3135
|
+
}
|
|
3136
|
+
interface BdsTooltipAttributes {
|
|
3137
|
+
"multiline": ITooltip['multiline'];
|
|
3138
|
+
"disabled": ITooltip['disabled'];
|
|
3139
|
+
}
|
|
660
3140
|
interface BdsTypographyAttributes {
|
|
661
3141
|
"variant": ITypography['variant'];
|
|
662
3142
|
"size": ITypography['size'];
|
|
@@ -667,17 +3147,34 @@ declare namespace LocalJSX {
|
|
|
667
3147
|
"ellipsis": ITypography['ellipsis'];
|
|
668
3148
|
"maxLines": ITypography['maxLines'];
|
|
669
3149
|
"tooltipText": ITypography['tooltipText'];
|
|
670
|
-
"
|
|
3150
|
+
"required": ITypography['required'];
|
|
671
3151
|
"htmlFor": ITypography['htmlFor'];
|
|
672
3152
|
"href": ITypography['href'];
|
|
673
3153
|
"target": ITypography['target'];
|
|
674
|
-
"
|
|
3154
|
+
"downloadable": ITypography['downloadable'];
|
|
675
3155
|
"filename": ITypography['filename'];
|
|
676
3156
|
}
|
|
677
3157
|
|
|
678
3158
|
interface IntrinsicElements {
|
|
3159
|
+
"bds-avatar": Omit<BdsAvatar, keyof BdsAvatarAttributes> & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes]?: BdsAvatar[K] } & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes as `attr:${K}`]?: BdsAvatarAttributes[K] } & { [K in keyof BdsAvatar & keyof BdsAvatarAttributes as `prop:${K}`]?: BdsAvatar[K] };
|
|
3160
|
+
"bds-badge": Omit<BdsBadge, keyof BdsBadgeAttributes> & { [K in keyof BdsBadge & keyof BdsBadgeAttributes]?: BdsBadge[K] } & { [K in keyof BdsBadge & keyof BdsBadgeAttributes as `attr:${K}`]?: BdsBadgeAttributes[K] } & { [K in keyof BdsBadge & keyof BdsBadgeAttributes as `prop:${K}`]?: BdsBadge[K] };
|
|
679
3161
|
"bds-banner": Omit<BdsBanner, keyof BdsBannerAttributes> & { [K in keyof BdsBanner & keyof BdsBannerAttributes]?: BdsBanner[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `attr:${K}`]?: BdsBannerAttributes[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `prop:${K}`]?: BdsBanner[K] };
|
|
680
3162
|
"bds-button": Omit<BdsButton, keyof BdsButtonAttributes> & { [K in keyof BdsButton & keyof BdsButtonAttributes]?: BdsButton[K] } & { [K in keyof BdsButton & keyof BdsButtonAttributes as `attr:${K}`]?: BdsButtonAttributes[K] } & { [K in keyof BdsButton & keyof BdsButtonAttributes as `prop:${K}`]?: BdsButton[K] };
|
|
3163
|
+
"bds-checkbox": Omit<BdsCheckbox, keyof BdsCheckboxAttributes> & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes]?: BdsCheckbox[K] } & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes as `attr:${K}`]?: BdsCheckboxAttributes[K] } & { [K in keyof BdsCheckbox & keyof BdsCheckboxAttributes as `prop:${K}`]?: BdsCheckbox[K] } & OneOf<"name", BdsCheckbox["name"], BdsCheckboxAttributes["name"]>;
|
|
3164
|
+
"bds-dialog": Omit<BdsDialog, keyof BdsDialogAttributes> & { [K in keyof BdsDialog & keyof BdsDialogAttributes]?: BdsDialog[K] } & { [K in keyof BdsDialog & keyof BdsDialogAttributes as `attr:${K}`]?: BdsDialogAttributes[K] } & { [K in keyof BdsDialog & keyof BdsDialogAttributes as `prop:${K}`]?: BdsDialog[K] };
|
|
3165
|
+
"bds-divider": Omit<BdsDivider, keyof BdsDividerAttributes> & { [K in keyof BdsDivider & keyof BdsDividerAttributes]?: BdsDivider[K] } & { [K in keyof BdsDivider & keyof BdsDividerAttributes as `attr:${K}`]?: BdsDividerAttributes[K] } & { [K in keyof BdsDivider & keyof BdsDividerAttributes as `prop:${K}`]?: BdsDivider[K] };
|
|
3166
|
+
"bds-flag": Omit<BdsFlag, keyof BdsFlagAttributes> & { [K in keyof BdsFlag & keyof BdsFlagAttributes]?: BdsFlag[K] } & { [K in keyof BdsFlag & keyof BdsFlagAttributes as `attr:${K}`]?: BdsFlagAttributes[K] } & { [K in keyof BdsFlag & keyof BdsFlagAttributes as `prop:${K}`]?: BdsFlag[K] };
|
|
3167
|
+
"bds-grid": Omit<BdsGrid, keyof BdsGridAttributes> & { [K in keyof BdsGrid & keyof BdsGridAttributes]?: BdsGrid[K] } & { [K in keyof BdsGrid & keyof BdsGridAttributes as `attr:${K}`]?: BdsGridAttributes[K] } & { [K in keyof BdsGrid & keyof BdsGridAttributes as `prop:${K}`]?: BdsGrid[K] };
|
|
3168
|
+
"bds-grid-item": Omit<BdsGridItem, keyof BdsGridItemAttributes> & { [K in keyof BdsGridItem & keyof BdsGridItemAttributes]?: BdsGridItem[K] } & { [K in keyof BdsGridItem & keyof BdsGridItemAttributes as `attr:${K}`]?: BdsGridItemAttributes[K] } & { [K in keyof BdsGridItem & keyof BdsGridItemAttributes as `prop:${K}`]?: BdsGridItem[K] };
|
|
3169
|
+
"bds-list-menu": Omit<BdsListMenu, keyof BdsListMenuAttributes> & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes]?: BdsListMenu[K] } & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes as `attr:${K}`]?: BdsListMenuAttributes[K] } & { [K in keyof BdsListMenu & keyof BdsListMenuAttributes as `prop:${K}`]?: BdsListMenu[K] };
|
|
3170
|
+
"bds-list-menu-item": Omit<BdsListMenuItem, keyof BdsListMenuItemAttributes> & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes]?: BdsListMenuItem[K] } & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes as `attr:${K}`]?: BdsListMenuItemAttributes[K] } & { [K in keyof BdsListMenuItem & keyof BdsListMenuItemAttributes as `prop:${K}`]?: BdsListMenuItem[K] };
|
|
3171
|
+
"bds-popover": Omit<BdsPopover, keyof BdsPopoverAttributes> & { [K in keyof BdsPopover & keyof BdsPopoverAttributes]?: BdsPopover[K] } & { [K in keyof BdsPopover & keyof BdsPopoverAttributes as `attr:${K}`]?: BdsPopoverAttributes[K] } & { [K in keyof BdsPopover & keyof BdsPopoverAttributes as `prop:${K}`]?: BdsPopover[K] };
|
|
3172
|
+
"bds-spinner": Omit<BdsSpinner, keyof BdsSpinnerAttributes> & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes]?: BdsSpinner[K] } & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes as `attr:${K}`]?: BdsSpinnerAttributes[K] } & { [K in keyof BdsSpinner & keyof BdsSpinnerAttributes as `prop:${K}`]?: BdsSpinner[K] };
|
|
3173
|
+
"bds-status": Omit<BdsStatus, keyof BdsStatusAttributes> & { [K in keyof BdsStatus & keyof BdsStatusAttributes]?: BdsStatus[K] } & { [K in keyof BdsStatus & keyof BdsStatusAttributes as `attr:${K}`]?: BdsStatusAttributes[K] } & { [K in keyof BdsStatus & keyof BdsStatusAttributes as `prop:${K}`]?: BdsStatus[K] };
|
|
3174
|
+
"bds-tag": Omit<BdsTag, keyof BdsTagAttributes> & { [K in keyof BdsTag & keyof BdsTagAttributes]?: BdsTag[K] } & { [K in keyof BdsTag & keyof BdsTagAttributes as `attr:${K}`]?: BdsTagAttributes[K] } & { [K in keyof BdsTag & keyof BdsTagAttributes as `prop:${K}`]?: BdsTag[K] };
|
|
3175
|
+
"bds-text-field": Omit<BdsTextField, keyof BdsTextFieldAttributes> & { [K in keyof BdsTextField & keyof BdsTextFieldAttributes]?: BdsTextField[K] } & { [K in keyof BdsTextField & keyof BdsTextFieldAttributes as `attr:${K}`]?: BdsTextFieldAttributes[K] } & { [K in keyof BdsTextField & keyof BdsTextFieldAttributes as `prop:${K}`]?: BdsTextField[K] };
|
|
3176
|
+
"bds-toggle": Omit<BdsToggle, keyof BdsToggleAttributes> & { [K in keyof BdsToggle & keyof BdsToggleAttributes]?: BdsToggle[K] } & { [K in keyof BdsToggle & keyof BdsToggleAttributes as `attr:${K}`]?: BdsToggleAttributes[K] } & { [K in keyof BdsToggle & keyof BdsToggleAttributes as `prop:${K}`]?: BdsToggle[K] } & OneOf<"name", BdsToggle["name"], BdsToggleAttributes["name"]>;
|
|
3177
|
+
"bds-tooltip": Omit<BdsTooltip, keyof BdsTooltipAttributes> & { [K in keyof BdsTooltip & keyof BdsTooltipAttributes]?: BdsTooltip[K] } & { [K in keyof BdsTooltip & keyof BdsTooltipAttributes as `attr:${K}`]?: BdsTooltipAttributes[K] } & { [K in keyof BdsTooltip & keyof BdsTooltipAttributes as `prop:${K}`]?: BdsTooltip[K] };
|
|
681
3178
|
"bds-typography": Omit<BdsTypography, keyof BdsTypographyAttributes> & { [K in keyof BdsTypography & keyof BdsTypographyAttributes]?: BdsTypography[K] } & { [K in keyof BdsTypography & keyof BdsTypographyAttributes as `attr:${K}`]?: BdsTypographyAttributes[K] } & { [K in keyof BdsTypography & keyof BdsTypographyAttributes as `prop:${K}`]?: BdsTypography[K] };
|
|
682
3179
|
}
|
|
683
3180
|
}
|
|
@@ -685,17 +3182,41 @@ export { LocalJSX as JSX };
|
|
|
685
3182
|
declare module "@stencil/core" {
|
|
686
3183
|
export namespace JSX {
|
|
687
3184
|
interface IntrinsicElements {
|
|
3185
|
+
/**
|
|
3186
|
+
* Avatar component used to display user initials or names for visual identification.
|
|
3187
|
+
* @summary Displays a circular avatar with user initials and optional name label.
|
|
3188
|
+
* Uses Boreal Design System tokens for consistent styling across platforms.
|
|
3189
|
+
* @attr {string} username - The full name used to generate initials or display as label.
|
|
3190
|
+
* @attr {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
3191
|
+
* @attr {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
3192
|
+
* @attr {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
3193
|
+
* @property {string} username - The full name used to generate initials or display as label.
|
|
3194
|
+
* @property {"icon"|"name"|"full"} variant - Controls which avatar elements are displayed: icon (initials), name, or both.
|
|
3195
|
+
* @property {string} background - Custom background color (hex code), defaults to $boreal-ui-success-base.
|
|
3196
|
+
* @property {string} initialsColor - Custom initials text color (hex code), defaults to $boreal-text-inverse.
|
|
3197
|
+
* @cssprop --bds-avatar-background - Custom background color HEX code.
|
|
3198
|
+
* @cssprop --bds-avatar-initials-color - Custom text color HEX code.
|
|
3199
|
+
*/
|
|
3200
|
+
"bds-avatar": LocalJSX.IntrinsicElements["bds-avatar"] & JSXBase.HTMLAttributes<HTMLBdsAvatarElement>;
|
|
3201
|
+
/**
|
|
3202
|
+
* Badge component for displaying contextual status information with optional icon support.
|
|
3203
|
+
* @summary A compact label component that communicates status or category using color-coded variants. Supports an optional icon slot and a disabled state.
|
|
3204
|
+
* @attr {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
3205
|
+
* @attr {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
3206
|
+
* @property {string} variant - Controls the visual style of the badge. Accepted values: 'default' | 'info' | 'success' | 'warning' | 'danger'. Default is 'default'.
|
|
3207
|
+
* @property {boolean} disabled - Disables the badge when true, reducing opacity and preventing pointer interaction. Default is false.
|
|
3208
|
+
*/
|
|
3209
|
+
"bds-badge": LocalJSX.IntrinsicElements["bds-badge"] & JSXBase.HTMLAttributes<HTMLBdsBadgeElement>;
|
|
688
3210
|
/**
|
|
689
3211
|
* Banner component used to display important messages with different status variants.
|
|
690
3212
|
* @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
|
|
691
3213
|
* @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
|
|
692
|
-
* @attr {boolean}
|
|
693
|
-
* @attr {string} idComponent - Unique identifier for the banner element.
|
|
694
|
-
* @property {string} idComponent - Unique identifier for the banner element.
|
|
3214
|
+
* @attr {boolean} closable - When true, renders a close button that triggers the close event.
|
|
695
3215
|
* @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
|
|
696
|
-
* @property {boolean}
|
|
697
|
-
* @
|
|
698
|
-
* @
|
|
3216
|
+
* @property {boolean} closable - Shows a close button that allows users to close the banner. Defaults to false.
|
|
3217
|
+
* @property {boolean} closeButtonLabel - Aria label for the close button when visible.
|
|
3218
|
+
* @fires bdsClose - Emitted when the banner is closed via the close button or `close` method.
|
|
3219
|
+
* @method close - Programmatic method to close the banner and emit the `bdsClose` event.
|
|
699
3220
|
*/
|
|
700
3221
|
"bds-banner": LocalJSX.IntrinsicElements["bds-banner"] & JSXBase.HTMLAttributes<HTMLBdsBannerElement>;
|
|
701
3222
|
/**
|
|
@@ -731,6 +3252,248 @@ declare module "@stencil/core" {
|
|
|
731
3252
|
* @default false - Default disclosure value
|
|
732
3253
|
*/
|
|
733
3254
|
"bds-button": LocalJSX.IntrinsicElements["bds-button"] & JSXBase.HTMLAttributes<HTMLBdsButtonElement>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Checkbox component for boolean selection with three visual states.
|
|
3257
|
+
* @summary A checkbox form control with default, selected, and indeterminate states.
|
|
3258
|
+
* @property {boolean} checked - Whether the checkbox is selected. Defaults to `false`.
|
|
3259
|
+
* @property {boolean} indeterminate - Whether the checkbox shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
3260
|
+
* @property {boolean} error - Shows error styling on the checkbox. Defaults to `false`.
|
|
3261
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
3262
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
3263
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model).
|
|
3264
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox. Payload: `{ checked: boolean, value: string }`.
|
|
3265
|
+
*/
|
|
3266
|
+
"bds-checkbox": LocalJSX.IntrinsicElements["bds-checkbox"] & JSXBase.HTMLAttributes<HTMLBdsCheckboxElement>;
|
|
3267
|
+
/**
|
|
3268
|
+
* Modal dialog component for displaying content in an overlay.
|
|
3269
|
+
* @summary Modal overlay for alerts, forms, and confirmations with customizable layout and behavior.
|
|
3270
|
+
* @attr {boolean} active - Controls dialog visibility.
|
|
3271
|
+
* @attr {boolean} prevent-close - Disables closing the dialog.
|
|
3272
|
+
* @attr {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
3273
|
+
* @attr {string} content-padding - Content padding: 'default' or 'none'.
|
|
3274
|
+
* @attr {boolean} backdrop-close - Close on backdrop click.
|
|
3275
|
+
* @attr {boolean} escape-close - Close on Escape key.
|
|
3276
|
+
* @attr {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
3277
|
+
* @attr {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
3278
|
+
* @attr {string} title-dialog - Dialog title text.
|
|
3279
|
+
* @attr {boolean} maximizable - Show maximize button.
|
|
3280
|
+
* @attr {boolean} closable - Show close button.
|
|
3281
|
+
* @attr {string} width - Custom width for the dialog.
|
|
3282
|
+
* @attr {string} height - Custom height for the dialog.
|
|
3283
|
+
* @property {boolean} active - Controls whether the dialog is open.
|
|
3284
|
+
* @property {boolean} preventClose - Disables closing the dialog.
|
|
3285
|
+
* @property {string} height - Custom height for the dialog.
|
|
3286
|
+
* @property {string} width - Custom width for the dialog.
|
|
3287
|
+
* @property {string} layout - Layout type: 'default', 'headerless', or 'footerless'.
|
|
3288
|
+
* @property {string} contentPadding - Content padding: 'default' or 'none'.
|
|
3289
|
+
* @property {boolean} backdropClose - Close dialog when clicking the backdrop.
|
|
3290
|
+
* @property {boolean} escapeClose - Close dialog when pressing Escape.
|
|
3291
|
+
* @property {string} size - Dialog size: 'sm', 'md', 'lg', or 'full'.
|
|
3292
|
+
* @property {string} variant - Visual variant: 'default', 'info', 'success', 'warning', or 'danger'.
|
|
3293
|
+
* @property {string} titleDialog - Title text displayed in the header.
|
|
3294
|
+
* @property {boolean} maximizable - Show maximize button.
|
|
3295
|
+
* @property {boolean} closable - Hide the close button in the header.
|
|
3296
|
+
* @fires bdsOpen - Emitted when the dialog opens.
|
|
3297
|
+
* @fires bdsClose - Emitted when the dialog closes.
|
|
3298
|
+
* @fires bdsMaximize - Emitted when the maximize button is clicked.
|
|
3299
|
+
* @cssprop --bds-dialog-width - Custom width for the dialog.
|
|
3300
|
+
* @cssprop --bds-dialog-height - Custom height for the dialog.
|
|
3301
|
+
*/
|
|
3302
|
+
"bds-dialog": LocalJSX.IntrinsicElements["bds-dialog"] & JSXBase.HTMLAttributes<HTMLBdsDialogElement>;
|
|
3303
|
+
/**
|
|
3304
|
+
* Divider component for creating visual separators between content sections.
|
|
3305
|
+
* @summary A simple visual separator that can be oriented horizontally or vertically.
|
|
3306
|
+
* @csspart divider - A divider element that visually separates content.
|
|
3307
|
+
* @attr {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
3308
|
+
* @property {DividerOrientation} orientation - The orientation of the divider (horizontal or vertical)
|
|
3309
|
+
*/
|
|
3310
|
+
"bds-divider": LocalJSX.IntrinsicElements["bds-divider"] & JSXBase.HTMLAttributes<HTMLBdsDividerElement>;
|
|
3311
|
+
/**
|
|
3312
|
+
* Flag component used to display a country flag together with its corresponding label.
|
|
3313
|
+
* @summary Renders a flag icon based on a country identifier and optionally displays
|
|
3314
|
+
* the country name, short name, or call sign. Supports custom flag sources, different
|
|
3315
|
+
* shapes, and flag alignment on either side of the label.
|
|
3316
|
+
* @attr {boolean} label - When true, displays a textual label next to the flag.
|
|
3317
|
+
* @attr {boolean} short-name - When true, displays the abbreviated country name (ISO2/ISO3) instead of the full name.
|
|
3318
|
+
* @attr {boolean} call-sign - When true, displays the country calling code next to the label.
|
|
3319
|
+
* @attr {string} country - Country value used to resolve the flag and label.
|
|
3320
|
+
* @attr {AlignFlag} align-flag - Controls whether the flag is rendered on the left or right side.
|
|
3321
|
+
* @attr {FlagIdentifier} identifier - Defines which country field is used to resolve the value.
|
|
3322
|
+
* @attr {Shape} shape - Visual shape of the rendered flag.
|
|
3323
|
+
* @attr {ICountry[]} custom-flags - Additional custom flag definitions that can override defaults.
|
|
3324
|
+
* @property {boolean} label - Whether the country label should be displayed. Defaults to false.
|
|
3325
|
+
* @property {boolean} shortName - Whether to display the abbreviated country name. Defaults to false.
|
|
3326
|
+
* @property {boolean} callSign - Whether to display the country calling code. Defaults to false.
|
|
3327
|
+
* @property {string} country - Country value used to find the matching flag entry. Defaults to ''.
|
|
3328
|
+
* @property {AlignFlag} alignFlag - Position of the flag relative to the label. Defaults to `AlignFlag.LEFT`.
|
|
3329
|
+
* @property {FlagIdentifier} identifier - Identifier used to resolve the country value. Defaults to `FlagIdentifier.CODE`.
|
|
3330
|
+
* @property {Shape} shape - Shape variant used for the flag. Defaults to `Shape.RECTANGLE`.
|
|
3331
|
+
* @property {ICountry[]} customFlags - List of custom flag definitions merged with the default catalog. Defaults to `[]`.
|
|
3332
|
+
*/
|
|
3333
|
+
"bds-flag": LocalJSX.IntrinsicElements["bds-flag"] & JSXBase.HTMLAttributes<HTMLBdsFlagElement>;
|
|
3334
|
+
/**
|
|
3335
|
+
* 12-column CSS Grid layout container with 5 responsive breakpoints.
|
|
3336
|
+
* Minimum browser support: Chrome/Edge (last 2), Firefox (last 2), Safari (last 2).
|
|
3337
|
+
*/
|
|
3338
|
+
"bds-grid": LocalJSX.IntrinsicElements["bds-grid"] & JSXBase.HTMLAttributes<HTMLBdsGridElement>;
|
|
3339
|
+
/**
|
|
3340
|
+
* Grid item child of `bds-grid`. Must be a direct child of `bds-grid`.
|
|
3341
|
+
*/
|
|
3342
|
+
"bds-grid-item": LocalJSX.IntrinsicElements["bds-grid-item"] & JSXBase.HTMLAttributes<HTMLBdsGridItemElement>;
|
|
3343
|
+
/**
|
|
3344
|
+
* Container component that manages a list of menu items.
|
|
3345
|
+
* It handles selection logic (single/multiple) and maintains the data state.
|
|
3346
|
+
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
3347
|
+
* @attr {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
3348
|
+
* @attr {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
3349
|
+
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
3350
|
+
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
3351
|
+
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
3352
|
+
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
3353
|
+
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
3354
|
+
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
3355
|
+
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
3356
|
+
*/
|
|
3357
|
+
"bds-list-menu": LocalJSX.IntrinsicElements["bds-list-menu"] & JSXBase.HTMLAttributes<HTMLBdsListMenuElement>;
|
|
3358
|
+
/**
|
|
3359
|
+
* Component representing an individual item within a list menu for navigations and selection.
|
|
3360
|
+
* @summary A menu item component that supports different variants, disabled state, and selection state, it also supports link behavior when the href prop is provided.
|
|
3361
|
+
* @attr {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
3362
|
+
* @attr {string} name - The name of the list menu item.
|
|
3363
|
+
* @attr {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
3364
|
+
* @attr {boolean} selected - If true, the menu item is styled as selected.
|
|
3365
|
+
* @attr {boolean} activeItem - If true, the menu item is styled as active.
|
|
3366
|
+
* @attr {string} value - The value associated with the menu item, emitted in events when activated.\
|
|
3367
|
+
* @attr {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
3368
|
+
* @attr {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
3369
|
+
* @attr {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
3370
|
+
* @attr {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
3371
|
+
* @property {string} variant - Defines the visual style of the list menu item. Can be 'button' or 'label'. Default is 'button'.
|
|
3372
|
+
* @property {string} name - The name of the list menu item.
|
|
3373
|
+
* @property {boolean} disabled - If true, the menu item is non-interactive and styled as disabled.
|
|
3374
|
+
* @property {boolean} selected - If true, the menu item is styled as selected.
|
|
3375
|
+
* @property {boolean} activeItem - If true, the menu item is styled as active.
|
|
3376
|
+
* @property {string} value - The value associated with the menu item, emitted in events when activated.
|
|
3377
|
+
* @property {string} href - The URL for the link. If provided, the menu item will behave as a link.
|
|
3378
|
+
* @property {boolean} newTab - If true, the link will open in a new tab. Only applicable if href is provided.
|
|
3379
|
+
* @property {boolean} downloadable - If true, the link will be treated as a download link. Only applicable if href is provided.
|
|
3380
|
+
* @property {string} filename - The suggested filename for the download. Only applicable if downloadable is true.
|
|
3381
|
+
* @default 'button' - The default variant for the menu item is 'button', which is a standard clickable item.
|
|
3382
|
+
* @default '' - By default, the name of the menu item is an empty string.
|
|
3383
|
+
* @default false - By default, the menu item is not disabled and is interactive.
|
|
3384
|
+
* @default false - By default, the menu item is not selected.
|
|
3385
|
+
* @default false - By default, the menu item is not active.
|
|
3386
|
+
* @default '' - By default, the value of the menu item is an empty string.
|
|
3387
|
+
* @default '' - By default, the href is an empty string, meaning the menu item will not behave as a link.
|
|
3388
|
+
* @default false - By default, the newTab property is false, meaning links will open in the same tab.
|
|
3389
|
+
* @default false - By default, the downloadable property is false, meaning links will not be treated as download links.
|
|
3390
|
+
* @default '' - By default, the filename is an empty string, meaning no suggested filename for downloads.
|
|
3391
|
+
*/
|
|
3392
|
+
"bds-list-menu-item": LocalJSX.IntrinsicElements["bds-list-menu-item"] & JSXBase.HTMLAttributes<HTMLBdsListMenuItemElement>;
|
|
3393
|
+
/**
|
|
3394
|
+
* @attr {boolean} disabled - When true, prevents the popover from being shown.
|
|
3395
|
+
* @attr {number | 'full' | 'auto'} width - Controls the width of the popover content.
|
|
3396
|
+
* @attr {boolean} header - When true, displays the popover header.
|
|
3397
|
+
* @attr {boolean} footer - When true, displays the popover footer.
|
|
3398
|
+
* @attr {boolean} closable - When true, displays the close button in the header.
|
|
3399
|
+
* @attr {IPopoverFloatingOptions} floatingOptions - Configuration object for floating behavior.
|
|
3400
|
+
* @csspart popover-content - The main popover container element.
|
|
3401
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
3402
|
+
* @csspart popover-trigger - The trigger element for the popover.
|
|
3403
|
+
* @cssprop data-placement - Reflects the resolved placement on the popover element.
|
|
3404
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option.
|
|
3405
|
+
*/
|
|
3406
|
+
"bds-popover": LocalJSX.IntrinsicElements["bds-popover"] & JSXBase.HTMLAttributes<HTMLBdsPopoverElement>;
|
|
3407
|
+
/**
|
|
3408
|
+
* Spinner component used to indicate a loading or processing state.
|
|
3409
|
+
* @summary Displays an animated circular spinner to communicate that content is loading.
|
|
3410
|
+
* @attr {"small"|"medium"|"large"} size - Size of the spinner. Defaults to "small".
|
|
3411
|
+
* @attr {string} label - Accessible label announced by screen readers. Defaults to "Loading".
|
|
3412
|
+
* @property {"small"|"medium"|"large"} size - Controls the visual size of the spinner.
|
|
3413
|
+
* @property {string} label - Text used as the accessible label for screen readers.
|
|
3414
|
+
*/
|
|
3415
|
+
"bds-spinner": LocalJSX.IntrinsicElements["bds-spinner"] & JSXBase.HTMLAttributes<HTMLBdsSpinnerElement>;
|
|
3416
|
+
/**
|
|
3417
|
+
* Status badge component for communicating the current state of an item or process.
|
|
3418
|
+
*/
|
|
3419
|
+
"bds-status": LocalJSX.IntrinsicElements["bds-status"] & JSXBase.HTMLAttributes<HTMLBdsStatusElement>;
|
|
3420
|
+
/**
|
|
3421
|
+
* Tag component used to represent categories, metadata, or removable filters.
|
|
3422
|
+
* @summary Displays a label with optional leading/trailing icons and dismissal capability.
|
|
3423
|
+
* @fires bdsClose - Emitted when the tag is closed via the close button or Delete key.
|
|
3424
|
+
* @fires bdsSelect - Emitted when the tag is selected via a click or Space/Enter key.
|
|
3425
|
+
*/
|
|
3426
|
+
"bds-tag": LocalJSX.IntrinsicElements["bds-tag"] & JSXBase.HTMLAttributes<HTMLBdsTagElement>;
|
|
3427
|
+
/**
|
|
3428
|
+
* Text field component for user input with validation and form integration.
|
|
3429
|
+
* @summary Single-line text input with label, validation, password toggle, and clear action.
|
|
3430
|
+
* @attr {string} name - The name submitted with the form.
|
|
3431
|
+
* @attr {string} value - The current value of the input.
|
|
3432
|
+
* @attr {boolean} disabled - Disables the input.
|
|
3433
|
+
* @attr {boolean} required - Marks the input as required.
|
|
3434
|
+
* @attr {boolean} error - Applies the error visual state.
|
|
3435
|
+
* @attr {"text"|"password"} type - Input type.
|
|
3436
|
+
* @attr {"outline"|"plain"} variant - Visual style of the container.
|
|
3437
|
+
* @attr {boolean} readonly - Makes the input read-only. The value is still submitted with the form.
|
|
3438
|
+
* @property {string} label - Label text rendered above the input.
|
|
3439
|
+
* @property {string} sublabel - Sublabel rendered inside the input container, before the text area.
|
|
3440
|
+
* @property {string} placeholder - Native placeholder forwarded to the inner `<input>`.
|
|
3441
|
+
* @property {string} helperText - Assistive text shown below the input when there is no error.
|
|
3442
|
+
* @property {string} errorMessage - Error message shown below the input when `error` is `true`. Replaces `helperText`.
|
|
3443
|
+
* @property {string} info - Tooltip content attached to the label.
|
|
3444
|
+
* @property {string} icon - Icon font class rendered beside the sublabel inside the container (e.g. `bds-icon-settings`).
|
|
3445
|
+
* @property {boolean} clearable - Shows a clear button when the input has a value.
|
|
3446
|
+
* @property {boolean} clearOnHover - Shows a clear button that is hidden at rest and revealed on hover.
|
|
3447
|
+
* @property {boolean} readOnly - Makes the input readonly. The value is still submitted with the form.
|
|
3448
|
+
* @property {string} autocomplete - Native `autocomplete` attribute forwarded to the inner `<input>`.
|
|
3449
|
+
* @property {string} pattern - Native `pattern` attribute forwarded to the inner `<input>`.
|
|
3450
|
+
* @property {number} minLength - Minimum character count. `0` means no minimum.
|
|
3451
|
+
* @property {number} maxLength - Maximum character count. `0` means no maximum.
|
|
3452
|
+
* @property {boolean} counter - Enables the character counter in the footer. Requires `charCount`.
|
|
3453
|
+
* @property {number} charCount - Maximum character count shown in the footer counter (e.g. `120` → `"45/120"`). Requires `counter`.
|
|
3454
|
+
* @property {IFormValidator[]} customValidators - Additional validators merged with the built-in ones.
|
|
3455
|
+
* @property {"blur"|"input"|"submit"|"change"} validationTiming - When built-in validation runs.
|
|
3456
|
+
* @property {string} pattern - Regex the value must match to pass `patternMismatch` validation. Also forwarded as the native `pattern` attribute to the inner `<input>`. Empty string disables pattern validation.
|
|
3457
|
+
* @property {string} customWidth - Sets a custom width via the `--bds-text-field-width` CSS custom property.
|
|
3458
|
+
* @fires valueChange - Emitted on every value change; used for framework 2-way binding.
|
|
3459
|
+
* @fires bdsInput - Emitted on every keystroke with `{ value, event }`.
|
|
3460
|
+
* @fires bdsChange - Emitted when focus leaves after the value changed, with `{ value, event }`.
|
|
3461
|
+
* @fires bdsFocus - Emitted when the input gains focus, with `{ event }`.
|
|
3462
|
+
* @fires bdsBlur - Emitted when the input loses focus, with `{ event }`.
|
|
3463
|
+
* @fires bdsClear - Emitted when the user activates the clear button.
|
|
3464
|
+
* @fires bdsValidationChange - Emitted after each validation run with `{ valid, validity, value, touched, dirty }`.
|
|
3465
|
+
* @cssprop --bds-text-field-width - Sets a custom width for the component.
|
|
3466
|
+
*/
|
|
3467
|
+
"bds-text-field": LocalJSX.IntrinsicElements["bds-text-field"] & JSXBase.HTMLAttributes<HTMLBdsTextFieldElement>;
|
|
3468
|
+
/**
|
|
3469
|
+
* Toggle/Switch component for boolean selection.
|
|
3470
|
+
* @summary A toggle switch form control with label positioning support.
|
|
3471
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
3472
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
3473
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
3474
|
+
* @property {boolean} checked - Whether the toggle is on. Defaults to `false`.
|
|
3475
|
+
* @property {string} placement - Position of the label relative to the switch. Accepts `TOGGLE_PLACEMENT` values. Defaults to `"left"`.
|
|
3476
|
+
* @property {string} label - Label displayed next to the toggle. Defaults to `""`.
|
|
3477
|
+
* @property {string} helperText - Help text displayed below the toggle. Defaults to `""`.
|
|
3478
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
3479
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
3480
|
+
* @fires bdsChange - Emitted when the user toggles the switch. Payload: `IToggleEventChange`.
|
|
3481
|
+
*/
|
|
3482
|
+
"bds-toggle": LocalJSX.IntrinsicElements["bds-toggle"] & JSXBase.HTMLAttributes<HTMLBdsToggleElement>;
|
|
3483
|
+
/**
|
|
3484
|
+
* Tooltip component that displays a short label anchored to a trigger element on hover.
|
|
3485
|
+
* @summary Displays a floating tooltip anchored to a trigger element on mouseenter/mouseleave,
|
|
3486
|
+
* with configurable placement, optional arrow, and multiline support.
|
|
3487
|
+
* @attr {boolean} disabled - When true, prevents the tooltip from being shown.
|
|
3488
|
+
* @attr {boolean} multiline - When true, allows the tooltip content to wrap across multiple lines.
|
|
3489
|
+
* @attr {Partial<FloatingTooltipProp>} floating-options - Configuration object for floating behavior.
|
|
3490
|
+
* @csspart arrow - The arrow element pointing toward the trigger.
|
|
3491
|
+
* @csspart tooltip-content - The inner content wrapper inside the tooltip.
|
|
3492
|
+
* @cssprop data-placement - Reflects the resolved placement on the tooltip container element.
|
|
3493
|
+
* @cssprop data-hidearrow - Reflects the hideArrow option on the tooltip container element.
|
|
3494
|
+
* @cssprop data-multiline - Reflects the multiline prop on the tooltip container element.
|
|
3495
|
+
*/
|
|
3496
|
+
"bds-tooltip": LocalJSX.IntrinsicElements["bds-tooltip"] & JSXBase.HTMLAttributes<HTMLBdsTooltipElement>;
|
|
734
3497
|
/**
|
|
735
3498
|
* Typography component for displaying text with various styles, sizes, and interactive features.
|
|
736
3499
|
* @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
|
|
@@ -739,12 +3502,12 @@ declare module "@stencil/core" {
|
|
|
739
3502
|
* @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
740
3503
|
* @attr {string} align - The text alignment. Options: start, center, end, inherit
|
|
741
3504
|
* @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
742
|
-
* @attr {boolean}
|
|
3505
|
+
* @attr {boolean} required - Shows a required indicator when used with `label` variant.
|
|
743
3506
|
* @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
744
3507
|
* @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
|
|
745
3508
|
* @attr {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
746
3509
|
* @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
747
|
-
* @attr {boolean}
|
|
3510
|
+
* @attr {boolean} downloadable - Makes the `link` download a file.
|
|
748
3511
|
* @attr {string} filename - Suggested filename when downloading a file from the `link`.
|
|
749
3512
|
* @attr {string} html-for - The for attribute when rendered as a label
|
|
750
3513
|
* @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -754,12 +3517,12 @@ declare module "@stencil/core" {
|
|
|
754
3517
|
* @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
|
|
755
3518
|
* @property {string} align - The text alignment. Options: start, center, end, inherit
|
|
756
3519
|
* @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
|
|
757
|
-
* @property {boolean}
|
|
3520
|
+
* @property {boolean} required - Shows a required indicator when used with `label` variant.
|
|
758
3521
|
* @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
|
|
759
3522
|
* @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
|
|
760
3523
|
* @property {string} href - URL when the typography is an `a` element and a `link` variant.
|
|
761
3524
|
* @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
|
|
762
|
-
* @property {boolean}
|
|
3525
|
+
* @property {boolean} downloadable - Makes the `link` download a file.
|
|
763
3526
|
* @property {string} filename - Suggested filename when downloading a file from the `link`.
|
|
764
3527
|
* @property {string} htmlFor - The for attribute when rendered as a label
|
|
765
3528
|
* @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
|
|
@@ -769,12 +3532,12 @@ declare module "@stencil/core" {
|
|
|
769
3532
|
* @default 'start' - Default align value
|
|
770
3533
|
* @default 'md' - Default size value
|
|
771
3534
|
* @default 'default' - Default state value
|
|
772
|
-
* @default false - Default
|
|
3535
|
+
* @default false - Default required state
|
|
773
3536
|
* @default false - Default ellipsis state
|
|
774
3537
|
* @default 1 - Default maxLines value
|
|
775
3538
|
* @default '' - Default href value
|
|
776
3539
|
* @default '' - Default target value
|
|
777
|
-
* @default false - Default
|
|
3540
|
+
* @default false - Default downloadable state
|
|
778
3541
|
* @default 'download' - Default filename value
|
|
779
3542
|
* @default '' - Default tooltipText value
|
|
780
3543
|
*/
|