@cruglobal/cornerstone-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +7 -0
- package/NOTICE +50 -0
- package/README.md +119 -0
- package/dist/bundled/chunks/chunk.23WKGLJ2.js +1927 -0
- package/dist/bundled/chunks/chunk.27C34IAM.js +13 -0
- package/dist/bundled/chunks/chunk.2DAXWPZV.js +18 -0
- package/dist/bundled/chunks/chunk.2HAZJKLI.js +34 -0
- package/dist/bundled/chunks/chunk.2JNTRGJV.js +13 -0
- package/dist/bundled/chunks/chunk.2OLAKXLK.js +12 -0
- package/dist/bundled/chunks/chunk.2QEUZLQ6.js +70 -0
- package/dist/bundled/chunks/chunk.2UBHNTHX.js +45 -0
- package/dist/bundled/chunks/chunk.2WCGILWX.js +127 -0
- package/dist/bundled/chunks/chunk.2ZATROB4.js +29 -0
- package/dist/bundled/chunks/chunk.2ZXLELS7.js +30 -0
- package/dist/bundled/chunks/chunk.36VL6LJI.js +12 -0
- package/dist/bundled/chunks/chunk.3MV76N7H.js +13 -0
- package/dist/bundled/chunks/chunk.3N6XINZY.js +27 -0
- package/dist/bundled/chunks/chunk.3NBLWWHJ.js +87 -0
- package/dist/bundled/chunks/chunk.3QOMHIHS.js +32 -0
- package/dist/bundled/chunks/chunk.3UWHQ3GK.js +307 -0
- package/dist/bundled/chunks/chunk.3XMG24UK.js +29 -0
- package/dist/bundled/chunks/chunk.3XMRDGUU.js +66 -0
- package/dist/bundled/chunks/chunk.42KBYSLU.js +29 -0
- package/dist/bundled/chunks/chunk.47HTX52O.js +287 -0
- package/dist/bundled/chunks/chunk.4BW2YULR.js +166 -0
- package/dist/bundled/chunks/chunk.4ETEFPP6.js +31 -0
- package/dist/bundled/chunks/chunk.4SEF2WUP.js +13 -0
- package/dist/bundled/chunks/chunk.4WA5SEFV.js +27 -0
- package/dist/bundled/chunks/chunk.5B7YAEGG.js +29 -0
- package/dist/bundled/chunks/chunk.5DSCTMEL.js +13 -0
- package/dist/bundled/chunks/chunk.5EN53P6J.js +383 -0
- package/dist/bundled/chunks/chunk.5FJHYE2X.js +253 -0
- package/dist/bundled/chunks/chunk.5HBYRBM6.js +268 -0
- package/dist/bundled/chunks/chunk.5MGJKMWB.js +13 -0
- package/dist/bundled/chunks/chunk.5NSOPHRL.js +36 -0
- package/dist/bundled/chunks/chunk.5O4MAY7T.js +1490 -0
- package/dist/bundled/chunks/chunk.5V6UJVQ3.js +27 -0
- package/dist/bundled/chunks/chunk.5YJBS6P5.js +30 -0
- package/dist/bundled/chunks/chunk.5ZCWBZDZ.js +73 -0
- package/dist/bundled/chunks/chunk.6BG3GNQA.js +550 -0
- package/dist/bundled/chunks/chunk.6CWMGV64.js +27 -0
- package/dist/bundled/chunks/chunk.6FSSNFWF.js +200 -0
- package/dist/bundled/chunks/chunk.6INMSSKP.js +75 -0
- package/dist/bundled/chunks/chunk.6NAJPFMO.js +211 -0
- package/dist/bundled/chunks/chunk.6VPT7HY4.js +211 -0
- package/dist/bundled/chunks/chunk.6Y52BV7N.js +285 -0
- package/dist/bundled/chunks/chunk.72R6V6OM.js +342 -0
- package/dist/bundled/chunks/chunk.74FR627V.js +27 -0
- package/dist/bundled/chunks/chunk.76C4P3HV.js +33 -0
- package/dist/bundled/chunks/chunk.76WNH435.js +468 -0
- package/dist/bundled/chunks/chunk.7AJGTGQI.js +20 -0
- package/dist/bundled/chunks/chunk.7CGB2RAD.js +318 -0
- package/dist/bundled/chunks/chunk.7D5RCNJC.js +19 -0
- package/dist/bundled/chunks/chunk.7G2ZH3OO.js +29 -0
- package/dist/bundled/chunks/chunk.7HQKZN4K.js +27 -0
- package/dist/bundled/chunks/chunk.7IWYAIV2.js +345 -0
- package/dist/bundled/chunks/chunk.7LVDRYR7.js +81 -0
- package/dist/bundled/chunks/chunk.7OKJNNNC.js +32 -0
- package/dist/bundled/chunks/chunk.7RTAQFEN.js +31 -0
- package/dist/bundled/chunks/chunk.7YUYD5DQ.js +105 -0
- package/dist/bundled/chunks/chunk.A2JHAWF4.js +12 -0
- package/dist/bundled/chunks/chunk.A5TKTICR.js +34 -0
- package/dist/bundled/chunks/chunk.AGI7JCZM.js +1 -0
- package/dist/bundled/chunks/chunk.AHJQ4242.js +245 -0
- package/dist/bundled/chunks/chunk.ALHQDF3Q.js +118 -0
- package/dist/bundled/chunks/chunk.AR4RUWGG.js +169 -0
- package/dist/bundled/chunks/chunk.ASMIK33G.js +15 -0
- package/dist/bundled/chunks/chunk.AVPP7AM7.js +27 -0
- package/dist/bundled/chunks/chunk.B3ZA5Q3S.js +27 -0
- package/dist/bundled/chunks/chunk.BDPKRA7V.js +27 -0
- package/dist/bundled/chunks/chunk.BGW4B7ME.js +32 -0
- package/dist/bundled/chunks/chunk.BMRDDP5U.js +135 -0
- package/dist/bundled/chunks/chunk.BMURGKJY.js +34 -0
- package/dist/bundled/chunks/chunk.BNGGMXK5.js +12 -0
- package/dist/bundled/chunks/chunk.C35X7UKU.js +113 -0
- package/dist/bundled/chunks/chunk.C4LWIP7I.js +241 -0
- package/dist/bundled/chunks/chunk.C7WUXH7W.js +223 -0
- package/dist/bundled/chunks/chunk.CAVIMOX7.js +13 -0
- package/dist/bundled/chunks/chunk.CBPTZHUR.js +31 -0
- package/dist/bundled/chunks/chunk.CEUQE3ZD.js +94 -0
- package/dist/bundled/chunks/chunk.CPODCRNC.js +34 -0
- package/dist/bundled/chunks/chunk.CVYRHSAD.js +13 -0
- package/dist/bundled/chunks/chunk.CYTM5IYV.js +48 -0
- package/dist/bundled/chunks/chunk.CYXYTISQ.js +937 -0
- package/dist/bundled/chunks/chunk.DEAOSDBT.js +27 -0
- package/dist/bundled/chunks/chunk.DHGELCIC.js +297 -0
- package/dist/bundled/chunks/chunk.DI56R5G6.js +508 -0
- package/dist/bundled/chunks/chunk.DJGKLHDS.js +12 -0
- package/dist/bundled/chunks/chunk.DKNMYQC4.js +153 -0
- package/dist/bundled/chunks/chunk.DLMAYLGX.js +27 -0
- package/dist/bundled/chunks/chunk.DM7SWWJJ.js +13 -0
- package/dist/bundled/chunks/chunk.DOGS4CZF.js +12 -0
- package/dist/bundled/chunks/chunk.DPZ5NAHI.js +307 -0
- package/dist/bundled/chunks/chunk.DUIEJOXX.js +13 -0
- package/dist/bundled/chunks/chunk.DVULTFYK.js +395 -0
- package/dist/bundled/chunks/chunk.DWWUU7WA.js +77 -0
- package/dist/bundled/chunks/chunk.E2U35YDM.js +44 -0
- package/dist/bundled/chunks/chunk.E2W6ZXUI.js +238 -0
- package/dist/bundled/chunks/chunk.E5AVYLVH.js +29 -0
- package/dist/bundled/chunks/chunk.EBKQU5NV.js +31 -0
- package/dist/bundled/chunks/chunk.ED5JD6B5.js +112 -0
- package/dist/bundled/chunks/chunk.EEH6NBPI.js +27 -0
- package/dist/bundled/chunks/chunk.EFKRQGJH.js +370 -0
- package/dist/bundled/chunks/chunk.EG5REAY7.js +354 -0
- package/dist/bundled/chunks/chunk.EJMJ6JDQ.js +27 -0
- package/dist/bundled/chunks/chunk.EJSU7GFZ.js +58 -0
- package/dist/bundled/chunks/chunk.EL4JV2UT.js +188 -0
- package/dist/bundled/chunks/chunk.F4Z4PXXT.js +13 -0
- package/dist/bundled/chunks/chunk.F53YJM7K.js +375 -0
- package/dist/bundled/chunks/chunk.F5DSG3UB.js +65 -0
- package/dist/bundled/chunks/chunk.F7VO4TX4.js +29 -0
- package/dist/bundled/chunks/chunk.FG7ALZ4R.js +94 -0
- package/dist/bundled/chunks/chunk.FGNU55DN.js +37 -0
- package/dist/bundled/chunks/chunk.FHKUB4MZ.js +17 -0
- package/dist/bundled/chunks/chunk.FUZN42WM.js +15 -0
- package/dist/bundled/chunks/chunk.FVPUKB2U.js +27 -0
- package/dist/bundled/chunks/chunk.G4E4GN4C.js +122 -0
- package/dist/bundled/chunks/chunk.GCLBBPXW.js +85 -0
- package/dist/bundled/chunks/chunk.GJJU3I5S.js +136 -0
- package/dist/bundled/chunks/chunk.GKR2DLVL.js +12 -0
- package/dist/bundled/chunks/chunk.GSIRCGUE.js +58 -0
- package/dist/bundled/chunks/chunk.GT5PEMIO.js +54 -0
- package/dist/bundled/chunks/chunk.GUH4J3HX.js +30 -0
- package/dist/bundled/chunks/chunk.GVHHAHHN.js +120 -0
- package/dist/bundled/chunks/chunk.GZ2B7PDS.js +29 -0
- package/dist/bundled/chunks/chunk.GZ74RBL2.js +27 -0
- package/dist/bundled/chunks/chunk.GZBLDFJY.js +12 -0
- package/dist/bundled/chunks/chunk.H6HOECHG.js +117 -0
- package/dist/bundled/chunks/chunk.HERJZXS2.js +42 -0
- package/dist/bundled/chunks/chunk.HGZPUTYB.js +66 -0
- package/dist/bundled/chunks/chunk.HKGYFZKM.js +12 -0
- package/dist/bundled/chunks/chunk.HMC6XL2M.js +47 -0
- package/dist/bundled/chunks/chunk.HNISCUJX.js +27 -0
- package/dist/bundled/chunks/chunk.HNK5SA2X.js +227 -0
- package/dist/bundled/chunks/chunk.HRQDVJCP.js +13 -0
- package/dist/bundled/chunks/chunk.HVRBYPAL.js +36 -0
- package/dist/bundled/chunks/chunk.I3PW7M6I.js +180 -0
- package/dist/bundled/chunks/chunk.I75R6AAB.js +98 -0
- package/dist/bundled/chunks/chunk.IDFE6ED7.js +27 -0
- package/dist/bundled/chunks/chunk.IEAQPCH5.js +32 -0
- package/dist/bundled/chunks/chunk.IQJMSIWD.js +56 -0
- package/dist/bundled/chunks/chunk.ITDZMCUA.js +24 -0
- package/dist/bundled/chunks/chunk.IUTLQHI3.js +76 -0
- package/dist/bundled/chunks/chunk.IWBI43US.js +30 -0
- package/dist/bundled/chunks/chunk.J54TPJJR.js +13 -0
- package/dist/bundled/chunks/chunk.JCMK3SVY.js +101 -0
- package/dist/bundled/chunks/chunk.JD7ZXVFZ.js +95 -0
- package/dist/bundled/chunks/chunk.JE6NWSEX.js +20 -0
- package/dist/bundled/chunks/chunk.JFZTNMKP.js +27 -0
- package/dist/bundled/chunks/chunk.JULSATIO.js +64 -0
- package/dist/bundled/chunks/chunk.JWFTJDOQ.js +46 -0
- package/dist/bundled/chunks/chunk.KAIO5XHI.js +236 -0
- package/dist/bundled/chunks/chunk.KAWWN6JF.js +114 -0
- package/dist/bundled/chunks/chunk.KCSF6NHY.js +12 -0
- package/dist/bundled/chunks/chunk.KIU3QIDA.js +29 -0
- package/dist/bundled/chunks/chunk.KMMJHN3W.js +15 -0
- package/dist/bundled/chunks/chunk.KN5NL54R.js +103 -0
- package/dist/bundled/chunks/chunk.KNIF5YYS.js +120 -0
- package/dist/bundled/chunks/chunk.KQ5YCOHN.js +15 -0
- package/dist/bundled/chunks/chunk.KSGC4EJG.js +252 -0
- package/dist/bundled/chunks/chunk.KTPC5MDL.js +32 -0
- package/dist/bundled/chunks/chunk.KVDJEYXZ.js +13 -0
- package/dist/bundled/chunks/chunk.KVQHYBZN.js +12 -0
- package/dist/bundled/chunks/chunk.KWPEWGIL.js +258 -0
- package/dist/bundled/chunks/chunk.KYEUBKCN.js +29 -0
- package/dist/bundled/chunks/chunk.KYFP5AW3.js +32 -0
- package/dist/bundled/chunks/chunk.KZLT7WO7.js +91 -0
- package/dist/bundled/chunks/chunk.L22FZUBW.js +129 -0
- package/dist/bundled/chunks/chunk.L7NZ73KH.js +155 -0
- package/dist/bundled/chunks/chunk.LAITVBL4.js +33 -0
- package/dist/bundled/chunks/chunk.LASHP2SY.js +30 -0
- package/dist/bundled/chunks/chunk.LILWNNB7.js +350 -0
- package/dist/bundled/chunks/chunk.LJBXODA4.js +47 -0
- package/dist/bundled/chunks/chunk.LMXMK4DT.js +447 -0
- package/dist/bundled/chunks/chunk.LPUHNZTF.js +88 -0
- package/dist/bundled/chunks/chunk.LRRLWOE6.js +166 -0
- package/dist/bundled/chunks/chunk.LVHU6H2Q.js +29 -0
- package/dist/bundled/chunks/chunk.MD5XGOGB.js +32 -0
- package/dist/bundled/chunks/chunk.MD7QGXV6.js +338 -0
- package/dist/bundled/chunks/chunk.MDTLTHHU.js +138 -0
- package/dist/bundled/chunks/chunk.MDV4MWU5.js +47 -0
- package/dist/bundled/chunks/chunk.MGBGUTRM.js +23 -0
- package/dist/bundled/chunks/chunk.MKOIOS7V.js +37 -0
- package/dist/bundled/chunks/chunk.MOKW7CPV.js +2191 -0
- package/dist/bundled/chunks/chunk.MQJIK3RG.js +24 -0
- package/dist/bundled/chunks/chunk.MQUMMXU7.js +112 -0
- package/dist/bundled/chunks/chunk.MU5MTXP6.js +30 -0
- package/dist/bundled/chunks/chunk.MXDDVMNT.js +85 -0
- package/dist/bundled/chunks/chunk.MZHGFMA5.js +342 -0
- package/dist/bundled/chunks/chunk.N2RWV4HH.js +260 -0
- package/dist/bundled/chunks/chunk.N3T5NHUN.js +170 -0
- package/dist/bundled/chunks/chunk.N46QJHPG.js +12 -0
- package/dist/bundled/chunks/chunk.N6624IF2.js +94 -0
- package/dist/bundled/chunks/chunk.NDXS5GCM.js +15 -0
- package/dist/bundled/chunks/chunk.NFP5T275.js +583 -0
- package/dist/bundled/chunks/chunk.NGAZFNTC.js +97 -0
- package/dist/bundled/chunks/chunk.NGRHC5GL.js +29 -0
- package/dist/bundled/chunks/chunk.NJQPV52Q.js +725 -0
- package/dist/bundled/chunks/chunk.NKGLYYO4.js +134 -0
- package/dist/bundled/chunks/chunk.NNJFSEIV.js +33 -0
- package/dist/bundled/chunks/chunk.NP5FUMQ2.js +180 -0
- package/dist/bundled/chunks/chunk.NWYNPB7G.js +27 -0
- package/dist/bundled/chunks/chunk.NXATREZW.js +92 -0
- package/dist/bundled/chunks/chunk.O2Q2PPT3.js +339 -0
- package/dist/bundled/chunks/chunk.O677NKTT.js +27 -0
- package/dist/bundled/chunks/chunk.O6L7CNGM.js +12 -0
- package/dist/bundled/chunks/chunk.OA3WP5I4.js +100 -0
- package/dist/bundled/chunks/chunk.OD5WDX3O.js +65 -0
- package/dist/bundled/chunks/chunk.OKL7JOEL.js +41 -0
- package/dist/bundled/chunks/chunk.OMGOX7LB.js +27 -0
- package/dist/bundled/chunks/chunk.OMVBTU6M.js +287 -0
- package/dist/bundled/chunks/chunk.OPY26TZJ.js +51 -0
- package/dist/bundled/chunks/chunk.OQK3II74.js +47 -0
- package/dist/bundled/chunks/chunk.OVDICTH3.js +71 -0
- package/dist/bundled/chunks/chunk.OW5D4XFX.js +27 -0
- package/dist/bundled/chunks/chunk.OX3NMSH4.js +429 -0
- package/dist/bundled/chunks/chunk.OXWOBIXT.js +92 -0
- package/dist/bundled/chunks/chunk.P32FPAIL.js +231 -0
- package/dist/bundled/chunks/chunk.P5GAO3JR.js +25 -0
- package/dist/bundled/chunks/chunk.P5KEF34T.js +27 -0
- package/dist/bundled/chunks/chunk.P7WSEWAS.js +13 -0
- package/dist/bundled/chunks/chunk.PBUDFS6D.js +664 -0
- package/dist/bundled/chunks/chunk.PBZ5J7GL.js +10 -0
- package/dist/bundled/chunks/chunk.PKTJKPXW.js +31 -0
- package/dist/bundled/chunks/chunk.PME77QE2.js +341 -0
- package/dist/bundled/chunks/chunk.PMFAZK3U.js +51 -0
- package/dist/bundled/chunks/chunk.PNR7LCSG.js +29 -0
- package/dist/bundled/chunks/chunk.PQCOB5NA.js +1342 -0
- package/dist/bundled/chunks/chunk.PULBYVC7.js +30 -0
- package/dist/bundled/chunks/chunk.PXVXZXIQ.js +85 -0
- package/dist/bundled/chunks/chunk.QFOWTC4I.js +108 -0
- package/dist/bundled/chunks/chunk.QS24RS53.js +13 -0
- package/dist/bundled/chunks/chunk.QSXSR2S5.js +18 -0
- package/dist/bundled/chunks/chunk.R24ZHMBJ.js +51 -0
- package/dist/bundled/chunks/chunk.R3HUWC2P.js +83 -0
- package/dist/bundled/chunks/chunk.R5SVRGFM.js +332 -0
- package/dist/bundled/chunks/chunk.R7U52QXK.js +980 -0
- package/dist/bundled/chunks/chunk.RCLNUWC4.js +29 -0
- package/dist/bundled/chunks/chunk.RESB5OMT.js +122 -0
- package/dist/bundled/chunks/chunk.RIFI5PWB.js +29 -0
- package/dist/bundled/chunks/chunk.RK2WQVRH.js +256 -0
- package/dist/bundled/chunks/chunk.RKGCFOCD.js +12 -0
- package/dist/bundled/chunks/chunk.RQ57OUHC.js +32 -0
- package/dist/bundled/chunks/chunk.RSGTXZ3J.js +13 -0
- package/dist/bundled/chunks/chunk.RSRMXC3L.js +384 -0
- package/dist/bundled/chunks/chunk.RVXR3VP3.js +30 -0
- package/dist/bundled/chunks/chunk.RZBC5IQH.js +389 -0
- package/dist/bundled/chunks/chunk.S3ERUAPJ.js +78 -0
- package/dist/bundled/chunks/chunk.SDYIGEVY.js +171 -0
- package/dist/bundled/chunks/chunk.SJWGECOY.js +12 -0
- package/dist/bundled/chunks/chunk.SS3RBTD7.js +854 -0
- package/dist/bundled/chunks/chunk.ST4TDXY6.js +12 -0
- package/dist/bundled/chunks/chunk.T5E3PTDI.js +173 -0
- package/dist/bundled/chunks/chunk.T7K3NQ6Z.js +362 -0
- package/dist/bundled/chunks/chunk.TLRTN7CQ.js +297 -0
- package/dist/bundled/chunks/chunk.TOKT2OBT.js +12 -0
- package/dist/bundled/chunks/chunk.TPLWITTC.js +58 -0
- package/dist/bundled/chunks/chunk.TSR624LM.js +15 -0
- package/dist/bundled/chunks/chunk.TTLMCATW.js +89 -0
- package/dist/bundled/chunks/chunk.TVA63IQG.js +32 -0
- package/dist/bundled/chunks/chunk.TVDKCH42.js +29 -0
- package/dist/bundled/chunks/chunk.U7X26AJ7.js +30 -0
- package/dist/bundled/chunks/chunk.UBUP4T3S.js +27 -0
- package/dist/bundled/chunks/chunk.UEAH232U.js +64 -0
- package/dist/bundled/chunks/chunk.UHATJN6C.js +44 -0
- package/dist/bundled/chunks/chunk.UKHZB7OT.js +25 -0
- package/dist/bundled/chunks/chunk.US4FU4HD.js +12 -0
- package/dist/bundled/chunks/chunk.USW4S5HZ.js +20 -0
- package/dist/bundled/chunks/chunk.USYOGYAD.js +147 -0
- package/dist/bundled/chunks/chunk.V3WAYU6A.js +128 -0
- package/dist/bundled/chunks/chunk.V7UH7V6L.js +300 -0
- package/dist/bundled/chunks/chunk.VAQ3XPZH.js +27 -0
- package/dist/bundled/chunks/chunk.VJLXQNDJ.js +26 -0
- package/dist/bundled/chunks/chunk.VNKDNSXW.js +98 -0
- package/dist/bundled/chunks/chunk.VPFERRRS.js +13 -0
- package/dist/bundled/chunks/chunk.VU3T6CVI.js +984 -0
- package/dist/bundled/chunks/chunk.VUONXSNQ.js +27 -0
- package/dist/bundled/chunks/chunk.VYJPSVWO.js +174 -0
- package/dist/bundled/chunks/chunk.W7FII46Q.js +1 -0
- package/dist/bundled/chunks/chunk.WDJ33J2N.js +34 -0
- package/dist/bundled/chunks/chunk.WN6F72N3.js +13 -0
- package/dist/bundled/chunks/chunk.WNJXTYPU.js +29 -0
- package/dist/bundled/chunks/chunk.WPRRGYV4.js +13 -0
- package/dist/bundled/chunks/chunk.WYOUIY55.js +1 -0
- package/dist/bundled/chunks/chunk.X5GXL2SW.js +27 -0
- package/dist/bundled/chunks/chunk.X6NXO5FA.js +27 -0
- package/dist/bundled/chunks/chunk.XAOMG6TP.js +337 -0
- package/dist/bundled/chunks/chunk.XDOYOYE6.js +12 -0
- package/dist/bundled/chunks/chunk.XJUQRXWZ.js +12 -0
- package/dist/bundled/chunks/chunk.XOXMMJPV.js +275 -0
- package/dist/bundled/chunks/chunk.XVNJJYS7.js +27 -0
- package/dist/bundled/chunks/chunk.XZSSTAPG.js +29 -0
- package/dist/bundled/chunks/chunk.YCZYUBSA.js +27 -0
- package/dist/bundled/chunks/chunk.YFDYOTVG.js +29 -0
- package/dist/bundled/chunks/chunk.YFRAY3EX.js +44 -0
- package/dist/bundled/chunks/chunk.YR4AIV36.js +61 -0
- package/dist/bundled/chunks/chunk.YWKXROPM.js +116 -0
- package/dist/bundled/chunks/chunk.YWQSMSCB.js +13 -0
- package/dist/bundled/chunks/chunk.YWXZTRIE.js +94 -0
- package/dist/bundled/chunks/chunk.Z5ABTJBS.js +24 -0
- package/dist/bundled/chunks/chunk.Z77QXX3S.js +27 -0
- package/dist/bundled/chunks/chunk.ZA72SX75.js +85 -0
- package/dist/bundled/chunks/chunk.ZDLYN4JZ.js +2228 -0
- package/dist/bundled/chunks/chunk.ZFBJZ77S.js +12 -0
- package/dist/bundled/chunks/chunk.ZFKWSVQ4.js +1 -0
- package/dist/bundled/chunks/chunk.ZHAJOHUP.js +124 -0
- package/dist/bundled/chunks/chunk.ZISWZYKB.js +343 -0
- package/dist/bundled/chunks/chunk.ZLZZNVNV.js +138 -0
- package/dist/bundled/chunks/chunk.ZMAQ2XNO.js +39 -0
- package/dist/bundled/chunks/chunk.ZQKBPA5C.js +232 -0
- package/dist/bundled/chunks/chunk.ZZZJOLTN.js +242 -0
- package/dist/bundled/components/accordion/accordion.d.ts +55 -0
- package/dist/bundled/components/accordion/accordion.js +40 -0
- package/dist/bundled/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/bundled/components/accordion/accordion.styles.js +10 -0
- package/dist/bundled/components/accordion-item/accordion-item.d.ts +72 -0
- package/dist/bundled/components/accordion-item/accordion-item.js +34 -0
- package/dist/bundled/components/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/bundled/components/accordion-item/accordion-item.styles.js +10 -0
- package/dist/bundled/components/animated-image/animated-image.d.ts +51 -0
- package/dist/bundled/components/animated-image/animated-image.js +29 -0
- package/dist/bundled/components/animated-image/animated-image.styles.d.ts +2 -0
- package/dist/bundled/components/animated-image/animated-image.styles.js +10 -0
- package/dist/bundled/components/animation/animation.d.ts +83 -0
- package/dist/bundled/components/animation/animation.js +17 -0
- package/dist/bundled/components/animation/animation.styles.d.ts +2 -0
- package/dist/bundled/components/animation/animation.styles.js +10 -0
- package/dist/bundled/components/animation/animations.d.ts +6 -0
- package/dist/bundled/components/animation/animations.js +12 -0
- package/dist/bundled/components/avatar/avatar.d.ts +45 -0
- package/dist/bundled/components/avatar/avatar.js +24 -0
- package/dist/bundled/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/bundled/components/avatar/avatar.styles.js +10 -0
- package/dist/bundled/components/badge/badge.d.ts +36 -0
- package/dist/bundled/components/badge/badge.js +13 -0
- package/dist/bundled/components/badge/badge.styles.d.ts +2 -0
- package/dist/bundled/components/badge/badge.styles.js +10 -0
- package/dist/bundled/components/breadcrumb/breadcrumb.d.ts +36 -0
- package/dist/bundled/components/breadcrumb/breadcrumb.js +27 -0
- package/dist/bundled/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/dist/bundled/components/breadcrumb/breadcrumb.styles.js +10 -0
- package/dist/bundled/components/breadcrumb-item/breadcrumb-item.d.ts +42 -0
- package/dist/bundled/components/breadcrumb-item/breadcrumb-item.js +14 -0
- package/dist/bundled/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/bundled/components/breadcrumb-item/breadcrumb-item.styles.js +10 -0
- package/dist/bundled/components/button/button.d.ts +125 -0
- package/dist/bundled/components/button/button.js +37 -0
- package/dist/bundled/components/button/button.styles.d.ts +2 -0
- package/dist/bundled/components/button/button.styles.js +10 -0
- package/dist/bundled/components/button-group/button-group.d.ts +36 -0
- package/dist/bundled/components/button-group/button-group.js +12 -0
- package/dist/bundled/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/bundled/components/button-group/button-group.styles.js +10 -0
- package/dist/bundled/components/callout/callout.d.ts +29 -0
- package/dist/bundled/components/callout/callout.js +14 -0
- package/dist/bundled/components/callout/callout.styles.d.ts +2 -0
- package/dist/bundled/components/callout/callout.styles.js +10 -0
- package/dist/bundled/components/card/card.d.ts +67 -0
- package/dist/bundled/components/card/card.js +16 -0
- package/dist/bundled/components/card/card.styles.d.ts +2 -0
- package/dist/bundled/components/card/card.styles.js +10 -0
- package/dist/bundled/components/carousel/autoplay-controller.d.ts +20 -0
- package/dist/bundled/components/carousel/autoplay-controller.js +8 -0
- package/dist/bundled/components/carousel/carousel.d.ts +131 -0
- package/dist/bundled/components/carousel/carousel.js +35 -0
- package/dist/bundled/components/carousel/carousel.styles.d.ts +2 -0
- package/dist/bundled/components/carousel/carousel.styles.js +10 -0
- package/dist/bundled/components/carousel/scroll-controller.d.ts +25 -0
- package/dist/bundled/components/carousel/scroll-controller.js +110 -0
- package/dist/bundled/components/carousel-item/carousel-item.d.ts +22 -0
- package/dist/bundled/components/carousel-item/carousel-item.js +12 -0
- package/dist/bundled/components/carousel-item/carousel-item.styles.d.ts +2 -0
- package/dist/bundled/components/carousel-item/carousel-item.styles.js +10 -0
- package/dist/bundled/components/checkbox/checkbox.d.ts +97 -0
- package/dist/bundled/components/checkbox/checkbox.js +34 -0
- package/dist/bundled/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/bundled/components/checkbox/checkbox.styles.js +10 -0
- package/dist/bundled/components/checkbox-group/checkbox-group.d.ts +70 -0
- package/dist/bundled/components/checkbox-group/checkbox-group.js +36 -0
- package/dist/bundled/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/bundled/components/checkbox-group/checkbox-group.styles.js +10 -0
- package/dist/bundled/components/color-picker/color-picker.d.ts +232 -0
- package/dist/bundled/components/color-picker/color-picker.js +59 -0
- package/dist/bundled/components/color-picker/color-picker.styles.d.ts +2 -0
- package/dist/bundled/components/color-picker/color-picker.styles.js +10 -0
- package/dist/bundled/components/comparison/comparison.d.ts +44 -0
- package/dist/bundled/components/comparison/comparison.js +31 -0
- package/dist/bundled/components/comparison/comparison.styles.d.ts +2 -0
- package/dist/bundled/components/comparison/comparison.styles.js +10 -0
- package/dist/bundled/components/copy-button/copy-button.d.ts +96 -0
- package/dist/bundled/components/copy-button/copy-button.js +45 -0
- package/dist/bundled/components/copy-button/copy-button.styles.d.ts +2 -0
- package/dist/bundled/components/copy-button/copy-button.styles.js +10 -0
- package/dist/bundled/components/details/details.d.ts +79 -0
- package/dist/bundled/components/details/details.js +37 -0
- package/dist/bundled/components/details/details.styles.d.ts +2 -0
- package/dist/bundled/components/details/details.styles.js +10 -0
- package/dist/bundled/components/dialog/dialog.d.ts +88 -0
- package/dist/bundled/components/dialog/dialog.js +49 -0
- package/dist/bundled/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/bundled/components/dialog/dialog.styles.js +10 -0
- package/dist/bundled/components/divider/divider.d.ts +24 -0
- package/dist/bundled/components/divider/divider.js +13 -0
- package/dist/bundled/components/divider/divider.styles.d.ts +2 -0
- package/dist/bundled/components/divider/divider.styles.js +10 -0
- package/dist/bundled/components/drawer/drawer.d.ts +96 -0
- package/dist/bundled/components/drawer/drawer.js +49 -0
- package/dist/bundled/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/bundled/components/drawer/drawer.styles.js +10 -0
- package/dist/bundled/components/dropdown/dropdown.d.ts +111 -0
- package/dist/bundled/components/dropdown/dropdown.js +45 -0
- package/dist/bundled/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/bundled/components/dropdown/dropdown.styles.js +10 -0
- package/dist/bundled/components/dropdown-item/dropdown-item.d.ts +94 -0
- package/dist/bundled/components/dropdown-item/dropdown-item.js +26 -0
- package/dist/bundled/components/dropdown-item/dropdown-item.styles.d.ts +2 -0
- package/dist/bundled/components/dropdown-item/dropdown-item.styles.js +10 -0
- package/dist/bundled/components/format-bytes/format-bytes.d.ts +24 -0
- package/dist/bundled/components/format-bytes/format-bytes.js +14 -0
- package/dist/bundled/components/format-date/format-date.d.ts +46 -0
- package/dist/bundled/components/format-date/format-date.js +14 -0
- package/dist/bundled/components/format-number/format-number.d.ts +38 -0
- package/dist/bundled/components/format-number/format-number.js +14 -0
- package/dist/bundled/components/icon/icon.d.ts +124 -0
- package/dist/bundled/components/icon/icon.js +22 -0
- package/dist/bundled/components/icon/icon.styles.d.ts +2 -0
- package/dist/bundled/components/icon/icon.styles.js +10 -0
- package/dist/bundled/components/icon/library.brands.d.ts +15 -0
- package/dist/bundled/components/icon/library.brands.js +10 -0
- package/dist/bundled/components/icon/library.d.ts +24 -0
- package/dist/bundled/components/icon/library.default.d.ts +26 -0
- package/dist/bundled/components/icon/library.default.js +15 -0
- package/dist/bundled/components/icon/library.js +24 -0
- package/dist/bundled/components/icon/library.system.d.ts +20 -0
- package/dist/bundled/components/icon/library.system.js +10 -0
- package/dist/bundled/components/include/include.d.ts +42 -0
- package/dist/bundled/components/include/include.js +16 -0
- package/dist/bundled/components/include/include.styles.d.ts +2 -0
- package/dist/bundled/components/include/include.styles.js +10 -0
- package/dist/bundled/components/include/request.d.ts +8 -0
- package/dist/bundled/components/include/request.js +8 -0
- package/dist/bundled/components/input/input.d.ts +172 -0
- package/dist/bundled/components/input/input.js +39 -0
- package/dist/bundled/components/input/input.styles.d.ts +2 -0
- package/dist/bundled/components/input/input.styles.js +10 -0
- package/dist/bundled/components/intersection-observer/intersection-observer.d.ts +51 -0
- package/dist/bundled/components/intersection-observer/intersection-observer.js +16 -0
- package/dist/bundled/components/intersection-observer/intersection-observer.styles.d.ts +2 -0
- package/dist/bundled/components/intersection-observer/intersection-observer.styles.js +10 -0
- package/dist/bundled/components/known-date/internal/field-order.d.ts +12 -0
- package/dist/bundled/components/known-date/internal/field-order.js +8 -0
- package/dist/bundled/components/known-date/internal/partial-date-validator.d.ts +11 -0
- package/dist/bundled/components/known-date/internal/partial-date-validator.js +8 -0
- package/dist/bundled/components/known-date/internal/parts.d.ts +26 -0
- package/dist/bundled/components/known-date/internal/parts.js +16 -0
- package/dist/bundled/components/known-date/known-date.d.ts +144 -0
- package/dist/bundled/components/known-date/known-date.js +31 -0
- package/dist/bundled/components/known-date/known-date.styles.d.ts +2 -0
- package/dist/bundled/components/known-date/known-date.styles.js +10 -0
- package/dist/bundled/components/markdown/markdown.d.ts +42 -0
- package/dist/bundled/components/markdown/markdown.js +12 -0
- package/dist/bundled/components/markdown/markdown.styles.d.ts +2 -0
- package/dist/bundled/components/markdown/markdown.styles.js +10 -0
- package/dist/bundled/components/mutation-observer/mutation-observer.d.ts +44 -0
- package/dist/bundled/components/mutation-observer/mutation-observer.js +14 -0
- package/dist/bundled/components/mutation-observer/mutation-observer.styles.d.ts +2 -0
- package/dist/bundled/components/mutation-observer/mutation-observer.styles.js +10 -0
- package/dist/bundled/components/number-input/number-input.d.ts +146 -0
- package/dist/bundled/components/number-input/number-input.js +38 -0
- package/dist/bundled/components/number-input/number-input.styles.d.ts +2 -0
- package/dist/bundled/components/number-input/number-input.styles.js +10 -0
- package/dist/bundled/components/option/option.d.ts +74 -0
- package/dist/bundled/components/option/option.js +27 -0
- package/dist/bundled/components/option/option.styles.d.ts +2 -0
- package/dist/bundled/components/option/option.styles.js +10 -0
- package/dist/bundled/components/otp-input/otp-input.d.ts +146 -0
- package/dist/bundled/components/otp-input/otp-input.js +26 -0
- package/dist/bundled/components/otp-input/otp-input.styles.d.ts +2 -0
- package/dist/bundled/components/otp-input/otp-input.styles.js +10 -0
- package/dist/bundled/components/page/page.d.ts +139 -0
- package/dist/bundled/components/page/page.js +56 -0
- package/dist/bundled/components/page/page.mobile.styles.d.ts +2 -0
- package/dist/bundled/components/page/page.mobile.styles.js +8 -0
- package/dist/bundled/components/page/page.styles.d.ts +2 -0
- package/dist/bundled/components/page/page.styles.js +10 -0
- package/dist/bundled/components/pagination/pagination.d.ts +116 -0
- package/dist/bundled/components/pagination/pagination.js +35 -0
- package/dist/bundled/components/pagination/pagination.styles.d.ts +2 -0
- package/dist/bundled/components/pagination/pagination.styles.js +10 -0
- package/dist/bundled/components/popover/popover.d.ts +79 -0
- package/dist/bundled/components/popover/popover.js +29 -0
- package/dist/bundled/components/popover/popover.styles.d.ts +2 -0
- package/dist/bundled/components/popover/popover.styles.js +10 -0
- package/dist/bundled/components/popup/popup.d.ts +161 -0
- package/dist/bundled/components/popup/popup.js +18 -0
- package/dist/bundled/components/popup/popup.styles.d.ts +2 -0
- package/dist/bundled/components/popup/popup.styles.js +10 -0
- package/dist/bundled/components/progress-bar/progress-bar.d.ts +37 -0
- package/dist/bundled/components/progress-bar/progress-bar.js +17 -0
- package/dist/bundled/components/progress-bar/progress-bar.styles.d.ts +2 -0
- package/dist/bundled/components/progress-bar/progress-bar.styles.js +10 -0
- package/dist/bundled/components/progress-ring/progress-ring.d.ts +40 -0
- package/dist/bundled/components/progress-ring/progress-ring.js +17 -0
- package/dist/bundled/components/progress-ring/progress-ring.styles.d.ts +2 -0
- package/dist/bundled/components/progress-ring/progress-ring.styles.js +10 -0
- package/dist/bundled/components/qr-code/qr-code.d.ts +48 -0
- package/dist/bundled/components/qr-code/qr-code.js +14 -0
- package/dist/bundled/components/qr-code/qr-code.styles.d.ts +2 -0
- package/dist/bundled/components/qr-code/qr-code.styles.js +10 -0
- package/dist/bundled/components/radio/radio.d.ts +59 -0
- package/dist/bundled/components/radio/radio.js +28 -0
- package/dist/bundled/components/radio/radio.styles.d.ts +2 -0
- package/dist/bundled/components/radio/radio.styles.js +10 -0
- package/dist/bundled/components/radio-group/radio-group.d.ts +95 -0
- package/dist/bundled/components/radio-group/radio-group.js +35 -0
- package/dist/bundled/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/bundled/components/radio-group/radio-group.styles.js +10 -0
- package/dist/bundled/components/random-content/random-content.d.ts +56 -0
- package/dist/bundled/components/random-content/random-content.js +17 -0
- package/dist/bundled/components/random-content/random-content.styles.d.ts +2 -0
- package/dist/bundled/components/random-content/random-content.styles.js +10 -0
- package/dist/bundled/components/rating/rating.d.ts +85 -0
- package/dist/bundled/components/rating/rating.js +37 -0
- package/dist/bundled/components/rating/rating.styles.d.ts +2 -0
- package/dist/bundled/components/rating/rating.styles.js +10 -0
- package/dist/bundled/components/relative-time/relative-time.d.ts +43 -0
- package/dist/bundled/components/relative-time/relative-time.js +14 -0
- package/dist/bundled/components/resize-observer/resize-observer.d.ts +31 -0
- package/dist/bundled/components/resize-observer/resize-observer.js +14 -0
- package/dist/bundled/components/resize-observer/resize-observer.styles.d.ts +2 -0
- package/dist/bundled/components/resize-observer/resize-observer.styles.js +10 -0
- package/dist/bundled/components/scroller/scroller.d.ts +41 -0
- package/dist/bundled/components/scroller/scroller.js +15 -0
- package/dist/bundled/components/scroller/scroller.styles.d.ts +2 -0
- package/dist/bundled/components/scroller/scroller.styles.js +10 -0
- package/dist/bundled/components/select/select.d.ts +197 -0
- package/dist/bundled/components/select/select.js +60 -0
- package/dist/bundled/components/select/select.styles.d.ts +2 -0
- package/dist/bundled/components/select/select.styles.js +10 -0
- package/dist/bundled/components/skeleton/skeleton.d.ts +24 -0
- package/dist/bundled/components/skeleton/skeleton.js +12 -0
- package/dist/bundled/components/skeleton/skeleton.styles.d.ts +2 -0
- package/dist/bundled/components/skeleton/skeleton.styles.js +10 -0
- package/dist/bundled/components/slider/slider.d.ts +199 -0
- package/dist/bundled/components/slider/slider.js +40 -0
- package/dist/bundled/components/slider/slider.styles.d.ts +2 -0
- package/dist/bundled/components/slider/slider.styles.js +10 -0
- package/dist/bundled/components/spinner/spinner.d.ts +25 -0
- package/dist/bundled/components/spinner/spinner.js +15 -0
- package/dist/bundled/components/spinner/spinner.styles.d.ts +2 -0
- package/dist/bundled/components/spinner/spinner.styles.js +10 -0
- package/dist/bundled/components/split-panel/split-panel.d.ts +80 -0
- package/dist/bundled/components/split-panel/split-panel.js +20 -0
- package/dist/bundled/components/split-panel/split-panel.styles.d.ts +2 -0
- package/dist/bundled/components/split-panel/split-panel.styles.js +10 -0
- package/dist/bundled/components/switch/switch.d.ts +89 -0
- package/dist/bundled/components/switch/switch.js +27 -0
- package/dist/bundled/components/switch/switch.styles.d.ts +2 -0
- package/dist/bundled/components/switch/switch.styles.js +10 -0
- package/dist/bundled/components/tab/tab.d.ts +42 -0
- package/dist/bundled/components/tab/tab.js +15 -0
- package/dist/bundled/components/tab/tab.styles.d.ts +2 -0
- package/dist/bundled/components/tab/tab.styles.js +10 -0
- package/dist/bundled/components/tab-group/tab-group.d.ts +84 -0
- package/dist/bundled/components/tab-group/tab-group.js +46 -0
- package/dist/bundled/components/tab-group/tab-group.styles.d.ts +2 -0
- package/dist/bundled/components/tab-group/tab-group.styles.js +10 -0
- package/dist/bundled/components/tab-panel/tab-panel.d.ts +30 -0
- package/dist/bundled/components/tab-panel/tab-panel.js +15 -0
- package/dist/bundled/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/bundled/components/tab-panel/tab-panel.styles.js +10 -0
- package/dist/bundled/components/tag/tag.d.ts +40 -0
- package/dist/bundled/components/tag/tag.js +40 -0
- package/dist/bundled/components/tag/tag.styles.d.ts +2 -0
- package/dist/bundled/components/tag/tag.styles.js +10 -0
- package/dist/bundled/components/textarea/textarea.d.ts +149 -0
- package/dist/bundled/components/textarea/textarea.js +28 -0
- package/dist/bundled/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/bundled/components/textarea/textarea.styles.js +10 -0
- package/dist/bundled/components/time-input/internal/time-segments.d.ts +111 -0
- package/dist/bundled/components/time-input/internal/time-segments.js +38 -0
- package/dist/bundled/components/time-input/time-input.d.ts +242 -0
- package/dist/bundled/components/time-input/time-input.js +38 -0
- package/dist/bundled/components/time-input/time-input.styles.d.ts +2 -0
- package/dist/bundled/components/time-input/time-input.styles.js +10 -0
- package/dist/bundled/components/toast/toast.d.ts +83 -0
- package/dist/bundled/components/toast/toast.js +43 -0
- package/dist/bundled/components/toast/toast.styles.d.ts +2 -0
- package/dist/bundled/components/toast/toast.styles.js +10 -0
- package/dist/bundled/components/toast-item/toast-item.d.ts +86 -0
- package/dist/bundled/components/toast-item/toast-item.js +40 -0
- package/dist/bundled/components/toast-item/toast-item.styles.d.ts +2 -0
- package/dist/bundled/components/toast-item/toast-item.styles.js +10 -0
- package/dist/bundled/components/tooltip/tooltip.d.ts +91 -0
- package/dist/bundled/components/tooltip/tooltip.js +29 -0
- package/dist/bundled/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/bundled/components/tooltip/tooltip.styles.js +10 -0
- package/dist/bundled/components/tree/tree.d.ts +70 -0
- package/dist/bundled/components/tree/tree.js +53 -0
- package/dist/bundled/components/tree/tree.styles.d.ts +2 -0
- package/dist/bundled/components/tree/tree.styles.js +10 -0
- package/dist/bundled/components/tree-item/tree-item.d.ts +114 -0
- package/dist/bundled/components/tree-item/tree-item.js +51 -0
- package/dist/bundled/components/tree-item/tree-item.styles.d.ts +2 -0
- package/dist/bundled/components/tree-item/tree-item.styles.js +10 -0
- package/dist/bundled/components/zoomable-frame/zoomable-frame.d.ts +78 -0
- package/dist/bundled/components/zoomable-frame/zoomable-frame.js +29 -0
- package/dist/bundled/components/zoomable-frame/zoomable-frame.styles.d.ts +2 -0
- package/dist/bundled/components/zoomable-frame/zoomable-frame.styles.js +10 -0
- package/dist/bundled/cornerstone.all.js +11182 -0
- package/dist/bundled/cornerstone.d.ts +10 -0
- package/dist/bundled/cornerstone.js +67 -0
- package/dist/bundled/cornerstone.loader.d.ts +1 -0
- package/dist/bundled/cornerstone.loader.js +68 -0
- package/dist/bundled/cornerstone.ssr-loader.d.ts +2 -0
- package/dist/bundled/cornerstone.ssr-loader.js +73 -0
- package/dist/bundled/custom-elements-jsx.d.ts +17960 -0
- package/dist/bundled/custom-elements.json +52833 -0
- package/dist/bundled/events/accordion-after-collapse.d.ts +14 -0
- package/dist/bundled/events/accordion-after-collapse.js +8 -0
- package/dist/bundled/events/accordion-after-expand.d.ts +14 -0
- package/dist/bundled/events/accordion-after-expand.js +8 -0
- package/dist/bundled/events/accordion-collapse.d.ts +14 -0
- package/dist/bundled/events/accordion-collapse.js +8 -0
- package/dist/bundled/events/accordion-expand.d.ts +14 -0
- package/dist/bundled/events/accordion-expand.js +8 -0
- package/dist/bundled/events/accordion-item-collapsed.d.ts +9 -0
- package/dist/bundled/events/accordion-item-collapsed.js +8 -0
- package/dist/bundled/events/accordion-item-expanded.d.ts +9 -0
- package/dist/bundled/events/accordion-item-expanded.js +8 -0
- package/dist/bundled/events/accordion-item-trigger.d.ts +14 -0
- package/dist/bundled/events/accordion-item-trigger.js +8 -0
- package/dist/bundled/events/after-collapse.d.ts +8 -0
- package/dist/bundled/events/after-collapse.js +8 -0
- package/dist/bundled/events/after-expand.d.ts +8 -0
- package/dist/bundled/events/after-expand.js +8 -0
- package/dist/bundled/events/after-hide.d.ts +8 -0
- package/dist/bundled/events/after-hide.js +8 -0
- package/dist/bundled/events/after-page-change.d.ts +14 -0
- package/dist/bundled/events/after-page-change.js +8 -0
- package/dist/bundled/events/after-show.d.ts +8 -0
- package/dist/bundled/events/after-show.js +8 -0
- package/dist/bundled/events/cancel.d.ts +8 -0
- package/dist/bundled/events/cancel.js +8 -0
- package/dist/bundled/events/clear.d.ts +8 -0
- package/dist/bundled/events/clear.js +8 -0
- package/dist/bundled/events/collapse.d.ts +8 -0
- package/dist/bundled/events/collapse.js +8 -0
- package/dist/bundled/events/complete.d.ts +8 -0
- package/dist/bundled/events/complete.js +8 -0
- package/dist/bundled/events/copy.d.ts +14 -0
- package/dist/bundled/events/copy.js +8 -0
- package/dist/bundled/events/error.d.ts +8 -0
- package/dist/bundled/events/error.js +8 -0
- package/dist/bundled/events/events.d.ts +41 -0
- package/dist/bundled/events/events.js +2 -0
- package/dist/bundled/events/expand.d.ts +8 -0
- package/dist/bundled/events/expand.js +8 -0
- package/dist/bundled/events/finish.d.ts +8 -0
- package/dist/bundled/events/finish.js +8 -0
- package/dist/bundled/events/hide.d.ts +13 -0
- package/dist/bundled/events/hide.js +8 -0
- package/dist/bundled/events/hover.d.ts +14 -0
- package/dist/bundled/events/hover.js +8 -0
- package/dist/bundled/events/include-error.d.ts +13 -0
- package/dist/bundled/events/include-error.js +8 -0
- package/dist/bundled/events/intersect.d.ts +14 -0
- package/dist/bundled/events/intersect.js +8 -0
- package/dist/bundled/events/invalid.d.ts +8 -0
- package/dist/bundled/events/invalid.js +8 -0
- package/dist/bundled/events/lazy-change.d.ts +8 -0
- package/dist/bundled/events/lazy-change.js +8 -0
- package/dist/bundled/events/lazy-load.d.ts +8 -0
- package/dist/bundled/events/lazy-load.js +8 -0
- package/dist/bundled/events/load.d.ts +8 -0
- package/dist/bundled/events/load.js +8 -0
- package/dist/bundled/events/mutation.d.ts +13 -0
- package/dist/bundled/events/mutation.js +8 -0
- package/dist/bundled/events/page-change.d.ts +16 -0
- package/dist/bundled/events/page-change.js +8 -0
- package/dist/bundled/events/random-content-change.d.ts +14 -0
- package/dist/bundled/events/random-content-change.js +8 -0
- package/dist/bundled/events/remove.d.ts +8 -0
- package/dist/bundled/events/remove.js +8 -0
- package/dist/bundled/events/reposition.d.ts +8 -0
- package/dist/bundled/events/reposition.js +8 -0
- package/dist/bundled/events/resize.d.ts +13 -0
- package/dist/bundled/events/resize.js +8 -0
- package/dist/bundled/events/select.d.ts +13 -0
- package/dist/bundled/events/select.js +8 -0
- package/dist/bundled/events/selection-change.d.ts +14 -0
- package/dist/bundled/events/selection-change.js +8 -0
- package/dist/bundled/events/show.d.ts +8 -0
- package/dist/bundled/events/show.js +8 -0
- package/dist/bundled/events/slide-change.d.ts +15 -0
- package/dist/bundled/events/slide-change.js +8 -0
- package/dist/bundled/events/start.d.ts +8 -0
- package/dist/bundled/events/start.js +8 -0
- package/dist/bundled/events/tab-hide.d.ts +13 -0
- package/dist/bundled/events/tab-hide.js +8 -0
- package/dist/bundled/events/tab-show.d.ts +13 -0
- package/dist/bundled/events/tab-show.js +8 -0
- package/dist/bundled/internal/active-elements.d.ts +15 -0
- package/dist/bundled/internal/animate.d.ts +11 -0
- package/dist/bundled/internal/color-scheme-controller.d.ts +10 -0
- package/dist/bundled/internal/computed-style.d.ts +2 -0
- package/dist/bundled/internal/cornerstone-element.d.ts +55 -0
- package/dist/bundled/internal/cornerstone-form-associated-element.d.ts +115 -0
- package/dist/bundled/internal/custom-element.d.ts +18 -0
- package/dist/bundled/internal/debounce.d.ts +1 -0
- package/dist/bundled/internal/default-value.d.ts +2 -0
- package/dist/bundled/internal/dismissible-stack.d.ts +14 -0
- package/dist/bundled/internal/drag.d.ts +58 -0
- package/dist/bundled/internal/event.d.ts +2 -0
- package/dist/bundled/internal/get-text.d.ts +10 -0
- package/dist/bundled/internal/live-announcer.d.ts +21 -0
- package/dist/bundled/internal/math.d.ts +3 -0
- package/dist/bundled/internal/offset.d.ts +11 -0
- package/dist/bundled/internal/parse.d.ts +2 -0
- package/dist/bundled/internal/rendered-watcher.d.ts +20 -0
- package/dist/bundled/internal/scroll.d.ts +11 -0
- package/dist/bundled/internal/scrollend-polyfill.d.ts +1 -0
- package/dist/bundled/internal/segmented-field/segmented-field-controller.d.ts +198 -0
- package/dist/bundled/internal/slot.d.ts +24 -0
- package/dist/bundled/internal/submit-on-enter.d.ts +3 -0
- package/dist/bundled/internal/test/data-testid-helpers.d.ts +12 -0
- package/dist/bundled/internal/test/element-visible-overflow.d.ts +11 -0
- package/dist/bundled/internal/test/expect-event.d.ts +15 -0
- package/dist/bundled/internal/test/fixture.d.ts +28 -0
- package/dist/bundled/internal/test/form-control-base-tests.d.ts +22 -0
- package/dist/bundled/internal/test/pointer-utilities.d.ts +36 -0
- package/dist/bundled/internal/test/wait-for-scrolling.d.ts +9 -0
- package/dist/bundled/internal/validators/custom-error-validator.d.ts +6 -0
- package/dist/bundled/internal/validators/mirror-validator.d.ts +6 -0
- package/dist/bundled/internal/validators/required-validator.d.ts +19 -0
- package/dist/bundled/internal/validators/slider-validator.d.ts +6 -0
- package/dist/bundled/internal/watch.d.ts +26 -0
- package/dist/bundled/llms.txt +3095 -0
- package/dist/bundled/react/accordion/index.d.ts +32 -0
- package/dist/bundled/react/accordion/index.js +42 -0
- package/dist/bundled/react/accordion-item/index.d.ts +30 -0
- package/dist/bundled/react/accordion-item/index.js +36 -0
- package/dist/bundled/react/animated-image/index.d.ts +33 -0
- package/dist/bundled/react/animated-image/index.js +31 -0
- package/dist/bundled/react/animation/index.d.ts +30 -0
- package/dist/bundled/react/animation/index.js +19 -0
- package/dist/bundled/react/avatar/index.d.ts +28 -0
- package/dist/bundled/react/avatar/index.js +26 -0
- package/dist/bundled/react/badge/index.d.ts +21 -0
- package/dist/bundled/react/badge/index.js +15 -0
- package/dist/bundled/react/breadcrumb/index.d.ts +17 -0
- package/dist/bundled/react/breadcrumb/index.js +29 -0
- package/dist/bundled/react/breadcrumb-item/index.d.ts +21 -0
- package/dist/bundled/react/breadcrumb-item/index.js +16 -0
- package/dist/bundled/react/button/index.d.ts +38 -0
- package/dist/bundled/react/button/index.js +39 -0
- package/dist/bundled/react/button-group/index.d.ts +13 -0
- package/dist/bundled/react/button-group/index.js +14 -0
- package/dist/bundled/react/callout/index.d.ts +16 -0
- package/dist/bundled/react/callout/index.js +16 -0
- package/dist/bundled/react/card/index.d.ts +28 -0
- package/dist/bundled/react/card/index.js +18 -0
- package/dist/bundled/react/carousel/index.d.ts +40 -0
- package/dist/bundled/react/carousel/index.js +37 -0
- package/dist/bundled/react/carousel-item/index.d.ts +14 -0
- package/dist/bundled/react/carousel-item/index.js +14 -0
- package/dist/bundled/react/checkbox/index.d.ts +42 -0
- package/dist/bundled/react/checkbox/index.js +36 -0
- package/dist/bundled/react/checkbox-group/index.d.ts +24 -0
- package/dist/bundled/react/checkbox-group/index.js +38 -0
- package/dist/bundled/react/color-picker/index.d.ts +80 -0
- package/dist/bundled/react/color-picker/index.js +61 -0
- package/dist/bundled/react/comparison/index.d.ts +29 -0
- package/dist/bundled/react/comparison/index.js +33 -0
- package/dist/bundled/react/copy-button/index.d.ts +39 -0
- package/dist/bundled/react/copy-button/index.js +47 -0
- package/dist/bundled/react/details/index.d.ts +49 -0
- package/dist/bundled/react/details/index.js +39 -0
- package/dist/bundled/react/dialog/index.d.ts +55 -0
- package/dist/bundled/react/dialog/index.js +51 -0
- package/dist/bundled/react/divider/index.d.ts +14 -0
- package/dist/bundled/react/divider/index.js +15 -0
- package/dist/bundled/react/drawer/index.d.ts +61 -0
- package/dist/bundled/react/drawer/index.js +51 -0
- package/dist/bundled/react/dropdown/index.d.ts +44 -0
- package/dist/bundled/react/dropdown/index.js +47 -0
- package/dist/bundled/react/dropdown-item/index.d.ts +29 -0
- package/dist/bundled/react/dropdown-item/index.js +28 -0
- package/dist/bundled/react/format-bytes/index.d.ts +10 -0
- package/dist/bundled/react/format-bytes/index.js +16 -0
- package/dist/bundled/react/format-date/index.d.ts +10 -0
- package/dist/bundled/react/format-date/index.js +16 -0
- package/dist/bundled/react/format-number/index.d.ts +10 -0
- package/dist/bundled/react/format-number/index.js +16 -0
- package/dist/bundled/react/icon/index.d.ts +64 -0
- package/dist/bundled/react/icon/index.js +24 -0
- package/dist/bundled/react/include/index.d.ts +23 -0
- package/dist/bundled/react/include/index.js +18 -0
- package/dist/bundled/react/index.d.ts +70 -0
- package/dist/bundled/react/index.js +510 -0
- package/dist/bundled/react/input/index.d.ts +46 -0
- package/dist/bundled/react/input/index.js +41 -0
- package/dist/bundled/react/intersection-observer/index.d.ts +19 -0
- package/dist/bundled/react/intersection-observer/index.js +18 -0
- package/dist/bundled/react/known-date/index.d.ts +42 -0
- package/dist/bundled/react/known-date/index.js +33 -0
- package/dist/bundled/react/markdown/index.d.ts +12 -0
- package/dist/bundled/react/markdown/index.js +14 -0
- package/dist/bundled/react/mutation-observer/index.d.ts +19 -0
- package/dist/bundled/react/mutation-observer/index.js +16 -0
- package/dist/bundled/react/number-input/index.d.ts +45 -0
- package/dist/bundled/react/number-input/index.js +40 -0
- package/dist/bundled/react/option/index.d.ts +28 -0
- package/dist/bundled/react/option/index.js +29 -0
- package/dist/bundled/react/otp-input/index.d.ts +51 -0
- package/dist/bundled/react/otp-input/index.js +28 -0
- package/dist/bundled/react/page/index.d.ts +62 -0
- package/dist/bundled/react/page/index.js +58 -0
- package/dist/bundled/react/pagination/index.d.ts +43 -0
- package/dist/bundled/react/pagination/index.js +37 -0
- package/dist/bundled/react/popover/index.d.ts +46 -0
- package/dist/bundled/react/popover/index.js +31 -0
- package/dist/bundled/react/popup/index.d.ts +42 -0
- package/dist/bundled/react/popup/index.js +20 -0
- package/dist/bundled/react/progress-bar/index.d.ts +20 -0
- package/dist/bundled/react/progress-bar/index.js +19 -0
- package/dist/bundled/react/progress-ring/index.d.ts +24 -0
- package/dist/bundled/react/progress-ring/index.js +19 -0
- package/dist/bundled/react/qr-code/index.d.ts +12 -0
- package/dist/bundled/react/qr-code/index.js +16 -0
- package/dist/bundled/react/radio/index.d.ts +27 -0
- package/dist/bundled/react/radio/index.js +30 -0
- package/dist/bundled/react/radio-group/index.d.ts +31 -0
- package/dist/bundled/react/radio-group/index.js +37 -0
- package/dist/bundled/react/random-content/index.d.ts +24 -0
- package/dist/bundled/react/random-content/index.js +19 -0
- package/dist/bundled/react/rating/index.d.ts +32 -0
- package/dist/bundled/react/rating/index.js +39 -0
- package/dist/bundled/react/relative-time/index.d.ts +10 -0
- package/dist/bundled/react/relative-time/index.js +16 -0
- package/dist/bundled/react/resize-observer/index.d.ts +19 -0
- package/dist/bundled/react/resize-observer/index.js +16 -0
- package/dist/bundled/react/scroller/index.d.ts +19 -0
- package/dist/bundled/react/scroller/index.js +17 -0
- package/dist/bundled/react/select/index.d.ts +77 -0
- package/dist/bundled/react/select/index.js +62 -0
- package/dist/bundled/react/skeleton/index.d.ts +15 -0
- package/dist/bundled/react/skeleton/index.js +14 -0
- package/dist/bundled/react/slider/index.d.ts +57 -0
- package/dist/bundled/react/slider/index.js +42 -0
- package/dist/bundled/react/spinner/index.d.ts +17 -0
- package/dist/bundled/react/spinner/index.js +17 -0
- package/dist/bundled/react/split-panel/index.d.ts +32 -0
- package/dist/bundled/react/split-panel/index.js +22 -0
- package/dist/bundled/react/switch/index.d.ts +34 -0
- package/dist/bundled/react/switch/index.js +29 -0
- package/dist/bundled/react/tab/index.d.ts +13 -0
- package/dist/bundled/react/tab/index.js +17 -0
- package/dist/bundled/react/tab-group/index.d.ts +44 -0
- package/dist/bundled/react/tab-group/index.js +48 -0
- package/dist/bundled/react/tab-panel/index.d.ts +14 -0
- package/dist/bundled/react/tab-panel/index.js +17 -0
- package/dist/bundled/react/tag/index.d.ts +25 -0
- package/dist/bundled/react/tag/index.js +42 -0
- package/dist/bundled/react/textarea/index.d.ts +32 -0
- package/dist/bundled/react/textarea/index.js +30 -0
- package/dist/bundled/react/time-input/index.d.ts +86 -0
- package/dist/bundled/react/time-input/index.js +40 -0
- package/dist/bundled/react/toast/index.d.ts +20 -0
- package/dist/bundled/react/toast/index.js +45 -0
- package/dist/bundled/react/toast-item/index.d.ts +52 -0
- package/dist/bundled/react/toast-item/index.js +42 -0
- package/dist/bundled/react/tooltip/index.d.ts +39 -0
- package/dist/bundled/react/tooltip/index.js +31 -0
- package/dist/bundled/react/tree/index.d.ts +32 -0
- package/dist/bundled/react/tree/index.js +55 -0
- package/dist/bundled/react/tree-item/index.d.ts +70 -0
- package/dist/bundled/react/tree-item/index.js +51 -0
- package/dist/bundled/react/zoomable-frame/index.d.ts +22 -0
- package/dist/bundled/react/zoomable-frame/index.js +31 -0
- package/dist/bundled/skills/cornerstone/SKILL.md +417 -0
- package/dist/bundled/skills/cornerstone/references/choosing-components.md +201 -0
- package/dist/bundled/skills/cornerstone/references/components/accordion-item.md +97 -0
- package/dist/bundled/skills/cornerstone/references/components/accordion.md +385 -0
- package/dist/bundled/skills/cornerstone/references/components/animated-image.md +132 -0
- package/dist/bundled/skills/cornerstone/references/components/animation.md +271 -0
- package/dist/bundled/skills/cornerstone/references/components/avatar.md +167 -0
- package/dist/bundled/skills/cornerstone/references/components/badge.md +227 -0
- package/dist/bundled/skills/cornerstone/references/components/breadcrumb-item.md +64 -0
- package/dist/bundled/skills/cornerstone/references/components/breadcrumb.md +185 -0
- package/dist/bundled/skills/cornerstone/references/components/button-group.md +193 -0
- package/dist/bundled/skills/cornerstone/references/components/button.md +351 -0
- package/dist/bundled/skills/cornerstone/references/components/callout.md +189 -0
- package/dist/bundled/skills/cornerstone/references/components/card.md +288 -0
- package/dist/bundled/skills/cornerstone/references/components/carousel-item.md +42 -0
- package/dist/bundled/skills/cornerstone/references/components/carousel.md +712 -0
- package/dist/bundled/skills/cornerstone/references/components/checkbox-group.md +187 -0
- package/dist/bundled/skills/cornerstone/references/components/checkbox.md +206 -0
- package/dist/bundled/skills/cornerstone/references/components/color-picker.md +344 -0
- package/dist/bundled/skills/cornerstone/references/components/comparison.md +118 -0
- package/dist/bundled/skills/cornerstone/references/components/copy-button.md +269 -0
- package/dist/bundled/skills/cornerstone/references/components/details.md +240 -0
- package/dist/bundled/skills/cornerstone/references/components/dialog.md +307 -0
- package/dist/bundled/skills/cornerstone/references/components/divider.md +111 -0
- package/dist/bundled/skills/cornerstone/references/components/drawer.md +352 -0
- package/dist/bundled/skills/cornerstone/references/components/dropdown-item.md +92 -0
- package/dist/bundled/skills/cornerstone/references/components/dropdown.md +452 -0
- package/dist/bundled/skills/cornerstone/references/components/format-bytes.md +89 -0
- package/dist/bundled/skills/cornerstone/references/components/format-date.md +104 -0
- package/dist/bundled/skills/cornerstone/references/components/format-number.md +99 -0
- package/dist/bundled/skills/cornerstone/references/components/icon.md +1425 -0
- package/dist/bundled/skills/cornerstone/references/components/include.md +114 -0
- package/dist/bundled/skills/cornerstone/references/components/input.md +303 -0
- package/dist/bundled/skills/cornerstone/references/components/intersection-observer.md +344 -0
- package/dist/bundled/skills/cornerstone/references/components/known-date.md +279 -0
- package/dist/bundled/skills/cornerstone/references/components/markdown.md +263 -0
- package/dist/bundled/skills/cornerstone/references/components/mutation-observer.md +154 -0
- package/dist/bundled/skills/cornerstone/references/components/number-input.md +360 -0
- package/dist/bundled/skills/cornerstone/references/components/option.md +85 -0
- package/dist/bundled/skills/cornerstone/references/components/otp-input.md +441 -0
- package/dist/bundled/skills/cornerstone/references/components/page.md +359 -0
- package/dist/bundled/skills/cornerstone/references/components/pagination.md +466 -0
- package/dist/bundled/skills/cornerstone/references/components/popover.md +218 -0
- package/dist/bundled/skills/cornerstone/references/components/popup.md +1112 -0
- package/dist/bundled/skills/cornerstone/references/components/progress-bar.md +134 -0
- package/dist/bundled/skills/cornerstone/references/components/progress-ring.md +140 -0
- package/dist/bundled/skills/cornerstone/references/components/qr-code.md +200 -0
- package/dist/bundled/skills/cornerstone/references/components/radio-group.md +308 -0
- package/dist/bundled/skills/cornerstone/references/components/radio.md +98 -0
- package/dist/bundled/skills/cornerstone/references/components/random-content.md +367 -0
- package/dist/bundled/skills/cornerstone/references/components/rating.md +303 -0
- package/dist/bundled/skills/cornerstone/references/components/relative-time.md +92 -0
- package/dist/bundled/skills/cornerstone/references/components/resize-observer.md +91 -0
- package/dist/bundled/skills/cornerstone/references/components/scroller.md +293 -0
- package/dist/bundled/skills/cornerstone/references/components/select.md +542 -0
- package/dist/bundled/skills/cornerstone/references/components/skeleton.md +261 -0
- package/dist/bundled/skills/cornerstone/references/components/slider.md +544 -0
- package/dist/bundled/skills/cornerstone/references/components/spinner.md +83 -0
- package/dist/bundled/skills/cornerstone/references/components/split-panel.md +342 -0
- package/dist/bundled/skills/cornerstone/references/components/switch.md +160 -0
- package/dist/bundled/skills/cornerstone/references/components/tab-group.md +279 -0
- package/dist/bundled/skills/cornerstone/references/components/tab-panel.md +49 -0
- package/dist/bundled/skills/cornerstone/references/components/tab.md +49 -0
- package/dist/bundled/skills/cornerstone/references/components/tag.md +179 -0
- package/dist/bundled/skills/cornerstone/references/components/textarea.md +241 -0
- package/dist/bundled/skills/cornerstone/references/components/time-input.md +366 -0
- package/dist/bundled/skills/cornerstone/references/components/toast-item.md +305 -0
- package/dist/bundled/skills/cornerstone/references/components/toast.md +496 -0
- package/dist/bundled/skills/cornerstone/references/components/tooltip.md +243 -0
- package/dist/bundled/skills/cornerstone/references/components/tree-item.md +105 -0
- package/dist/bundled/skills/cornerstone/references/components/tree.md +410 -0
- package/dist/bundled/skills/cornerstone/references/components/zoomable-frame.md +149 -0
- package/dist/bundled/skills/cornerstone/references/customizing.md +180 -0
- package/dist/bundled/skills/cornerstone/references/form-controls.md +188 -0
- package/dist/bundled/skills/cornerstone/references/frameworks/rails.md +206 -0
- package/dist/bundled/skills/cornerstone/references/frameworks/react.md +252 -0
- package/dist/bundled/skills/cornerstone/references/frameworks/wordpress.md +186 -0
- package/dist/bundled/skills/cornerstone/references/installation.md +151 -0
- package/dist/bundled/skills/cornerstone/references/localization.md +133 -0
- package/dist/bundled/skills/cornerstone/references/support.md +10 -0
- package/dist/bundled/skills/cornerstone/references/themes.md +55 -0
- package/dist/bundled/skills/cornerstone/references/theming-overview.md +114 -0
- package/dist/bundled/skills/cornerstone/references/tokens/borders.md +113 -0
- package/dist/bundled/skills/cornerstone/references/tokens/color.md +298 -0
- package/dist/bundled/skills/cornerstone/references/tokens/component-groups.md +252 -0
- package/dist/bundled/skills/cornerstone/references/tokens/focus.md +43 -0
- package/dist/bundled/skills/cornerstone/references/tokens/shadows.md +152 -0
- package/dist/bundled/skills/cornerstone/references/tokens/space.md +110 -0
- package/dist/bundled/skills/cornerstone/references/tokens/transitions.md +81 -0
- package/dist/bundled/skills/cornerstone/references/tokens/typography.md +237 -0
- package/dist/bundled/skills/cornerstone/references/usage.md +222 -0
- package/dist/bundled/skills/cornerstone/references/utilities/color.md +44 -0
- package/dist/bundled/skills/cornerstone/references/utilities/fouce.md +32 -0
- package/dist/bundled/skills/cornerstone/references/utilities/layout.md +1142 -0
- package/dist/bundled/skills/cornerstone/references/utilities/native.md +730 -0
- package/dist/bundled/skills/cornerstone/references/utilities/prose.md +273 -0
- package/dist/bundled/skills/cornerstone/references/utilities/rounding.md +25 -0
- package/dist/bundled/skills/cornerstone/references/utilities/text.md +227 -0
- package/dist/bundled/skills/cornerstone/references/utilities/visually-hidden.md +147 -0
- package/dist/bundled/skills/cornerstone-design/SKILL.md +382 -0
- package/dist/bundled/skills/cornerstone-design/references/composition.md +526 -0
- package/dist/bundled/skills/cornerstone-design/references/getting-started.md +67 -0
- package/dist/bundled/skills/cornerstone-design/references/layouts-inpage.md +120 -0
- package/dist/bundled/skills/cornerstone-design/references/layouts-page.md +612 -0
- package/dist/bundled/skills/cornerstone-design/references/patterns.md +250 -0
- package/dist/bundled/skills/cornerstone-design/references/principles.md +577 -0
- package/dist/bundled/skills/cornerstone-design/references/theming.md +152 -0
- package/dist/bundled/ssr/all.d.ts +70 -0
- package/dist/bundled/ssr/all.js +439 -0
- package/dist/bundled/ssr/render-string.d.ts +5 -0
- package/dist/bundled/ssr/render-string.js +9992 -0
- package/dist/bundled/ssr/trim-outer-markers.d.ts +1 -0
- package/dist/bundled/ssr/trim-outer-markers.js +8 -0
- package/dist/bundled/styles/color/palettes/base.css +44 -0
- package/dist/bundled/styles/color/palettes/cru.css +342 -0
- package/dist/bundled/styles/color/palettes/default.css +146 -0
- package/dist/bundled/styles/color/variants/brand.css +162 -0
- package/dist/bundled/styles/color/variants/cru.css +2609 -0
- package/dist/bundled/styles/color/variants/danger.css +162 -0
- package/dist/bundled/styles/color/variants/highlight.css +162 -0
- package/dist/bundled/styles/color/variants/information.css +162 -0
- package/dist/bundled/styles/color/variants/neutral.css +162 -0
- package/dist/bundled/styles/color/variants/success.css +162 -0
- package/dist/bundled/styles/color/variants/warning.css +162 -0
- package/dist/bundled/styles/color/variants.css +13 -0
- package/dist/bundled/styles/component/form-control.styles.d.ts +2 -0
- package/dist/bundled/styles/component/form-control.styles.ts +43 -0
- package/dist/bundled/styles/component/host.styles.d.ts +2 -0
- package/dist/bundled/styles/component/host.styles.ts +18 -0
- package/dist/bundled/styles/component/segmented-field.styles.d.ts +19 -0
- package/dist/bundled/styles/component/segmented-field.styles.ts +92 -0
- package/dist/bundled/styles/component/size.styles.d.ts +2 -0
- package/dist/bundled/styles/component/size.styles.ts +23 -0
- package/dist/bundled/styles/component/variants.styles.d.ts +2 -0
- package/dist/bundled/styles/component/variants.styles.ts +95 -0
- package/dist/bundled/styles/component/visually-hidden.styles.d.ts +2 -0
- package/dist/bundled/styles/component/visually-hidden.styles.ts +19 -0
- package/dist/bundled/styles/cornerstone.css +20 -0
- package/dist/bundled/styles/layers.css +21 -0
- package/dist/bundled/styles/native.css +1463 -0
- package/dist/bundled/styles/themes/cru.css +406 -0
- package/dist/bundled/styles/themes/default.css +413 -0
- package/dist/bundled/styles/utilities/align-items.css +44 -0
- package/dist/bundled/styles/utilities/border-radius.css +20 -0
- package/dist/bundled/styles/utilities/flex-wrap.css +16 -0
- package/dist/bundled/styles/utilities/fouce.css +17 -0
- package/dist/bundled/styles/utilities/gap.css +56 -0
- package/dist/bundled/styles/utilities/justify-content.css +32 -0
- package/dist/bundled/styles/utilities/layout.css +159 -0
- package/dist/bundled/styles/utilities/placeholder.css +9 -0
- package/dist/bundled/styles/utilities/prose.css +161 -0
- package/dist/bundled/styles/utilities/scroll-lock.css +20 -0
- package/dist/bundled/styles/utilities/size.css +21 -0
- package/dist/bundled/styles/utilities/text.css +262 -0
- package/dist/bundled/styles/utilities/variants.css +87 -0
- package/dist/bundled/styles/utilities/visually-hidden.css +17 -0
- package/dist/bundled/styles/utilities.css +17 -0
- package/dist/bundled/translations/ar.d.ts +3 -0
- package/dist/bundled/translations/ar.js +266 -0
- package/dist/bundled/translations/cs.d.ts +3 -0
- package/dist/bundled/translations/cs.js +224 -0
- package/dist/bundled/translations/da.d.ts +3 -0
- package/dist/bundled/translations/da.js +182 -0
- package/dist/bundled/translations/de-ch.d.ts +3 -0
- package/dist/bundled/translations/de-ch.js +182 -0
- package/dist/bundled/translations/de.d.ts +3 -0
- package/dist/bundled/translations/de.js +11 -0
- package/dist/bundled/translations/en-gb.d.ts +3 -0
- package/dist/bundled/translations/en-gb.js +181 -0
- package/dist/bundled/translations/en.d.ts +3 -0
- package/dist/bundled/translations/en.js +9 -0
- package/dist/bundled/translations/es.d.ts +3 -0
- package/dist/bundled/translations/es.js +192 -0
- package/dist/bundled/translations/fa.d.ts +3 -0
- package/dist/bundled/translations/fa.js +179 -0
- package/dist/bundled/translations/fi.d.ts +3 -0
- package/dist/bundled/translations/fi.js +180 -0
- package/dist/bundled/translations/fr.d.ts +3 -0
- package/dist/bundled/translations/fr.js +182 -0
- package/dist/bundled/translations/he.d.ts +3 -0
- package/dist/bundled/translations/he.js +192 -0
- package/dist/bundled/translations/hi.d.ts +3 -0
- package/dist/bundled/translations/hi.js +182 -0
- package/dist/bundled/translations/hr.d.ts +3 -0
- package/dist/bundled/translations/hr.js +240 -0
- package/dist/bundled/translations/hu.d.ts +3 -0
- package/dist/bundled/translations/hu.js +182 -0
- package/dist/bundled/translations/id.d.ts +3 -0
- package/dist/bundled/translations/id.js +180 -0
- package/dist/bundled/translations/it.d.ts +3 -0
- package/dist/bundled/translations/it.js +180 -0
- package/dist/bundled/translations/ja.d.ts +3 -0
- package/dist/bundled/translations/ja.js +169 -0
- package/dist/bundled/translations/kk.d.ts +3 -0
- package/dist/bundled/translations/kk.js +183 -0
- package/dist/bundled/translations/nb.d.ts +3 -0
- package/dist/bundled/translations/nb.js +182 -0
- package/dist/bundled/translations/nl.d.ts +3 -0
- package/dist/bundled/translations/nl.js +182 -0
- package/dist/bundled/translations/nn.d.ts +3 -0
- package/dist/bundled/translations/nn.js +182 -0
- package/dist/bundled/translations/pl.d.ts +3 -0
- package/dist/bundled/translations/pl.js +236 -0
- package/dist/bundled/translations/pt.d.ts +3 -0
- package/dist/bundled/translations/pt.js +182 -0
- package/dist/bundled/translations/ru.d.ts +3 -0
- package/dist/bundled/translations/ru.js +242 -0
- package/dist/bundled/translations/sl.d.ts +3 -0
- package/dist/bundled/translations/sl.js +262 -0
- package/dist/bundled/translations/sv.d.ts +3 -0
- package/dist/bundled/translations/sv.js +182 -0
- package/dist/bundled/translations/tr.d.ts +3 -0
- package/dist/bundled/translations/tr.js +182 -0
- package/dist/bundled/translations/uk.d.ts +3 -0
- package/dist/bundled/translations/uk.js +246 -0
- package/dist/bundled/translations/zh-cn.d.ts +3 -0
- package/dist/bundled/translations/zh-cn.js +172 -0
- package/dist/bundled/translations/zh-tw.d.ts +3 -0
- package/dist/bundled/translations/zh-tw.js +172 -0
- package/dist/bundled/types/svelte/index.d.ts +5355 -0
- package/dist/bundled/types/vue/index.d.ts +5336 -0
- package/dist/bundled/utilities/animation.d.ts +1 -0
- package/dist/bundled/utilities/animation.js +11 -0
- package/dist/bundled/utilities/autoloader.d.ts +13 -0
- package/dist/bundled/utilities/autoloader.js +15 -0
- package/dist/bundled/utilities/base-path.d.ts +31 -0
- package/dist/bundled/utilities/base-path.js +14 -0
- package/dist/bundled/utilities/clone.d.ts +27 -0
- package/dist/bundled/utilities/clone.js +54 -0
- package/dist/bundled/utilities/defined.d.ts +36 -0
- package/dist/bundled/utilities/defined.js +8 -0
- package/dist/bundled/utilities/form.d.ts +5 -0
- package/dist/bundled/utilities/form.js +8 -0
- package/dist/bundled/utilities/localize.d.ts +146 -0
- package/dist/bundled/utilities/localize.js +13 -0
- package/dist/bundled/utilities/ssr-hydration.d.ts +1 -0
- package/dist/bundled/utilities/ssr-hydration.js +7 -0
- package/dist/bundled/vscode.html-custom-data.json +4330 -0
- package/dist/bundled/web-types.json +10163 -0
- package/dist/unbundled/chunks/chunk.22DUMFR7.js +27 -0
- package/dist/unbundled/chunks/chunk.25EWODJU.js +44 -0
- package/dist/unbundled/chunks/chunk.25M5Z6XD.js +13 -0
- package/dist/unbundled/chunks/chunk.27C34IAM.js +13 -0
- package/dist/unbundled/chunks/chunk.2DAXWPZV.js +18 -0
- package/dist/unbundled/chunks/chunk.2JNTRGJV.js +13 -0
- package/dist/unbundled/chunks/chunk.2OLAKXLK.js +12 -0
- package/dist/unbundled/chunks/chunk.34RCCHX4.js +71 -0
- package/dist/unbundled/chunks/chunk.36VL6LJI.js +12 -0
- package/dist/unbundled/chunks/chunk.37FJIXOD.js +446 -0
- package/dist/unbundled/chunks/chunk.3CUSENSO.js +335 -0
- package/dist/unbundled/chunks/chunk.3GISTVJD.js +361 -0
- package/dist/unbundled/chunks/chunk.3J7HUPGN.js +81 -0
- package/dist/unbundled/chunks/chunk.3MAZCRKI.js +575 -0
- package/dist/unbundled/chunks/chunk.3MV76N7H.js +13 -0
- package/dist/unbundled/chunks/chunk.3QOMHIHS.js +32 -0
- package/dist/unbundled/chunks/chunk.3SQYIFOF.js +21 -0
- package/dist/unbundled/chunks/chunk.3TDBUBJM.js +1481 -0
- package/dist/unbundled/chunks/chunk.3XMRDGUU.js +66 -0
- package/dist/unbundled/chunks/chunk.3YT7DWKQ.js +13 -0
- package/dist/unbundled/chunks/chunk.3ZTAQSEB.js +98 -0
- package/dist/unbundled/chunks/chunk.4BSDHHLS.js +29 -0
- package/dist/unbundled/chunks/chunk.4G4Y3HKX.js +292 -0
- package/dist/unbundled/chunks/chunk.4QG3R6ZL.js +86 -0
- package/dist/unbundled/chunks/chunk.4SEF2WUP.js +13 -0
- package/dist/unbundled/chunks/chunk.4SLRIZFX.js +13 -0
- package/dist/unbundled/chunks/chunk.4UDHOT6G.js +164 -0
- package/dist/unbundled/chunks/chunk.4ZQWNE4C.js +176 -0
- package/dist/unbundled/chunks/chunk.5C4TVTVL.js +99 -0
- package/dist/unbundled/chunks/chunk.5DSCTMEL.js +13 -0
- package/dist/unbundled/chunks/chunk.5FMHYBUW.js +27 -0
- package/dist/unbundled/chunks/chunk.5H6GLAW6.js +229 -0
- package/dist/unbundled/chunks/chunk.5KWPKFGB.js +25 -0
- package/dist/unbundled/chunks/chunk.5MGJKMWB.js +13 -0
- package/dist/unbundled/chunks/chunk.5SDKM5TW.js +239 -0
- package/dist/unbundled/chunks/chunk.6AYZSSTK.js +290 -0
- package/dist/unbundled/chunks/chunk.6C7X37R4.js +24 -0
- package/dist/unbundled/chunks/chunk.6FDUJU6G.js +24 -0
- package/dist/unbundled/chunks/chunk.6INMSSKP.js +75 -0
- package/dist/unbundled/chunks/chunk.6LWQB7MT.js +63 -0
- package/dist/unbundled/chunks/chunk.6OXQ3ZFA.js +25 -0
- package/dist/unbundled/chunks/chunk.6S4EYZTP.js +24 -0
- package/dist/unbundled/chunks/chunk.6ZDUZIFN.js +29 -0
- package/dist/unbundled/chunks/chunk.7355H7JE.js +68 -0
- package/dist/unbundled/chunks/chunk.7IIKHHNK.js +345 -0
- package/dist/unbundled/chunks/chunk.A2JHAWF4.js +12 -0
- package/dist/unbundled/chunks/chunk.A7ZNKNLV.js +95 -0
- package/dist/unbundled/chunks/chunk.AANKWLOE.js +22 -0
- package/dist/unbundled/chunks/chunk.AGI7JCZM.js +1 -0
- package/dist/unbundled/chunks/chunk.AH4ME2M3.js +21 -0
- package/dist/unbundled/chunks/chunk.BBN5VES5.js +56 -0
- package/dist/unbundled/chunks/chunk.BGW4B7ME.js +32 -0
- package/dist/unbundled/chunks/chunk.BI37H2BE.js +978 -0
- package/dist/unbundled/chunks/chunk.BNGGMXK5.js +12 -0
- package/dist/unbundled/chunks/chunk.BQZ2H5CZ.js +136 -0
- package/dist/unbundled/chunks/chunk.BU27S6AC.js +90 -0
- package/dist/unbundled/chunks/chunk.C277UN7H.js +21 -0
- package/dist/unbundled/chunks/chunk.C7XIOK7O.js +67 -0
- package/dist/unbundled/chunks/chunk.CAVIMOX7.js +13 -0
- package/dist/unbundled/chunks/chunk.CLZDCHBN.js +27 -0
- package/dist/unbundled/chunks/chunk.CU7GHXUV.js +13 -0
- package/dist/unbundled/chunks/chunk.CVYRHSAD.js +13 -0
- package/dist/unbundled/chunks/chunk.DA42KEYS.js +373 -0
- package/dist/unbundled/chunks/chunk.DEIRIXVK.js +24 -0
- package/dist/unbundled/chunks/chunk.DHSCPYVX.js +24 -0
- package/dist/unbundled/chunks/chunk.DJGKLHDS.js +12 -0
- package/dist/unbundled/chunks/chunk.DM7SWWJJ.js +13 -0
- package/dist/unbundled/chunks/chunk.DOGS4CZF.js +12 -0
- package/dist/unbundled/chunks/chunk.DUIEJOXX.js +13 -0
- package/dist/unbundled/chunks/chunk.E3WBPNHV.js +153 -0
- package/dist/unbundled/chunks/chunk.EBKPR7Z2.js +21 -0
- package/dist/unbundled/chunks/chunk.ED5RACWZ.js +83 -0
- package/dist/unbundled/chunks/chunk.EJSU7GFZ.js +58 -0
- package/dist/unbundled/chunks/chunk.EJWNWRU7.js +240 -0
- package/dist/unbundled/chunks/chunk.EOFT5R5F.js +25 -0
- package/dist/unbundled/chunks/chunk.EUHM2RHI.js +21 -0
- package/dist/unbundled/chunks/chunk.EXOHZSKZ.js +178 -0
- package/dist/unbundled/chunks/chunk.F4MW6YHP.js +373 -0
- package/dist/unbundled/chunks/chunk.F4Z4PXXT.js +13 -0
- package/dist/unbundled/chunks/chunk.F5EJ3W5M.js +348 -0
- package/dist/unbundled/chunks/chunk.F675DEOT.js +120 -0
- package/dist/unbundled/chunks/chunk.FGNU55DN.js +37 -0
- package/dist/unbundled/chunks/chunk.FIK4NQRV.js +27 -0
- package/dist/unbundled/chunks/chunk.FKZ34QWP.js +138 -0
- package/dist/unbundled/chunks/chunk.FLV6CVDS.js +105 -0
- package/dist/unbundled/chunks/chunk.FMKRKVP5.js +116 -0
- package/dist/unbundled/chunks/chunk.FO3RRT2Y.js +35 -0
- package/dist/unbundled/chunks/chunk.FXYBSV3E.js +21 -0
- package/dist/unbundled/chunks/chunk.FY7ISTH5.js +133 -0
- package/dist/unbundled/chunks/chunk.G2FXXPDW.js +83 -0
- package/dist/unbundled/chunks/chunk.G5KWAXZV.js +332 -0
- package/dist/unbundled/chunks/chunk.G7BL6JEZ.js +29 -0
- package/dist/unbundled/chunks/chunk.G7XCGWTN.js +691 -0
- package/dist/unbundled/chunks/chunk.GDBEAFG5.js +243 -0
- package/dist/unbundled/chunks/chunk.GFKYBJRQ.js +21 -0
- package/dist/unbundled/chunks/chunk.GKR2DLVL.js +12 -0
- package/dist/unbundled/chunks/chunk.GMOVFV2G.js +21 -0
- package/dist/unbundled/chunks/chunk.GSQYQSLZ.js +232 -0
- package/dist/unbundled/chunks/chunk.GSVRMFIX.js +13 -0
- package/dist/unbundled/chunks/chunk.GT5PEMIO.js +54 -0
- package/dist/unbundled/chunks/chunk.GUKUJM43.js +437 -0
- package/dist/unbundled/chunks/chunk.GWSWWEAF.js +495 -0
- package/dist/unbundled/chunks/chunk.GZBLDFJY.js +12 -0
- package/dist/unbundled/chunks/chunk.H2R7DTOP.js +165 -0
- package/dist/unbundled/chunks/chunk.HDFJNEDG.js +96 -0
- package/dist/unbundled/chunks/chunk.HJNLV27M.js +224 -0
- package/dist/unbundled/chunks/chunk.HKGYFZKM.js +12 -0
- package/dist/unbundled/chunks/chunk.HMC6XL2M.js +47 -0
- package/dist/unbundled/chunks/chunk.HMDFBHVJ.js +262 -0
- package/dist/unbundled/chunks/chunk.HOHWFNNX.js +279 -0
- package/dist/unbundled/chunks/chunk.HRQDVJCP.js +13 -0
- package/dist/unbundled/chunks/chunk.HTUO35GD.js +21 -0
- package/dist/unbundled/chunks/chunk.HVRBYPAL.js +36 -0
- package/dist/unbundled/chunks/chunk.HZVMFY2P.js +93 -0
- package/dist/unbundled/chunks/chunk.I334OCCE.js +186 -0
- package/dist/unbundled/chunks/chunk.I3LK24XZ.js +45 -0
- package/dist/unbundled/chunks/chunk.I4IG67TD.js +83 -0
- package/dist/unbundled/chunks/chunk.I6UIZJSV.js +21 -0
- package/dist/unbundled/chunks/chunk.IC472EOG.js +110 -0
- package/dist/unbundled/chunks/chunk.IJE7NV74.js +1184 -0
- package/dist/unbundled/chunks/chunk.IKN5FJIS.js +295 -0
- package/dist/unbundled/chunks/chunk.IQJMSIWD.js +56 -0
- package/dist/unbundled/chunks/chunk.IRA57BPR.js +340 -0
- package/dist/unbundled/chunks/chunk.IREAU2QM.js +198 -0
- package/dist/unbundled/chunks/chunk.ISQOT475.js +297 -0
- package/dist/unbundled/chunks/chunk.ISX2ZBYU.js +24 -0
- package/dist/unbundled/chunks/chunk.ITDZMCUA.js +24 -0
- package/dist/unbundled/chunks/chunk.J54TPJJR.js +13 -0
- package/dist/unbundled/chunks/chunk.J5QNQ4AF.js +21 -0
- package/dist/unbundled/chunks/chunk.J6XQ7PPB.js +258 -0
- package/dist/unbundled/chunks/chunk.J7RRZ6YM.js +25 -0
- package/dist/unbundled/chunks/chunk.JE6NWSEX.js +20 -0
- package/dist/unbundled/chunks/chunk.JF63ITKK.js +116 -0
- package/dist/unbundled/chunks/chunk.JHRATFLL.js +24 -0
- package/dist/unbundled/chunks/chunk.JIMOX4RB.js +167 -0
- package/dist/unbundled/chunks/chunk.JRCFMDCY.js +151 -0
- package/dist/unbundled/chunks/chunk.K23I66FB.js +21 -0
- package/dist/unbundled/chunks/chunk.K2QMZY3H.js +25 -0
- package/dist/unbundled/chunks/chunk.KCSF6NHY.js +12 -0
- package/dist/unbundled/chunks/chunk.KGSWL4MQ.js +283 -0
- package/dist/unbundled/chunks/chunk.KI7TYWBG.js +21 -0
- package/dist/unbundled/chunks/chunk.KIU3QIDA.js +29 -0
- package/dist/unbundled/chunks/chunk.KJCNRNHO.js +220 -0
- package/dist/unbundled/chunks/chunk.KNOS5UJ2.js +24 -0
- package/dist/unbundled/chunks/chunk.KUZ7XBDQ.js +24 -0
- package/dist/unbundled/chunks/chunk.KVDJEYXZ.js +13 -0
- package/dist/unbundled/chunks/chunk.KVQHYBZN.js +12 -0
- package/dist/unbundled/chunks/chunk.KVTHEVDH.js +21 -0
- package/dist/unbundled/chunks/chunk.L2O3ABN6.js +142 -0
- package/dist/unbundled/chunks/chunk.LABZF5G6.js +377 -0
- package/dist/unbundled/chunks/chunk.LCDEBSZX.js +21 -0
- package/dist/unbundled/chunks/chunk.LJBXODA4.js +47 -0
- package/dist/unbundled/chunks/chunk.LK3EIXZH.js +24 -0
- package/dist/unbundled/chunks/chunk.LQMRSTKM.js +91 -0
- package/dist/unbundled/chunks/chunk.LRJUXAUD.js +23 -0
- package/dist/unbundled/chunks/chunk.LSO3HBUC.js +29 -0
- package/dist/unbundled/chunks/chunk.LUYWMISJ.js +27 -0
- package/dist/unbundled/chunks/chunk.LWI7VPUV.js +371 -0
- package/dist/unbundled/chunks/chunk.LZFDGOHL.js +301 -0
- package/dist/unbundled/chunks/chunk.M2YES2WV.js +25 -0
- package/dist/unbundled/chunks/chunk.MCI4QRVJ.js +180 -0
- package/dist/unbundled/chunks/chunk.MD7QGXV6.js +338 -0
- package/dist/unbundled/chunks/chunk.MDV4MWU5.js +47 -0
- package/dist/unbundled/chunks/chunk.ME7FRFFF.js +21 -0
- package/dist/unbundled/chunks/chunk.MHH4NIPT.js +268 -0
- package/dist/unbundled/chunks/chunk.MNEKRTOH.js +333 -0
- package/dist/unbundled/chunks/chunk.MOWKCQDG.js +128 -0
- package/dist/unbundled/chunks/chunk.MQJIK3RG.js +24 -0
- package/dist/unbundled/chunks/chunk.MVDEFXPM.js +25 -0
- package/dist/unbundled/chunks/chunk.MW3Y6CV6.js +172 -0
- package/dist/unbundled/chunks/chunk.MY2OXJ7N.js +27 -0
- package/dist/unbundled/chunks/chunk.N27QMUBJ.js +26 -0
- package/dist/unbundled/chunks/chunk.N2UFB6C4.js +21 -0
- package/dist/unbundled/chunks/chunk.N2Z7ZHJY.js +110 -0
- package/dist/unbundled/chunks/chunk.N46QJHPG.js +12 -0
- package/dist/unbundled/chunks/chunk.N4FJJJBK.js +43 -0
- package/dist/unbundled/chunks/chunk.NB5YKRDR.js +332 -0
- package/dist/unbundled/chunks/chunk.NBBXVQSM.js +21 -0
- package/dist/unbundled/chunks/chunk.NC6HS22W.js +58 -0
- package/dist/unbundled/chunks/chunk.NNB4F2YV.js +244 -0
- package/dist/unbundled/chunks/chunk.NQ3QOIKT.js +64 -0
- package/dist/unbundled/chunks/chunk.NREJ4USG.js +316 -0
- package/dist/unbundled/chunks/chunk.NRHROB42.js +21 -0
- package/dist/unbundled/chunks/chunk.NT3N7XX2.js +209 -0
- package/dist/unbundled/chunks/chunk.NTTIXBJ2.js +21 -0
- package/dist/unbundled/chunks/chunk.NW4I6AZP.js +21 -0
- package/dist/unbundled/chunks/chunk.NZTKRONI.js +42 -0
- package/dist/unbundled/chunks/chunk.O6L7CNGM.js +12 -0
- package/dist/unbundled/chunks/chunk.OACS5EXV.js +233 -0
- package/dist/unbundled/chunks/chunk.ORY5OATJ.js +21 -0
- package/dist/unbundled/chunks/chunk.P6W527YR.js +75 -0
- package/dist/unbundled/chunks/chunk.P7WSEWAS.js +13 -0
- package/dist/unbundled/chunks/chunk.PBZ5J7GL.js +10 -0
- package/dist/unbundled/chunks/chunk.PEPMJ2X3.js +21 -0
- package/dist/unbundled/chunks/chunk.PIKNP2L2.js +21 -0
- package/dist/unbundled/chunks/chunk.PJT7ZLB2.js +389 -0
- package/dist/unbundled/chunks/chunk.PKWLIHR2.js +283 -0
- package/dist/unbundled/chunks/chunk.PLREW4IZ.js +25 -0
- package/dist/unbundled/chunks/chunk.PM7JDFTB.js +356 -0
- package/dist/unbundled/chunks/chunk.PSAE6QZG.js +25 -0
- package/dist/unbundled/chunks/chunk.PSWC5RFO.js +90 -0
- package/dist/unbundled/chunks/chunk.PXXW4O6Y.js +24 -0
- package/dist/unbundled/chunks/chunk.Q4XLKG2M.js +291 -0
- package/dist/unbundled/chunks/chunk.QGC4W2JQ.js +22 -0
- package/dist/unbundled/chunks/chunk.QQLR4VMG.js +114 -0
- package/dist/unbundled/chunks/chunk.QS24RS53.js +13 -0
- package/dist/unbundled/chunks/chunk.QS7DDJKU.js +28 -0
- package/dist/unbundled/chunks/chunk.QSXSR2S5.js +18 -0
- package/dist/unbundled/chunks/chunk.R24ZHMBJ.js +51 -0
- package/dist/unbundled/chunks/chunk.R25GPNKT.js +21 -0
- package/dist/unbundled/chunks/chunk.R3HUWC2P.js +83 -0
- package/dist/unbundled/chunks/chunk.R5QRSO74.js +62 -0
- package/dist/unbundled/chunks/chunk.R7X7FZAR.js +76 -0
- package/dist/unbundled/chunks/chunk.RBEGIVXE.js +74 -0
- package/dist/unbundled/chunks/chunk.RCP76SI2.js +419 -0
- package/dist/unbundled/chunks/chunk.RFJWZ5RE.js +21 -0
- package/dist/unbundled/chunks/chunk.RKGCFOCD.js +12 -0
- package/dist/unbundled/chunks/chunk.RMTJSG62.js +81 -0
- package/dist/unbundled/chunks/chunk.RSGTXZ3J.js +13 -0
- package/dist/unbundled/chunks/chunk.RTWENJ23.js +27 -0
- package/dist/unbundled/chunks/chunk.RVVYTPZP.js +40 -0
- package/dist/unbundled/chunks/chunk.S2C3K6JB.js +24 -0
- package/dist/unbundled/chunks/chunk.S3CJRJKU.js +655 -0
- package/dist/unbundled/chunks/chunk.S3S3U4YB.js +24 -0
- package/dist/unbundled/chunks/chunk.S3SQZW2R.js +85 -0
- package/dist/unbundled/chunks/chunk.SC2H2RWE.js +87 -0
- package/dist/unbundled/chunks/chunk.SJWGECOY.js +12 -0
- package/dist/unbundled/chunks/chunk.SM4W2X44.js +21 -0
- package/dist/unbundled/chunks/chunk.SOGOWBTP.js +164 -0
- package/dist/unbundled/chunks/chunk.SPCF5JL6.js +112 -0
- package/dist/unbundled/chunks/chunk.ST4TDXY6.js +12 -0
- package/dist/unbundled/chunks/chunk.ST5QNXFE.js +28 -0
- package/dist/unbundled/chunks/chunk.T24BSOWI.js +101 -0
- package/dist/unbundled/chunks/chunk.T3EF73P6.js +24 -0
- package/dist/unbundled/chunks/chunk.T7QKYQWX.js +13 -0
- package/dist/unbundled/chunks/chunk.T7ZPIISK.js +209 -0
- package/dist/unbundled/chunks/chunk.TB77N2Z5.js +29 -0
- package/dist/unbundled/chunks/chunk.TFFRZSRD.js +926 -0
- package/dist/unbundled/chunks/chunk.TOKT2OBT.js +12 -0
- package/dist/unbundled/chunks/chunk.U5BGXF6C.js +461 -0
- package/dist/unbundled/chunks/chunk.UFJXNWNN.js +63 -0
- package/dist/unbundled/chunks/chunk.UKHZB7OT.js +25 -0
- package/dist/unbundled/chunks/chunk.UMSOLKEX.js +28 -0
- package/dist/unbundled/chunks/chunk.UPN72ZCE.js +21 -0
- package/dist/unbundled/chunks/chunk.US4FU4HD.js +12 -0
- package/dist/unbundled/chunks/chunk.US7HRJHA.js +171 -0
- package/dist/unbundled/chunks/chunk.USW4S5HZ.js +20 -0
- package/dist/unbundled/chunks/chunk.UWTPPYT3.js +15 -0
- package/dist/unbundled/chunks/chunk.UXQAW5DA.js +24 -0
- package/dist/unbundled/chunks/chunk.V3WAYU6A.js +128 -0
- package/dist/unbundled/chunks/chunk.V4Z6GEIP.js +25 -0
- package/dist/unbundled/chunks/chunk.VKAK64GL.js +24 -0
- package/dist/unbundled/chunks/chunk.VKVKV7LH.js +107 -0
- package/dist/unbundled/chunks/chunk.VPFERRRS.js +13 -0
- package/dist/unbundled/chunks/chunk.VR3WL2WO.js +83 -0
- package/dist/unbundled/chunks/chunk.VRTM7AUU.js +21 -0
- package/dist/unbundled/chunks/chunk.VRTUNEMN.js +29 -0
- package/dist/unbundled/chunks/chunk.VTH4ZG22.js +24 -0
- package/dist/unbundled/chunks/chunk.VU5JSEVN.js +21 -0
- package/dist/unbundled/chunks/chunk.VXLBZXY3.js +852 -0
- package/dist/unbundled/chunks/chunk.WBLFD2RT.js +249 -0
- package/dist/unbundled/chunks/chunk.WGQG5UGU.js +16 -0
- package/dist/unbundled/chunks/chunk.WN6F72N3.js +13 -0
- package/dist/unbundled/chunks/chunk.WNXS5WGU.js +103 -0
- package/dist/unbundled/chunks/chunk.WOZBN344.js +24 -0
- package/dist/unbundled/chunks/chunk.WPRRGYV4.js +13 -0
- package/dist/unbundled/chunks/chunk.WQ7XNDQX.js +127 -0
- package/dist/unbundled/chunks/chunk.WSUMNVWX.js +250 -0
- package/dist/unbundled/chunks/chunk.WW2TWJHL.js +120 -0
- package/dist/unbundled/chunks/chunk.WXD3EGJ2.js +130 -0
- package/dist/unbundled/chunks/chunk.WXRJQGGE.js +125 -0
- package/dist/unbundled/chunks/chunk.WYOUIY55.js +1 -0
- package/dist/unbundled/chunks/chunk.XALC45V5.js +24 -0
- package/dist/unbundled/chunks/chunk.XDOYOYE6.js +12 -0
- package/dist/unbundled/chunks/chunk.XJUQRXWZ.js +12 -0
- package/dist/unbundled/chunks/chunk.XXGD4S2Z.js +168 -0
- package/dist/unbundled/chunks/chunk.Y7YQ7MTR.js +49 -0
- package/dist/unbundled/chunks/chunk.YBRM4CVR.js +225 -0
- package/dist/unbundled/chunks/chunk.YFRAY3EX.js +44 -0
- package/dist/unbundled/chunks/chunk.YR4AIV36.js +61 -0
- package/dist/unbundled/chunks/chunk.YVXLKJJD.js +93 -0
- package/dist/unbundled/chunks/chunk.YWKXROPM.js +116 -0
- package/dist/unbundled/chunks/chunk.YWQSMSCB.js +13 -0
- package/dist/unbundled/chunks/chunk.Z5ABTJBS.js +24 -0
- package/dist/unbundled/chunks/chunk.Z6G5TMH4.js +92 -0
- package/dist/unbundled/chunks/chunk.Z6UANCHF.js +89 -0
- package/dist/unbundled/chunks/chunk.ZEFVEPMP.js +31 -0
- package/dist/unbundled/chunks/chunk.ZEXHO2PB.js +26 -0
- package/dist/unbundled/chunks/chunk.ZFBJZ77S.js +12 -0
- package/dist/unbundled/chunks/chunk.ZFKWSVQ4.js +1 -0
- package/dist/unbundled/chunks/chunk.ZHGJ3KL7.js +92 -0
- package/dist/unbundled/chunks/chunk.ZQ7G474G.js +251 -0
- package/dist/unbundled/chunks/chunk.ZX2DXSN7.js +114 -0
- package/dist/unbundled/components/accordion/accordion.d.ts +55 -0
- package/dist/unbundled/components/accordion/accordion.js +33 -0
- package/dist/unbundled/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/unbundled/components/accordion/accordion.styles.js +8 -0
- package/dist/unbundled/components/accordion-item/accordion-item.d.ts +72 -0
- package/dist/unbundled/components/accordion-item/accordion-item.js +27 -0
- package/dist/unbundled/components/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/unbundled/components/accordion-item/accordion-item.styles.js +8 -0
- package/dist/unbundled/components/animated-image/animated-image.d.ts +51 -0
- package/dist/unbundled/components/animated-image/animated-image.js +22 -0
- package/dist/unbundled/components/animated-image/animated-image.styles.d.ts +2 -0
- package/dist/unbundled/components/animated-image/animated-image.styles.js +8 -0
- package/dist/unbundled/components/animation/animation.d.ts +83 -0
- package/dist/unbundled/components/animation/animation.js +15 -0
- package/dist/unbundled/components/animation/animation.styles.d.ts +2 -0
- package/dist/unbundled/components/animation/animation.styles.js +8 -0
- package/dist/unbundled/components/animation/animations.d.ts +6 -0
- package/dist/unbundled/components/animation/animations.js +12 -0
- package/dist/unbundled/components/avatar/avatar.d.ts +45 -0
- package/dist/unbundled/components/avatar/avatar.js +20 -0
- package/dist/unbundled/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/unbundled/components/avatar/avatar.styles.js +8 -0
- package/dist/unbundled/components/badge/badge.d.ts +36 -0
- package/dist/unbundled/components/badge/badge.js +11 -0
- package/dist/unbundled/components/badge/badge.styles.d.ts +2 -0
- package/dist/unbundled/components/badge/badge.styles.js +8 -0
- package/dist/unbundled/components/breadcrumb/breadcrumb.d.ts +36 -0
- package/dist/unbundled/components/breadcrumb/breadcrumb.js +22 -0
- package/dist/unbundled/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/dist/unbundled/components/breadcrumb/breadcrumb.styles.js +8 -0
- package/dist/unbundled/components/breadcrumb-item/breadcrumb-item.d.ts +42 -0
- package/dist/unbundled/components/breadcrumb-item/breadcrumb-item.js +11 -0
- package/dist/unbundled/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/unbundled/components/breadcrumb-item/breadcrumb-item.styles.js +8 -0
- package/dist/unbundled/components/button/button.d.ts +125 -0
- package/dist/unbundled/components/button/button.js +29 -0
- package/dist/unbundled/components/button/button.styles.d.ts +2 -0
- package/dist/unbundled/components/button/button.styles.js +8 -0
- package/dist/unbundled/components/button-group/button-group.d.ts +36 -0
- package/dist/unbundled/components/button-group/button-group.js +10 -0
- package/dist/unbundled/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/unbundled/components/button-group/button-group.styles.js +8 -0
- package/dist/unbundled/components/callout/callout.d.ts +29 -0
- package/dist/unbundled/components/callout/callout.js +12 -0
- package/dist/unbundled/components/callout/callout.styles.d.ts +2 -0
- package/dist/unbundled/components/callout/callout.styles.js +8 -0
- package/dist/unbundled/components/card/card.d.ts +67 -0
- package/dist/unbundled/components/card/card.js +12 -0
- package/dist/unbundled/components/card/card.styles.d.ts +2 -0
- package/dist/unbundled/components/card/card.styles.js +8 -0
- package/dist/unbundled/components/carousel/autoplay-controller.d.ts +20 -0
- package/dist/unbundled/components/carousel/autoplay-controller.js +8 -0
- package/dist/unbundled/components/carousel/carousel.d.ts +131 -0
- package/dist/unbundled/components/carousel/carousel.js +27 -0
- package/dist/unbundled/components/carousel/carousel.styles.d.ts +2 -0
- package/dist/unbundled/components/carousel/carousel.styles.js +8 -0
- package/dist/unbundled/components/carousel/scroll-controller.d.ts +25 -0
- package/dist/unbundled/components/carousel/scroll-controller.js +110 -0
- package/dist/unbundled/components/carousel-item/carousel-item.d.ts +22 -0
- package/dist/unbundled/components/carousel-item/carousel-item.js +10 -0
- package/dist/unbundled/components/carousel-item/carousel-item.styles.d.ts +2 -0
- package/dist/unbundled/components/carousel-item/carousel-item.styles.js +8 -0
- package/dist/unbundled/components/checkbox/checkbox.d.ts +97 -0
- package/dist/unbundled/components/checkbox/checkbox.js +26 -0
- package/dist/unbundled/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/unbundled/components/checkbox/checkbox.styles.js +8 -0
- package/dist/unbundled/components/checkbox-group/checkbox-group.d.ts +70 -0
- package/dist/unbundled/components/checkbox-group/checkbox-group.js +28 -0
- package/dist/unbundled/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/unbundled/components/checkbox-group/checkbox-group.styles.js +8 -0
- package/dist/unbundled/components/color-picker/color-picker.d.ts +232 -0
- package/dist/unbundled/components/color-picker/color-picker.js +49 -0
- package/dist/unbundled/components/color-picker/color-picker.styles.d.ts +2 -0
- package/dist/unbundled/components/color-picker/color-picker.styles.js +8 -0
- package/dist/unbundled/components/comparison/comparison.d.ts +44 -0
- package/dist/unbundled/components/comparison/comparison.js +24 -0
- package/dist/unbundled/components/comparison/comparison.styles.d.ts +2 -0
- package/dist/unbundled/components/comparison/comparison.styles.js +8 -0
- package/dist/unbundled/components/copy-button/copy-button.d.ts +96 -0
- package/dist/unbundled/components/copy-button/copy-button.js +38 -0
- package/dist/unbundled/components/copy-button/copy-button.styles.d.ts +2 -0
- package/dist/unbundled/components/copy-button/copy-button.styles.js +8 -0
- package/dist/unbundled/components/details/details.d.ts +79 -0
- package/dist/unbundled/components/details/details.js +30 -0
- package/dist/unbundled/components/details/details.styles.d.ts +2 -0
- package/dist/unbundled/components/details/details.styles.js +8 -0
- package/dist/unbundled/components/dialog/dialog.d.ts +88 -0
- package/dist/unbundled/components/dialog/dialog.js +41 -0
- package/dist/unbundled/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/unbundled/components/dialog/dialog.styles.js +8 -0
- package/dist/unbundled/components/divider/divider.d.ts +24 -0
- package/dist/unbundled/components/divider/divider.js +11 -0
- package/dist/unbundled/components/divider/divider.styles.d.ts +2 -0
- package/dist/unbundled/components/divider/divider.styles.js +8 -0
- package/dist/unbundled/components/drawer/drawer.d.ts +96 -0
- package/dist/unbundled/components/drawer/drawer.js +41 -0
- package/dist/unbundled/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/unbundled/components/drawer/drawer.styles.js +8 -0
- package/dist/unbundled/components/dropdown/dropdown.d.ts +111 -0
- package/dist/unbundled/components/dropdown/dropdown.js +38 -0
- package/dist/unbundled/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/unbundled/components/dropdown/dropdown.styles.js +8 -0
- package/dist/unbundled/components/dropdown-item/dropdown-item.d.ts +94 -0
- package/dist/unbundled/components/dropdown-item/dropdown-item.js +22 -0
- package/dist/unbundled/components/dropdown-item/dropdown-item.styles.d.ts +2 -0
- package/dist/unbundled/components/dropdown-item/dropdown-item.styles.js +8 -0
- package/dist/unbundled/components/format-bytes/format-bytes.d.ts +24 -0
- package/dist/unbundled/components/format-bytes/format-bytes.js +11 -0
- package/dist/unbundled/components/format-date/format-date.d.ts +46 -0
- package/dist/unbundled/components/format-date/format-date.js +11 -0
- package/dist/unbundled/components/format-number/format-number.d.ts +38 -0
- package/dist/unbundled/components/format-number/format-number.js +11 -0
- package/dist/unbundled/components/icon/icon.d.ts +124 -0
- package/dist/unbundled/components/icon/icon.js +18 -0
- package/dist/unbundled/components/icon/icon.styles.d.ts +2 -0
- package/dist/unbundled/components/icon/icon.styles.js +8 -0
- package/dist/unbundled/components/icon/library.brands.d.ts +15 -0
- package/dist/unbundled/components/icon/library.brands.js +10 -0
- package/dist/unbundled/components/icon/library.d.ts +24 -0
- package/dist/unbundled/components/icon/library.default.d.ts +26 -0
- package/dist/unbundled/components/icon/library.default.js +15 -0
- package/dist/unbundled/components/icon/library.js +24 -0
- package/dist/unbundled/components/icon/library.system.d.ts +20 -0
- package/dist/unbundled/components/icon/library.system.js +10 -0
- package/dist/unbundled/components/include/include.d.ts +42 -0
- package/dist/unbundled/components/include/include.js +14 -0
- package/dist/unbundled/components/include/include.styles.d.ts +2 -0
- package/dist/unbundled/components/include/include.styles.js +8 -0
- package/dist/unbundled/components/include/request.d.ts +8 -0
- package/dist/unbundled/components/include/request.js +8 -0
- package/dist/unbundled/components/input/input.d.ts +172 -0
- package/dist/unbundled/components/input/input.js +30 -0
- package/dist/unbundled/components/input/input.styles.d.ts +2 -0
- package/dist/unbundled/components/input/input.styles.js +8 -0
- package/dist/unbundled/components/intersection-observer/intersection-observer.d.ts +51 -0
- package/dist/unbundled/components/intersection-observer/intersection-observer.js +14 -0
- package/dist/unbundled/components/intersection-observer/intersection-observer.styles.d.ts +2 -0
- package/dist/unbundled/components/intersection-observer/intersection-observer.styles.js +8 -0
- package/dist/unbundled/components/known-date/internal/field-order.d.ts +12 -0
- package/dist/unbundled/components/known-date/internal/field-order.js +8 -0
- package/dist/unbundled/components/known-date/internal/partial-date-validator.d.ts +11 -0
- package/dist/unbundled/components/known-date/internal/partial-date-validator.js +8 -0
- package/dist/unbundled/components/known-date/internal/parts.d.ts +26 -0
- package/dist/unbundled/components/known-date/internal/parts.js +16 -0
- package/dist/unbundled/components/known-date/known-date.d.ts +144 -0
- package/dist/unbundled/components/known-date/known-date.js +23 -0
- package/dist/unbundled/components/known-date/known-date.styles.d.ts +2 -0
- package/dist/unbundled/components/known-date/known-date.styles.js +8 -0
- package/dist/unbundled/components/markdown/markdown.d.ts +42 -0
- package/dist/unbundled/components/markdown/markdown.js +10 -0
- package/dist/unbundled/components/markdown/markdown.styles.d.ts +2 -0
- package/dist/unbundled/components/markdown/markdown.styles.js +8 -0
- package/dist/unbundled/components/mutation-observer/mutation-observer.d.ts +44 -0
- package/dist/unbundled/components/mutation-observer/mutation-observer.js +12 -0
- package/dist/unbundled/components/mutation-observer/mutation-observer.styles.d.ts +2 -0
- package/dist/unbundled/components/mutation-observer/mutation-observer.styles.js +8 -0
- package/dist/unbundled/components/number-input/number-input.d.ts +146 -0
- package/dist/unbundled/components/number-input/number-input.js +29 -0
- package/dist/unbundled/components/number-input/number-input.styles.d.ts +2 -0
- package/dist/unbundled/components/number-input/number-input.styles.js +8 -0
- package/dist/unbundled/components/option/option.d.ts +74 -0
- package/dist/unbundled/components/option/option.js +22 -0
- package/dist/unbundled/components/option/option.styles.d.ts +2 -0
- package/dist/unbundled/components/option/option.styles.js +8 -0
- package/dist/unbundled/components/otp-input/otp-input.d.ts +146 -0
- package/dist/unbundled/components/otp-input/otp-input.js +20 -0
- package/dist/unbundled/components/otp-input/otp-input.styles.d.ts +2 -0
- package/dist/unbundled/components/otp-input/otp-input.styles.js +8 -0
- package/dist/unbundled/components/page/page.d.ts +139 -0
- package/dist/unbundled/components/page/page.js +45 -0
- package/dist/unbundled/components/page/page.mobile.styles.d.ts +2 -0
- package/dist/unbundled/components/page/page.mobile.styles.js +8 -0
- package/dist/unbundled/components/page/page.styles.d.ts +2 -0
- package/dist/unbundled/components/page/page.styles.js +8 -0
- package/dist/unbundled/components/pagination/pagination.d.ts +116 -0
- package/dist/unbundled/components/pagination/pagination.js +27 -0
- package/dist/unbundled/components/pagination/pagination.styles.d.ts +2 -0
- package/dist/unbundled/components/pagination/pagination.styles.js +8 -0
- package/dist/unbundled/components/popover/popover.d.ts +79 -0
- package/dist/unbundled/components/popover/popover.js +24 -0
- package/dist/unbundled/components/popover/popover.styles.d.ts +2 -0
- package/dist/unbundled/components/popover/popover.styles.js +8 -0
- package/dist/unbundled/components/popup/popup.d.ts +161 -0
- package/dist/unbundled/components/popup/popup.js +13 -0
- package/dist/unbundled/components/popup/popup.styles.d.ts +2 -0
- package/dist/unbundled/components/popup/popup.styles.js +8 -0
- package/dist/unbundled/components/progress-bar/progress-bar.d.ts +37 -0
- package/dist/unbundled/components/progress-bar/progress-bar.js +13 -0
- package/dist/unbundled/components/progress-bar/progress-bar.styles.d.ts +2 -0
- package/dist/unbundled/components/progress-bar/progress-bar.styles.js +8 -0
- package/dist/unbundled/components/progress-ring/progress-ring.d.ts +40 -0
- package/dist/unbundled/components/progress-ring/progress-ring.js +12 -0
- package/dist/unbundled/components/progress-ring/progress-ring.styles.d.ts +2 -0
- package/dist/unbundled/components/progress-ring/progress-ring.styles.js +8 -0
- package/dist/unbundled/components/qr-code/qr-code.d.ts +48 -0
- package/dist/unbundled/components/qr-code/qr-code.js +10 -0
- package/dist/unbundled/components/qr-code/qr-code.styles.d.ts +2 -0
- package/dist/unbundled/components/qr-code/qr-code.styles.js +8 -0
- package/dist/unbundled/components/radio/radio.d.ts +59 -0
- package/dist/unbundled/components/radio/radio.js +24 -0
- package/dist/unbundled/components/radio/radio.styles.d.ts +2 -0
- package/dist/unbundled/components/radio/radio.styles.js +8 -0
- package/dist/unbundled/components/radio-group/radio-group.d.ts +95 -0
- package/dist/unbundled/components/radio-group/radio-group.js +29 -0
- package/dist/unbundled/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/unbundled/components/radio-group/radio-group.styles.js +8 -0
- package/dist/unbundled/components/random-content/random-content.d.ts +56 -0
- package/dist/unbundled/components/random-content/random-content.js +15 -0
- package/dist/unbundled/components/random-content/random-content.styles.d.ts +2 -0
- package/dist/unbundled/components/random-content/random-content.styles.js +8 -0
- package/dist/unbundled/components/rating/rating.d.ts +85 -0
- package/dist/unbundled/components/rating/rating.js +28 -0
- package/dist/unbundled/components/rating/rating.styles.d.ts +2 -0
- package/dist/unbundled/components/rating/rating.styles.js +8 -0
- package/dist/unbundled/components/relative-time/relative-time.d.ts +43 -0
- package/dist/unbundled/components/relative-time/relative-time.js +11 -0
- package/dist/unbundled/components/resize-observer/resize-observer.d.ts +31 -0
- package/dist/unbundled/components/resize-observer/resize-observer.js +12 -0
- package/dist/unbundled/components/resize-observer/resize-observer.styles.d.ts +2 -0
- package/dist/unbundled/components/resize-observer/resize-observer.styles.js +8 -0
- package/dist/unbundled/components/scroller/scroller.d.ts +41 -0
- package/dist/unbundled/components/scroller/scroller.js +12 -0
- package/dist/unbundled/components/scroller/scroller.styles.d.ts +2 -0
- package/dist/unbundled/components/scroller/scroller.styles.js +8 -0
- package/dist/unbundled/components/select/select.d.ts +197 -0
- package/dist/unbundled/components/select/select.js +51 -0
- package/dist/unbundled/components/select/select.styles.d.ts +2 -0
- package/dist/unbundled/components/select/select.styles.js +8 -0
- package/dist/unbundled/components/skeleton/skeleton.d.ts +24 -0
- package/dist/unbundled/components/skeleton/skeleton.js +10 -0
- package/dist/unbundled/components/skeleton/skeleton.styles.d.ts +2 -0
- package/dist/unbundled/components/skeleton/skeleton.styles.js +8 -0
- package/dist/unbundled/components/slider/slider.d.ts +199 -0
- package/dist/unbundled/components/slider/slider.js +34 -0
- package/dist/unbundled/components/slider/slider.styles.d.ts +2 -0
- package/dist/unbundled/components/slider/slider.styles.js +8 -0
- package/dist/unbundled/components/spinner/spinner.d.ts +25 -0
- package/dist/unbundled/components/spinner/spinner.js +12 -0
- package/dist/unbundled/components/spinner/spinner.styles.d.ts +2 -0
- package/dist/unbundled/components/spinner/spinner.styles.js +8 -0
- package/dist/unbundled/components/split-panel/split-panel.d.ts +80 -0
- package/dist/unbundled/components/split-panel/split-panel.js +16 -0
- package/dist/unbundled/components/split-panel/split-panel.styles.d.ts +2 -0
- package/dist/unbundled/components/split-panel/split-panel.styles.js +8 -0
- package/dist/unbundled/components/switch/switch.d.ts +89 -0
- package/dist/unbundled/components/switch/switch.js +19 -0
- package/dist/unbundled/components/switch/switch.styles.d.ts +2 -0
- package/dist/unbundled/components/switch/switch.styles.js +8 -0
- package/dist/unbundled/components/tab/tab.d.ts +42 -0
- package/dist/unbundled/components/tab/tab.js +11 -0
- package/dist/unbundled/components/tab/tab.styles.d.ts +2 -0
- package/dist/unbundled/components/tab/tab.styles.js +8 -0
- package/dist/unbundled/components/tab-group/tab-group.d.ts +84 -0
- package/dist/unbundled/components/tab-group/tab-group.js +38 -0
- package/dist/unbundled/components/tab-group/tab-group.styles.d.ts +2 -0
- package/dist/unbundled/components/tab-group/tab-group.styles.js +8 -0
- package/dist/unbundled/components/tab-panel/tab-panel.d.ts +30 -0
- package/dist/unbundled/components/tab-panel/tab-panel.js +11 -0
- package/dist/unbundled/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/unbundled/components/tab-panel/tab-panel.styles.js +8 -0
- package/dist/unbundled/components/tag/tag.d.ts +40 -0
- package/dist/unbundled/components/tag/tag.js +32 -0
- package/dist/unbundled/components/tag/tag.styles.d.ts +2 -0
- package/dist/unbundled/components/tag/tag.styles.js +8 -0
- package/dist/unbundled/components/textarea/textarea.d.ts +149 -0
- package/dist/unbundled/components/textarea/textarea.js +20 -0
- package/dist/unbundled/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/unbundled/components/textarea/textarea.styles.js +8 -0
- package/dist/unbundled/components/time-input/internal/time-segments.d.ts +111 -0
- package/dist/unbundled/components/time-input/internal/time-segments.js +38 -0
- package/dist/unbundled/components/time-input/time-input.d.ts +242 -0
- package/dist/unbundled/components/time-input/time-input.js +32 -0
- package/dist/unbundled/components/time-input/time-input.styles.d.ts +2 -0
- package/dist/unbundled/components/time-input/time-input.styles.js +8 -0
- package/dist/unbundled/components/toast/toast.d.ts +83 -0
- package/dist/unbundled/components/toast/toast.js +35 -0
- package/dist/unbundled/components/toast/toast.styles.d.ts +2 -0
- package/dist/unbundled/components/toast/toast.styles.js +8 -0
- package/dist/unbundled/components/toast-item/toast-item.d.ts +86 -0
- package/dist/unbundled/components/toast-item/toast-item.js +32 -0
- package/dist/unbundled/components/toast-item/toast-item.styles.d.ts +2 -0
- package/dist/unbundled/components/toast-item/toast-item.styles.js +8 -0
- package/dist/unbundled/components/tooltip/tooltip.d.ts +91 -0
- package/dist/unbundled/components/tooltip/tooltip.js +24 -0
- package/dist/unbundled/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/unbundled/components/tooltip/tooltip.styles.js +8 -0
- package/dist/unbundled/components/tree/tree.d.ts +70 -0
- package/dist/unbundled/components/tree/tree.js +43 -0
- package/dist/unbundled/components/tree/tree.styles.d.ts +2 -0
- package/dist/unbundled/components/tree/tree.styles.js +8 -0
- package/dist/unbundled/components/tree-item/tree-item.d.ts +114 -0
- package/dist/unbundled/components/tree-item/tree-item.js +41 -0
- package/dist/unbundled/components/tree-item/tree-item.styles.d.ts +2 -0
- package/dist/unbundled/components/tree-item/tree-item.styles.js +8 -0
- package/dist/unbundled/components/zoomable-frame/zoomable-frame.d.ts +78 -0
- package/dist/unbundled/components/zoomable-frame/zoomable-frame.js +23 -0
- package/dist/unbundled/components/zoomable-frame/zoomable-frame.styles.d.ts +2 -0
- package/dist/unbundled/components/zoomable-frame/zoomable-frame.styles.js +8 -0
- package/dist/unbundled/cornerstone.d.ts +10 -0
- package/dist/unbundled/cornerstone.js +66 -0
- package/dist/unbundled/cornerstone.loader.d.ts +1 -0
- package/dist/unbundled/cornerstone.loader.js +67 -0
- package/dist/unbundled/cornerstone.ssr-loader.d.ts +2 -0
- package/dist/unbundled/cornerstone.ssr-loader.js +70 -0
- package/dist/unbundled/custom-elements-jsx.d.ts +17960 -0
- package/dist/unbundled/custom-elements.json +52833 -0
- package/dist/unbundled/events/accordion-after-collapse.d.ts +14 -0
- package/dist/unbundled/events/accordion-after-collapse.js +8 -0
- package/dist/unbundled/events/accordion-after-expand.d.ts +14 -0
- package/dist/unbundled/events/accordion-after-expand.js +8 -0
- package/dist/unbundled/events/accordion-collapse.d.ts +14 -0
- package/dist/unbundled/events/accordion-collapse.js +8 -0
- package/dist/unbundled/events/accordion-expand.d.ts +14 -0
- package/dist/unbundled/events/accordion-expand.js +8 -0
- package/dist/unbundled/events/accordion-item-collapsed.d.ts +9 -0
- package/dist/unbundled/events/accordion-item-collapsed.js +8 -0
- package/dist/unbundled/events/accordion-item-expanded.d.ts +9 -0
- package/dist/unbundled/events/accordion-item-expanded.js +8 -0
- package/dist/unbundled/events/accordion-item-trigger.d.ts +14 -0
- package/dist/unbundled/events/accordion-item-trigger.js +8 -0
- package/dist/unbundled/events/after-collapse.d.ts +8 -0
- package/dist/unbundled/events/after-collapse.js +8 -0
- package/dist/unbundled/events/after-expand.d.ts +8 -0
- package/dist/unbundled/events/after-expand.js +8 -0
- package/dist/unbundled/events/after-hide.d.ts +8 -0
- package/dist/unbundled/events/after-hide.js +8 -0
- package/dist/unbundled/events/after-page-change.d.ts +14 -0
- package/dist/unbundled/events/after-page-change.js +8 -0
- package/dist/unbundled/events/after-show.d.ts +8 -0
- package/dist/unbundled/events/after-show.js +8 -0
- package/dist/unbundled/events/cancel.d.ts +8 -0
- package/dist/unbundled/events/cancel.js +8 -0
- package/dist/unbundled/events/clear.d.ts +8 -0
- package/dist/unbundled/events/clear.js +8 -0
- package/dist/unbundled/events/collapse.d.ts +8 -0
- package/dist/unbundled/events/collapse.js +8 -0
- package/dist/unbundled/events/complete.d.ts +8 -0
- package/dist/unbundled/events/complete.js +8 -0
- package/dist/unbundled/events/copy.d.ts +14 -0
- package/dist/unbundled/events/copy.js +8 -0
- package/dist/unbundled/events/error.d.ts +8 -0
- package/dist/unbundled/events/error.js +8 -0
- package/dist/unbundled/events/events.d.ts +41 -0
- package/dist/unbundled/events/events.js +2 -0
- package/dist/unbundled/events/expand.d.ts +8 -0
- package/dist/unbundled/events/expand.js +8 -0
- package/dist/unbundled/events/finish.d.ts +8 -0
- package/dist/unbundled/events/finish.js +8 -0
- package/dist/unbundled/events/hide.d.ts +13 -0
- package/dist/unbundled/events/hide.js +8 -0
- package/dist/unbundled/events/hover.d.ts +14 -0
- package/dist/unbundled/events/hover.js +8 -0
- package/dist/unbundled/events/include-error.d.ts +13 -0
- package/dist/unbundled/events/include-error.js +8 -0
- package/dist/unbundled/events/intersect.d.ts +14 -0
- package/dist/unbundled/events/intersect.js +8 -0
- package/dist/unbundled/events/invalid.d.ts +8 -0
- package/dist/unbundled/events/invalid.js +8 -0
- package/dist/unbundled/events/lazy-change.d.ts +8 -0
- package/dist/unbundled/events/lazy-change.js +8 -0
- package/dist/unbundled/events/lazy-load.d.ts +8 -0
- package/dist/unbundled/events/lazy-load.js +8 -0
- package/dist/unbundled/events/load.d.ts +8 -0
- package/dist/unbundled/events/load.js +8 -0
- package/dist/unbundled/events/mutation.d.ts +13 -0
- package/dist/unbundled/events/mutation.js +8 -0
- package/dist/unbundled/events/page-change.d.ts +16 -0
- package/dist/unbundled/events/page-change.js +8 -0
- package/dist/unbundled/events/random-content-change.d.ts +14 -0
- package/dist/unbundled/events/random-content-change.js +8 -0
- package/dist/unbundled/events/remove.d.ts +8 -0
- package/dist/unbundled/events/remove.js +8 -0
- package/dist/unbundled/events/reposition.d.ts +8 -0
- package/dist/unbundled/events/reposition.js +8 -0
- package/dist/unbundled/events/resize.d.ts +13 -0
- package/dist/unbundled/events/resize.js +8 -0
- package/dist/unbundled/events/select.d.ts +13 -0
- package/dist/unbundled/events/select.js +8 -0
- package/dist/unbundled/events/selection-change.d.ts +14 -0
- package/dist/unbundled/events/selection-change.js +8 -0
- package/dist/unbundled/events/show.d.ts +8 -0
- package/dist/unbundled/events/show.js +8 -0
- package/dist/unbundled/events/slide-change.d.ts +15 -0
- package/dist/unbundled/events/slide-change.js +8 -0
- package/dist/unbundled/events/start.d.ts +8 -0
- package/dist/unbundled/events/start.js +8 -0
- package/dist/unbundled/events/tab-hide.d.ts +13 -0
- package/dist/unbundled/events/tab-hide.js +8 -0
- package/dist/unbundled/events/tab-show.d.ts +13 -0
- package/dist/unbundled/events/tab-show.js +8 -0
- package/dist/unbundled/internal/active-elements.d.ts +15 -0
- package/dist/unbundled/internal/animate.d.ts +11 -0
- package/dist/unbundled/internal/color-scheme-controller.d.ts +10 -0
- package/dist/unbundled/internal/computed-style.d.ts +2 -0
- package/dist/unbundled/internal/cornerstone-element.d.ts +55 -0
- package/dist/unbundled/internal/cornerstone-form-associated-element.d.ts +115 -0
- package/dist/unbundled/internal/custom-element.d.ts +18 -0
- package/dist/unbundled/internal/debounce.d.ts +1 -0
- package/dist/unbundled/internal/default-value.d.ts +2 -0
- package/dist/unbundled/internal/dismissible-stack.d.ts +14 -0
- package/dist/unbundled/internal/drag.d.ts +58 -0
- package/dist/unbundled/internal/event.d.ts +2 -0
- package/dist/unbundled/internal/get-text.d.ts +10 -0
- package/dist/unbundled/internal/live-announcer.d.ts +21 -0
- package/dist/unbundled/internal/math.d.ts +3 -0
- package/dist/unbundled/internal/offset.d.ts +11 -0
- package/dist/unbundled/internal/parse.d.ts +2 -0
- package/dist/unbundled/internal/rendered-watcher.d.ts +20 -0
- package/dist/unbundled/internal/scroll.d.ts +11 -0
- package/dist/unbundled/internal/scrollend-polyfill.d.ts +1 -0
- package/dist/unbundled/internal/segmented-field/segmented-field-controller.d.ts +198 -0
- package/dist/unbundled/internal/slot.d.ts +24 -0
- package/dist/unbundled/internal/submit-on-enter.d.ts +3 -0
- package/dist/unbundled/internal/test/data-testid-helpers.d.ts +12 -0
- package/dist/unbundled/internal/test/element-visible-overflow.d.ts +11 -0
- package/dist/unbundled/internal/test/expect-event.d.ts +15 -0
- package/dist/unbundled/internal/test/fixture.d.ts +28 -0
- package/dist/unbundled/internal/test/form-control-base-tests.d.ts +22 -0
- package/dist/unbundled/internal/test/pointer-utilities.d.ts +36 -0
- package/dist/unbundled/internal/test/wait-for-scrolling.d.ts +9 -0
- package/dist/unbundled/internal/validators/custom-error-validator.d.ts +6 -0
- package/dist/unbundled/internal/validators/mirror-validator.d.ts +6 -0
- package/dist/unbundled/internal/validators/required-validator.d.ts +19 -0
- package/dist/unbundled/internal/validators/slider-validator.d.ts +6 -0
- package/dist/unbundled/internal/watch.d.ts +26 -0
- package/dist/unbundled/llms.txt +3095 -0
- package/dist/unbundled/react/accordion/index.d.ts +32 -0
- package/dist/unbundled/react/accordion/index.js +34 -0
- package/dist/unbundled/react/accordion-item/index.d.ts +30 -0
- package/dist/unbundled/react/accordion-item/index.js +28 -0
- package/dist/unbundled/react/animated-image/index.d.ts +33 -0
- package/dist/unbundled/react/animated-image/index.js +23 -0
- package/dist/unbundled/react/animation/index.d.ts +30 -0
- package/dist/unbundled/react/animation/index.js +16 -0
- package/dist/unbundled/react/avatar/index.d.ts +28 -0
- package/dist/unbundled/react/avatar/index.js +21 -0
- package/dist/unbundled/react/badge/index.d.ts +21 -0
- package/dist/unbundled/react/badge/index.js +12 -0
- package/dist/unbundled/react/breadcrumb/index.d.ts +17 -0
- package/dist/unbundled/react/breadcrumb/index.js +23 -0
- package/dist/unbundled/react/breadcrumb-item/index.d.ts +21 -0
- package/dist/unbundled/react/breadcrumb-item/index.js +12 -0
- package/dist/unbundled/react/button/index.d.ts +38 -0
- package/dist/unbundled/react/button/index.js +30 -0
- package/dist/unbundled/react/button-group/index.d.ts +13 -0
- package/dist/unbundled/react/button-group/index.js +11 -0
- package/dist/unbundled/react/callout/index.d.ts +16 -0
- package/dist/unbundled/react/callout/index.js +13 -0
- package/dist/unbundled/react/card/index.d.ts +28 -0
- package/dist/unbundled/react/card/index.js +13 -0
- package/dist/unbundled/react/carousel/index.d.ts +40 -0
- package/dist/unbundled/react/carousel/index.js +28 -0
- package/dist/unbundled/react/carousel-item/index.d.ts +14 -0
- package/dist/unbundled/react/carousel-item/index.js +11 -0
- package/dist/unbundled/react/checkbox/index.d.ts +42 -0
- package/dist/unbundled/react/checkbox/index.js +27 -0
- package/dist/unbundled/react/checkbox-group/index.d.ts +24 -0
- package/dist/unbundled/react/checkbox-group/index.js +29 -0
- package/dist/unbundled/react/color-picker/index.d.ts +80 -0
- package/dist/unbundled/react/color-picker/index.js +50 -0
- package/dist/unbundled/react/comparison/index.d.ts +29 -0
- package/dist/unbundled/react/comparison/index.js +25 -0
- package/dist/unbundled/react/copy-button/index.d.ts +39 -0
- package/dist/unbundled/react/copy-button/index.js +39 -0
- package/dist/unbundled/react/details/index.d.ts +49 -0
- package/dist/unbundled/react/details/index.js +31 -0
- package/dist/unbundled/react/dialog/index.d.ts +55 -0
- package/dist/unbundled/react/dialog/index.js +42 -0
- package/dist/unbundled/react/divider/index.d.ts +14 -0
- package/dist/unbundled/react/divider/index.js +12 -0
- package/dist/unbundled/react/drawer/index.d.ts +61 -0
- package/dist/unbundled/react/drawer/index.js +42 -0
- package/dist/unbundled/react/dropdown/index.d.ts +44 -0
- package/dist/unbundled/react/dropdown/index.js +39 -0
- package/dist/unbundled/react/dropdown-item/index.d.ts +29 -0
- package/dist/unbundled/react/dropdown-item/index.js +23 -0
- package/dist/unbundled/react/format-bytes/index.d.ts +10 -0
- package/dist/unbundled/react/format-bytes/index.js +12 -0
- package/dist/unbundled/react/format-date/index.d.ts +10 -0
- package/dist/unbundled/react/format-date/index.js +12 -0
- package/dist/unbundled/react/format-number/index.d.ts +10 -0
- package/dist/unbundled/react/format-number/index.js +12 -0
- package/dist/unbundled/react/icon/index.d.ts +64 -0
- package/dist/unbundled/react/icon/index.js +19 -0
- package/dist/unbundled/react/include/index.d.ts +23 -0
- package/dist/unbundled/react/include/index.js +15 -0
- package/dist/unbundled/react/index.d.ts +70 -0
- package/dist/unbundled/react/index.js +497 -0
- package/dist/unbundled/react/input/index.d.ts +46 -0
- package/dist/unbundled/react/input/index.js +31 -0
- package/dist/unbundled/react/intersection-observer/index.d.ts +19 -0
- package/dist/unbundled/react/intersection-observer/index.js +15 -0
- package/dist/unbundled/react/known-date/index.d.ts +42 -0
- package/dist/unbundled/react/known-date/index.js +24 -0
- package/dist/unbundled/react/markdown/index.d.ts +12 -0
- package/dist/unbundled/react/markdown/index.js +11 -0
- package/dist/unbundled/react/mutation-observer/index.d.ts +19 -0
- package/dist/unbundled/react/mutation-observer/index.js +13 -0
- package/dist/unbundled/react/number-input/index.d.ts +45 -0
- package/dist/unbundled/react/number-input/index.js +30 -0
- package/dist/unbundled/react/option/index.d.ts +28 -0
- package/dist/unbundled/react/option/index.js +23 -0
- package/dist/unbundled/react/otp-input/index.d.ts +51 -0
- package/dist/unbundled/react/otp-input/index.js +21 -0
- package/dist/unbundled/react/page/index.d.ts +62 -0
- package/dist/unbundled/react/page/index.js +46 -0
- package/dist/unbundled/react/pagination/index.d.ts +43 -0
- package/dist/unbundled/react/pagination/index.js +28 -0
- package/dist/unbundled/react/popover/index.d.ts +46 -0
- package/dist/unbundled/react/popover/index.js +25 -0
- package/dist/unbundled/react/popup/index.d.ts +42 -0
- package/dist/unbundled/react/popup/index.js +14 -0
- package/dist/unbundled/react/progress-bar/index.d.ts +20 -0
- package/dist/unbundled/react/progress-bar/index.js +14 -0
- package/dist/unbundled/react/progress-ring/index.d.ts +24 -0
- package/dist/unbundled/react/progress-ring/index.js +13 -0
- package/dist/unbundled/react/qr-code/index.d.ts +12 -0
- package/dist/unbundled/react/qr-code/index.js +11 -0
- package/dist/unbundled/react/radio/index.d.ts +27 -0
- package/dist/unbundled/react/radio/index.js +25 -0
- package/dist/unbundled/react/radio-group/index.d.ts +31 -0
- package/dist/unbundled/react/radio-group/index.js +30 -0
- package/dist/unbundled/react/random-content/index.d.ts +24 -0
- package/dist/unbundled/react/random-content/index.js +16 -0
- package/dist/unbundled/react/rating/index.d.ts +32 -0
- package/dist/unbundled/react/rating/index.js +29 -0
- package/dist/unbundled/react/relative-time/index.d.ts +10 -0
- package/dist/unbundled/react/relative-time/index.js +12 -0
- package/dist/unbundled/react/resize-observer/index.d.ts +19 -0
- package/dist/unbundled/react/resize-observer/index.js +13 -0
- package/dist/unbundled/react/scroller/index.d.ts +19 -0
- package/dist/unbundled/react/scroller/index.js +13 -0
- package/dist/unbundled/react/select/index.d.ts +77 -0
- package/dist/unbundled/react/select/index.js +52 -0
- package/dist/unbundled/react/skeleton/index.d.ts +15 -0
- package/dist/unbundled/react/skeleton/index.js +11 -0
- package/dist/unbundled/react/slider/index.d.ts +57 -0
- package/dist/unbundled/react/slider/index.js +35 -0
- package/dist/unbundled/react/spinner/index.d.ts +17 -0
- package/dist/unbundled/react/spinner/index.js +13 -0
- package/dist/unbundled/react/split-panel/index.d.ts +32 -0
- package/dist/unbundled/react/split-panel/index.js +17 -0
- package/dist/unbundled/react/switch/index.d.ts +34 -0
- package/dist/unbundled/react/switch/index.js +20 -0
- package/dist/unbundled/react/tab/index.d.ts +13 -0
- package/dist/unbundled/react/tab/index.js +12 -0
- package/dist/unbundled/react/tab-group/index.d.ts +44 -0
- package/dist/unbundled/react/tab-group/index.js +39 -0
- package/dist/unbundled/react/tab-panel/index.d.ts +14 -0
- package/dist/unbundled/react/tab-panel/index.js +12 -0
- package/dist/unbundled/react/tag/index.d.ts +25 -0
- package/dist/unbundled/react/tag/index.js +33 -0
- package/dist/unbundled/react/textarea/index.d.ts +32 -0
- package/dist/unbundled/react/textarea/index.js +21 -0
- package/dist/unbundled/react/time-input/index.d.ts +86 -0
- package/dist/unbundled/react/time-input/index.js +33 -0
- package/dist/unbundled/react/toast/index.d.ts +20 -0
- package/dist/unbundled/react/toast/index.js +36 -0
- package/dist/unbundled/react/toast-item/index.d.ts +52 -0
- package/dist/unbundled/react/toast-item/index.js +33 -0
- package/dist/unbundled/react/tooltip/index.d.ts +39 -0
- package/dist/unbundled/react/tooltip/index.js +25 -0
- package/dist/unbundled/react/tree/index.d.ts +32 -0
- package/dist/unbundled/react/tree/index.js +44 -0
- package/dist/unbundled/react/tree-item/index.d.ts +70 -0
- package/dist/unbundled/react/tree-item/index.js +40 -0
- package/dist/unbundled/react/zoomable-frame/index.d.ts +22 -0
- package/dist/unbundled/react/zoomable-frame/index.js +24 -0
- package/dist/unbundled/skills/cornerstone/SKILL.md +417 -0
- package/dist/unbundled/skills/cornerstone/references/choosing-components.md +201 -0
- package/dist/unbundled/skills/cornerstone/references/components/accordion-item.md +97 -0
- package/dist/unbundled/skills/cornerstone/references/components/accordion.md +385 -0
- package/dist/unbundled/skills/cornerstone/references/components/animated-image.md +132 -0
- package/dist/unbundled/skills/cornerstone/references/components/animation.md +271 -0
- package/dist/unbundled/skills/cornerstone/references/components/avatar.md +167 -0
- package/dist/unbundled/skills/cornerstone/references/components/badge.md +227 -0
- package/dist/unbundled/skills/cornerstone/references/components/breadcrumb-item.md +64 -0
- package/dist/unbundled/skills/cornerstone/references/components/breadcrumb.md +185 -0
- package/dist/unbundled/skills/cornerstone/references/components/button-group.md +193 -0
- package/dist/unbundled/skills/cornerstone/references/components/button.md +351 -0
- package/dist/unbundled/skills/cornerstone/references/components/callout.md +189 -0
- package/dist/unbundled/skills/cornerstone/references/components/card.md +288 -0
- package/dist/unbundled/skills/cornerstone/references/components/carousel-item.md +42 -0
- package/dist/unbundled/skills/cornerstone/references/components/carousel.md +712 -0
- package/dist/unbundled/skills/cornerstone/references/components/checkbox-group.md +187 -0
- package/dist/unbundled/skills/cornerstone/references/components/checkbox.md +206 -0
- package/dist/unbundled/skills/cornerstone/references/components/color-picker.md +344 -0
- package/dist/unbundled/skills/cornerstone/references/components/comparison.md +118 -0
- package/dist/unbundled/skills/cornerstone/references/components/copy-button.md +269 -0
- package/dist/unbundled/skills/cornerstone/references/components/details.md +240 -0
- package/dist/unbundled/skills/cornerstone/references/components/dialog.md +307 -0
- package/dist/unbundled/skills/cornerstone/references/components/divider.md +111 -0
- package/dist/unbundled/skills/cornerstone/references/components/drawer.md +352 -0
- package/dist/unbundled/skills/cornerstone/references/components/dropdown-item.md +92 -0
- package/dist/unbundled/skills/cornerstone/references/components/dropdown.md +452 -0
- package/dist/unbundled/skills/cornerstone/references/components/format-bytes.md +89 -0
- package/dist/unbundled/skills/cornerstone/references/components/format-date.md +104 -0
- package/dist/unbundled/skills/cornerstone/references/components/format-number.md +99 -0
- package/dist/unbundled/skills/cornerstone/references/components/icon.md +1425 -0
- package/dist/unbundled/skills/cornerstone/references/components/include.md +114 -0
- package/dist/unbundled/skills/cornerstone/references/components/input.md +303 -0
- package/dist/unbundled/skills/cornerstone/references/components/intersection-observer.md +344 -0
- package/dist/unbundled/skills/cornerstone/references/components/known-date.md +279 -0
- package/dist/unbundled/skills/cornerstone/references/components/markdown.md +263 -0
- package/dist/unbundled/skills/cornerstone/references/components/mutation-observer.md +154 -0
- package/dist/unbundled/skills/cornerstone/references/components/number-input.md +360 -0
- package/dist/unbundled/skills/cornerstone/references/components/option.md +85 -0
- package/dist/unbundled/skills/cornerstone/references/components/otp-input.md +441 -0
- package/dist/unbundled/skills/cornerstone/references/components/page.md +359 -0
- package/dist/unbundled/skills/cornerstone/references/components/pagination.md +466 -0
- package/dist/unbundled/skills/cornerstone/references/components/popover.md +218 -0
- package/dist/unbundled/skills/cornerstone/references/components/popup.md +1112 -0
- package/dist/unbundled/skills/cornerstone/references/components/progress-bar.md +134 -0
- package/dist/unbundled/skills/cornerstone/references/components/progress-ring.md +140 -0
- package/dist/unbundled/skills/cornerstone/references/components/qr-code.md +200 -0
- package/dist/unbundled/skills/cornerstone/references/components/radio-group.md +308 -0
- package/dist/unbundled/skills/cornerstone/references/components/radio.md +98 -0
- package/dist/unbundled/skills/cornerstone/references/components/random-content.md +367 -0
- package/dist/unbundled/skills/cornerstone/references/components/rating.md +303 -0
- package/dist/unbundled/skills/cornerstone/references/components/relative-time.md +92 -0
- package/dist/unbundled/skills/cornerstone/references/components/resize-observer.md +91 -0
- package/dist/unbundled/skills/cornerstone/references/components/scroller.md +293 -0
- package/dist/unbundled/skills/cornerstone/references/components/select.md +542 -0
- package/dist/unbundled/skills/cornerstone/references/components/skeleton.md +261 -0
- package/dist/unbundled/skills/cornerstone/references/components/slider.md +544 -0
- package/dist/unbundled/skills/cornerstone/references/components/spinner.md +83 -0
- package/dist/unbundled/skills/cornerstone/references/components/split-panel.md +342 -0
- package/dist/unbundled/skills/cornerstone/references/components/switch.md +160 -0
- package/dist/unbundled/skills/cornerstone/references/components/tab-group.md +279 -0
- package/dist/unbundled/skills/cornerstone/references/components/tab-panel.md +49 -0
- package/dist/unbundled/skills/cornerstone/references/components/tab.md +49 -0
- package/dist/unbundled/skills/cornerstone/references/components/tag.md +179 -0
- package/dist/unbundled/skills/cornerstone/references/components/textarea.md +241 -0
- package/dist/unbundled/skills/cornerstone/references/components/time-input.md +366 -0
- package/dist/unbundled/skills/cornerstone/references/components/toast-item.md +305 -0
- package/dist/unbundled/skills/cornerstone/references/components/toast.md +496 -0
- package/dist/unbundled/skills/cornerstone/references/components/tooltip.md +243 -0
- package/dist/unbundled/skills/cornerstone/references/components/tree-item.md +105 -0
- package/dist/unbundled/skills/cornerstone/references/components/tree.md +410 -0
- package/dist/unbundled/skills/cornerstone/references/components/zoomable-frame.md +149 -0
- package/dist/unbundled/skills/cornerstone/references/customizing.md +180 -0
- package/dist/unbundled/skills/cornerstone/references/form-controls.md +188 -0
- package/dist/unbundled/skills/cornerstone/references/frameworks/rails.md +206 -0
- package/dist/unbundled/skills/cornerstone/references/frameworks/react.md +252 -0
- package/dist/unbundled/skills/cornerstone/references/frameworks/wordpress.md +186 -0
- package/dist/unbundled/skills/cornerstone/references/installation.md +151 -0
- package/dist/unbundled/skills/cornerstone/references/localization.md +133 -0
- package/dist/unbundled/skills/cornerstone/references/support.md +10 -0
- package/dist/unbundled/skills/cornerstone/references/themes.md +55 -0
- package/dist/unbundled/skills/cornerstone/references/theming-overview.md +114 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/borders.md +113 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/color.md +298 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/component-groups.md +252 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/focus.md +43 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/shadows.md +152 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/space.md +110 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/transitions.md +81 -0
- package/dist/unbundled/skills/cornerstone/references/tokens/typography.md +237 -0
- package/dist/unbundled/skills/cornerstone/references/usage.md +222 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/color.md +44 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/fouce.md +32 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/layout.md +1142 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/native.md +730 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/prose.md +273 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/rounding.md +25 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/text.md +227 -0
- package/dist/unbundled/skills/cornerstone/references/utilities/visually-hidden.md +147 -0
- package/dist/unbundled/skills/cornerstone-design/SKILL.md +382 -0
- package/dist/unbundled/skills/cornerstone-design/references/composition.md +526 -0
- package/dist/unbundled/skills/cornerstone-design/references/getting-started.md +67 -0
- package/dist/unbundled/skills/cornerstone-design/references/layouts-inpage.md +120 -0
- package/dist/unbundled/skills/cornerstone-design/references/layouts-page.md +612 -0
- package/dist/unbundled/skills/cornerstone-design/references/patterns.md +250 -0
- package/dist/unbundled/skills/cornerstone-design/references/principles.md +577 -0
- package/dist/unbundled/skills/cornerstone-design/references/theming.md +152 -0
- package/dist/unbundled/ssr/all.d.ts +70 -0
- package/dist/unbundled/ssr/all.js +427 -0
- package/dist/unbundled/ssr/render-string.d.ts +5 -0
- package/dist/unbundled/ssr/render-string.js +20 -0
- package/dist/unbundled/ssr/trim-outer-markers.d.ts +1 -0
- package/dist/unbundled/ssr/trim-outer-markers.js +8 -0
- package/dist/unbundled/styles/color/palettes/base.css +44 -0
- package/dist/unbundled/styles/color/palettes/cru.css +342 -0
- package/dist/unbundled/styles/color/palettes/default.css +146 -0
- package/dist/unbundled/styles/color/variants/brand.css +162 -0
- package/dist/unbundled/styles/color/variants/cru.css +2609 -0
- package/dist/unbundled/styles/color/variants/danger.css +162 -0
- package/dist/unbundled/styles/color/variants/highlight.css +162 -0
- package/dist/unbundled/styles/color/variants/information.css +162 -0
- package/dist/unbundled/styles/color/variants/neutral.css +162 -0
- package/dist/unbundled/styles/color/variants/success.css +162 -0
- package/dist/unbundled/styles/color/variants/warning.css +162 -0
- package/dist/unbundled/styles/color/variants.css +13 -0
- package/dist/unbundled/styles/component/form-control.styles.d.ts +2 -0
- package/dist/unbundled/styles/component/form-control.styles.ts +43 -0
- package/dist/unbundled/styles/component/host.styles.d.ts +2 -0
- package/dist/unbundled/styles/component/host.styles.ts +18 -0
- package/dist/unbundled/styles/component/segmented-field.styles.d.ts +19 -0
- package/dist/unbundled/styles/component/segmented-field.styles.ts +92 -0
- package/dist/unbundled/styles/component/size.styles.d.ts +2 -0
- package/dist/unbundled/styles/component/size.styles.ts +23 -0
- package/dist/unbundled/styles/component/variants.styles.d.ts +2 -0
- package/dist/unbundled/styles/component/variants.styles.ts +95 -0
- package/dist/unbundled/styles/component/visually-hidden.styles.d.ts +2 -0
- package/dist/unbundled/styles/component/visually-hidden.styles.ts +19 -0
- package/dist/unbundled/styles/cornerstone.css +20 -0
- package/dist/unbundled/styles/layers.css +21 -0
- package/dist/unbundled/styles/native.css +1463 -0
- package/dist/unbundled/styles/themes/cru.css +406 -0
- package/dist/unbundled/styles/themes/default.css +413 -0
- package/dist/unbundled/styles/utilities/align-items.css +44 -0
- package/dist/unbundled/styles/utilities/border-radius.css +20 -0
- package/dist/unbundled/styles/utilities/flex-wrap.css +16 -0
- package/dist/unbundled/styles/utilities/fouce.css +17 -0
- package/dist/unbundled/styles/utilities/gap.css +56 -0
- package/dist/unbundled/styles/utilities/justify-content.css +32 -0
- package/dist/unbundled/styles/utilities/layout.css +159 -0
- package/dist/unbundled/styles/utilities/placeholder.css +9 -0
- package/dist/unbundled/styles/utilities/prose.css +161 -0
- package/dist/unbundled/styles/utilities/scroll-lock.css +20 -0
- package/dist/unbundled/styles/utilities/size.css +21 -0
- package/dist/unbundled/styles/utilities/text.css +262 -0
- package/dist/unbundled/styles/utilities/variants.css +87 -0
- package/dist/unbundled/styles/utilities/visually-hidden.css +17 -0
- package/dist/unbundled/styles/utilities.css +17 -0
- package/dist/unbundled/translations/ar.d.ts +3 -0
- package/dist/unbundled/translations/ar.js +264 -0
- package/dist/unbundled/translations/cs.d.ts +3 -0
- package/dist/unbundled/translations/cs.js +222 -0
- package/dist/unbundled/translations/da.d.ts +3 -0
- package/dist/unbundled/translations/da.js +181 -0
- package/dist/unbundled/translations/de-ch.d.ts +3 -0
- package/dist/unbundled/translations/de-ch.js +181 -0
- package/dist/unbundled/translations/de.d.ts +3 -0
- package/dist/unbundled/translations/de.js +10 -0
- package/dist/unbundled/translations/en-gb.d.ts +3 -0
- package/dist/unbundled/translations/en-gb.js +180 -0
- package/dist/unbundled/translations/en.d.ts +3 -0
- package/dist/unbundled/translations/en.js +8 -0
- package/dist/unbundled/translations/es.d.ts +3 -0
- package/dist/unbundled/translations/es.js +191 -0
- package/dist/unbundled/translations/fa.d.ts +3 -0
- package/dist/unbundled/translations/fa.js +178 -0
- package/dist/unbundled/translations/fi.d.ts +3 -0
- package/dist/unbundled/translations/fi.js +178 -0
- package/dist/unbundled/translations/fr.d.ts +3 -0
- package/dist/unbundled/translations/fr.js +181 -0
- package/dist/unbundled/translations/he.d.ts +3 -0
- package/dist/unbundled/translations/he.js +191 -0
- package/dist/unbundled/translations/hi.d.ts +3 -0
- package/dist/unbundled/translations/hi.js +181 -0
- package/dist/unbundled/translations/hr.d.ts +3 -0
- package/dist/unbundled/translations/hr.js +238 -0
- package/dist/unbundled/translations/hu.d.ts +3 -0
- package/dist/unbundled/translations/hu.js +181 -0
- package/dist/unbundled/translations/id.d.ts +3 -0
- package/dist/unbundled/translations/id.js +178 -0
- package/dist/unbundled/translations/it.d.ts +3 -0
- package/dist/unbundled/translations/it.js +178 -0
- package/dist/unbundled/translations/ja.d.ts +3 -0
- package/dist/unbundled/translations/ja.js +168 -0
- package/dist/unbundled/translations/kk.d.ts +3 -0
- package/dist/unbundled/translations/kk.js +181 -0
- package/dist/unbundled/translations/nb.d.ts +3 -0
- package/dist/unbundled/translations/nb.js +181 -0
- package/dist/unbundled/translations/nl.d.ts +3 -0
- package/dist/unbundled/translations/nl.js +181 -0
- package/dist/unbundled/translations/nn.d.ts +3 -0
- package/dist/unbundled/translations/nn.js +181 -0
- package/dist/unbundled/translations/pl.d.ts +3 -0
- package/dist/unbundled/translations/pl.js +235 -0
- package/dist/unbundled/translations/pt.d.ts +3 -0
- package/dist/unbundled/translations/pt.js +181 -0
- package/dist/unbundled/translations/ru.d.ts +3 -0
- package/dist/unbundled/translations/ru.js +241 -0
- package/dist/unbundled/translations/sl.d.ts +3 -0
- package/dist/unbundled/translations/sl.js +260 -0
- package/dist/unbundled/translations/sv.d.ts +3 -0
- package/dist/unbundled/translations/sv.js +181 -0
- package/dist/unbundled/translations/tr.d.ts +3 -0
- package/dist/unbundled/translations/tr.js +181 -0
- package/dist/unbundled/translations/uk.d.ts +3 -0
- package/dist/unbundled/translations/uk.js +245 -0
- package/dist/unbundled/translations/zh-cn.d.ts +3 -0
- package/dist/unbundled/translations/zh-cn.js +171 -0
- package/dist/unbundled/translations/zh-tw.d.ts +3 -0
- package/dist/unbundled/translations/zh-tw.js +171 -0
- package/dist/unbundled/types/svelte/index.d.ts +5355 -0
- package/dist/unbundled/types/vue/index.d.ts +5336 -0
- package/dist/unbundled/utilities/animation.d.ts +1 -0
- package/dist/unbundled/utilities/animation.js +11 -0
- package/dist/unbundled/utilities/autoloader.d.ts +13 -0
- package/dist/unbundled/utilities/autoloader.js +15 -0
- package/dist/unbundled/utilities/base-path.d.ts +31 -0
- package/dist/unbundled/utilities/base-path.js +14 -0
- package/dist/unbundled/utilities/clone.d.ts +27 -0
- package/dist/unbundled/utilities/clone.js +54 -0
- package/dist/unbundled/utilities/defined.d.ts +36 -0
- package/dist/unbundled/utilities/defined.js +8 -0
- package/dist/unbundled/utilities/form.d.ts +5 -0
- package/dist/unbundled/utilities/form.js +8 -0
- package/dist/unbundled/utilities/localize.d.ts +146 -0
- package/dist/unbundled/utilities/localize.js +11 -0
- package/dist/unbundled/utilities/ssr-hydration.d.ts +1 -0
- package/dist/unbundled/utilities/ssr-hydration.js +4 -0
- package/dist/unbundled/vscode.html-custom-data.json +4330 -0
- package/dist/unbundled/web-types.json +10163 -0
- package/package.json +165 -0
|
@@ -0,0 +1,2228 @@
|
|
|
1
|
+
/*! Cornerstone Components 0.1.0 - MIT licensed. See LICENSE.md and NOTICE. */
|
|
2
|
+
import {
|
|
3
|
+
drag
|
|
4
|
+
} from "./chunk.YWKXROPM.js";
|
|
5
|
+
import {
|
|
6
|
+
visually_hidden_styles_default
|
|
7
|
+
} from "./chunk.HNISCUJX.js";
|
|
8
|
+
import {
|
|
9
|
+
isTopDismissible,
|
|
10
|
+
registerDismissible,
|
|
11
|
+
unregisterDismissible
|
|
12
|
+
} from "./chunk.ITDZMCUA.js";
|
|
13
|
+
import {
|
|
14
|
+
RequiredValidator
|
|
15
|
+
} from "./chunk.LJBXODA4.js";
|
|
16
|
+
import {
|
|
17
|
+
form_control_styles_default
|
|
18
|
+
} from "./chunk.PMFAZK3U.js";
|
|
19
|
+
import {
|
|
20
|
+
color_picker_styles_default
|
|
21
|
+
} from "./chunk.LILWNNB7.js";
|
|
22
|
+
import {
|
|
23
|
+
HasSlotController
|
|
24
|
+
} from "./chunk.3XMRDGUU.js";
|
|
25
|
+
import {
|
|
26
|
+
clamp
|
|
27
|
+
} from "./chunk.2HAZJKLI.js";
|
|
28
|
+
import {
|
|
29
|
+
CornerstoneFormAssociatedElement
|
|
30
|
+
} from "./chunk.R5SVRGFM.js";
|
|
31
|
+
import {
|
|
32
|
+
CsInvalidEvent
|
|
33
|
+
} from "./chunk.DJGKLHDS.js";
|
|
34
|
+
import {
|
|
35
|
+
size_styles_default
|
|
36
|
+
} from "./chunk.CBPTZHUR.js";
|
|
37
|
+
import {
|
|
38
|
+
o as o3
|
|
39
|
+
} from "./chunk.7AJGTGQI.js";
|
|
40
|
+
import {
|
|
41
|
+
o as o2
|
|
42
|
+
} from "./chunk.OPY26TZJ.js";
|
|
43
|
+
import {
|
|
44
|
+
waitForEvent
|
|
45
|
+
} from "./chunk.QSXSR2S5.js";
|
|
46
|
+
import {
|
|
47
|
+
animateWithClass
|
|
48
|
+
} from "./chunk.IQJMSIWD.js";
|
|
49
|
+
import {
|
|
50
|
+
e as e2
|
|
51
|
+
} from "./chunk.JWFTJDOQ.js";
|
|
52
|
+
import {
|
|
53
|
+
watch
|
|
54
|
+
} from "./chunk.3QOMHIHS.js";
|
|
55
|
+
import {
|
|
56
|
+
customElement,
|
|
57
|
+
e,
|
|
58
|
+
n,
|
|
59
|
+
r,
|
|
60
|
+
t
|
|
61
|
+
} from "./chunk.RSRMXC3L.js";
|
|
62
|
+
import {
|
|
63
|
+
LocalizeController
|
|
64
|
+
} from "./chunk.MGBGUTRM.js";
|
|
65
|
+
import {
|
|
66
|
+
o
|
|
67
|
+
} from "./chunk.MZHGFMA5.js";
|
|
68
|
+
import {
|
|
69
|
+
b
|
|
70
|
+
} from "./chunk.XOXMMJPV.js";
|
|
71
|
+
import {
|
|
72
|
+
__decorateClass
|
|
73
|
+
} from "./chunk.UEAH232U.js";
|
|
74
|
+
|
|
75
|
+
// ../../node_modules/@ctrl/tinycolor/dist/module/util.js
|
|
76
|
+
function bound01(n2, max) {
|
|
77
|
+
if (isOnePointZero(n2)) {
|
|
78
|
+
n2 = "100%";
|
|
79
|
+
}
|
|
80
|
+
const isPercent = isPercentage(n2);
|
|
81
|
+
n2 = max === 360 ? n2 : Math.min(max, Math.max(0, parseFloat(n2)));
|
|
82
|
+
if (isPercent) {
|
|
83
|
+
n2 = parseInt(String(n2 * max), 10) / 100;
|
|
84
|
+
}
|
|
85
|
+
if (Math.abs(n2 - max) < 1e-6) {
|
|
86
|
+
return 1;
|
|
87
|
+
}
|
|
88
|
+
if (max === 360) {
|
|
89
|
+
n2 = (n2 < 0 ? n2 % max + max : n2 % max) / parseFloat(String(max));
|
|
90
|
+
} else {
|
|
91
|
+
n2 = n2 % max / parseFloat(String(max));
|
|
92
|
+
}
|
|
93
|
+
return n2;
|
|
94
|
+
}
|
|
95
|
+
function clamp01(val) {
|
|
96
|
+
return Math.min(1, Math.max(0, val));
|
|
97
|
+
}
|
|
98
|
+
function isOnePointZero(n2) {
|
|
99
|
+
return typeof n2 === "string" && n2.indexOf(".") !== -1 && parseFloat(n2) === 1;
|
|
100
|
+
}
|
|
101
|
+
function isPercentage(n2) {
|
|
102
|
+
return typeof n2 === "string" && n2.indexOf("%") !== -1;
|
|
103
|
+
}
|
|
104
|
+
function boundAlpha(a) {
|
|
105
|
+
a = parseFloat(a);
|
|
106
|
+
if (isNaN(a) || a < 0 || a > 1) {
|
|
107
|
+
a = 1;
|
|
108
|
+
}
|
|
109
|
+
return a;
|
|
110
|
+
}
|
|
111
|
+
function convertToPercentage(n2) {
|
|
112
|
+
if (Number(n2) <= 1) {
|
|
113
|
+
return `${Number(n2) * 100}%`;
|
|
114
|
+
}
|
|
115
|
+
return n2;
|
|
116
|
+
}
|
|
117
|
+
function pad2(c) {
|
|
118
|
+
return c.length === 1 ? "0" + c : String(c);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// ../../node_modules/@ctrl/tinycolor/dist/module/conversion.js
|
|
122
|
+
function rgbToRgb(r2, g, b2) {
|
|
123
|
+
return {
|
|
124
|
+
r: bound01(r2, 255) * 255,
|
|
125
|
+
g: bound01(g, 255) * 255,
|
|
126
|
+
b: bound01(b2, 255) * 255
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function rgbToHsl(r2, g, b2) {
|
|
130
|
+
r2 = bound01(r2, 255);
|
|
131
|
+
g = bound01(g, 255);
|
|
132
|
+
b2 = bound01(b2, 255);
|
|
133
|
+
const max = Math.max(r2, g, b2);
|
|
134
|
+
const min = Math.min(r2, g, b2);
|
|
135
|
+
let h = 0;
|
|
136
|
+
let s = 0;
|
|
137
|
+
const l = (max + min) / 2;
|
|
138
|
+
if (max === min) {
|
|
139
|
+
s = 0;
|
|
140
|
+
h = 0;
|
|
141
|
+
} else {
|
|
142
|
+
const d = max - min;
|
|
143
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
144
|
+
switch (max) {
|
|
145
|
+
case r2:
|
|
146
|
+
h = (g - b2) / d + (g < b2 ? 6 : 0);
|
|
147
|
+
break;
|
|
148
|
+
case g:
|
|
149
|
+
h = (b2 - r2) / d + 2;
|
|
150
|
+
break;
|
|
151
|
+
case b2:
|
|
152
|
+
h = (r2 - g) / d + 4;
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
h /= 6;
|
|
158
|
+
}
|
|
159
|
+
return { h, s, l };
|
|
160
|
+
}
|
|
161
|
+
function hue2rgb(p, q, t2) {
|
|
162
|
+
if (t2 < 0) {
|
|
163
|
+
t2 += 1;
|
|
164
|
+
}
|
|
165
|
+
if (t2 > 1) {
|
|
166
|
+
t2 -= 1;
|
|
167
|
+
}
|
|
168
|
+
if (t2 < 1 / 6) {
|
|
169
|
+
return p + (q - p) * (6 * t2);
|
|
170
|
+
}
|
|
171
|
+
if (t2 < 1 / 2) {
|
|
172
|
+
return q;
|
|
173
|
+
}
|
|
174
|
+
if (t2 < 2 / 3) {
|
|
175
|
+
return p + (q - p) * (2 / 3 - t2) * 6;
|
|
176
|
+
}
|
|
177
|
+
return p;
|
|
178
|
+
}
|
|
179
|
+
function hslToRgb(h, s, l) {
|
|
180
|
+
let r2;
|
|
181
|
+
let g;
|
|
182
|
+
let b2;
|
|
183
|
+
h = bound01(h, 360);
|
|
184
|
+
s = bound01(s, 100);
|
|
185
|
+
l = bound01(l, 100);
|
|
186
|
+
if (s === 0) {
|
|
187
|
+
g = l;
|
|
188
|
+
b2 = l;
|
|
189
|
+
r2 = l;
|
|
190
|
+
} else {
|
|
191
|
+
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
192
|
+
const p = 2 * l - q;
|
|
193
|
+
r2 = hue2rgb(p, q, h + 1 / 3);
|
|
194
|
+
g = hue2rgb(p, q, h);
|
|
195
|
+
b2 = hue2rgb(p, q, h - 1 / 3);
|
|
196
|
+
}
|
|
197
|
+
return { r: r2 * 255, g: g * 255, b: b2 * 255 };
|
|
198
|
+
}
|
|
199
|
+
function rgbToHsv(r2, g, b2) {
|
|
200
|
+
r2 = bound01(r2, 255);
|
|
201
|
+
g = bound01(g, 255);
|
|
202
|
+
b2 = bound01(b2, 255);
|
|
203
|
+
const max = Math.max(r2, g, b2);
|
|
204
|
+
const min = Math.min(r2, g, b2);
|
|
205
|
+
let h = 0;
|
|
206
|
+
const v = max;
|
|
207
|
+
const d = max - min;
|
|
208
|
+
const s = max === 0 ? 0 : d / max;
|
|
209
|
+
if (max === min) {
|
|
210
|
+
h = 0;
|
|
211
|
+
} else {
|
|
212
|
+
switch (max) {
|
|
213
|
+
case r2:
|
|
214
|
+
h = (g - b2) / d + (g < b2 ? 6 : 0);
|
|
215
|
+
break;
|
|
216
|
+
case g:
|
|
217
|
+
h = (b2 - r2) / d + 2;
|
|
218
|
+
break;
|
|
219
|
+
case b2:
|
|
220
|
+
h = (r2 - g) / d + 4;
|
|
221
|
+
break;
|
|
222
|
+
default:
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
h /= 6;
|
|
226
|
+
}
|
|
227
|
+
return { h, s, v };
|
|
228
|
+
}
|
|
229
|
+
function hsvToRgb(h, s, v) {
|
|
230
|
+
h = bound01(h, 360) * 6;
|
|
231
|
+
s = bound01(s, 100);
|
|
232
|
+
v = bound01(v, 100);
|
|
233
|
+
const i = Math.floor(h);
|
|
234
|
+
const f = h - i;
|
|
235
|
+
const p = v * (1 - s);
|
|
236
|
+
const q = v * (1 - f * s);
|
|
237
|
+
const t2 = v * (1 - (1 - f) * s);
|
|
238
|
+
const mod = i % 6;
|
|
239
|
+
const r2 = [v, q, p, p, t2, v][mod];
|
|
240
|
+
const g = [t2, v, v, q, p, p][mod];
|
|
241
|
+
const b2 = [p, p, t2, v, v, q][mod];
|
|
242
|
+
return { r: r2 * 255, g: g * 255, b: b2 * 255 };
|
|
243
|
+
}
|
|
244
|
+
function rgbToHex(r2, g, b2, allow3Char) {
|
|
245
|
+
const hex = [
|
|
246
|
+
pad2(Math.round(r2).toString(16)),
|
|
247
|
+
pad2(Math.round(g).toString(16)),
|
|
248
|
+
pad2(Math.round(b2).toString(16))
|
|
249
|
+
];
|
|
250
|
+
if (allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1))) {
|
|
251
|
+
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
|
|
252
|
+
}
|
|
253
|
+
return hex.join("");
|
|
254
|
+
}
|
|
255
|
+
function rgbaToHex(r2, g, b2, a, allow4Char) {
|
|
256
|
+
const hex = [
|
|
257
|
+
pad2(Math.round(r2).toString(16)),
|
|
258
|
+
pad2(Math.round(g).toString(16)),
|
|
259
|
+
pad2(Math.round(b2).toString(16)),
|
|
260
|
+
pad2(convertDecimalToHex(a))
|
|
261
|
+
];
|
|
262
|
+
if (allow4Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1)) && hex[3].startsWith(hex[3].charAt(1))) {
|
|
263
|
+
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
|
|
264
|
+
}
|
|
265
|
+
return hex.join("");
|
|
266
|
+
}
|
|
267
|
+
function cmykToRgb(c, m, y, k) {
|
|
268
|
+
const cConv = c / 100;
|
|
269
|
+
const mConv = m / 100;
|
|
270
|
+
const yConv = y / 100;
|
|
271
|
+
const kConv = k / 100;
|
|
272
|
+
const r2 = 255 * (1 - cConv) * (1 - kConv);
|
|
273
|
+
const g = 255 * (1 - mConv) * (1 - kConv);
|
|
274
|
+
const b2 = 255 * (1 - yConv) * (1 - kConv);
|
|
275
|
+
return { r: r2, g, b: b2 };
|
|
276
|
+
}
|
|
277
|
+
function rgbToCmyk(r2, g, b2) {
|
|
278
|
+
let c = 1 - r2 / 255;
|
|
279
|
+
let m = 1 - g / 255;
|
|
280
|
+
let y = 1 - b2 / 255;
|
|
281
|
+
let k = Math.min(c, m, y);
|
|
282
|
+
if (k === 1) {
|
|
283
|
+
c = 0;
|
|
284
|
+
m = 0;
|
|
285
|
+
y = 0;
|
|
286
|
+
} else {
|
|
287
|
+
c = (c - k) / (1 - k) * 100;
|
|
288
|
+
m = (m - k) / (1 - k) * 100;
|
|
289
|
+
y = (y - k) / (1 - k) * 100;
|
|
290
|
+
}
|
|
291
|
+
k *= 100;
|
|
292
|
+
return {
|
|
293
|
+
c: Math.round(c),
|
|
294
|
+
m: Math.round(m),
|
|
295
|
+
y: Math.round(y),
|
|
296
|
+
k: Math.round(k)
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function convertDecimalToHex(d) {
|
|
300
|
+
return Math.round(parseFloat(d) * 255).toString(16);
|
|
301
|
+
}
|
|
302
|
+
function convertHexToDecimal(h) {
|
|
303
|
+
return parseIntFromHex(h) / 255;
|
|
304
|
+
}
|
|
305
|
+
function parseIntFromHex(val) {
|
|
306
|
+
return parseInt(val, 16);
|
|
307
|
+
}
|
|
308
|
+
function numberInputToObject(color) {
|
|
309
|
+
return {
|
|
310
|
+
r: color >> 16,
|
|
311
|
+
g: (color & 65280) >> 8,
|
|
312
|
+
b: color & 255
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// ../../node_modules/@ctrl/tinycolor/dist/module/css-color-names.js
|
|
317
|
+
var names = {
|
|
318
|
+
aliceblue: "#f0f8ff",
|
|
319
|
+
antiquewhite: "#faebd7",
|
|
320
|
+
aqua: "#00ffff",
|
|
321
|
+
aquamarine: "#7fffd4",
|
|
322
|
+
azure: "#f0ffff",
|
|
323
|
+
beige: "#f5f5dc",
|
|
324
|
+
bisque: "#ffe4c4",
|
|
325
|
+
black: "#000000",
|
|
326
|
+
blanchedalmond: "#ffebcd",
|
|
327
|
+
blue: "#0000ff",
|
|
328
|
+
blueviolet: "#8a2be2",
|
|
329
|
+
brown: "#a52a2a",
|
|
330
|
+
burlywood: "#deb887",
|
|
331
|
+
cadetblue: "#5f9ea0",
|
|
332
|
+
chartreuse: "#7fff00",
|
|
333
|
+
chocolate: "#d2691e",
|
|
334
|
+
coral: "#ff7f50",
|
|
335
|
+
cornflowerblue: "#6495ed",
|
|
336
|
+
cornsilk: "#fff8dc",
|
|
337
|
+
crimson: "#dc143c",
|
|
338
|
+
cyan: "#00ffff",
|
|
339
|
+
darkblue: "#00008b",
|
|
340
|
+
darkcyan: "#008b8b",
|
|
341
|
+
darkgoldenrod: "#b8860b",
|
|
342
|
+
darkgray: "#a9a9a9",
|
|
343
|
+
darkgreen: "#006400",
|
|
344
|
+
darkgrey: "#a9a9a9",
|
|
345
|
+
darkkhaki: "#bdb76b",
|
|
346
|
+
darkmagenta: "#8b008b",
|
|
347
|
+
darkolivegreen: "#556b2f",
|
|
348
|
+
darkorange: "#ff8c00",
|
|
349
|
+
darkorchid: "#9932cc",
|
|
350
|
+
darkred: "#8b0000",
|
|
351
|
+
darksalmon: "#e9967a",
|
|
352
|
+
darkseagreen: "#8fbc8f",
|
|
353
|
+
darkslateblue: "#483d8b",
|
|
354
|
+
darkslategray: "#2f4f4f",
|
|
355
|
+
darkslategrey: "#2f4f4f",
|
|
356
|
+
darkturquoise: "#00ced1",
|
|
357
|
+
darkviolet: "#9400d3",
|
|
358
|
+
deeppink: "#ff1493",
|
|
359
|
+
deepskyblue: "#00bfff",
|
|
360
|
+
dimgray: "#696969",
|
|
361
|
+
dimgrey: "#696969",
|
|
362
|
+
dodgerblue: "#1e90ff",
|
|
363
|
+
firebrick: "#b22222",
|
|
364
|
+
floralwhite: "#fffaf0",
|
|
365
|
+
forestgreen: "#228b22",
|
|
366
|
+
fuchsia: "#ff00ff",
|
|
367
|
+
gainsboro: "#dcdcdc",
|
|
368
|
+
ghostwhite: "#f8f8ff",
|
|
369
|
+
goldenrod: "#daa520",
|
|
370
|
+
gold: "#ffd700",
|
|
371
|
+
gray: "#808080",
|
|
372
|
+
green: "#008000",
|
|
373
|
+
greenyellow: "#adff2f",
|
|
374
|
+
grey: "#808080",
|
|
375
|
+
honeydew: "#f0fff0",
|
|
376
|
+
hotpink: "#ff69b4",
|
|
377
|
+
indianred: "#cd5c5c",
|
|
378
|
+
indigo: "#4b0082",
|
|
379
|
+
ivory: "#fffff0",
|
|
380
|
+
khaki: "#f0e68c",
|
|
381
|
+
lavenderblush: "#fff0f5",
|
|
382
|
+
lavender: "#e6e6fa",
|
|
383
|
+
lawngreen: "#7cfc00",
|
|
384
|
+
lemonchiffon: "#fffacd",
|
|
385
|
+
lightblue: "#add8e6",
|
|
386
|
+
lightcoral: "#f08080",
|
|
387
|
+
lightcyan: "#e0ffff",
|
|
388
|
+
lightgoldenrodyellow: "#fafad2",
|
|
389
|
+
lightgray: "#d3d3d3",
|
|
390
|
+
lightgreen: "#90ee90",
|
|
391
|
+
lightgrey: "#d3d3d3",
|
|
392
|
+
lightpink: "#ffb6c1",
|
|
393
|
+
lightsalmon: "#ffa07a",
|
|
394
|
+
lightseagreen: "#20b2aa",
|
|
395
|
+
lightskyblue: "#87cefa",
|
|
396
|
+
lightslategray: "#778899",
|
|
397
|
+
lightslategrey: "#778899",
|
|
398
|
+
lightsteelblue: "#b0c4de",
|
|
399
|
+
lightyellow: "#ffffe0",
|
|
400
|
+
lime: "#00ff00",
|
|
401
|
+
limegreen: "#32cd32",
|
|
402
|
+
linen: "#faf0e6",
|
|
403
|
+
magenta: "#ff00ff",
|
|
404
|
+
maroon: "#800000",
|
|
405
|
+
mediumaquamarine: "#66cdaa",
|
|
406
|
+
mediumblue: "#0000cd",
|
|
407
|
+
mediumorchid: "#ba55d3",
|
|
408
|
+
mediumpurple: "#9370db",
|
|
409
|
+
mediumseagreen: "#3cb371",
|
|
410
|
+
mediumslateblue: "#7b68ee",
|
|
411
|
+
mediumspringgreen: "#00fa9a",
|
|
412
|
+
mediumturquoise: "#48d1cc",
|
|
413
|
+
mediumvioletred: "#c71585",
|
|
414
|
+
midnightblue: "#191970",
|
|
415
|
+
mintcream: "#f5fffa",
|
|
416
|
+
mistyrose: "#ffe4e1",
|
|
417
|
+
moccasin: "#ffe4b5",
|
|
418
|
+
navajowhite: "#ffdead",
|
|
419
|
+
navy: "#000080",
|
|
420
|
+
oldlace: "#fdf5e6",
|
|
421
|
+
olive: "#808000",
|
|
422
|
+
olivedrab: "#6b8e23",
|
|
423
|
+
orange: "#ffa500",
|
|
424
|
+
orangered: "#ff4500",
|
|
425
|
+
orchid: "#da70d6",
|
|
426
|
+
palegoldenrod: "#eee8aa",
|
|
427
|
+
palegreen: "#98fb98",
|
|
428
|
+
paleturquoise: "#afeeee",
|
|
429
|
+
palevioletred: "#db7093",
|
|
430
|
+
papayawhip: "#ffefd5",
|
|
431
|
+
peachpuff: "#ffdab9",
|
|
432
|
+
peru: "#cd853f",
|
|
433
|
+
pink: "#ffc0cb",
|
|
434
|
+
plum: "#dda0dd",
|
|
435
|
+
powderblue: "#b0e0e6",
|
|
436
|
+
purple: "#800080",
|
|
437
|
+
rebeccapurple: "#663399",
|
|
438
|
+
red: "#ff0000",
|
|
439
|
+
rosybrown: "#bc8f8f",
|
|
440
|
+
royalblue: "#4169e1",
|
|
441
|
+
saddlebrown: "#8b4513",
|
|
442
|
+
salmon: "#fa8072",
|
|
443
|
+
sandybrown: "#f4a460",
|
|
444
|
+
seagreen: "#2e8b57",
|
|
445
|
+
seashell: "#fff5ee",
|
|
446
|
+
sienna: "#a0522d",
|
|
447
|
+
silver: "#c0c0c0",
|
|
448
|
+
skyblue: "#87ceeb",
|
|
449
|
+
slateblue: "#6a5acd",
|
|
450
|
+
slategray: "#708090",
|
|
451
|
+
slategrey: "#708090",
|
|
452
|
+
snow: "#fffafa",
|
|
453
|
+
springgreen: "#00ff7f",
|
|
454
|
+
steelblue: "#4682b4",
|
|
455
|
+
tan: "#d2b48c",
|
|
456
|
+
teal: "#008080",
|
|
457
|
+
thistle: "#d8bfd8",
|
|
458
|
+
tomato: "#ff6347",
|
|
459
|
+
turquoise: "#40e0d0",
|
|
460
|
+
violet: "#ee82ee",
|
|
461
|
+
wheat: "#f5deb3",
|
|
462
|
+
white: "#ffffff",
|
|
463
|
+
whitesmoke: "#f5f5f5",
|
|
464
|
+
yellow: "#ffff00",
|
|
465
|
+
yellowgreen: "#9acd32"
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
// ../../node_modules/@ctrl/tinycolor/dist/module/format-input.js
|
|
469
|
+
function inputToRGB(color) {
|
|
470
|
+
let rgb = { r: 0, g: 0, b: 0 };
|
|
471
|
+
let a = 1;
|
|
472
|
+
let s = null;
|
|
473
|
+
let v = null;
|
|
474
|
+
let l = null;
|
|
475
|
+
let ok = false;
|
|
476
|
+
let format = false;
|
|
477
|
+
if (typeof color === "string") {
|
|
478
|
+
color = stringInputToObject(color);
|
|
479
|
+
}
|
|
480
|
+
if (typeof color === "object") {
|
|
481
|
+
if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
|
|
482
|
+
rgb = rgbToRgb(color.r, color.g, color.b);
|
|
483
|
+
ok = true;
|
|
484
|
+
format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
|
|
485
|
+
} else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
|
|
486
|
+
s = convertToPercentage(color.s);
|
|
487
|
+
v = convertToPercentage(color.v);
|
|
488
|
+
rgb = hsvToRgb(color.h, s, v);
|
|
489
|
+
ok = true;
|
|
490
|
+
format = "hsv";
|
|
491
|
+
} else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
|
|
492
|
+
s = convertToPercentage(color.s);
|
|
493
|
+
l = convertToPercentage(color.l);
|
|
494
|
+
rgb = hslToRgb(color.h, s, l);
|
|
495
|
+
ok = true;
|
|
496
|
+
format = "hsl";
|
|
497
|
+
} else if (isValidCSSUnit(color.c) && isValidCSSUnit(color.m) && isValidCSSUnit(color.y) && isValidCSSUnit(color.k)) {
|
|
498
|
+
rgb = cmykToRgb(color.c, color.m, color.y, color.k);
|
|
499
|
+
ok = true;
|
|
500
|
+
format = "cmyk";
|
|
501
|
+
}
|
|
502
|
+
if (Object.prototype.hasOwnProperty.call(color, "a")) {
|
|
503
|
+
a = color.a;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
a = boundAlpha(a);
|
|
507
|
+
return {
|
|
508
|
+
ok,
|
|
509
|
+
format: color.format || format,
|
|
510
|
+
r: Math.min(255, Math.max(rgb.r, 0)),
|
|
511
|
+
g: Math.min(255, Math.max(rgb.g, 0)),
|
|
512
|
+
b: Math.min(255, Math.max(rgb.b, 0)),
|
|
513
|
+
a
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
var CSS_INTEGER = "[-\\+]?\\d+%?";
|
|
517
|
+
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
|
518
|
+
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
|
519
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
|
520
|
+
var PERMISSIVE_MATCH4 = (
|
|
521
|
+
// eslint-disable-next-line prettier/prettier
|
|
522
|
+
"[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?"
|
|
523
|
+
);
|
|
524
|
+
var matchers = {
|
|
525
|
+
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
526
|
+
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
|
|
527
|
+
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
|
|
528
|
+
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
|
|
529
|
+
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
|
|
530
|
+
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
|
|
531
|
+
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
|
|
532
|
+
cmyk: new RegExp("cmyk" + PERMISSIVE_MATCH4),
|
|
533
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
534
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
535
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
536
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
537
|
+
};
|
|
538
|
+
function stringInputToObject(color) {
|
|
539
|
+
color = color.trim().toLowerCase();
|
|
540
|
+
if (color.length === 0) {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
let named = false;
|
|
544
|
+
if (names[color]) {
|
|
545
|
+
color = names[color];
|
|
546
|
+
named = true;
|
|
547
|
+
} else if (color === "transparent") {
|
|
548
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
549
|
+
}
|
|
550
|
+
let match = matchers.rgb.exec(color);
|
|
551
|
+
if (match) {
|
|
552
|
+
return { r: match[1], g: match[2], b: match[3] };
|
|
553
|
+
}
|
|
554
|
+
match = matchers.rgba.exec(color);
|
|
555
|
+
if (match) {
|
|
556
|
+
return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
|
557
|
+
}
|
|
558
|
+
match = matchers.hsl.exec(color);
|
|
559
|
+
if (match) {
|
|
560
|
+
return { h: match[1], s: match[2], l: match[3] };
|
|
561
|
+
}
|
|
562
|
+
match = matchers.hsla.exec(color);
|
|
563
|
+
if (match) {
|
|
564
|
+
return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
|
565
|
+
}
|
|
566
|
+
match = matchers.hsv.exec(color);
|
|
567
|
+
if (match) {
|
|
568
|
+
return { h: match[1], s: match[2], v: match[3] };
|
|
569
|
+
}
|
|
570
|
+
match = matchers.hsva.exec(color);
|
|
571
|
+
if (match) {
|
|
572
|
+
return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
|
573
|
+
}
|
|
574
|
+
match = matchers.cmyk.exec(color);
|
|
575
|
+
if (match) {
|
|
576
|
+
return {
|
|
577
|
+
c: match[1],
|
|
578
|
+
m: match[2],
|
|
579
|
+
y: match[3],
|
|
580
|
+
k: match[4]
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
match = matchers.hex8.exec(color);
|
|
584
|
+
if (match) {
|
|
585
|
+
return {
|
|
586
|
+
r: parseIntFromHex(match[1]),
|
|
587
|
+
g: parseIntFromHex(match[2]),
|
|
588
|
+
b: parseIntFromHex(match[3]),
|
|
589
|
+
a: convertHexToDecimal(match[4]),
|
|
590
|
+
format: named ? "name" : "hex8"
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
match = matchers.hex6.exec(color);
|
|
594
|
+
if (match) {
|
|
595
|
+
return {
|
|
596
|
+
r: parseIntFromHex(match[1]),
|
|
597
|
+
g: parseIntFromHex(match[2]),
|
|
598
|
+
b: parseIntFromHex(match[3]),
|
|
599
|
+
format: named ? "name" : "hex"
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
match = matchers.hex4.exec(color);
|
|
603
|
+
if (match) {
|
|
604
|
+
return {
|
|
605
|
+
r: parseIntFromHex(match[1] + match[1]),
|
|
606
|
+
g: parseIntFromHex(match[2] + match[2]),
|
|
607
|
+
b: parseIntFromHex(match[3] + match[3]),
|
|
608
|
+
a: convertHexToDecimal(match[4] + match[4]),
|
|
609
|
+
format: named ? "name" : "hex8"
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
match = matchers.hex3.exec(color);
|
|
613
|
+
if (match) {
|
|
614
|
+
return {
|
|
615
|
+
r: parseIntFromHex(match[1] + match[1]),
|
|
616
|
+
g: parseIntFromHex(match[2] + match[2]),
|
|
617
|
+
b: parseIntFromHex(match[3] + match[3]),
|
|
618
|
+
format: named ? "name" : "hex"
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
return false;
|
|
622
|
+
}
|
|
623
|
+
function isValidCSSUnit(color) {
|
|
624
|
+
if (typeof color === "number") {
|
|
625
|
+
return !Number.isNaN(color);
|
|
626
|
+
}
|
|
627
|
+
return matchers.CSS_UNIT.test(color);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// ../../node_modules/@ctrl/tinycolor/dist/module/index.js
|
|
631
|
+
var TinyColor = class _TinyColor {
|
|
632
|
+
constructor(color = "", opts = {}) {
|
|
633
|
+
if (color instanceof _TinyColor) {
|
|
634
|
+
return color;
|
|
635
|
+
}
|
|
636
|
+
if (typeof color === "number") {
|
|
637
|
+
color = numberInputToObject(color);
|
|
638
|
+
}
|
|
639
|
+
this.originalInput = color;
|
|
640
|
+
const rgb = inputToRGB(color);
|
|
641
|
+
this.originalInput = color;
|
|
642
|
+
this.r = rgb.r;
|
|
643
|
+
this.g = rgb.g;
|
|
644
|
+
this.b = rgb.b;
|
|
645
|
+
this.a = rgb.a;
|
|
646
|
+
this.roundA = Math.round(100 * this.a) / 100;
|
|
647
|
+
this.format = opts.format ?? rgb.format;
|
|
648
|
+
this.gradientType = opts.gradientType;
|
|
649
|
+
if (this.r < 1) {
|
|
650
|
+
this.r = Math.round(this.r);
|
|
651
|
+
}
|
|
652
|
+
if (this.g < 1) {
|
|
653
|
+
this.g = Math.round(this.g);
|
|
654
|
+
}
|
|
655
|
+
if (this.b < 1) {
|
|
656
|
+
this.b = Math.round(this.b);
|
|
657
|
+
}
|
|
658
|
+
this.isValid = rgb.ok;
|
|
659
|
+
}
|
|
660
|
+
isDark() {
|
|
661
|
+
return this.getBrightness() < 128;
|
|
662
|
+
}
|
|
663
|
+
isLight() {
|
|
664
|
+
return !this.isDark();
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Returns the perceived brightness of the color, from 0-255.
|
|
668
|
+
*/
|
|
669
|
+
getBrightness() {
|
|
670
|
+
const rgb = this.toRgb();
|
|
671
|
+
return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Returns the perceived luminance of a color, from 0-1.
|
|
675
|
+
*/
|
|
676
|
+
getLuminance() {
|
|
677
|
+
const rgb = this.toRgb();
|
|
678
|
+
let R;
|
|
679
|
+
let G;
|
|
680
|
+
let B;
|
|
681
|
+
const RsRGB = rgb.r / 255;
|
|
682
|
+
const GsRGB = rgb.g / 255;
|
|
683
|
+
const BsRGB = rgb.b / 255;
|
|
684
|
+
if (RsRGB <= 0.03928) {
|
|
685
|
+
R = RsRGB / 12.92;
|
|
686
|
+
} else {
|
|
687
|
+
R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
|
|
688
|
+
}
|
|
689
|
+
if (GsRGB <= 0.03928) {
|
|
690
|
+
G = GsRGB / 12.92;
|
|
691
|
+
} else {
|
|
692
|
+
G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
|
|
693
|
+
}
|
|
694
|
+
if (BsRGB <= 0.03928) {
|
|
695
|
+
B = BsRGB / 12.92;
|
|
696
|
+
} else {
|
|
697
|
+
B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
|
|
698
|
+
}
|
|
699
|
+
return 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Returns the alpha value of a color, from 0-1.
|
|
703
|
+
*/
|
|
704
|
+
getAlpha() {
|
|
705
|
+
return this.a;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Sets the alpha value on the current color.
|
|
709
|
+
*
|
|
710
|
+
* @param alpha - The new alpha value. The accepted range is 0-1.
|
|
711
|
+
*/
|
|
712
|
+
setAlpha(alpha) {
|
|
713
|
+
this.a = boundAlpha(alpha);
|
|
714
|
+
this.roundA = Math.round(100 * this.a) / 100;
|
|
715
|
+
return this;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Returns whether the color is monochrome.
|
|
719
|
+
*/
|
|
720
|
+
isMonochrome() {
|
|
721
|
+
const { s } = this.toHsl();
|
|
722
|
+
return s === 0;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Returns the object as a HSVA object.
|
|
726
|
+
*/
|
|
727
|
+
toHsv() {
|
|
728
|
+
const hsv = rgbToHsv(this.r, this.g, this.b);
|
|
729
|
+
return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Returns the hsva values interpolated into a string with the following format:
|
|
733
|
+
* "hsva(xxx, xxx, xxx, xx)".
|
|
734
|
+
*/
|
|
735
|
+
toHsvString() {
|
|
736
|
+
const hsv = rgbToHsv(this.r, this.g, this.b);
|
|
737
|
+
const h = Math.round(hsv.h * 360);
|
|
738
|
+
const s = Math.round(hsv.s * 100);
|
|
739
|
+
const v = Math.round(hsv.v * 100);
|
|
740
|
+
return this.a === 1 ? `hsv(${h}, ${s}%, ${v}%)` : `hsva(${h}, ${s}%, ${v}%, ${this.roundA})`;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Returns the object as a HSLA object.
|
|
744
|
+
*/
|
|
745
|
+
toHsl() {
|
|
746
|
+
const hsl = rgbToHsl(this.r, this.g, this.b);
|
|
747
|
+
return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Returns the hsla values interpolated into a string with the following format:
|
|
751
|
+
* "hsla(xxx, xxx, xxx, xx)".
|
|
752
|
+
*/
|
|
753
|
+
toHslString() {
|
|
754
|
+
const hsl = rgbToHsl(this.r, this.g, this.b);
|
|
755
|
+
const h = Math.round(hsl.h * 360);
|
|
756
|
+
const s = Math.round(hsl.s * 100);
|
|
757
|
+
const l = Math.round(hsl.l * 100);
|
|
758
|
+
return this.a === 1 ? `hsl(${h}, ${s}%, ${l}%)` : `hsla(${h}, ${s}%, ${l}%, ${this.roundA})`;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Returns the hex value of the color.
|
|
762
|
+
* @param allow3Char will shorten hex value to 3 char if possible
|
|
763
|
+
*/
|
|
764
|
+
toHex(allow3Char = false) {
|
|
765
|
+
return rgbToHex(this.r, this.g, this.b, allow3Char);
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Returns the hex value of the color -with a # prefixed.
|
|
769
|
+
* @param allow3Char will shorten hex value to 3 char if possible
|
|
770
|
+
*/
|
|
771
|
+
toHexString(allow3Char = false) {
|
|
772
|
+
return "#" + this.toHex(allow3Char);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Returns the hex 8 value of the color.
|
|
776
|
+
* @param allow4Char will shorten hex value to 4 char if possible
|
|
777
|
+
*/
|
|
778
|
+
toHex8(allow4Char = false) {
|
|
779
|
+
return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char);
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Returns the hex 8 value of the color -with a # prefixed.
|
|
783
|
+
* @param allow4Char will shorten hex value to 4 char if possible
|
|
784
|
+
*/
|
|
785
|
+
toHex8String(allow4Char = false) {
|
|
786
|
+
return "#" + this.toHex8(allow4Char);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Returns the shorter hex value of the color depends on its alpha -with a # prefixed.
|
|
790
|
+
* @param allowShortChar will shorten hex value to 3 or 4 char if possible
|
|
791
|
+
*/
|
|
792
|
+
toHexShortString(allowShortChar = false) {
|
|
793
|
+
return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Returns the object as a RGBA object.
|
|
797
|
+
*/
|
|
798
|
+
toRgb() {
|
|
799
|
+
return {
|
|
800
|
+
r: Math.round(this.r),
|
|
801
|
+
g: Math.round(this.g),
|
|
802
|
+
b: Math.round(this.b),
|
|
803
|
+
a: this.a
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Returns the RGBA values interpolated into a string with the following format:
|
|
808
|
+
* "RGBA(xxx, xxx, xxx, xx)".
|
|
809
|
+
*/
|
|
810
|
+
toRgbString() {
|
|
811
|
+
const r2 = Math.round(this.r);
|
|
812
|
+
const g = Math.round(this.g);
|
|
813
|
+
const b2 = Math.round(this.b);
|
|
814
|
+
return this.a === 1 ? `rgb(${r2}, ${g}, ${b2})` : `rgba(${r2}, ${g}, ${b2}, ${this.roundA})`;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Returns the object as a RGBA object.
|
|
818
|
+
*/
|
|
819
|
+
toPercentageRgb() {
|
|
820
|
+
const fmt = (x) => `${Math.round(bound01(x, 255) * 100)}%`;
|
|
821
|
+
return {
|
|
822
|
+
r: fmt(this.r),
|
|
823
|
+
g: fmt(this.g),
|
|
824
|
+
b: fmt(this.b),
|
|
825
|
+
a: this.a
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Returns the RGBA relative values interpolated into a string
|
|
830
|
+
*/
|
|
831
|
+
toPercentageRgbString() {
|
|
832
|
+
const rnd = (x) => Math.round(bound01(x, 255) * 100);
|
|
833
|
+
return this.a === 1 ? `rgb(${rnd(this.r)}%, ${rnd(this.g)}%, ${rnd(this.b)}%)` : `rgba(${rnd(this.r)}%, ${rnd(this.g)}%, ${rnd(this.b)}%, ${this.roundA})`;
|
|
834
|
+
}
|
|
835
|
+
toCmyk() {
|
|
836
|
+
return {
|
|
837
|
+
...rgbToCmyk(this.r, this.g, this.b)
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
toCmykString() {
|
|
841
|
+
const { c, m, y, k } = rgbToCmyk(this.r, this.g, this.b);
|
|
842
|
+
return `cmyk(${c}, ${m}, ${y}, ${k})`;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* The 'real' name of the color -if there is one.
|
|
846
|
+
*/
|
|
847
|
+
toName() {
|
|
848
|
+
if (this.a === 0) {
|
|
849
|
+
return "transparent";
|
|
850
|
+
}
|
|
851
|
+
if (this.a < 1) {
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
854
|
+
const hex = "#" + rgbToHex(this.r, this.g, this.b, false);
|
|
855
|
+
for (const [key, value] of Object.entries(names)) {
|
|
856
|
+
if (hex === value) {
|
|
857
|
+
return key;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
return false;
|
|
861
|
+
}
|
|
862
|
+
toString(format) {
|
|
863
|
+
const formatSet = Boolean(format);
|
|
864
|
+
format = format ?? this.format;
|
|
865
|
+
let formattedString = false;
|
|
866
|
+
const hasAlpha = this.a < 1 && this.a >= 0;
|
|
867
|
+
const needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith("hex") || format === "name");
|
|
868
|
+
if (needsAlphaFormat) {
|
|
869
|
+
if (format === "name" && this.a === 0) {
|
|
870
|
+
return this.toName();
|
|
871
|
+
}
|
|
872
|
+
return this.toRgbString();
|
|
873
|
+
}
|
|
874
|
+
if (format === "rgb") {
|
|
875
|
+
formattedString = this.toRgbString();
|
|
876
|
+
}
|
|
877
|
+
if (format === "prgb") {
|
|
878
|
+
formattedString = this.toPercentageRgbString();
|
|
879
|
+
}
|
|
880
|
+
if (format === "hex" || format === "hex6") {
|
|
881
|
+
formattedString = this.toHexString();
|
|
882
|
+
}
|
|
883
|
+
if (format === "hex3") {
|
|
884
|
+
formattedString = this.toHexString(true);
|
|
885
|
+
}
|
|
886
|
+
if (format === "hex4") {
|
|
887
|
+
formattedString = this.toHex8String(true);
|
|
888
|
+
}
|
|
889
|
+
if (format === "hex8") {
|
|
890
|
+
formattedString = this.toHex8String();
|
|
891
|
+
}
|
|
892
|
+
if (format === "name") {
|
|
893
|
+
formattedString = this.toName();
|
|
894
|
+
}
|
|
895
|
+
if (format === "hsl") {
|
|
896
|
+
formattedString = this.toHslString();
|
|
897
|
+
}
|
|
898
|
+
if (format === "hsv") {
|
|
899
|
+
formattedString = this.toHsvString();
|
|
900
|
+
}
|
|
901
|
+
if (format === "cmyk") {
|
|
902
|
+
formattedString = this.toCmykString();
|
|
903
|
+
}
|
|
904
|
+
return formattedString || this.toHexString();
|
|
905
|
+
}
|
|
906
|
+
toNumber() {
|
|
907
|
+
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
908
|
+
}
|
|
909
|
+
clone() {
|
|
910
|
+
return new _TinyColor(this.toString());
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Lighten the color a given amount. Providing 100 will always return white.
|
|
914
|
+
* @param amount - valid between 1-100
|
|
915
|
+
*/
|
|
916
|
+
lighten(amount = 10) {
|
|
917
|
+
const hsl = this.toHsl();
|
|
918
|
+
hsl.l += amount / 100;
|
|
919
|
+
hsl.l = clamp01(hsl.l);
|
|
920
|
+
return new _TinyColor(hsl);
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Brighten the color a given amount, from 0 to 100.
|
|
924
|
+
* @param amount - valid between 1-100
|
|
925
|
+
*/
|
|
926
|
+
brighten(amount = 10) {
|
|
927
|
+
const rgb = this.toRgb();
|
|
928
|
+
rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
|
|
929
|
+
rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
|
|
930
|
+
rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
|
|
931
|
+
return new _TinyColor(rgb);
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Darken the color a given amount, from 0 to 100.
|
|
935
|
+
* Providing 100 will always return black.
|
|
936
|
+
* @param amount - valid between 1-100
|
|
937
|
+
*/
|
|
938
|
+
darken(amount = 10) {
|
|
939
|
+
const hsl = this.toHsl();
|
|
940
|
+
hsl.l -= amount / 100;
|
|
941
|
+
hsl.l = clamp01(hsl.l);
|
|
942
|
+
return new _TinyColor(hsl);
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Mix the color with pure white, from 0 to 100.
|
|
946
|
+
* Providing 0 will do nothing, providing 100 will always return white.
|
|
947
|
+
* @param amount - valid between 1-100
|
|
948
|
+
*/
|
|
949
|
+
tint(amount = 10) {
|
|
950
|
+
return this.mix("white", amount);
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Mix the color with pure black, from 0 to 100.
|
|
954
|
+
* Providing 0 will do nothing, providing 100 will always return black.
|
|
955
|
+
* @param amount - valid between 1-100
|
|
956
|
+
*/
|
|
957
|
+
shade(amount = 10) {
|
|
958
|
+
return this.mix("black", amount);
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Desaturate the color a given amount, from 0 to 100.
|
|
962
|
+
* Providing 100 will is the same as calling greyscale
|
|
963
|
+
* @param amount - valid between 1-100
|
|
964
|
+
*/
|
|
965
|
+
desaturate(amount = 10) {
|
|
966
|
+
const hsl = this.toHsl();
|
|
967
|
+
hsl.s -= amount / 100;
|
|
968
|
+
hsl.s = clamp01(hsl.s);
|
|
969
|
+
return new _TinyColor(hsl);
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Saturate the color a given amount, from 0 to 100.
|
|
973
|
+
* @param amount - valid between 1-100
|
|
974
|
+
*/
|
|
975
|
+
saturate(amount = 10) {
|
|
976
|
+
const hsl = this.toHsl();
|
|
977
|
+
hsl.s += amount / 100;
|
|
978
|
+
hsl.s = clamp01(hsl.s);
|
|
979
|
+
return new _TinyColor(hsl);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Completely desaturates a color into greyscale.
|
|
983
|
+
* Same as calling `desaturate(100)`
|
|
984
|
+
*/
|
|
985
|
+
greyscale() {
|
|
986
|
+
return this.desaturate(100);
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
|
|
990
|
+
* Values outside of this range will be wrapped into this range.
|
|
991
|
+
*/
|
|
992
|
+
spin(amount) {
|
|
993
|
+
const hsl = this.toHsl();
|
|
994
|
+
const hue = (hsl.h + amount) % 360;
|
|
995
|
+
hsl.h = hue < 0 ? 360 + hue : hue;
|
|
996
|
+
return new _TinyColor(hsl);
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Mix the current color a given amount with another color, from 0 to 100.
|
|
1000
|
+
* 0 means no mixing (return current color).
|
|
1001
|
+
*/
|
|
1002
|
+
mix(color, amount = 50) {
|
|
1003
|
+
const rgb1 = this.toRgb();
|
|
1004
|
+
const rgb2 = new _TinyColor(color).toRgb();
|
|
1005
|
+
const p = amount / 100;
|
|
1006
|
+
const rgba = {
|
|
1007
|
+
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
1008
|
+
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
1009
|
+
b: (rgb2.b - rgb1.b) * p + rgb1.b,
|
|
1010
|
+
a: (rgb2.a - rgb1.a) * p + rgb1.a
|
|
1011
|
+
};
|
|
1012
|
+
return new _TinyColor(rgba);
|
|
1013
|
+
}
|
|
1014
|
+
analogous(results = 6, slices = 30) {
|
|
1015
|
+
const hsl = this.toHsl();
|
|
1016
|
+
const part = 360 / slices;
|
|
1017
|
+
const ret = [this];
|
|
1018
|
+
for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; ) {
|
|
1019
|
+
hsl.h = (hsl.h + part) % 360;
|
|
1020
|
+
ret.push(new _TinyColor(hsl));
|
|
1021
|
+
}
|
|
1022
|
+
return ret;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
|
|
1026
|
+
*/
|
|
1027
|
+
complement() {
|
|
1028
|
+
const hsl = this.toHsl();
|
|
1029
|
+
hsl.h = (hsl.h + 180) % 360;
|
|
1030
|
+
return new _TinyColor(hsl);
|
|
1031
|
+
}
|
|
1032
|
+
monochromatic(results = 6) {
|
|
1033
|
+
const hsv = this.toHsv();
|
|
1034
|
+
const { h } = hsv;
|
|
1035
|
+
const { s } = hsv;
|
|
1036
|
+
let { v } = hsv;
|
|
1037
|
+
const res = [];
|
|
1038
|
+
const modification = 1 / results;
|
|
1039
|
+
while (results--) {
|
|
1040
|
+
res.push(new _TinyColor({ h, s, v }));
|
|
1041
|
+
v = (v + modification) % 1;
|
|
1042
|
+
}
|
|
1043
|
+
return res;
|
|
1044
|
+
}
|
|
1045
|
+
splitcomplement() {
|
|
1046
|
+
const hsl = this.toHsl();
|
|
1047
|
+
const { h } = hsl;
|
|
1048
|
+
return [
|
|
1049
|
+
this,
|
|
1050
|
+
new _TinyColor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),
|
|
1051
|
+
new _TinyColor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l })
|
|
1052
|
+
];
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Compute how the color would appear on a background
|
|
1056
|
+
*/
|
|
1057
|
+
onBackground(background) {
|
|
1058
|
+
const fg = this.toRgb();
|
|
1059
|
+
const bg = new _TinyColor(background).toRgb();
|
|
1060
|
+
const alpha = fg.a + bg.a * (1 - fg.a);
|
|
1061
|
+
return new _TinyColor({
|
|
1062
|
+
r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,
|
|
1063
|
+
g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,
|
|
1064
|
+
b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,
|
|
1065
|
+
a: alpha
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Alias for `polyad(3)`
|
|
1070
|
+
*/
|
|
1071
|
+
triad() {
|
|
1072
|
+
return this.polyad(3);
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Alias for `polyad(4)`
|
|
1076
|
+
*/
|
|
1077
|
+
tetrad() {
|
|
1078
|
+
return this.polyad(4);
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
|
|
1082
|
+
* monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
|
|
1083
|
+
*/
|
|
1084
|
+
polyad(n2) {
|
|
1085
|
+
const hsl = this.toHsl();
|
|
1086
|
+
const { h } = hsl;
|
|
1087
|
+
const result = [this];
|
|
1088
|
+
const increment = 360 / n2;
|
|
1089
|
+
for (let i = 1; i < n2; i++) {
|
|
1090
|
+
result.push(new _TinyColor({ h: (h + i * increment) % 360, s: hsl.s, l: hsl.l }));
|
|
1091
|
+
}
|
|
1092
|
+
return result;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* compare color vs current color
|
|
1096
|
+
*/
|
|
1097
|
+
equals(color) {
|
|
1098
|
+
const comparedColor = new _TinyColor(color);
|
|
1099
|
+
if (this.format === "cmyk" || comparedColor.format === "cmyk") {
|
|
1100
|
+
return this.toCmykString() === comparedColor.toCmykString();
|
|
1101
|
+
}
|
|
1102
|
+
return this.toRgbString() === comparedColor.toRgbString();
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
// src/components/color-picker/color-picker.ts
|
|
1107
|
+
var CsColorPicker = class extends CornerstoneFormAssociatedElement {
|
|
1108
|
+
constructor() {
|
|
1109
|
+
super();
|
|
1110
|
+
this.hasSlotController = new HasSlotController(this, "hint", "label");
|
|
1111
|
+
this.isSafeValue = false;
|
|
1112
|
+
this.localize = new LocalizeController(this);
|
|
1113
|
+
this.hasFocus = false;
|
|
1114
|
+
this.isDraggingGridHandle = false;
|
|
1115
|
+
this.inputValue = "";
|
|
1116
|
+
this.hue = 0;
|
|
1117
|
+
this.isEmpty = true;
|
|
1118
|
+
this.saturation = 100;
|
|
1119
|
+
this.brightness = 100;
|
|
1120
|
+
this.alpha = 100;
|
|
1121
|
+
this._value = null;
|
|
1122
|
+
this.defaultValue = this.getAttribute("value") || null;
|
|
1123
|
+
this.ssrLabel = false;
|
|
1124
|
+
this.ssrHint = false;
|
|
1125
|
+
this.hasEyeDropper = false;
|
|
1126
|
+
this.label = "";
|
|
1127
|
+
this.hint = "";
|
|
1128
|
+
this.format = "hex";
|
|
1129
|
+
this.size = "m";
|
|
1130
|
+
this.placement = "bottom-start";
|
|
1131
|
+
this.withoutFormatToggle = false;
|
|
1132
|
+
this.name = null;
|
|
1133
|
+
this.disabled = false;
|
|
1134
|
+
this.open = false;
|
|
1135
|
+
this.opacity = false;
|
|
1136
|
+
this.uppercase = false;
|
|
1137
|
+
this.swatches = "";
|
|
1138
|
+
this.required = false;
|
|
1139
|
+
this.handleFocusIn = () => {
|
|
1140
|
+
this.hasFocus = true;
|
|
1141
|
+
};
|
|
1142
|
+
this.handleFocusOut = () => {
|
|
1143
|
+
this.hasFocus = false;
|
|
1144
|
+
};
|
|
1145
|
+
this.reportValidityAfterShow = () => {
|
|
1146
|
+
this.removeEventListener("invalid", this.emitInvalid);
|
|
1147
|
+
this.reportValidity();
|
|
1148
|
+
this.addEventListener("invalid", this.emitInvalid);
|
|
1149
|
+
};
|
|
1150
|
+
this.handleKeyDown = (event) => {
|
|
1151
|
+
if (this.open && event.key === "Escape" && isTopDismissible(this)) {
|
|
1152
|
+
event.stopPropagation();
|
|
1153
|
+
this.hide();
|
|
1154
|
+
this.focus();
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
this.handleDocumentKeyDown = (event) => {
|
|
1158
|
+
if (event.key === "Escape" && this.open && isTopDismissible(this)) {
|
|
1159
|
+
event.stopPropagation();
|
|
1160
|
+
this.focus();
|
|
1161
|
+
this.hide();
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
if (event.key === "Tab") {
|
|
1165
|
+
setTimeout(() => {
|
|
1166
|
+
const activeElement = this.getRootNode() instanceof ShadowRoot ? document.activeElement?.shadowRoot?.activeElement : document.activeElement;
|
|
1167
|
+
if (activeElement?.closest(this.tagName.toLowerCase()) !== this) {
|
|
1168
|
+
this.hide();
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
this.handleDocumentMouseDown = (event) => {
|
|
1174
|
+
const path = event.composedPath();
|
|
1175
|
+
const isInsideRelevantArea = path.some(
|
|
1176
|
+
(element) => element instanceof Element && (element.closest(".color-picker") || element === this.trigger)
|
|
1177
|
+
);
|
|
1178
|
+
if (!isInsideRelevantArea) {
|
|
1179
|
+
this.hide();
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
if (!o) {
|
|
1183
|
+
this.addEventListener("focusin", this.handleFocusIn);
|
|
1184
|
+
this.addEventListener("focusout", this.handleFocusOut);
|
|
1185
|
+
}
|
|
1186
|
+
this.opacity = this.hasAttribute("opacity");
|
|
1187
|
+
this.uppercase = this.hasAttribute("uppercase");
|
|
1188
|
+
const format = this.getAttribute("format");
|
|
1189
|
+
if (format === "rgb" || format === "hsl" || format === "hsv") {
|
|
1190
|
+
this.format = format;
|
|
1191
|
+
}
|
|
1192
|
+
this.handleValueChange("", this.value || "");
|
|
1193
|
+
}
|
|
1194
|
+
static get validators() {
|
|
1195
|
+
return [...super.validators, RequiredValidator()];
|
|
1196
|
+
}
|
|
1197
|
+
// @TODO: This is a hacky way to show the "Please fill out this field", do we want the old behavior where it opens the dropdown?
|
|
1198
|
+
// or is the new behavior okay?
|
|
1199
|
+
get validationTarget() {
|
|
1200
|
+
if (this.popup?.active) {
|
|
1201
|
+
return this.input;
|
|
1202
|
+
}
|
|
1203
|
+
return this.trigger;
|
|
1204
|
+
}
|
|
1205
|
+
/** The current value of the input, submitted as a name/value pair with form data. */
|
|
1206
|
+
get value() {
|
|
1207
|
+
if (this.valueHasChanged) {
|
|
1208
|
+
return this._value;
|
|
1209
|
+
}
|
|
1210
|
+
return this._value ?? this.defaultValue;
|
|
1211
|
+
}
|
|
1212
|
+
set value(val) {
|
|
1213
|
+
if (this._value === val) {
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
this.valueHasChanged = true;
|
|
1217
|
+
this._value = val;
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* @internal
|
|
1221
|
+
*/
|
|
1222
|
+
updateFormValue(value) {
|
|
1223
|
+
if (value == null) {
|
|
1224
|
+
this.setValue("", null);
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
super.updateFormValue(value);
|
|
1228
|
+
}
|
|
1229
|
+
handleCopy() {
|
|
1230
|
+
this.input.select();
|
|
1231
|
+
document.execCommand("copy");
|
|
1232
|
+
this.previewButton.focus();
|
|
1233
|
+
this.previewButton.classList.add("preview-color-copied");
|
|
1234
|
+
this.previewButton.addEventListener("animationend", () => {
|
|
1235
|
+
this.previewButton.classList.remove("preview-color-copied");
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
handleFormatToggle() {
|
|
1239
|
+
const formats = ["hex", "rgb", "hsl", "hsv"];
|
|
1240
|
+
const nextIndex = (formats.indexOf(this.format) + 1) % formats.length;
|
|
1241
|
+
this.format = formats[nextIndex];
|
|
1242
|
+
this.setColor(this.value || "");
|
|
1243
|
+
this.updateComplete.then(() => {
|
|
1244
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1245
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
handleAlphaDrag(event) {
|
|
1249
|
+
const container = this.shadowRoot.querySelector(".slider.alpha");
|
|
1250
|
+
const handle = container.querySelector(".slider-handle");
|
|
1251
|
+
const { width } = container.getBoundingClientRect();
|
|
1252
|
+
let initialValue = this.value;
|
|
1253
|
+
let currentValue = this.value;
|
|
1254
|
+
handle.focus();
|
|
1255
|
+
event.preventDefault();
|
|
1256
|
+
drag(container, {
|
|
1257
|
+
onMove: (x) => {
|
|
1258
|
+
this.alpha = clamp(x / width * 100, 0, 100);
|
|
1259
|
+
this.syncValues();
|
|
1260
|
+
if (this.value !== currentValue) {
|
|
1261
|
+
currentValue = this.value;
|
|
1262
|
+
this.updateComplete.then(() => {
|
|
1263
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
onStop: () => {
|
|
1268
|
+
if (this.value !== initialValue) {
|
|
1269
|
+
initialValue = this.value;
|
|
1270
|
+
this.updateComplete.then(() => {
|
|
1271
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
initialEvent: event
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
handleHueDrag(event) {
|
|
1279
|
+
const container = this.shadowRoot.querySelector(".slider.hue");
|
|
1280
|
+
const handle = container.querySelector(".slider-handle");
|
|
1281
|
+
const { width } = container.getBoundingClientRect();
|
|
1282
|
+
let initialValue = this.value;
|
|
1283
|
+
let currentValue = this.value;
|
|
1284
|
+
handle.focus();
|
|
1285
|
+
event.preventDefault();
|
|
1286
|
+
drag(container, {
|
|
1287
|
+
onMove: (x) => {
|
|
1288
|
+
this.hue = clamp(x / width * 360, 0, 360);
|
|
1289
|
+
this.syncValues();
|
|
1290
|
+
if (this.value !== currentValue) {
|
|
1291
|
+
currentValue = this.value;
|
|
1292
|
+
this.updateComplete.then(() => {
|
|
1293
|
+
this.dispatchEvent(new InputEvent("input"));
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
onStop: () => {
|
|
1298
|
+
if (this.value !== initialValue) {
|
|
1299
|
+
initialValue = this.value;
|
|
1300
|
+
this.updateComplete.then(() => {
|
|
1301
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
initialEvent: event
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
handleGridDrag(event) {
|
|
1309
|
+
const grid = this.shadowRoot.querySelector(".grid");
|
|
1310
|
+
const handle = grid.querySelector(".grid-handle");
|
|
1311
|
+
const { width, height } = grid.getBoundingClientRect();
|
|
1312
|
+
let initialValue = this.value;
|
|
1313
|
+
let currentValue = this.value;
|
|
1314
|
+
handle.focus();
|
|
1315
|
+
event.preventDefault();
|
|
1316
|
+
this.isDraggingGridHandle = true;
|
|
1317
|
+
drag(grid, {
|
|
1318
|
+
onMove: (x, y) => {
|
|
1319
|
+
this.saturation = clamp(x / width * 100, 0, 100);
|
|
1320
|
+
this.brightness = clamp(100 - y / height * 100, 0, 100);
|
|
1321
|
+
this.syncValues();
|
|
1322
|
+
if (this.value !== currentValue) {
|
|
1323
|
+
currentValue = this.value;
|
|
1324
|
+
this.updateComplete.then(() => {
|
|
1325
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
onStop: () => {
|
|
1330
|
+
this.isDraggingGridHandle = false;
|
|
1331
|
+
if (this.value !== initialValue) {
|
|
1332
|
+
initialValue = this.value;
|
|
1333
|
+
this.updateComplete.then(() => {
|
|
1334
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
initialEvent: event
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
handleAlphaKeyDown(event) {
|
|
1342
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
1343
|
+
const oldValue = this.value;
|
|
1344
|
+
if (event.key === "ArrowLeft") {
|
|
1345
|
+
event.preventDefault();
|
|
1346
|
+
this.alpha = clamp(this.alpha - increment, 0, 100);
|
|
1347
|
+
this.syncValues();
|
|
1348
|
+
}
|
|
1349
|
+
if (event.key === "ArrowRight") {
|
|
1350
|
+
event.preventDefault();
|
|
1351
|
+
this.alpha = clamp(this.alpha + increment, 0, 100);
|
|
1352
|
+
this.syncValues();
|
|
1353
|
+
}
|
|
1354
|
+
if (event.key === "Home") {
|
|
1355
|
+
event.preventDefault();
|
|
1356
|
+
this.alpha = 0;
|
|
1357
|
+
this.syncValues();
|
|
1358
|
+
}
|
|
1359
|
+
if (event.key === "End") {
|
|
1360
|
+
event.preventDefault();
|
|
1361
|
+
this.alpha = 100;
|
|
1362
|
+
this.syncValues();
|
|
1363
|
+
}
|
|
1364
|
+
if (this.value !== oldValue) {
|
|
1365
|
+
this.updateComplete.then(() => {
|
|
1366
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1367
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
handleHueKeyDown(event) {
|
|
1372
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
1373
|
+
const oldValue = this.value;
|
|
1374
|
+
if (event.key === "ArrowLeft") {
|
|
1375
|
+
event.preventDefault();
|
|
1376
|
+
this.hue = clamp(this.hue - increment, 0, 360);
|
|
1377
|
+
this.syncValues();
|
|
1378
|
+
}
|
|
1379
|
+
if (event.key === "ArrowRight") {
|
|
1380
|
+
event.preventDefault();
|
|
1381
|
+
this.hue = clamp(this.hue + increment, 0, 360);
|
|
1382
|
+
this.syncValues();
|
|
1383
|
+
}
|
|
1384
|
+
if (event.key === "Home") {
|
|
1385
|
+
event.preventDefault();
|
|
1386
|
+
this.hue = 0;
|
|
1387
|
+
this.syncValues();
|
|
1388
|
+
}
|
|
1389
|
+
if (event.key === "End") {
|
|
1390
|
+
event.preventDefault();
|
|
1391
|
+
this.hue = 360;
|
|
1392
|
+
this.syncValues();
|
|
1393
|
+
}
|
|
1394
|
+
if (this.value !== oldValue) {
|
|
1395
|
+
this.updateComplete.then(() => {
|
|
1396
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1397
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
handleGridKeyDown(event) {
|
|
1402
|
+
const increment = event.shiftKey ? 10 : 1;
|
|
1403
|
+
const oldValue = this.value;
|
|
1404
|
+
if (event.key === "ArrowLeft") {
|
|
1405
|
+
event.preventDefault();
|
|
1406
|
+
this.saturation = clamp(this.saturation - increment, 0, 100);
|
|
1407
|
+
this.syncValues();
|
|
1408
|
+
}
|
|
1409
|
+
if (event.key === "ArrowRight") {
|
|
1410
|
+
event.preventDefault();
|
|
1411
|
+
this.saturation = clamp(this.saturation + increment, 0, 100);
|
|
1412
|
+
this.syncValues();
|
|
1413
|
+
}
|
|
1414
|
+
if (event.key === "ArrowUp") {
|
|
1415
|
+
event.preventDefault();
|
|
1416
|
+
this.brightness = clamp(this.brightness + increment, 0, 100);
|
|
1417
|
+
this.syncValues();
|
|
1418
|
+
}
|
|
1419
|
+
if (event.key === "ArrowDown") {
|
|
1420
|
+
event.preventDefault();
|
|
1421
|
+
this.brightness = clamp(this.brightness - increment, 0, 100);
|
|
1422
|
+
this.syncValues();
|
|
1423
|
+
}
|
|
1424
|
+
if (this.value !== oldValue) {
|
|
1425
|
+
this.updateComplete.then(() => {
|
|
1426
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1427
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
handleInputChange(event) {
|
|
1432
|
+
const target = event.target;
|
|
1433
|
+
const oldValue = this.value;
|
|
1434
|
+
event.stopPropagation();
|
|
1435
|
+
if (this.input.value) {
|
|
1436
|
+
this.setColor(target.value);
|
|
1437
|
+
target.value = this.value || "";
|
|
1438
|
+
} else {
|
|
1439
|
+
this.value = "";
|
|
1440
|
+
}
|
|
1441
|
+
if (this.value !== oldValue) {
|
|
1442
|
+
this.updateComplete.then(() => {
|
|
1443
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1444
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
handleInputInput(event) {
|
|
1449
|
+
this.updateValidity();
|
|
1450
|
+
event.stopPropagation();
|
|
1451
|
+
}
|
|
1452
|
+
handleInputKeyDown(event) {
|
|
1453
|
+
if (event.key === "Enter") {
|
|
1454
|
+
const oldValue = this.value;
|
|
1455
|
+
if (this.input.value) {
|
|
1456
|
+
this.setColor(this.input.value);
|
|
1457
|
+
this.input.value = this.value;
|
|
1458
|
+
if (this.value !== oldValue) {
|
|
1459
|
+
this.updateComplete.then(() => {
|
|
1460
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1461
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
setTimeout(() => this.input.select());
|
|
1465
|
+
} else {
|
|
1466
|
+
this.hue = 0;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
handleTouchMove(event) {
|
|
1471
|
+
event.preventDefault();
|
|
1472
|
+
}
|
|
1473
|
+
parseColor(colorString) {
|
|
1474
|
+
if (!colorString || colorString.trim() === "") {
|
|
1475
|
+
return null;
|
|
1476
|
+
}
|
|
1477
|
+
const color = new TinyColor(colorString);
|
|
1478
|
+
if (!color.isValid) {
|
|
1479
|
+
return null;
|
|
1480
|
+
}
|
|
1481
|
+
const hslColor = color.toHsl();
|
|
1482
|
+
const rgb = color.toRgb();
|
|
1483
|
+
const hsvColor = color.toHsv();
|
|
1484
|
+
if (!rgb || rgb.r == null || rgb.g == null || rgb.b == null) {
|
|
1485
|
+
return null;
|
|
1486
|
+
}
|
|
1487
|
+
const hsl = {
|
|
1488
|
+
h: hslColor.h || 0,
|
|
1489
|
+
s: (hslColor.s || 0) * 100,
|
|
1490
|
+
l: (hslColor.l || 0) * 100,
|
|
1491
|
+
a: hslColor.a || 0
|
|
1492
|
+
};
|
|
1493
|
+
const hex = color.toHexString();
|
|
1494
|
+
const hexa = color.toHex8String();
|
|
1495
|
+
const hsv = {
|
|
1496
|
+
h: hsvColor.h || 0,
|
|
1497
|
+
s: (hsvColor.s || 0) * 100,
|
|
1498
|
+
v: (hsvColor.v || 0) * 100,
|
|
1499
|
+
a: hsvColor.a || 0
|
|
1500
|
+
};
|
|
1501
|
+
return {
|
|
1502
|
+
hsl: {
|
|
1503
|
+
h: hsl.h,
|
|
1504
|
+
s: hsl.s,
|
|
1505
|
+
l: hsl.l,
|
|
1506
|
+
string: this.setLetterCase(`hsl(${Math.round(hsl.h)}, ${Math.round(hsl.s)}%, ${Math.round(hsl.l)}%)`)
|
|
1507
|
+
},
|
|
1508
|
+
hsla: {
|
|
1509
|
+
h: hsl.h,
|
|
1510
|
+
s: hsl.s,
|
|
1511
|
+
l: hsl.l,
|
|
1512
|
+
a: hsl.a,
|
|
1513
|
+
string: this.setLetterCase(
|
|
1514
|
+
`hsla(${Math.round(hsl.h)}, ${Math.round(hsl.s)}%, ${Math.round(hsl.l)}%, ${hsl.a.toFixed(2).toString()})`
|
|
1515
|
+
)
|
|
1516
|
+
},
|
|
1517
|
+
hsv: {
|
|
1518
|
+
h: hsv.h,
|
|
1519
|
+
s: hsv.s,
|
|
1520
|
+
v: hsv.v,
|
|
1521
|
+
string: this.setLetterCase(`hsv(${Math.round(hsv.h)}, ${Math.round(hsv.s)}%, ${Math.round(hsv.v)}%)`)
|
|
1522
|
+
},
|
|
1523
|
+
hsva: {
|
|
1524
|
+
h: hsv.h,
|
|
1525
|
+
s: hsv.s,
|
|
1526
|
+
v: hsv.v,
|
|
1527
|
+
a: hsv.a,
|
|
1528
|
+
string: this.setLetterCase(
|
|
1529
|
+
`hsva(${Math.round(hsv.h)}, ${Math.round(hsv.s)}%, ${Math.round(hsv.v)}%, ${hsv.a.toFixed(2).toString()})`
|
|
1530
|
+
)
|
|
1531
|
+
},
|
|
1532
|
+
rgb: {
|
|
1533
|
+
r: rgb.r,
|
|
1534
|
+
g: rgb.g,
|
|
1535
|
+
b: rgb.b,
|
|
1536
|
+
string: this.setLetterCase(`rgb(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)})`)
|
|
1537
|
+
},
|
|
1538
|
+
rgba: {
|
|
1539
|
+
r: rgb.r,
|
|
1540
|
+
g: rgb.g,
|
|
1541
|
+
b: rgb.b,
|
|
1542
|
+
a: rgb.a || 0,
|
|
1543
|
+
string: this.setLetterCase(
|
|
1544
|
+
`rgba(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)}, ${(rgb.a || 0).toFixed(2).toString()})`
|
|
1545
|
+
)
|
|
1546
|
+
},
|
|
1547
|
+
hex: this.setLetterCase(hex),
|
|
1548
|
+
hexa: this.setLetterCase(hexa)
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
setColor(colorString) {
|
|
1552
|
+
const newColor = this.parseColor(colorString);
|
|
1553
|
+
if (newColor === null) {
|
|
1554
|
+
return false;
|
|
1555
|
+
}
|
|
1556
|
+
this.hue = newColor.hsva.h;
|
|
1557
|
+
this.saturation = newColor.hsva.s;
|
|
1558
|
+
this.brightness = newColor.hsva.v;
|
|
1559
|
+
this.alpha = this.opacity ? newColor.hsva.a * 100 : 100;
|
|
1560
|
+
this.syncValues();
|
|
1561
|
+
return true;
|
|
1562
|
+
}
|
|
1563
|
+
setLetterCase(string) {
|
|
1564
|
+
if (typeof string !== "string") {
|
|
1565
|
+
return "";
|
|
1566
|
+
}
|
|
1567
|
+
return this.uppercase ? string.toUpperCase() : string.toLowerCase();
|
|
1568
|
+
}
|
|
1569
|
+
async syncValues() {
|
|
1570
|
+
const currentColor = this.parseColor(
|
|
1571
|
+
`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha / 100})`
|
|
1572
|
+
);
|
|
1573
|
+
if (currentColor === null) {
|
|
1574
|
+
return;
|
|
1575
|
+
}
|
|
1576
|
+
if (this.format === "hsl") {
|
|
1577
|
+
this.inputValue = this.opacity ? currentColor.hsla.string : currentColor.hsl.string;
|
|
1578
|
+
} else if (this.format === "rgb") {
|
|
1579
|
+
this.inputValue = this.opacity ? currentColor.rgba.string : currentColor.rgb.string;
|
|
1580
|
+
} else if (this.format === "hsv") {
|
|
1581
|
+
this.inputValue = this.opacity ? currentColor.hsva.string : currentColor.hsv.string;
|
|
1582
|
+
} else {
|
|
1583
|
+
this.inputValue = this.opacity ? currentColor.hexa : currentColor.hex;
|
|
1584
|
+
}
|
|
1585
|
+
this.isSafeValue = true;
|
|
1586
|
+
this.value = this.inputValue;
|
|
1587
|
+
await this.updateComplete;
|
|
1588
|
+
this.isSafeValue = false;
|
|
1589
|
+
}
|
|
1590
|
+
handleAfterHide() {
|
|
1591
|
+
this.previewButton.classList.remove("preview-color-copied");
|
|
1592
|
+
this.updateValidity();
|
|
1593
|
+
}
|
|
1594
|
+
handleAfterShow() {
|
|
1595
|
+
this.updateValidity();
|
|
1596
|
+
}
|
|
1597
|
+
handleEyeDropper() {
|
|
1598
|
+
if (!this.hasEyeDropper) {
|
|
1599
|
+
return;
|
|
1600
|
+
}
|
|
1601
|
+
const eyeDropper = new EyeDropper();
|
|
1602
|
+
eyeDropper.open().then((colorSelectionResult) => {
|
|
1603
|
+
const oldValue = this.value;
|
|
1604
|
+
this.setColor(colorSelectionResult.sRGBHex);
|
|
1605
|
+
if (this.value !== oldValue) {
|
|
1606
|
+
this.updateComplete.then(() => {
|
|
1607
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1608
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
}).catch(() => {
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
selectSwatch(color) {
|
|
1615
|
+
const oldValue = this.value;
|
|
1616
|
+
if (!this.disabled) {
|
|
1617
|
+
this.setColor(color);
|
|
1618
|
+
if (this.value !== oldValue) {
|
|
1619
|
+
this.updateComplete.then(() => {
|
|
1620
|
+
this.dispatchEvent(new InputEvent("input", { bubbles: true, composed: true }));
|
|
1621
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
/** Generates a hex string from HSV values. Hue must be 0-360. All other arguments must be 0-100. */
|
|
1627
|
+
getHexString(hue, saturation, brightness, alpha = 100) {
|
|
1628
|
+
const color = new TinyColor(`hsva(${hue}, ${saturation}%, ${brightness}%, ${alpha / 100})`);
|
|
1629
|
+
if (!color.isValid) {
|
|
1630
|
+
return "";
|
|
1631
|
+
}
|
|
1632
|
+
return color.toHex8String();
|
|
1633
|
+
}
|
|
1634
|
+
// Prevents nested components from leaking events
|
|
1635
|
+
stopNestedEventPropagation(event) {
|
|
1636
|
+
event.stopImmediatePropagation();
|
|
1637
|
+
}
|
|
1638
|
+
handleFormatChange() {
|
|
1639
|
+
this.syncValues();
|
|
1640
|
+
}
|
|
1641
|
+
handleOpacityChange() {
|
|
1642
|
+
this.alpha = 100;
|
|
1643
|
+
}
|
|
1644
|
+
willUpdate(changedProperties) {
|
|
1645
|
+
if (changedProperties.has("value") || changedProperties.has("defaultValue")) {
|
|
1646
|
+
this.handleValueChange(changedProperties.get("value") || "", this.value || "");
|
|
1647
|
+
}
|
|
1648
|
+
super.willUpdate(changedProperties);
|
|
1649
|
+
}
|
|
1650
|
+
handleValueChange(oldValue, newValue) {
|
|
1651
|
+
this.isEmpty = !newValue;
|
|
1652
|
+
if (!newValue) {
|
|
1653
|
+
this.hue = 0;
|
|
1654
|
+
this.saturation = 0;
|
|
1655
|
+
this.brightness = 100;
|
|
1656
|
+
this.alpha = 100;
|
|
1657
|
+
}
|
|
1658
|
+
if (!this.isSafeValue) {
|
|
1659
|
+
const newColor = this.parseColor(newValue);
|
|
1660
|
+
if (newColor !== null) {
|
|
1661
|
+
this.inputValue = this.value || "";
|
|
1662
|
+
this.hue = newColor.hsva.h;
|
|
1663
|
+
this.saturation = newColor.hsva.s;
|
|
1664
|
+
this.brightness = newColor.hsva.v;
|
|
1665
|
+
this.alpha = this.opacity ? newColor.hsva.a * 100 : 100;
|
|
1666
|
+
this.syncValues();
|
|
1667
|
+
} else {
|
|
1668
|
+
this.inputValue = oldValue ?? "";
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
this.requestUpdate();
|
|
1672
|
+
}
|
|
1673
|
+
/** Sets focus on the color picker. */
|
|
1674
|
+
focus(options) {
|
|
1675
|
+
this.trigger.focus(options);
|
|
1676
|
+
}
|
|
1677
|
+
/** Removes focus from the color picker. */
|
|
1678
|
+
blur() {
|
|
1679
|
+
const elementToBlur = this.trigger;
|
|
1680
|
+
if (this.hasFocus) {
|
|
1681
|
+
elementToBlur.focus({ preventScroll: true });
|
|
1682
|
+
elementToBlur.blur();
|
|
1683
|
+
}
|
|
1684
|
+
if (this.popup?.active) {
|
|
1685
|
+
this.hide();
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
/** Returns the current value as a string in the specified format. */
|
|
1689
|
+
getFormattedValue(format = "hex") {
|
|
1690
|
+
const currentColor = this.parseColor(
|
|
1691
|
+
`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha / 100})`
|
|
1692
|
+
);
|
|
1693
|
+
if (currentColor === null) {
|
|
1694
|
+
return "";
|
|
1695
|
+
}
|
|
1696
|
+
switch (format) {
|
|
1697
|
+
case "hex":
|
|
1698
|
+
return currentColor.hex;
|
|
1699
|
+
case "hexa":
|
|
1700
|
+
return currentColor.hexa;
|
|
1701
|
+
case "rgb":
|
|
1702
|
+
return currentColor.rgb.string;
|
|
1703
|
+
case "rgba":
|
|
1704
|
+
return currentColor.rgba.string;
|
|
1705
|
+
case "hsl":
|
|
1706
|
+
return currentColor.hsl.string;
|
|
1707
|
+
case "hsla":
|
|
1708
|
+
return currentColor.hsla.string;
|
|
1709
|
+
case "hsv":
|
|
1710
|
+
return currentColor.hsv.string;
|
|
1711
|
+
case "hsva":
|
|
1712
|
+
return currentColor.hsva.string;
|
|
1713
|
+
default:
|
|
1714
|
+
return "";
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
1718
|
+
reportValidity() {
|
|
1719
|
+
if (!this.validity.valid && !this.open) {
|
|
1720
|
+
this.addEventListener("cs-after-show", this.reportValidityAfterShow, { once: true });
|
|
1721
|
+
this.show();
|
|
1722
|
+
if (!this.disabled) {
|
|
1723
|
+
this.dispatchEvent(new CsInvalidEvent());
|
|
1724
|
+
}
|
|
1725
|
+
return false;
|
|
1726
|
+
}
|
|
1727
|
+
return super.reportValidity();
|
|
1728
|
+
}
|
|
1729
|
+
formResetCallback() {
|
|
1730
|
+
this.value = this.defaultValue;
|
|
1731
|
+
super.formResetCallback();
|
|
1732
|
+
}
|
|
1733
|
+
firstUpdated(changedProperties) {
|
|
1734
|
+
super.firstUpdated(changedProperties);
|
|
1735
|
+
this.hasEyeDropper = "EyeDropper" in window;
|
|
1736
|
+
}
|
|
1737
|
+
handleTriggerClick() {
|
|
1738
|
+
if (this.open) {
|
|
1739
|
+
this.hide();
|
|
1740
|
+
} else {
|
|
1741
|
+
this.show();
|
|
1742
|
+
this.focus();
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
async handleTriggerKeyDown(event) {
|
|
1746
|
+
if ([" ", "Enter"].includes(event.key)) {
|
|
1747
|
+
event.preventDefault();
|
|
1748
|
+
this.handleTriggerClick();
|
|
1749
|
+
return;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
handleTriggerKeyUp(event) {
|
|
1753
|
+
if (event.key === " ") {
|
|
1754
|
+
event.preventDefault();
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
updateAccessibleTrigger() {
|
|
1758
|
+
const accessibleTrigger = this.trigger;
|
|
1759
|
+
if (accessibleTrigger) {
|
|
1760
|
+
accessibleTrigger.setAttribute("aria-haspopup", "true");
|
|
1761
|
+
accessibleTrigger.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
/** Shows the color picker panel. */
|
|
1765
|
+
async show() {
|
|
1766
|
+
if (this.open) {
|
|
1767
|
+
return void 0;
|
|
1768
|
+
}
|
|
1769
|
+
this.open = true;
|
|
1770
|
+
return waitForEvent(this, "cs-after-show");
|
|
1771
|
+
}
|
|
1772
|
+
/** Hides the color picker panel */
|
|
1773
|
+
async hide() {
|
|
1774
|
+
if (!this.open) {
|
|
1775
|
+
return void 0;
|
|
1776
|
+
}
|
|
1777
|
+
this.open = false;
|
|
1778
|
+
return waitForEvent(this, "cs-after-hide");
|
|
1779
|
+
}
|
|
1780
|
+
addOpenListeners() {
|
|
1781
|
+
this.base.addEventListener("keydown", this.handleKeyDown);
|
|
1782
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
1783
|
+
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
1784
|
+
registerDismissible(this);
|
|
1785
|
+
}
|
|
1786
|
+
removeOpenListeners() {
|
|
1787
|
+
if (this.base) {
|
|
1788
|
+
this.base.removeEventListener("keydown", this.handleKeyDown);
|
|
1789
|
+
}
|
|
1790
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
1791
|
+
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
1792
|
+
unregisterDismissible(this);
|
|
1793
|
+
}
|
|
1794
|
+
async handleOpenChange() {
|
|
1795
|
+
if (this.disabled) {
|
|
1796
|
+
this.open = false;
|
|
1797
|
+
return;
|
|
1798
|
+
}
|
|
1799
|
+
this.updateAccessibleTrigger();
|
|
1800
|
+
if (this.open) {
|
|
1801
|
+
this.dispatchEvent(new CustomEvent("cs-show"));
|
|
1802
|
+
this.addOpenListeners();
|
|
1803
|
+
await this.updateComplete;
|
|
1804
|
+
this.base.hidden = false;
|
|
1805
|
+
this.popup.active = true;
|
|
1806
|
+
await animateWithClass(this.popup.popup, "show-with-scale");
|
|
1807
|
+
this.dispatchEvent(new CustomEvent("cs-after-show"));
|
|
1808
|
+
} else {
|
|
1809
|
+
this.dispatchEvent(new CustomEvent("cs-hide"));
|
|
1810
|
+
this.removeOpenListeners();
|
|
1811
|
+
await animateWithClass(this.popup.popup, "hide-with-scale");
|
|
1812
|
+
this.base.hidden = true;
|
|
1813
|
+
this.popup.active = false;
|
|
1814
|
+
this.dispatchEvent(new CustomEvent("cs-after-hide"));
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
render() {
|
|
1818
|
+
const isEmpty = this.isEmpty;
|
|
1819
|
+
const hasLabelSlot = this.hasSlotController.test("label", "ssrLabel");
|
|
1820
|
+
const hasHintSlot = this.hasSlotController.test("hint", "ssrHint");
|
|
1821
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
1822
|
+
const hasHint = this.hint ? true : !!hasHintSlot;
|
|
1823
|
+
const gridHandleX = this.saturation;
|
|
1824
|
+
const gridHandleY = 100 - this.brightness;
|
|
1825
|
+
const normalizedSwatches = Array.isArray(this.swatches) ? this.swatches.map((s) => typeof s === "string" ? { color: s, label: s } : s) : this.swatches.split(";").filter((color) => color.trim() !== "").map((color) => ({ color: color.trim(), label: color.trim() }));
|
|
1826
|
+
const colorPicker = b`
|
|
1827
|
+
<div
|
|
1828
|
+
part="color-picker"
|
|
1829
|
+
class=${e2({
|
|
1830
|
+
"color-picker": true
|
|
1831
|
+
})}
|
|
1832
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
1833
|
+
tabindex="-1"
|
|
1834
|
+
>
|
|
1835
|
+
<div
|
|
1836
|
+
part="grid"
|
|
1837
|
+
class="grid"
|
|
1838
|
+
style=${o2({ backgroundColor: this.getHexString(this.hue, 100, 100) })}
|
|
1839
|
+
@pointerdown=${this.handleGridDrag}
|
|
1840
|
+
@touchmove=${this.handleTouchMove}
|
|
1841
|
+
>
|
|
1842
|
+
<span
|
|
1843
|
+
part="grid-handle"
|
|
1844
|
+
class=${e2({
|
|
1845
|
+
"grid-handle": true,
|
|
1846
|
+
"grid-handle-dragging": this.isDraggingGridHandle
|
|
1847
|
+
})}
|
|
1848
|
+
style=${o2({
|
|
1849
|
+
top: `${gridHandleY}%`,
|
|
1850
|
+
left: `${gridHandleX}%`,
|
|
1851
|
+
backgroundColor: this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
1852
|
+
})}
|
|
1853
|
+
role="application"
|
|
1854
|
+
aria-label="HSV"
|
|
1855
|
+
tabindex=${o3(this.disabled ? void 0 : "0")}
|
|
1856
|
+
@keydown=${this.handleGridKeyDown}
|
|
1857
|
+
></span>
|
|
1858
|
+
</div>
|
|
1859
|
+
|
|
1860
|
+
<div class="controls">
|
|
1861
|
+
<div class="sliders">
|
|
1862
|
+
<div
|
|
1863
|
+
part="slider hue-slider"
|
|
1864
|
+
class="hue slider"
|
|
1865
|
+
@pointerdown=${this.handleHueDrag}
|
|
1866
|
+
@touchmove=${this.handleTouchMove}
|
|
1867
|
+
>
|
|
1868
|
+
<span
|
|
1869
|
+
part="slider-handle hue-slider-handle"
|
|
1870
|
+
class="slider-handle"
|
|
1871
|
+
style=${o2({
|
|
1872
|
+
left: `${this.hue === 0 ? 0 : 100 / (360 / this.hue)}%`,
|
|
1873
|
+
backgroundColor: this.getHexString(this.hue, 100, 100)
|
|
1874
|
+
})}
|
|
1875
|
+
role="slider"
|
|
1876
|
+
aria-label="hue"
|
|
1877
|
+
aria-orientation="horizontal"
|
|
1878
|
+
aria-valuemin="0"
|
|
1879
|
+
aria-valuemax="360"
|
|
1880
|
+
aria-valuenow=${`${Math.round(this.hue)}`}
|
|
1881
|
+
tabindex=${o3(this.disabled ? void 0 : "0")}
|
|
1882
|
+
@keydown=${this.handleHueKeyDown}
|
|
1883
|
+
></span>
|
|
1884
|
+
</div>
|
|
1885
|
+
|
|
1886
|
+
${this.opacity ? b`
|
|
1887
|
+
<div
|
|
1888
|
+
part="slider opacity-slider"
|
|
1889
|
+
class="alpha slider transparent-bg"
|
|
1890
|
+
@pointerdown="${this.handleAlphaDrag}"
|
|
1891
|
+
@touchmove=${this.handleTouchMove}
|
|
1892
|
+
>
|
|
1893
|
+
<div
|
|
1894
|
+
class="alpha-gradient"
|
|
1895
|
+
style=${o2({
|
|
1896
|
+
backgroundImage: `linear-gradient(
|
|
1897
|
+
to right,
|
|
1898
|
+
${this.getHexString(this.hue, this.saturation, this.brightness, 0)} 0%,
|
|
1899
|
+
${this.getHexString(this.hue, this.saturation, this.brightness, 100)} 100%
|
|
1900
|
+
)`
|
|
1901
|
+
})}
|
|
1902
|
+
></div>
|
|
1903
|
+
<span
|
|
1904
|
+
part="slider-handle opacity-slider-handle"
|
|
1905
|
+
class="slider-handle"
|
|
1906
|
+
style=${o2({
|
|
1907
|
+
left: `${this.alpha}%`,
|
|
1908
|
+
backgroundColor: this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
1909
|
+
})}
|
|
1910
|
+
role="slider"
|
|
1911
|
+
aria-label="alpha"
|
|
1912
|
+
aria-orientation="horizontal"
|
|
1913
|
+
aria-valuemin="0"
|
|
1914
|
+
aria-valuemax="100"
|
|
1915
|
+
aria-valuenow=${Math.round(this.alpha)}
|
|
1916
|
+
tabindex=${o3(this.disabled ? void 0 : "0")}
|
|
1917
|
+
@keydown=${this.handleAlphaKeyDown}
|
|
1918
|
+
></span>
|
|
1919
|
+
</div>
|
|
1920
|
+
` : ""}
|
|
1921
|
+
</div>
|
|
1922
|
+
|
|
1923
|
+
<button
|
|
1924
|
+
type="button"
|
|
1925
|
+
part="preview"
|
|
1926
|
+
class="preview transparent-bg"
|
|
1927
|
+
aria-label=${this.localize.term("copy")}
|
|
1928
|
+
style=${o2({
|
|
1929
|
+
"--preview-color": this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
1930
|
+
})}
|
|
1931
|
+
@click=${this.handleCopy}
|
|
1932
|
+
></button>
|
|
1933
|
+
</div>
|
|
1934
|
+
|
|
1935
|
+
<div class="user-input" aria-live="polite">
|
|
1936
|
+
<cs-input
|
|
1937
|
+
part="input"
|
|
1938
|
+
type="text"
|
|
1939
|
+
name=${this.name}
|
|
1940
|
+
size="s"
|
|
1941
|
+
autocomplete="off"
|
|
1942
|
+
autocorrect="off"
|
|
1943
|
+
autocapitalize="off"
|
|
1944
|
+
spellcheck="false"
|
|
1945
|
+
.value=${isEmpty ? "" : this.inputValue}
|
|
1946
|
+
value=${isEmpty ? "" : this.inputValue}
|
|
1947
|
+
?required=${this.required}
|
|
1948
|
+
?disabled=${this.disabled}
|
|
1949
|
+
aria-label=${this.localize.term("currentValue")}
|
|
1950
|
+
@keydown=${this.handleInputKeyDown}
|
|
1951
|
+
@change=${this.handleInputChange}
|
|
1952
|
+
@input=${this.handleInputInput}
|
|
1953
|
+
@blur=${this.stopNestedEventPropagation}
|
|
1954
|
+
@focus=${this.stopNestedEventPropagation}
|
|
1955
|
+
></cs-input>
|
|
1956
|
+
|
|
1957
|
+
<cs-button-group>
|
|
1958
|
+
${!this.withoutFormatToggle ? b`
|
|
1959
|
+
<cs-button
|
|
1960
|
+
part="format-button"
|
|
1961
|
+
size="s"
|
|
1962
|
+
appearance="outlined"
|
|
1963
|
+
aria-label=${this.localize.term("toggleColorFormat")}
|
|
1964
|
+
exportparts="
|
|
1965
|
+
button:format-button__button,
|
|
1966
|
+
start:format-button__start,
|
|
1967
|
+
label:format-button__label,
|
|
1968
|
+
end:format-button__end,
|
|
1969
|
+
caret:format-button__caret
|
|
1970
|
+
"
|
|
1971
|
+
@click=${this.handleFormatToggle}
|
|
1972
|
+
@blur=${this.stopNestedEventPropagation}
|
|
1973
|
+
@focus=${this.stopNestedEventPropagation}
|
|
1974
|
+
>
|
|
1975
|
+
${this.setLetterCase(this.format)}
|
|
1976
|
+
</cs-button>
|
|
1977
|
+
` : ""}
|
|
1978
|
+
${this.hasEyeDropper ? b`
|
|
1979
|
+
<cs-button
|
|
1980
|
+
part="eyedropper-button"
|
|
1981
|
+
size="s"
|
|
1982
|
+
appearance="outlined"
|
|
1983
|
+
exportparts="
|
|
1984
|
+
button:eyedropper-button__button,
|
|
1985
|
+
start:eyedropper-button__start,
|
|
1986
|
+
label:eyedropper-button__label,
|
|
1987
|
+
end:eyedropper-button__end,
|
|
1988
|
+
caret:eyedropper-button__caret
|
|
1989
|
+
"
|
|
1990
|
+
@click=${this.handleEyeDropper}
|
|
1991
|
+
@blur=${this.stopNestedEventPropagation}
|
|
1992
|
+
@focus=${this.stopNestedEventPropagation}
|
|
1993
|
+
>
|
|
1994
|
+
<cs-icon
|
|
1995
|
+
library="system"
|
|
1996
|
+
name="colorize"
|
|
1997
|
+
label=${this.localize.term("selectAColorFromTheScreen")}
|
|
1998
|
+
></cs-icon>
|
|
1999
|
+
</cs-button>
|
|
2000
|
+
` : ""}
|
|
2001
|
+
</cs-button-group>
|
|
2002
|
+
</div>
|
|
2003
|
+
|
|
2004
|
+
${normalizedSwatches.length > 0 ? b`
|
|
2005
|
+
<div part="swatches" class="swatches">
|
|
2006
|
+
${normalizedSwatches.map((swatch) => {
|
|
2007
|
+
const parsedColor = this.parseColor(swatch.color);
|
|
2008
|
+
if (!parsedColor) {
|
|
2009
|
+
return "";
|
|
2010
|
+
}
|
|
2011
|
+
return b`
|
|
2012
|
+
<div
|
|
2013
|
+
part="swatch"
|
|
2014
|
+
class="swatch transparent-bg"
|
|
2015
|
+
tabindex=${o3(this.disabled ? void 0 : "0")}
|
|
2016
|
+
role="button"
|
|
2017
|
+
aria-label=${swatch.label}
|
|
2018
|
+
@click=${() => this.selectSwatch(swatch.color)}
|
|
2019
|
+
@keydown=${(event) => {
|
|
2020
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
2021
|
+
event.preventDefault();
|
|
2022
|
+
this.selectSwatch(swatch.color);
|
|
2023
|
+
}
|
|
2024
|
+
}}
|
|
2025
|
+
>
|
|
2026
|
+
<div class="swatch-color" style=${o2({ backgroundColor: parsedColor.hexa })}></div>
|
|
2027
|
+
</div>
|
|
2028
|
+
`;
|
|
2029
|
+
})}
|
|
2030
|
+
</div>
|
|
2031
|
+
` : ""}
|
|
2032
|
+
</div>
|
|
2033
|
+
`;
|
|
2034
|
+
return b`
|
|
2035
|
+
<div
|
|
2036
|
+
class=${e2({
|
|
2037
|
+
container: true,
|
|
2038
|
+
"form-control": true,
|
|
2039
|
+
"form-control-has-label": hasLabel
|
|
2040
|
+
})}
|
|
2041
|
+
part="trigger-container form-control"
|
|
2042
|
+
>
|
|
2043
|
+
<div
|
|
2044
|
+
part="form-control-label"
|
|
2045
|
+
class=${e2({
|
|
2046
|
+
label: true,
|
|
2047
|
+
"has-label": hasLabel
|
|
2048
|
+
})}
|
|
2049
|
+
id="form-control-label"
|
|
2050
|
+
>
|
|
2051
|
+
<slot name="label">${this.label}</slot>
|
|
2052
|
+
</div>
|
|
2053
|
+
|
|
2054
|
+
<button
|
|
2055
|
+
id="trigger"
|
|
2056
|
+
part="trigger form-control-input"
|
|
2057
|
+
class=${e2({
|
|
2058
|
+
trigger: true,
|
|
2059
|
+
"trigger-empty": isEmpty,
|
|
2060
|
+
"transparent-bg": true,
|
|
2061
|
+
"form-control-input": true
|
|
2062
|
+
})}
|
|
2063
|
+
style=${o2({
|
|
2064
|
+
color: this.getHexString(this.hue, this.saturation, this.brightness, this.alpha)
|
|
2065
|
+
})}
|
|
2066
|
+
type="button"
|
|
2067
|
+
aria-labelledby="form-control-label"
|
|
2068
|
+
aria-describedby="hint"
|
|
2069
|
+
.disabled=${this.disabled}
|
|
2070
|
+
@click=${this.handleTriggerClick}
|
|
2071
|
+
@keydown=${this.handleTriggerKeyDown}
|
|
2072
|
+
@keyup=${this.handleTriggerKeyUp}
|
|
2073
|
+
></button>
|
|
2074
|
+
|
|
2075
|
+
<slot
|
|
2076
|
+
id="hint"
|
|
2077
|
+
name="hint"
|
|
2078
|
+
part="hint"
|
|
2079
|
+
class=${e2({
|
|
2080
|
+
"has-slotted": hasHint
|
|
2081
|
+
})}
|
|
2082
|
+
>${this.hint}</slot
|
|
2083
|
+
>
|
|
2084
|
+
</div>
|
|
2085
|
+
|
|
2086
|
+
<cs-popup
|
|
2087
|
+
class="color-popup"
|
|
2088
|
+
anchor="trigger"
|
|
2089
|
+
placement=${this.placement}
|
|
2090
|
+
distance="0"
|
|
2091
|
+
skidding="0"
|
|
2092
|
+
flip
|
|
2093
|
+
flip-fallback-strategy="best-fit"
|
|
2094
|
+
shift
|
|
2095
|
+
shift-padding="10"
|
|
2096
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
2097
|
+
@cs-after-show=${this.handleAfterShow}
|
|
2098
|
+
@cs-after-hide=${this.handleAfterHide}
|
|
2099
|
+
>
|
|
2100
|
+
${colorPicker}
|
|
2101
|
+
</cs-popup>
|
|
2102
|
+
`;
|
|
2103
|
+
}
|
|
2104
|
+
};
|
|
2105
|
+
CsColorPicker.css = [visually_hidden_styles_default, size_styles_default, form_control_styles_default, color_picker_styles_default];
|
|
2106
|
+
CsColorPicker.shadowRootOptions = { ...CornerstoneFormAssociatedElement.shadowRootOptions, delegatesFocus: true };
|
|
2107
|
+
__decorateClass([
|
|
2108
|
+
e('[part~="color-picker"]')
|
|
2109
|
+
], CsColorPicker.prototype, "base", 2);
|
|
2110
|
+
__decorateClass([
|
|
2111
|
+
e('[part~="input"]')
|
|
2112
|
+
], CsColorPicker.prototype, "input", 2);
|
|
2113
|
+
__decorateClass([
|
|
2114
|
+
e('[part~="form-control-label"]')
|
|
2115
|
+
], CsColorPicker.prototype, "triggerLabel", 2);
|
|
2116
|
+
__decorateClass([
|
|
2117
|
+
e('[part~="form-control-input"]')
|
|
2118
|
+
], CsColorPicker.prototype, "triggerButton", 2);
|
|
2119
|
+
__decorateClass([
|
|
2120
|
+
e(".color-popup")
|
|
2121
|
+
], CsColorPicker.prototype, "popup", 2);
|
|
2122
|
+
__decorateClass([
|
|
2123
|
+
e('[part~="preview"]')
|
|
2124
|
+
], CsColorPicker.prototype, "previewButton", 2);
|
|
2125
|
+
__decorateClass([
|
|
2126
|
+
e('[part~="trigger"]')
|
|
2127
|
+
], CsColorPicker.prototype, "trigger", 2);
|
|
2128
|
+
__decorateClass([
|
|
2129
|
+
r()
|
|
2130
|
+
], CsColorPicker.prototype, "hasFocus", 2);
|
|
2131
|
+
__decorateClass([
|
|
2132
|
+
r()
|
|
2133
|
+
], CsColorPicker.prototype, "isDraggingGridHandle", 2);
|
|
2134
|
+
__decorateClass([
|
|
2135
|
+
r()
|
|
2136
|
+
], CsColorPicker.prototype, "inputValue", 2);
|
|
2137
|
+
__decorateClass([
|
|
2138
|
+
r()
|
|
2139
|
+
], CsColorPicker.prototype, "hue", 2);
|
|
2140
|
+
__decorateClass([
|
|
2141
|
+
r()
|
|
2142
|
+
], CsColorPicker.prototype, "isEmpty", 2);
|
|
2143
|
+
__decorateClass([
|
|
2144
|
+
r()
|
|
2145
|
+
], CsColorPicker.prototype, "saturation", 2);
|
|
2146
|
+
__decorateClass([
|
|
2147
|
+
r()
|
|
2148
|
+
], CsColorPicker.prototype, "brightness", 2);
|
|
2149
|
+
__decorateClass([
|
|
2150
|
+
r()
|
|
2151
|
+
], CsColorPicker.prototype, "alpha", 2);
|
|
2152
|
+
__decorateClass([
|
|
2153
|
+
r()
|
|
2154
|
+
], CsColorPicker.prototype, "value", 1);
|
|
2155
|
+
__decorateClass([
|
|
2156
|
+
n({ attribute: "value", reflect: true })
|
|
2157
|
+
], CsColorPicker.prototype, "defaultValue", 2);
|
|
2158
|
+
__decorateClass([
|
|
2159
|
+
n({ attribute: "ssr-label", reflect: true, type: Boolean })
|
|
2160
|
+
], CsColorPicker.prototype, "ssrLabel", 2);
|
|
2161
|
+
__decorateClass([
|
|
2162
|
+
n({ attribute: "ssr-hint", reflect: true, type: Boolean })
|
|
2163
|
+
], CsColorPicker.prototype, "ssrHint", 2);
|
|
2164
|
+
__decorateClass([
|
|
2165
|
+
r()
|
|
2166
|
+
], CsColorPicker.prototype, "hasEyeDropper", 2);
|
|
2167
|
+
__decorateClass([
|
|
2168
|
+
n()
|
|
2169
|
+
], CsColorPicker.prototype, "label", 2);
|
|
2170
|
+
__decorateClass([
|
|
2171
|
+
n({ attribute: "hint" })
|
|
2172
|
+
], CsColorPicker.prototype, "hint", 2);
|
|
2173
|
+
__decorateClass([
|
|
2174
|
+
n()
|
|
2175
|
+
], CsColorPicker.prototype, "format", 2);
|
|
2176
|
+
__decorateClass([
|
|
2177
|
+
n({ reflect: true })
|
|
2178
|
+
], CsColorPicker.prototype, "size", 2);
|
|
2179
|
+
__decorateClass([
|
|
2180
|
+
n({ reflect: true })
|
|
2181
|
+
], CsColorPicker.prototype, "placement", 2);
|
|
2182
|
+
__decorateClass([
|
|
2183
|
+
n({ attribute: "without-format-toggle", type: Boolean })
|
|
2184
|
+
], CsColorPicker.prototype, "withoutFormatToggle", 2);
|
|
2185
|
+
__decorateClass([
|
|
2186
|
+
n({ reflect: true })
|
|
2187
|
+
], CsColorPicker.prototype, "name", 2);
|
|
2188
|
+
__decorateClass([
|
|
2189
|
+
n({ type: Boolean })
|
|
2190
|
+
], CsColorPicker.prototype, "disabled", 2);
|
|
2191
|
+
__decorateClass([
|
|
2192
|
+
n({ type: Boolean, reflect: true })
|
|
2193
|
+
], CsColorPicker.prototype, "open", 2);
|
|
2194
|
+
__decorateClass([
|
|
2195
|
+
n({ type: Boolean })
|
|
2196
|
+
], CsColorPicker.prototype, "opacity", 2);
|
|
2197
|
+
__decorateClass([
|
|
2198
|
+
n({ type: Boolean })
|
|
2199
|
+
], CsColorPicker.prototype, "uppercase", 2);
|
|
2200
|
+
__decorateClass([
|
|
2201
|
+
n()
|
|
2202
|
+
], CsColorPicker.prototype, "swatches", 2);
|
|
2203
|
+
__decorateClass([
|
|
2204
|
+
n({ type: Boolean, reflect: true })
|
|
2205
|
+
], CsColorPicker.prototype, "required", 2);
|
|
2206
|
+
__decorateClass([
|
|
2207
|
+
t({ passive: false })
|
|
2208
|
+
], CsColorPicker.prototype, "handleTouchMove", 1);
|
|
2209
|
+
__decorateClass([
|
|
2210
|
+
watch("format", { waitUntilFirstUpdate: true })
|
|
2211
|
+
], CsColorPicker.prototype, "handleFormatChange", 1);
|
|
2212
|
+
__decorateClass([
|
|
2213
|
+
watch("opacity", { waitUntilFirstUpdate: true })
|
|
2214
|
+
], CsColorPicker.prototype, "handleOpacityChange", 1);
|
|
2215
|
+
__decorateClass([
|
|
2216
|
+
watch("value")
|
|
2217
|
+
], CsColorPicker.prototype, "handleValueChange", 1);
|
|
2218
|
+
__decorateClass([
|
|
2219
|
+
watch("open", { waitUntilFirstUpdate: true })
|
|
2220
|
+
], CsColorPicker.prototype, "handleOpenChange", 1);
|
|
2221
|
+
CsColorPicker = __decorateClass([
|
|
2222
|
+
customElement("cs-color-picker")
|
|
2223
|
+
], CsColorPicker);
|
|
2224
|
+
CsColorPicker.disableWarning?.("change-in-update");
|
|
2225
|
+
|
|
2226
|
+
export {
|
|
2227
|
+
CsColorPicker
|
|
2228
|
+
};
|