placer-toolkit 0.5.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +18 -22
- package/cdn/animations/attention_seekers/bounce.js +1 -0
- package/cdn/animations/attention_seekers/flash.js +1 -0
- package/cdn/animations/attention_seekers/headShake.js +1 -0
- package/cdn/animations/attention_seekers/heartBeat.js +1 -0
- package/cdn/animations/attention_seekers/jello.js +1 -0
- package/cdn/animations/attention_seekers/pulse.js +1 -0
- package/cdn/animations/attention_seekers/rubberBand.js +1 -0
- package/cdn/animations/attention_seekers/shake.js +1 -0
- package/cdn/animations/attention_seekers/shakeX.js +1 -0
- package/cdn/animations/attention_seekers/shakeY.js +1 -0
- package/cdn/animations/attention_seekers/swing.js +1 -0
- package/cdn/animations/attention_seekers/tada.js +1 -0
- package/cdn/animations/attention_seekers/wobble.js +1 -0
- package/cdn/animations/back_entrances/backInDown.js +1 -0
- package/cdn/animations/back_entrances/backInLeft.js +1 -0
- package/cdn/animations/back_entrances/backInRight.js +1 -0
- package/cdn/animations/back_entrances/backInUp.js +1 -0
- package/cdn/animations/back_exits/backOutDown.js +1 -0
- package/cdn/animations/back_exits/backOutLeft.js +1 -0
- package/cdn/animations/back_exits/backOutRight.js +1 -0
- package/cdn/animations/back_exits/backOutUp.js +1 -0
- package/cdn/animations/bouncing_entrances/bounceIn.js +1 -0
- package/cdn/animations/bouncing_entrances/bounceInDown.js +1 -0
- package/cdn/animations/bouncing_entrances/bounceInLeft.js +1 -0
- package/cdn/animations/bouncing_entrances/bounceInRight.js +1 -0
- package/cdn/animations/bouncing_entrances/bounceInUp.js +1 -0
- package/cdn/animations/bouncing_exits/bounceOut.js +1 -0
- package/cdn/animations/bouncing_exits/bounceOutDown.js +1 -0
- package/cdn/animations/bouncing_exits/bounceOutLeft.js +1 -0
- package/cdn/animations/bouncing_exits/bounceOutRight.js +1 -0
- package/cdn/animations/bouncing_exits/bounceOutUp.js +1 -0
- package/cdn/animations/easings/easings.js +1 -0
- package/cdn/animations/fading_entrances/fadeIn.js +1 -0
- package/cdn/animations/fading_entrances/fadeInBottomLeft.js +1 -0
- package/cdn/animations/fading_entrances/fadeInBottomRight.js +1 -0
- package/cdn/animations/fading_entrances/fadeInDown.js +1 -0
- package/cdn/animations/fading_entrances/fadeInDownBig.js +1 -0
- package/cdn/animations/fading_entrances/fadeInLeft.js +1 -0
- package/cdn/animations/fading_entrances/fadeInLeftBig.js +1 -0
- package/cdn/animations/fading_entrances/fadeInRight.js +1 -0
- package/cdn/animations/fading_entrances/fadeInRightBig.js +1 -0
- package/cdn/animations/fading_entrances/fadeInTopLeft.js +1 -0
- package/cdn/animations/fading_entrances/fadeInTopRight.js +1 -0
- package/cdn/animations/fading_entrances/fadeInUp.js +1 -0
- package/cdn/animations/fading_entrances/fadeInUpBig.js +1 -0
- package/cdn/animations/fading_exits/fadeOut.js +1 -0
- package/cdn/animations/fading_exits/fadeOutBottomLeft.js +1 -0
- package/cdn/animations/fading_exits/fadeOutBottomRight.js +1 -0
- package/cdn/animations/fading_exits/fadeOutDown.js +1 -0
- package/cdn/animations/fading_exits/fadeOutDownBig.js +1 -0
- package/cdn/animations/fading_exits/fadeOutLeft.js +1 -0
- package/cdn/animations/fading_exits/fadeOutLeftBig.js +1 -0
- package/cdn/animations/fading_exits/fadeOutRight.js +1 -0
- package/cdn/animations/fading_exits/fadeOutRightBig.js +1 -0
- package/cdn/animations/fading_exits/fadeOutTopLeft.js +1 -0
- package/cdn/animations/fading_exits/fadeOutTopRight.js +1 -0
- package/cdn/animations/fading_exits/fadeOutUp.js +1 -0
- package/cdn/animations/fading_exits/fadeOutUpBig.js +1 -0
- package/cdn/animations/flippers/flip.js +1 -0
- package/cdn/animations/flippers/flipInX.js +1 -0
- package/cdn/animations/flippers/flipInY.js +1 -0
- package/cdn/animations/flippers/flipOutX.js +1 -0
- package/cdn/animations/flippers/flipOutY.js +1 -0
- package/cdn/animations/index.js +1 -0
- package/cdn/animations/lightspeed/lightSpeedInLeft.js +1 -0
- package/cdn/animations/lightspeed/lightSpeedInRight.js +1 -0
- package/cdn/animations/lightspeed/lightSpeedOutLeft.js +1 -0
- package/cdn/animations/lightspeed/lightSpeedOutRight.js +1 -0
- package/cdn/animations/rotating_entrances/rotateIn.js +1 -0
- package/cdn/animations/rotating_entrances/rotateInDownLeft.js +1 -0
- package/cdn/animations/rotating_entrances/rotateInDownRight.js +1 -0
- package/cdn/animations/rotating_entrances/rotateInUpLeft.js +1 -0
- package/cdn/animations/rotating_entrances/rotateInUpRight.js +1 -0
- package/cdn/animations/rotating_exits/rotateOut.js +1 -0
- package/cdn/animations/rotating_exits/rotateOutDownLeft.js +1 -0
- package/cdn/animations/rotating_exits/rotateOutDownRight.js +1 -0
- package/cdn/animations/rotating_exits/rotateOutUpLeft.js +1 -0
- package/cdn/animations/rotating_exits/rotateOutUpRight.js +1 -0
- package/cdn/animations/sliding_entrances/slideInDown.js +1 -0
- package/cdn/animations/sliding_entrances/slideInLeft.js +1 -0
- package/cdn/animations/sliding_entrances/slideInRight.js +1 -0
- package/cdn/animations/sliding_entrances/slideInUp.js +1 -0
- package/cdn/animations/sliding_exits/slideOutDown.js +1 -0
- package/cdn/animations/sliding_exits/slideOutLeft.js +1 -0
- package/cdn/animations/sliding_exits/slideOutRight.js +1 -0
- package/cdn/animations/sliding_exits/slideOutUp.js +1 -0
- package/cdn/animations/specials/hinge.js +1 -0
- package/cdn/animations/specials/jackInTheBox.js +1 -0
- package/cdn/animations/specials/rollIn.js +1 -0
- package/cdn/animations/specials/rollOut.js +1 -0
- package/cdn/animations/zooming_entrances/zoomIn.js +1 -0
- package/cdn/animations/zooming_entrances/zoomInDown.js +1 -0
- package/cdn/animations/zooming_entrances/zoomInLeft.js +1 -0
- package/cdn/animations/zooming_entrances/zoomInRight.js +1 -0
- package/cdn/animations/zooming_entrances/zoomInUp.js +1 -0
- package/cdn/animations/zooming_exits/zoomOut.js +1 -0
- package/cdn/animations/zooming_exits/zoomOutDown.js +1 -0
- package/cdn/animations/zooming_exits/zoomOutLeft.js +1 -0
- package/cdn/animations/zooming_exits/zoomOutRight.js +1 -0
- package/cdn/animations/zooming_exits/zoomOutUp.js +1 -0
- package/cdn/chunks/chunk.22DZRUGL.js +1 -0
- package/cdn/chunks/chunk.2K4PNLGV.js +1 -0
- package/cdn/chunks/chunk.2KWTNKGQ.js +74 -0
- package/cdn/chunks/chunk.2N5ZK4F4.js +28 -0
- package/cdn/chunks/chunk.2SM5MTG6.js +1 -0
- package/cdn/chunks/chunk.2SQLMTYR.js +1 -0
- package/cdn/chunks/chunk.3EUMG6CL.js +112 -0
- package/cdn/chunks/chunk.3U3NAHEY.js +1 -0
- package/cdn/chunks/chunk.4CAEAIFN.js +1 -0
- package/cdn/chunks/chunk.4GFJDCKO.js +1 -0
- package/cdn/chunks/chunk.4NL2VE5O.js +1 -0
- package/cdn/chunks/chunk.4VMSMOA5.js +1 -0
- package/cdn/chunks/chunk.4W3OJG5Y.js +1 -0
- package/cdn/chunks/chunk.4X4XH4O2.js +1 -0
- package/cdn/chunks/chunk.4ZFWIEG2.js +1 -0
- package/cdn/chunks/chunk.5G3DFRPP.js +1 -0
- package/cdn/chunks/chunk.5HIUPHOM.js +1 -0
- package/cdn/chunks/chunk.5MJRUHKK.js +1 -0
- package/cdn/chunks/chunk.5OTOOMMJ.js +223 -0
- package/cdn/chunks/chunk.5PONJGRH.js +1 -0
- package/cdn/chunks/chunk.5WAFFOC5.js +1 -0
- package/cdn/chunks/chunk.5YXXLUP2.js +111 -0
- package/cdn/chunks/chunk.63PFEC3G.js +47 -0
- package/cdn/chunks/chunk.63YZ2OGJ.js +179 -0
- package/cdn/chunks/chunk.6C4VTMLQ.js +1 -0
- package/cdn/chunks/chunk.6RYC5FEW.js +1 -0
- package/cdn/chunks/chunk.6SP3MLBX.js +1 -0
- package/cdn/chunks/chunk.6T73D5OE.js +94 -0
- package/cdn/chunks/chunk.75KPG5ZW.js +73 -0
- package/cdn/chunks/chunk.75Y77XUI.js +288 -0
- package/cdn/chunks/chunk.7IRWTX4A.js +27 -0
- package/cdn/chunks/chunk.7QYDQTBC.js +1 -0
- package/cdn/chunks/chunk.7SJBQWSL.js +1 -0
- package/cdn/chunks/chunk.7UGLJJM6.js +1 -0
- package/cdn/chunks/chunk.7UYSBZLK.js +33 -0
- package/cdn/chunks/chunk.7XLP7ZNP.js +0 -0
- package/cdn/chunks/chunk.7YEJIK24.js +1 -0
- package/cdn/chunks/chunk.ADVDY32Z.js +1 -0
- package/cdn/chunks/chunk.AMJDSJZ5.js +130 -0
- package/cdn/chunks/chunk.B27E7VEZ.js +1 -0
- package/cdn/chunks/chunk.BGH5L7N6.js +1 -0
- package/cdn/chunks/chunk.BHNAOKFP.js +4 -0
- package/cdn/chunks/chunk.BSQP4EKW.js +17 -0
- package/cdn/chunks/chunk.C2RXDH23.js +12 -0
- package/cdn/chunks/chunk.CQPLNRNB.js +1 -0
- package/cdn/chunks/chunk.D5CFOPIE.js +1 -0
- package/cdn/chunks/chunk.DG6SQOFC.js +1 -0
- package/cdn/chunks/chunk.DNS43PE3.js +1 -0
- package/cdn/chunks/chunk.DQ2EFEM7.js +1 -0
- package/cdn/chunks/chunk.DRJDBJ6E.js +1 -0
- package/cdn/chunks/chunk.E4QLFQIH.js +1 -0
- package/cdn/chunks/chunk.E6MOE4FE.js +1 -0
- package/cdn/chunks/chunk.ECBLO7D3.js +1 -0
- package/cdn/chunks/chunk.EDLGCMPJ.js +1 -0
- package/cdn/chunks/chunk.ELYXTKTB.js +1 -0
- package/cdn/chunks/chunk.EMVTQD7Z.js +1 -0
- package/cdn/chunks/chunk.ESSED3D6.js +1 -0
- package/cdn/chunks/chunk.EZBCPDK5.js +1 -0
- package/cdn/chunks/chunk.EZBP4Q35.js +1 -0
- package/cdn/chunks/chunk.F7P64TTE.js +1 -0
- package/cdn/chunks/chunk.F7QM26VX.js +1 -0
- package/cdn/chunks/chunk.G3WMDHXU.js +1 -0
- package/cdn/chunks/chunk.G443HDU2.js +1 -0
- package/cdn/chunks/chunk.G4SAKBPC.js +1 -0
- package/cdn/chunks/chunk.GMD2IG67.js +1 -0
- package/cdn/chunks/chunk.GQIBOT7V.js +1 -0
- package/cdn/chunks/chunk.GRSW4YMQ.js +157 -0
- package/cdn/chunks/chunk.GUYJ76FZ.js +1 -0
- package/cdn/chunks/chunk.H2EOXVSZ.js +1 -0
- package/cdn/chunks/chunk.HAL7R4WT.js +0 -0
- package/cdn/chunks/chunk.HGR2N7GN.js +1 -0
- package/cdn/chunks/chunk.HNKZJPU5.js +1 -0
- package/cdn/chunks/chunk.HTBAOVSV.js +1 -0
- package/cdn/chunks/chunk.IFDHHGOU.js +1 -0
- package/cdn/chunks/chunk.IGMWK7NZ.js +1 -0
- package/cdn/chunks/chunk.IIHX5LOR.js +1 -0
- package/cdn/chunks/chunk.IJB4PCJH.js +1 -0
- package/cdn/chunks/chunk.IJMKJLO7.js +1 -0
- package/cdn/chunks/chunk.IJXVLI7F.js +1 -0
- package/cdn/chunks/chunk.ITURS4YZ.js +68 -0
- package/cdn/chunks/chunk.IUL3BHES.js +18 -0
- package/cdn/chunks/chunk.IX4OV3X6.js +63 -0
- package/cdn/chunks/chunk.J35PXB2V.js +204 -0
- package/cdn/chunks/chunk.JE6IZBGI.js +10 -0
- package/cdn/chunks/chunk.JTEIIDTY.js +106 -0
- package/cdn/chunks/chunk.KDTLVKSZ.js +127 -0
- package/cdn/chunks/chunk.KKVT4LHX.js +10 -0
- package/cdn/chunks/chunk.KPQGFV2T.js +1 -0
- package/cdn/chunks/chunk.KWVZRE3E.js +10 -0
- package/cdn/chunks/chunk.KYRT75BX.js +1 -0
- package/cdn/chunks/chunk.L2CNBOZJ.js +1 -0
- package/cdn/chunks/chunk.L4UUK6G4.js +1 -0
- package/cdn/chunks/chunk.LCCA4ADE.js +174 -0
- package/cdn/chunks/chunk.LDRHXIYA.js +1 -0
- package/cdn/chunks/chunk.LGGEB3IB.js +1 -0
- package/cdn/chunks/chunk.LHYUHRTC.js +1 -0
- package/cdn/chunks/chunk.LI6ACV6L.js +1 -0
- package/cdn/chunks/chunk.LIZVMFP3.js +1 -0
- package/cdn/chunks/chunk.LVUPLZGE.js +1 -0
- package/cdn/chunks/chunk.LWZCSGTE.js +1 -0
- package/cdn/chunks/chunk.M256MZ2P.js +1 -0
- package/cdn/chunks/chunk.M2NVAC3Z.js +1 -0
- package/cdn/chunks/chunk.MAQ3AU52.js +1 -0
- package/cdn/chunks/chunk.MM4THVKJ.js +1 -0
- package/cdn/chunks/chunk.MO7QMIH2.js +1 -0
- package/cdn/chunks/chunk.MV54FYCN.js +1 -0
- package/cdn/chunks/chunk.N5AZOOIZ.js +1 -0
- package/cdn/chunks/chunk.N72C3VU3.js +1 -0
- package/cdn/chunks/chunk.NE3XXRZM.js +1 -0
- package/cdn/chunks/chunk.NPYG3KBW.js +1 -0
- package/cdn/chunks/chunk.NTFNGAOW.js +117 -0
- package/cdn/chunks/chunk.NU2STAMX.js +1 -0
- package/cdn/chunks/chunk.NYIRGEA7.js +1 -0
- package/cdn/chunks/chunk.NYYTSWQF.js +38 -0
- package/cdn/chunks/chunk.O537LU5E.js +1 -0
- package/cdn/chunks/chunk.OD26IPSI.js +1 -0
- package/cdn/chunks/chunk.OI4TZZJC.js +305 -0
- package/cdn/chunks/chunk.OOQOIJSK.js +1 -0
- package/cdn/chunks/chunk.OQDGIWGZ.js +196 -0
- package/cdn/chunks/chunk.ORA34WZP.js +1 -0
- package/cdn/chunks/chunk.P4UE3S5U.js +1 -0
- package/cdn/chunks/chunk.P7GBRX2Q.js +1 -0
- package/cdn/chunks/chunk.P7X6ERDI.js +1 -0
- package/cdn/chunks/chunk.PBL2P7GX.js +1 -0
- package/cdn/chunks/chunk.PCTA7J6C.js +1 -0
- package/cdn/chunks/chunk.POW4JBEN.js +79 -0
- package/cdn/chunks/chunk.PP72VCB4.js +1 -0
- package/cdn/chunks/chunk.PSDD6Q4W.js +1 -0
- package/cdn/chunks/chunk.QCISI32Q.js +4 -0
- package/cdn/chunks/chunk.QE6C2GEL.js +1 -0
- package/cdn/chunks/chunk.QL5C2XOW.js +0 -0
- package/cdn/chunks/chunk.QPQZP354.js +208 -0
- package/cdn/chunks/chunk.QY5QOZRE.js +1 -0
- package/cdn/chunks/chunk.R2GXUKDX.js +1 -0
- package/cdn/chunks/chunk.R4FKXVN2.js +1 -0
- package/cdn/chunks/chunk.RFDMVIMA.js +1 -0
- package/cdn/chunks/chunk.RQ34LIU5.js +1 -0
- package/cdn/chunks/chunk.RWQ2HCYN.js +297 -0
- package/cdn/chunks/chunk.RYPVSVQS.js +326 -0
- package/cdn/chunks/chunk.RZZMGXAZ.js +1 -0
- package/cdn/chunks/chunk.SEIDC2AV.js +1 -0
- package/cdn/chunks/chunk.SMFJUIOR.js +10 -0
- package/cdn/chunks/chunk.SPURF5RT.js +4 -0
- package/cdn/chunks/chunk.STH7HATQ.js +142 -0
- package/cdn/chunks/chunk.SUPXW5XU.js +1 -0
- package/cdn/chunks/chunk.SXVGSAUS.js +4 -0
- package/cdn/chunks/chunk.TARXG5U3.js +1 -0
- package/cdn/chunks/chunk.TMAMLCL3.js +1 -0
- package/cdn/chunks/chunk.TMMJRXEV.js +1 -0
- package/cdn/chunks/chunk.TRVVBQVV.js +481 -0
- package/cdn/chunks/chunk.TSGCOVAS.js +1 -0
- package/cdn/chunks/chunk.TSZI2CPF.js +1 -0
- package/cdn/chunks/chunk.U2DNK7H4.js +1 -0
- package/cdn/chunks/chunk.U3MA3RIB.js +1 -0
- package/cdn/chunks/chunk.U3P5JBYR.js +250 -0
- package/cdn/chunks/chunk.U4YNKCI4.js +1 -0
- package/cdn/chunks/chunk.U7RBI2DC.js +1 -0
- package/cdn/chunks/chunk.UDGTTCHU.js +660 -0
- package/cdn/chunks/chunk.UJQFNBOE.js +1 -0
- package/cdn/chunks/chunk.UY4REGW5.js +1 -0
- package/cdn/chunks/chunk.V3AEPIKH.js +1 -0
- package/cdn/chunks/chunk.V4EXVX5U.js +1 -0
- package/cdn/chunks/chunk.V4LKFSOV.js +1 -0
- package/cdn/chunks/chunk.V7QO7LZ4.js +1 -0
- package/cdn/chunks/chunk.VVTMOSN2.js +170 -0
- package/cdn/chunks/chunk.W5PM7F34.js +34 -0
- package/cdn/chunks/chunk.WLREBMFL.js +1 -0
- package/cdn/chunks/chunk.X2UEAQ7T.js +1 -0
- package/cdn/chunks/chunk.XDLJVU4W.js +3 -0
- package/cdn/chunks/chunk.XESREUP5.js +10 -0
- package/cdn/chunks/chunk.XGNJKW3A.js +111 -0
- package/cdn/chunks/chunk.XNUSDBIN.js +1 -0
- package/cdn/chunks/chunk.XSSNRCMY.js +1 -0
- package/cdn/chunks/chunk.Y4QDLYQS.js +1 -0
- package/cdn/chunks/chunk.YDM7FW42.js +100 -0
- package/cdn/chunks/chunk.YEQLZR6M.js +1 -0
- package/cdn/chunks/chunk.YPCDSPNA.js +1 -0
- package/cdn/chunks/chunk.YUNTZWZZ.js +73 -0
- package/cdn/chunks/chunk.YVZPSF4R.js +1 -0
- package/cdn/chunks/chunk.YWY7M46V.js +1 -0
- package/cdn/chunks/chunk.Z6NCEETZ.js +1 -0
- package/cdn/chunks/chunk.ZDVLHLRA.js +1 -0
- package/cdn/chunks/chunk.ZE2WQTE4.js +1 -0
- package/cdn/chunks/chunk.ZJK5UEUE.js +1 -0
- package/cdn/chunks/chunk.ZRRFT6U7.js +1 -0
- package/cdn/chunks/chunk.ZS4GILCB.js +1 -0
- package/cdn/chunks/chunk.ZVANQQXU.js +1 -0
- package/cdn/chunks/chunk.ZY64ASSW.js +1 -0
- package/cdn/chunks/chunk.ZZIEMICG.js +11 -0
- package/cdn/components/animation/animation.js +1 -0
- package/cdn/components/animation/animations.js +1 -0
- package/cdn/components/avatar/avatar.js +1 -0
- package/cdn/components/badge/badge.js +1 -0
- package/cdn/components/button/button.js +1 -0
- package/cdn/components/button-group/button-group.js +1 -0
- package/cdn/components/callout/callout.js +1 -0
- package/cdn/components/card/card.js +1 -0
- package/cdn/components/checkbox/checkbox.js +1 -0
- package/cdn/components/color-picker/color-picker.js +1 -0
- package/cdn/components/comparer/comparer.js +1 -0
- package/cdn/components/copy-button/copy-button.js +1 -0
- package/cdn/components/details/details.js +1 -0
- package/cdn/components/dialog/dialog.js +1 -0
- package/cdn/components/divider/divider.js +1 -0
- package/cdn/components/drawer/drawer.js +1 -0
- package/cdn/components/dropdown/dropdown.js +1 -0
- package/cdn/components/dropdown-item/dropdown-item.js +1 -0
- package/cdn/components/format-bytes/format-bytes.js +1 -0
- package/cdn/components/format-date/format-date.js +1 -0
- package/cdn/components/format-number/format-number.js +1 -0
- package/cdn/components/icon/icon.js +1 -0
- package/cdn/components/icon/library.default.js +1 -0
- package/cdn/components/icon/library.js +1 -0
- package/cdn/components/icon/library.system.js +1 -0
- package/cdn/components/input/input.js +1 -0
- package/cdn/components/mutation-observer/mutation-observer.js +1 -0
- package/cdn/components/option/option.js +1 -0
- package/cdn/components/popup/popup.js +1 -0
- package/cdn/components/qr-code/qr-code.js +1 -0
- package/cdn/components/radio/radio.js +1 -0
- package/cdn/components/radio-group/radio-group.js +1 -0
- package/cdn/components/rating/rating.js +1 -0
- package/cdn/components/resize-observer/resize-observer.js +1 -0
- package/cdn/components/scroller/scroller.js +1 -0
- package/cdn/components/select/select.js +1 -0
- package/cdn/components/spinner/spinner.js +1 -0
- package/cdn/components/switch/switch.js +1 -0
- package/cdn/components/tab/tab.js +1 -0
- package/cdn/components/tab-group/tab-group.js +1 -0
- package/cdn/components/tab-panel/tab-panel.js +1 -0
- package/cdn/components/tag/tag.js +1 -0
- package/cdn/components/textarea/textarea.js +1 -0
- package/cdn/components/tooltip/tooltip.js +1 -0
- package/cdn/custom-elements.json +13055 -0
- package/cdn/events/events.js +1 -0
- package/cdn/events/pc-after-collapse.js +0 -0
- package/cdn/events/pc-after-expand.js +0 -0
- package/cdn/events/pc-after-hide.js +0 -0
- package/cdn/events/pc-after-show.js +0 -0
- package/cdn/events/pc-blur.js +0 -0
- package/cdn/events/pc-cancel.js +0 -0
- package/cdn/events/pc-change.js +0 -0
- package/cdn/events/pc-clear.js +0 -0
- package/cdn/events/pc-close.js +0 -0
- package/cdn/events/pc-collapse.js +0 -0
- package/cdn/events/pc-copy.js +0 -0
- package/cdn/events/pc-error.js +0 -0
- package/cdn/events/pc-expand.js +0 -0
- package/cdn/events/pc-finish.js +0 -0
- package/cdn/events/pc-focus.js +0 -0
- package/cdn/events/pc-hide.js +0 -0
- package/cdn/events/pc-hover.js +0 -0
- package/cdn/events/pc-initial-focus.js +0 -0
- package/cdn/events/pc-input.js +0 -0
- package/cdn/events/pc-invalid.js +0 -0
- package/cdn/events/pc-lazy-change.js +0 -0
- package/cdn/events/pc-lazy-load.js +0 -0
- package/cdn/events/pc-load.js +0 -0
- package/cdn/events/pc-mutation.js +0 -0
- package/cdn/events/pc-remove.js +0 -0
- package/cdn/events/pc-reposition.js +0 -0
- package/cdn/events/pc-resize.js +0 -0
- package/cdn/events/pc-select.js +0 -0
- package/cdn/events/pc-selection-change.js +0 -0
- package/cdn/events/pc-show.js +0 -0
- package/cdn/events/pc-slide-change.js +0 -0
- package/cdn/events/pc-start.js +0 -0
- package/cdn/events/pc-tab-hide.js +0 -0
- package/cdn/events/pc-tab-show.js +0 -0
- package/cdn/global-shims.js +1 -0
- package/cdn/internal/active-elements.js +1 -0
- package/cdn/internal/animate.js +1 -0
- package/cdn/internal/close-active-element.js +1 -0
- package/cdn/internal/debounce.js +1 -0
- package/cdn/internal/default-value.js +1 -0
- package/cdn/internal/drag.js +1 -0
- package/cdn/internal/emit.js +1 -0
- package/cdn/internal/event.js +1 -0
- package/cdn/internal/form.js +1 -0
- package/cdn/internal/math.js +1 -0
- package/cdn/internal/offset.js +1 -0
- package/cdn/internal/parse.js +1 -0
- package/cdn/internal/placer-element.js +1 -0
- package/cdn/internal/placer-form-control.js +0 -0
- package/cdn/internal/scroll.js +1 -0
- package/cdn/internal/scrollend-polyfill.js +1 -0
- package/cdn/internal/slot.js +1 -0
- package/cdn/internal/string.js +1 -0
- package/cdn/internal/tabbable.js +1 -0
- package/cdn/internal/watch.js +1 -0
- package/cdn/placer-autoloader.js +1 -0
- package/cdn/placer.js +1 -0
- package/cdn/styles/component-styles/form-control.css +33 -0
- package/cdn/styles/component-styles/host.css +13 -0
- package/cdn/styles/native.css +451 -0
- package/cdn/styles/palette/base.css +100 -0
- package/cdn/styles/palette/default.css +227 -0
- package/cdn/styles/palette/muted.css +227 -0
- package/cdn/styles/palette/vibrant.css +227 -0
- package/cdn/styles/placer.css +10 -0
- package/cdn/styles/themes/default.css +445 -0
- package/cdn/styles/themes/serene.css +454 -0
- package/cdn/styles/themes/utility.css +544 -0
- package/cdn/styles/utilities/align-items.css +21 -0
- package/cdn/styles/utilities/appearance.css +62 -0
- package/cdn/styles/utilities/border-radius.css +29 -0
- package/cdn/styles/utilities/fouce.css +11 -0
- package/cdn/styles/utilities/gap.css +66 -0
- package/cdn/styles/utilities/layout.css +162 -0
- package/cdn/styles/utilities/scroll-lock.css +21 -0
- package/cdn/styles/utilities/size.css +16 -0
- package/cdn/styles/utilities/text.css +156 -0
- package/cdn/styles/utilities/visually-hidden.css +16 -0
- package/cdn/styles/utilities.css +13 -0
- package/cdn/translations/ar.js +1 -0
- package/cdn/translations/bg.js +1 -0
- package/cdn/translations/bn.js +1 -0
- package/cdn/translations/bs.js +1 -0
- package/cdn/translations/ca.js +1 -0
- package/cdn/translations/cs.js +1 -0
- package/cdn/translations/cy.js +1 -0
- package/cdn/translations/da.js +1 -0
- package/cdn/translations/de-at.js +1 -0
- package/cdn/translations/de-ch.js +1 -0
- package/cdn/translations/de.js +1 -0
- package/cdn/translations/el.js +1 -0
- package/cdn/translations/en-gb.js +1 -0
- package/cdn/translations/en.js +1 -0
- package/cdn/translations/es-es.js +1 -0
- package/cdn/translations/es.js +1 -0
- package/cdn/translations/et.js +1 -0
- package/cdn/translations/eu.js +1 -0
- package/cdn/translations/fa.js +1 -0
- package/cdn/translations/fi.js +1 -0
- package/cdn/translations/fil.js +1 -0
- package/cdn/translations/fo.js +1 -0
- package/cdn/translations/fr-ca.js +1 -0
- package/cdn/translations/fr.js +1 -0
- package/cdn/translations/ga.js +1 -0
- package/cdn/translations/gu.js +1 -0
- package/cdn/translations/he.js +1 -0
- package/cdn/translations/hi.js +1 -0
- package/cdn/translations/hr.js +1 -0
- package/cdn/translations/hu.js +1 -0
- package/cdn/translations/id.js +1 -0
- package/cdn/translations/index.js +1 -0
- package/cdn/translations/is.js +1 -0
- package/cdn/translations/it.js +1 -0
- package/cdn/translations/ja.js +1 -0
- package/cdn/translations/ko.js +1 -0
- package/cdn/translations/lb.js +1 -0
- package/cdn/translations/lo.js +1 -0
- package/cdn/translations/lt.js +1 -0
- package/cdn/translations/lv.js +1 -0
- package/cdn/translations/mr.js +1 -0
- package/cdn/translations/ms.js +1 -0
- package/cdn/translations/mt.js +1 -0
- package/cdn/translations/nb.js +1 -0
- package/cdn/translations/nl-be.js +1 -0
- package/cdn/translations/nl.js +1 -0
- package/cdn/translations/nn.js +1 -0
- package/cdn/translations/pa-guru.js +1 -0
- package/cdn/translations/pa.js +1 -0
- package/cdn/translations/pl.js +1 -0
- package/cdn/translations/ps.js +1 -0
- package/cdn/translations/pt-br.js +1 -0
- package/cdn/translations/pt-pt.js +1 -0
- package/cdn/translations/pt.js +1 -0
- package/cdn/translations/ro.js +1 -0
- package/cdn/translations/ru.js +1 -0
- package/cdn/translations/sk.js +1 -0
- package/cdn/translations/sl.js +1 -0
- package/cdn/translations/sq.js +1 -0
- package/cdn/translations/sr.js +1 -0
- package/cdn/translations/sv.js +1 -0
- package/cdn/translations/sw.js +1 -0
- package/cdn/translations/te.js +1 -0
- package/cdn/translations/th.js +1 -0
- package/cdn/translations/tl.js +1 -0
- package/cdn/translations/tr.js +1 -0
- package/cdn/translations/uk.js +1 -0
- package/cdn/translations/ur.js +1 -0
- package/cdn/translations/vi.js +1 -0
- package/cdn/translations/zh-cn.js +1 -0
- package/cdn/translations/zh-hk.js +1 -0
- package/cdn/translations/zh-tw.js +1 -0
- package/cdn/utilities/animation-registry.js +1 -0
- package/cdn/utilities/animation.js +1 -0
- package/cdn/utilities/form.js +1 -0
- package/cdn/utilities/icon-library.js +1 -0
- package/cdn/utilities/kit-code.js +1 -0
- package/cdn/utilities/localize.js +1 -0
- package/dist/animations/attention_seekers/bounce.js +46 -44
- package/dist/animations/attention_seekers/flash.js +10 -8
- package/dist/animations/attention_seekers/headShake.js +11 -9
- package/dist/animations/attention_seekers/heartBeat.js +10 -8
- package/dist/animations/attention_seekers/jello.js +18 -16
- package/dist/animations/attention_seekers/pulse.js +8 -6
- package/dist/animations/attention_seekers/rubberBand.js +12 -10
- package/dist/animations/attention_seekers/shake.js +16 -14
- package/dist/animations/attention_seekers/shakeX.js +16 -14
- package/dist/animations/attention_seekers/shakeY.js +16 -14
- package/dist/animations/attention_seekers/swing.js +10 -8
- package/dist/animations/attention_seekers/tada.js +43 -41
- package/dist/animations/attention_seekers/wobble.js +27 -25
- package/dist/animations/back_entrances/backInDown.js +8 -6
- package/dist/animations/back_entrances/backInLeft.js +8 -6
- package/dist/animations/back_entrances/backInRight.js +8 -6
- package/dist/animations/back_entrances/backInUp.js +8 -6
- package/dist/animations/back_exits/backOutDown.js +8 -6
- package/dist/animations/back_exits/backOutLeft.js +8 -6
- package/dist/animations/back_exits/backOutRight.js +8 -6
- package/dist/animations/back_exits/backOutUp.js +8 -6
- package/dist/animations/bouncing_entrances/bounceIn.js +17 -15
- package/dist/animations/bouncing_entrances/bounceInDown.js +23 -21
- package/dist/animations/bouncing_entrances/bounceInLeft.js +23 -21
- package/dist/animations/bouncing_entrances/bounceInRight.js +23 -21
- package/dist/animations/bouncing_entrances/bounceInUp.js +23 -21
- package/dist/animations/bouncing_exits/bounceOut.js +9 -7
- package/dist/animations/bouncing_exits/bounceOutDown.js +21 -19
- package/dist/animations/bouncing_exits/bounceOutLeft.js +15 -13
- package/dist/animations/bouncing_exits/bounceOutRight.js +15 -13
- package/dist/animations/bouncing_exits/bounceOutUp.js +21 -19
- package/dist/animations/easings/easings.js +34 -32
- package/dist/animations/fading_entrances/fadeIn.js +7 -5
- package/dist/animations/fading_entrances/fadeInBottomLeft.js +7 -5
- package/dist/animations/fading_entrances/fadeInBottomRight.js +7 -5
- package/dist/animations/fading_entrances/fadeInDown.js +7 -5
- package/dist/animations/fading_entrances/fadeInDownBig.js +7 -5
- package/dist/animations/fading_entrances/fadeInLeft.js +7 -5
- package/dist/animations/fading_entrances/fadeInLeftBig.js +7 -5
- package/dist/animations/fading_entrances/fadeInRight.js +7 -5
- package/dist/animations/fading_entrances/fadeInRightBig.js +7 -5
- package/dist/animations/fading_entrances/fadeInTopLeft.js +7 -5
- package/dist/animations/fading_entrances/fadeInTopRight.js +7 -5
- package/dist/animations/fading_entrances/fadeInUp.js +7 -5
- package/dist/animations/fading_entrances/fadeInUpBig.js +7 -5
- package/dist/animations/fading_exits/fadeOut.js +7 -5
- package/dist/animations/fading_exits/fadeOutBottomLeft.js +7 -5
- package/dist/animations/fading_exits/fadeOutBottomRight.js +7 -5
- package/dist/animations/fading_exits/fadeOutDown.js +7 -5
- package/dist/animations/fading_exits/fadeOutDownBig.js +7 -5
- package/dist/animations/fading_exits/fadeOutLeft.js +7 -5
- package/dist/animations/fading_exits/fadeOutLeftBig.js +7 -5
- package/dist/animations/fading_exits/fadeOutRight.js +7 -5
- package/dist/animations/fading_exits/fadeOutRightBig.js +7 -5
- package/dist/animations/fading_exits/fadeOutTopLeft.js +7 -5
- package/dist/animations/fading_exits/fadeOutTopRight.js +7 -5
- package/dist/animations/fading_exits/fadeOutUp.js +7 -5
- package/dist/animations/fading_exits/fadeOutUpBig.js +7 -5
- package/dist/animations/flippers/flip.js +30 -28
- package/dist/animations/flippers/flipInX.js +23 -21
- package/dist/animations/flippers/flipInY.js +23 -21
- package/dist/animations/flippers/flipOutX.js +16 -14
- package/dist/animations/flippers/flipOutY.js +16 -14
- package/dist/animations/index.js +1208 -101
- package/dist/animations/lightspeed/lightSpeedInLeft.js +13 -11
- package/dist/animations/lightspeed/lightSpeedInRight.js +13 -11
- package/dist/animations/lightspeed/lightSpeedOutLeft.js +11 -9
- package/dist/animations/lightspeed/lightSpeedOutRight.js +11 -9
- package/dist/animations/rotating_entrances/rotateIn.js +7 -5
- package/dist/animations/rotating_entrances/rotateInDownLeft.js +7 -5
- package/dist/animations/rotating_entrances/rotateInDownRight.js +7 -5
- package/dist/animations/rotating_entrances/rotateInUpLeft.js +7 -5
- package/dist/animations/rotating_entrances/rotateInUpRight.js +7 -5
- package/dist/animations/rotating_exits/rotateOut.js +7 -5
- package/dist/animations/rotating_exits/rotateOutDownLeft.js +7 -5
- package/dist/animations/rotating_exits/rotateOutDownRight.js +7 -5
- package/dist/animations/rotating_exits/rotateOutUpLeft.js +7 -5
- package/dist/animations/rotating_exits/rotateOutUpRight.js +7 -5
- package/dist/animations/sliding_entrances/slideInDown.js +7 -5
- package/dist/animations/sliding_entrances/slideInLeft.js +7 -5
- package/dist/animations/sliding_entrances/slideInRight.js +7 -5
- package/dist/animations/sliding_entrances/slideInUp.js +7 -5
- package/dist/animations/sliding_exits/slideOutDown.js +7 -5
- package/dist/animations/sliding_exits/slideOutLeft.js +7 -5
- package/dist/animations/sliding_exits/slideOutRight.js +7 -5
- package/dist/animations/sliding_exits/slideOutUp.js +7 -5
- package/dist/animations/specials/hinge.js +29 -27
- package/dist/animations/specials/jackInTheBox.js +14 -12
- package/dist/animations/specials/rollIn.js +11 -9
- package/dist/animations/specials/rollOut.js +11 -9
- package/dist/animations/zooming_entrances/zoomIn.js +7 -5
- package/dist/animations/zooming_entrances/zoomInDown.js +17 -15
- package/dist/animations/zooming_entrances/zoomInLeft.js +17 -15
- package/dist/animations/zooming_entrances/zoomInRight.js +17 -15
- package/dist/animations/zooming_entrances/zoomInUp.js +17 -15
- package/dist/animations/zooming_exits/zoomOut.js +8 -6
- package/dist/animations/zooming_exits/zoomOutDown.js +17 -15
- package/dist/animations/zooming_exits/zoomOutLeft.js +15 -13
- package/dist/animations/zooming_exits/zoomOutRight.js +15 -13
- package/dist/animations/zooming_exits/zoomOutUp.js +17 -15
- package/dist/components/animation/animation.d.ts +65 -3
- package/dist/components/animation/animation.js +2185 -3
- package/dist/components/animation/animations.js +1225 -8
- package/dist/components/avatar/avatar.d.ts +43 -3
- package/dist/components/avatar/avatar.js +1323 -3
- package/dist/components/badge/badge.d.ts +23 -3
- package/dist/components/badge/badge.js +754 -3
- package/dist/components/button/button.d.ts +102 -3
- package/dist/components/button/button.js +1516 -3
- package/dist/components/button-group/button-group.d.ts +28 -3
- package/dist/components/button-group/button-group.js +898 -3
- package/dist/components/callout/callout.d.ts +24 -3
- package/dist/components/callout/callout.js +763 -3
- package/dist/components/card/card.d.ts +27 -3
- package/dist/components/card/card.js +866 -3
- package/dist/components/checkbox/checkbox.d.ts +93 -3
- package/dist/components/checkbox/checkbox.js +1920 -3
- package/dist/components/color-picker/color-picker.d.ts +206 -0
- package/dist/components/color-picker/color-picker.js +7014 -0
- package/dist/components/comparer/comparer.d.ts +44 -3
- package/dist/components/comparer/comparer.js +1631 -3
- package/dist/components/copy-button/copy-button.d.ts +74 -3
- package/dist/components/copy-button/copy-button.js +3936 -3
- package/dist/components/details/details.d.ts +64 -3
- package/dist/components/details/details.js +1735 -3
- package/dist/components/dialog/dialog.d.ts +71 -3
- package/dist/components/dialog/dialog.js +2062 -3
- package/dist/components/divider/divider.d.ts +19 -3
- package/dist/components/divider/divider.js +778 -3
- package/dist/components/drawer/drawer.d.ts +79 -3
- package/dist/components/drawer/drawer.js +2150 -3
- package/dist/components/dropdown/dropdown.d.ts +103 -3
- package/dist/components/dropdown/dropdown.js +3755 -3
- package/dist/components/dropdown-item/dropdown-item.d.ts +84 -0
- package/dist/components/dropdown-item/dropdown-item.js +1771 -0
- package/dist/components/format-bytes/format-bytes.d.ts +24 -0
- package/dist/components/format-bytes/format-bytes.js +960 -0
- package/dist/components/format-date/format-date.d.ts +40 -0
- package/dist/components/format-date/format-date.js +963 -0
- package/dist/components/format-number/format-number.d.ts +39 -0
- package/dist/components/format-number/format-number.js +1001 -0
- package/dist/components/icon/icon.d.ts +49 -3
- package/dist/components/icon/icon.js +1175 -3
- package/dist/components/icon/library.d.ts +3 -2
- package/dist/components/icon/library.default.js +63 -7
- package/dist/components/icon/library.js +230 -23
- package/dist/components/icon/library.system.js +134 -119
- package/dist/components/input/input.d.ts +165 -3
- package/dist/components/input/input.js +2303 -3
- package/dist/components/mutation-observer/mutation-observer.d.ts +37 -0
- package/dist/components/mutation-observer/mutation-observer.js +873 -0
- package/dist/components/option/option.d.ts +53 -3
- package/dist/components/option/option.js +1352 -3
- package/dist/components/popup/popup.d.ts +87 -3
- package/dist/components/popup/popup.js +2934 -3
- package/dist/components/qr-code/qr-code.d.ts +32 -3
- package/dist/components/qr-code/qr-code.js +1533 -3
- package/dist/components/radio/radio.d.ts +42 -3
- package/dist/components/radio/radio.js +925 -3
- package/dist/components/radio-group/radio-group.d.ts +79 -3
- package/dist/components/radio-group/radio-group.js +1519 -3
- package/dist/components/rating/rating.d.ts +67 -3
- package/dist/components/rating/rating.js +1757 -3
- package/dist/components/resize-observer/resize-observer.d.ts +26 -3
- package/dist/components/resize-observer/resize-observer.js +835 -3
- package/dist/components/scroller/scroller.d.ts +35 -0
- package/dist/components/scroller/scroller.js +1072 -0
- package/dist/components/select/select.d.ts +179 -3
- package/dist/components/select/select.js +5107 -3
- package/dist/components/spinner/spinner.d.ts +19 -3
- package/dist/components/spinner/spinner.js +917 -3
- package/dist/components/switch/switch.d.ts +85 -3
- package/dist/components/switch/switch.js +1479 -3
- package/dist/components/tab/tab.d.ts +47 -3
- package/dist/components/tab/tab.js +1788 -3
- package/dist/components/tab-group/tab-group.d.ts +91 -3
- package/dist/components/tab-group/tab-group.js +2385 -3
- package/dist/components/tab-panel/tab-panel.d.ts +24 -3
- package/dist/components/tab-panel/tab-panel.js +847 -3
- package/dist/components/tag/tag.d.ts +38 -3
- package/dist/components/tag/tag.js +1750 -3
- package/dist/components/textarea/textarea.d.ts +137 -0
- package/dist/components/textarea/textarea.js +1630 -0
- package/dist/components/tooltip/tooltip.d.ts +80 -3
- package/dist/components/tooltip/tooltip.js +3298 -3
- package/dist/custom-elements.json +13055 -0
- package/dist/events/events.d.ts +0 -1
- package/dist/events/events.js +0 -1
- package/dist/events/pc-after-collapse.js +0 -1
- package/dist/events/pc-after-expand.js +0 -1
- package/dist/events/pc-after-hide.js +0 -1
- package/dist/events/pc-after-show.js +0 -1
- package/dist/events/pc-blur.js +0 -1
- package/dist/events/pc-cancel.js +0 -1
- package/dist/events/pc-change.js +0 -1
- package/dist/events/pc-clear.js +0 -1
- package/dist/events/pc-close.js +0 -1
- package/dist/events/pc-collapse.js +0 -1
- package/dist/events/pc-copy.js +0 -1
- package/dist/events/pc-error.js +0 -1
- package/dist/events/pc-expand.js +0 -1
- package/dist/events/pc-finish.js +0 -1
- package/dist/events/pc-focus.js +0 -1
- package/dist/events/pc-hide.js +0 -1
- package/dist/events/pc-hover.js +0 -1
- package/dist/events/pc-initial-focus.js +0 -1
- package/dist/events/pc-input.js +0 -1
- package/dist/events/pc-invalid.js +0 -1
- package/dist/events/pc-lazy-change.js +0 -1
- package/dist/events/pc-lazy-load.js +0 -1
- package/dist/events/pc-load.js +0 -1
- package/dist/events/pc-mutation.js +0 -1
- package/dist/events/pc-remove.js +0 -1
- package/dist/events/pc-reposition.js +0 -1
- package/dist/events/pc-resize.js +0 -1
- package/dist/events/pc-select.d.ts +2 -2
- package/dist/events/pc-select.js +0 -1
- package/dist/events/pc-selection-change.d.ts +0 -0
- package/dist/events/pc-selection-change.js +0 -1
- package/dist/events/pc-show.js +0 -1
- package/dist/events/pc-slide-change.d.ts +0 -0
- package/dist/events/pc-slide-change.js +0 -1
- package/dist/events/pc-start.js +0 -1
- package/dist/events/pc-tab-hide.js +0 -1
- package/dist/events/pc-tab-show.js +0 -1
- package/dist/global-shims.js +84 -83
- package/dist/internal/active-elements.d.ts +16 -0
- package/dist/internal/active-elements.js +13 -12
- package/dist/internal/animate.d.ts +6 -6
- package/dist/internal/animate.js +45 -33
- package/dist/internal/close-active-element.d.ts +5 -0
- package/dist/internal/close-active-element.js +9 -7
- package/dist/internal/debounce.js +14 -12
- package/dist/internal/default-value.js +582 -22
- package/dist/internal/drag.d.ts +4 -0
- package/dist/internal/drag.js +25 -23
- package/dist/internal/emit.d.ts +1 -0
- package/dist/internal/emit.js +14 -12
- package/dist/internal/event.d.ts +1 -0
- package/dist/internal/event.js +13 -11
- package/dist/internal/form.d.ts +31 -13
- package/dist/internal/form.js +294 -262
- package/dist/internal/math.d.ts +3 -0
- package/dist/internal/math.js +29 -10
- package/dist/internal/offset.d.ts +1 -0
- package/dist/internal/offset.js +12 -8
- package/dist/internal/parse.d.ts +2 -0
- package/dist/internal/parse.js +7 -0
- package/dist/internal/placer-element.d.ts +30 -0
- package/dist/internal/placer-element.js +712 -0
- package/dist/internal/placer-form-control.d.ts +23 -0
- package/dist/internal/placer-form-control.js +0 -0
- package/dist/internal/scroll.d.ts +3 -0
- package/dist/internal/scroll.js +78 -56
- package/dist/internal/scrollend-polyfill.js +68 -60
- package/dist/internal/slot.d.ts +3 -0
- package/dist/internal/slot.js +74 -68
- package/dist/internal/string.d.ts +1 -0
- package/dist/internal/string.js +5 -3
- package/dist/internal/tabbable.d.ts +1 -0
- package/dist/internal/tabbable.js +128 -131
- package/dist/internal/watch.d.ts +12 -6
- package/dist/internal/watch.js +29 -29
- package/dist/placer-autoloader.js +45 -33
- package/dist/placer.d.ts +42 -38
- package/dist/placer.js +16097 -43
- package/dist/styles/component-styles/form-control.css +33 -0
- package/dist/styles/component-styles/host.css +13 -0
- package/dist/styles/native.css +451 -0
- package/dist/styles/palette/base.css +100 -0
- package/dist/styles/palette/default.css +227 -0
- package/dist/styles/palette/muted.css +227 -0
- package/dist/styles/palette/vibrant.css +227 -0
- package/dist/styles/placer.css +10 -0
- package/dist/styles/themes/default.css +445 -0
- package/dist/styles/themes/serene.css +454 -0
- package/dist/styles/themes/utility.css +544 -0
- package/dist/styles/utilities/align-items.css +21 -0
- package/dist/styles/utilities/appearance.css +62 -0
- package/dist/styles/utilities/border-radius.css +29 -0
- package/dist/styles/utilities/fouce.css +11 -0
- package/dist/styles/utilities/gap.css +66 -0
- package/dist/styles/utilities/layout.css +162 -0
- package/dist/styles/utilities/scroll-lock.css +21 -0
- package/dist/styles/utilities/size.css +16 -0
- package/dist/styles/utilities/text.css +156 -0
- package/dist/styles/utilities/visually-hidden.css +16 -0
- package/dist/styles/utilities.css +13 -0
- package/dist/translations/ar.d.ts +3 -0
- package/dist/translations/ar.js +655 -0
- package/dist/translations/bg.d.ts +3 -0
- package/dist/translations/bg.js +651 -0
- package/dist/translations/bn.d.ts +3 -0
- package/dist/translations/bn.js +651 -0
- package/dist/translations/bs.d.ts +3 -0
- package/dist/translations/bs.js +655 -0
- package/dist/translations/ca.d.ts +3 -0
- package/dist/translations/ca.js +651 -0
- package/dist/translations/cs.d.ts +3 -0
- package/dist/translations/cs.js +653 -0
- package/dist/translations/cy.d.ts +3 -0
- package/dist/translations/cy.js +651 -0
- package/dist/translations/da.d.ts +3 -0
- package/dist/translations/da.js +651 -0
- package/dist/translations/de-at.d.ts +3 -0
- package/dist/translations/de-at.js +661 -0
- package/dist/translations/de-ch.d.ts +3 -0
- package/dist/translations/de-ch.js +662 -0
- package/dist/translations/de.d.ts +3 -0
- package/dist/translations/de.js +651 -0
- package/dist/translations/el.d.ts +3 -0
- package/dist/translations/el.js +651 -0
- package/dist/translations/en-gb.d.ts +3 -0
- package/dist/translations/en-gb.js +664 -0
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +651 -0
- package/dist/translations/es-es.d.ts +3 -0
- package/dist/translations/es-es.js +664 -0
- package/dist/translations/es.d.ts +3 -0
- package/dist/translations/es.js +651 -0
- package/dist/translations/et.d.ts +3 -0
- package/dist/translations/et.js +651 -0
- package/dist/translations/eu.d.ts +3 -0
- package/dist/translations/eu.js +651 -0
- package/dist/translations/fa.d.ts +3 -0
- package/dist/translations/fa.js +651 -0
- package/dist/translations/fi.d.ts +3 -0
- package/dist/translations/fi.js +651 -0
- package/dist/translations/fil.d.ts +3 -0
- package/dist/translations/fil.js +651 -0
- package/dist/translations/fo.d.ts +3 -0
- package/dist/translations/fo.js +651 -0
- package/dist/translations/fr-ca.d.ts +3 -0
- package/dist/translations/fr-ca.js +662 -0
- package/dist/translations/fr.d.ts +3 -0
- package/dist/translations/fr.js +651 -0
- package/dist/translations/ga.d.ts +3 -0
- package/dist/translations/ga.js +651 -0
- package/dist/translations/gu.d.ts +3 -0
- package/dist/translations/gu.js +651 -0
- package/dist/translations/he.d.ts +3 -0
- package/dist/translations/he.js +651 -0
- package/dist/translations/hi.d.ts +3 -0
- package/dist/translations/hi.js +651 -0
- package/dist/translations/hr.d.ts +3 -0
- package/dist/translations/hr.js +655 -0
- package/dist/translations/hu.d.ts +3 -0
- package/dist/translations/hu.js +651 -0
- package/dist/translations/id.d.ts +3 -0
- package/dist/translations/id.js +651 -0
- package/dist/translations/index.d.ts +62 -0
- package/dist/translations/index.js +693 -0
- package/dist/translations/is.d.ts +3 -0
- package/dist/translations/is.js +651 -0
- package/dist/translations/it.d.ts +3 -0
- package/dist/translations/it.js +651 -0
- package/dist/translations/ja.d.ts +3 -0
- package/dist/translations/ja.js +649 -0
- package/dist/translations/ko.d.ts +3 -0
- package/dist/translations/ko.js +649 -0
- package/dist/translations/lb.d.ts +3 -0
- package/dist/translations/lb.js +651 -0
- package/dist/translations/lo.d.ts +3 -0
- package/dist/translations/lo.js +643 -0
- package/dist/translations/lt.d.ts +3 -0
- package/dist/translations/lt.js +651 -0
- package/dist/translations/lv.d.ts +3 -0
- package/dist/translations/lv.js +651 -0
- package/dist/translations/mr.d.ts +3 -0
- package/dist/translations/mr.js +651 -0
- package/dist/translations/ms.d.ts +3 -0
- package/dist/translations/ms.js +643 -0
- package/dist/translations/mt.d.ts +3 -0
- package/dist/translations/mt.js +651 -0
- package/dist/translations/nb.d.ts +3 -0
- package/dist/translations/nb.js +651 -0
- package/dist/translations/nl-be.d.ts +3 -0
- package/dist/translations/nl-be.js +664 -0
- package/dist/translations/nl.d.ts +3 -0
- package/dist/translations/nl.js +651 -0
- package/dist/translations/nn.d.ts +3 -0
- package/dist/translations/nn.js +677 -0
- package/dist/translations/pa-guru.d.ts +3 -0
- package/dist/translations/pa-guru.js +651 -0
- package/dist/translations/pa.d.ts +3 -0
- package/dist/translations/pa.js +651 -0
- package/dist/translations/pl.d.ts +3 -0
- package/dist/translations/pl.js +655 -0
- package/dist/translations/ps.d.ts +3 -0
- package/dist/translations/ps.js +651 -0
- package/dist/translations/pt-br.d.ts +3 -0
- package/dist/translations/pt-br.js +664 -0
- package/dist/translations/pt-pt.d.ts +3 -0
- package/dist/translations/pt-pt.js +685 -0
- package/dist/translations/pt.d.ts +3 -0
- package/dist/translations/pt.js +651 -0
- package/dist/translations/ro.d.ts +3 -0
- package/dist/translations/ro.js +651 -0
- package/dist/translations/ru.d.ts +3 -0
- package/dist/translations/ru.js +657 -0
- package/dist/translations/sk.d.ts +3 -0
- package/dist/translations/sk.js +653 -0
- package/dist/translations/sl.d.ts +3 -0
- package/dist/translations/sl.js +655 -0
- package/dist/translations/sq.d.ts +3 -0
- package/dist/translations/sq.js +651 -0
- package/dist/translations/sr.d.ts +3 -0
- package/dist/translations/sr.js +655 -0
- package/dist/translations/sv.d.ts +3 -0
- package/dist/translations/sv.js +651 -0
- package/dist/translations/sw.d.ts +3 -0
- package/dist/translations/sw.js +651 -0
- package/dist/translations/te.d.ts +3 -0
- package/dist/translations/te.js +651 -0
- package/dist/translations/th.d.ts +3 -0
- package/dist/translations/th.js +643 -0
- package/dist/translations/tl.d.ts +3 -0
- package/dist/translations/tl.js +651 -0
- package/dist/translations/tr.d.ts +3 -0
- package/dist/translations/tr.js +651 -0
- package/dist/translations/uk.d.ts +3 -0
- package/dist/translations/uk.js +655 -0
- package/dist/translations/ur.d.ts +3 -0
- package/dist/translations/ur.js +651 -0
- package/dist/translations/vi.d.ts +3 -0
- package/dist/translations/vi.js +651 -0
- package/dist/translations/zh-cn.d.ts +3 -0
- package/dist/translations/zh-cn.js +651 -0
- package/dist/translations/zh-hk.d.ts +3 -0
- package/dist/translations/zh-hk.js +649 -0
- package/dist/translations/zh-tw.d.ts +3 -0
- package/dist/translations/zh-tw.js +674 -0
- package/dist/utilities/animation-registry.js +33 -29
- package/dist/utilities/animation.js +1229 -1
- package/dist/utilities/form.js +61 -34
- package/dist/utilities/icon-library.js +229 -1
- package/dist/utilities/kit-code.d.ts +2 -0
- package/dist/utilities/kit-code.js +18 -0
- package/dist/utilities/localize.d.ts +35 -0
- package/dist/utilities/localize.js +739 -0
- package/package.json +86 -79
- package/dist/components/animation/animation.component.d.ts +0 -65
- package/dist/components/animation/animation.component.js +0 -247
- package/dist/components/animation/animation.styles.d.ts +0 -1
- package/dist/components/animation/animation.styles.js +0 -9
- package/dist/components/avatar/avatar.component.d.ts +0 -43
- package/dist/components/avatar/avatar.component.js +0 -137
- package/dist/components/avatar/avatar.styles.d.ts +0 -1
- package/dist/components/avatar/avatar.styles.js +0 -68
- package/dist/components/badge/badge.component.d.ts +0 -21
- package/dist/components/badge/badge.component.js +0 -64
- package/dist/components/badge/badge.styles.d.ts +0 -1
- package/dist/components/badge/badge.styles.js +0 -76
- package/dist/components/button/button.component.d.ts +0 -104
- package/dist/components/button/button.component.js +0 -346
- package/dist/components/button/button.styles.d.ts +0 -1
- package/dist/components/button/button.styles.js +0 -322
- package/dist/components/button-group/button-group.component.d.ts +0 -26
- package/dist/components/button-group/button-group.component.js +0 -93
- package/dist/components/button-group/button-group.styles.d.ts +0 -1
- package/dist/components/button-group/button-group.styles.js +0 -14
- package/dist/components/callout/callout.component.d.ts +0 -22
- package/dist/components/callout/callout.component.js +0 -63
- package/dist/components/callout/callout.styles.d.ts +0 -1
- package/dist/components/callout/callout.styles.js +0 -68
- package/dist/components/card/card.component.d.ts +0 -29
- package/dist/components/card/card.component.js +0 -59
- package/dist/components/card/card.styles.d.ts +0 -1
- package/dist/components/card/card.styles.js +0 -65
- package/dist/components/checkbox/checkbox.component.d.ts +0 -44
- package/dist/components/checkbox/checkbox.component.js +0 -287
- package/dist/components/checkbox/checkbox.styles.d.ts +0 -1
- package/dist/components/checkbox/checkbox.styles.js +0 -166
- package/dist/components/comparer/comparer.component.d.ts +0 -43
- package/dist/components/comparer/comparer.component.js +0 -181
- package/dist/components/comparer/comparer.styles.d.ts +0 -1
- package/dist/components/comparer/comparer.styles.js +0 -75
- package/dist/components/copy-button/copy-button.component.d.ts +0 -75
- package/dist/components/copy-button/copy-button.component.js +0 -289
- package/dist/components/copy-button/copy-button.styles.d.ts +0 -1
- package/dist/components/copy-button/copy-button.styles.js +0 -61
- package/dist/components/details/details.component.d.ts +0 -25
- package/dist/components/details/details.component.js +0 -243
- package/dist/components/details/details.styles.d.ts +0 -1
- package/dist/components/details/details.styles.js +0 -86
- package/dist/components/dialog/dialog.component.d.ts +0 -84
- package/dist/components/dialog/dialog.component.js +0 -362
- package/dist/components/dialog/dialog.styles.d.ts +0 -1
- package/dist/components/dialog/dialog.styles.js +0 -123
- package/dist/components/divider/divider.component.d.ts +0 -20
- package/dist/components/divider/divider.component.js +0 -51
- package/dist/components/divider/divider.styles.d.ts +0 -1
- package/dist/components/divider/divider.styles.js +0 -29
- package/dist/components/drawer/drawer.component.d.ts +0 -95
- package/dist/components/drawer/drawer.component.js +0 -509
- package/dist/components/drawer/drawer.styles.d.ts +0 -1
- package/dist/components/drawer/drawer.styles.js +0 -157
- package/dist/components/dropdown/dropdown.component.d.ts +0 -44
- package/dist/components/dropdown/dropdown.component.js +0 -385
- package/dist/components/dropdown/dropdown.styles.d.ts +0 -1
- package/dist/components/dropdown/dropdown.styles.js +0 -52
- package/dist/components/icon/icon.component.d.ts +0 -47
- package/dist/components/icon/icon.component.js +0 -225
- package/dist/components/icon/icon.styles.d.ts +0 -1
- package/dist/components/icon/icon.styles.js +0 -49
- package/dist/components/icon-button/icon-button.component.d.ts +0 -27
- package/dist/components/icon-button/icon-button.component.js +0 -151
- package/dist/components/icon-button/icon-button.d.ts +0 -8
- package/dist/components/icon-button/icon-button.js +0 -5
- package/dist/components/icon-button/icon-button.styles.d.ts +0 -1
- package/dist/components/icon-button/icon-button.styles.js +0 -53
- package/dist/components/input/input.component.d.ts +0 -78
- package/dist/components/input/input.component.js +0 -513
- package/dist/components/input/input.styles.d.ts +0 -1
- package/dist/components/input/input.styles.js +0 -308
- package/dist/components/menu/menu.component.d.ts +0 -20
- package/dist/components/menu/menu.component.js +0 -123
- package/dist/components/menu/menu.d.ts +0 -8
- package/dist/components/menu/menu.js +0 -5
- package/dist/components/menu/menu.styles.d.ts +0 -1
- package/dist/components/menu/menu.styles.js +0 -20
- package/dist/components/menu-item/menu-item.component.d.ts +0 -34
- package/dist/components/menu-item/menu-item.component.js +0 -211
- package/dist/components/menu-item/menu-item.d.ts +0 -8
- package/dist/components/menu-item/menu-item.js +0 -5
- package/dist/components/menu-item/menu-item.styles.d.ts +0 -1
- package/dist/components/menu-item/menu-item.styles.js +0 -157
- package/dist/components/menu-item/submenu-controller.d.ts +0 -34
- package/dist/components/menu-item/submenu-controller.js +0 -246
- package/dist/components/menu-label/menu-label.component.d.ts +0 -15
- package/dist/components/menu-label/menu-label.component.js +0 -25
- package/dist/components/menu-label/menu-label.d.ts +0 -8
- package/dist/components/menu-label/menu-label.js +0 -5
- package/dist/components/menu-label/menu-label.styles.d.ts +0 -1
- package/dist/components/menu-label/menu-label.styles.js +0 -22
- package/dist/components/option/option.component.d.ts +0 -42
- package/dist/components/option/option.component.js +0 -161
- package/dist/components/option/option.styles.d.ts +0 -1
- package/dist/components/option/option.styles.js +0 -108
- package/dist/components/popup/popup.component.d.ts +0 -44
- package/dist/components/popup/popup.component.js +0 -483
- package/dist/components/popup/popup.styles.d.ts +0 -1
- package/dist/components/popup/popup.styles.js +0 -64
- package/dist/components/qr-code/qr-code.component.d.ts +0 -16
- package/dist/components/qr-code/qr-code.component.js +0 -94
- package/dist/components/qr-code/qr-code.styles.d.ts +0 -1
- package/dist/components/qr-code/qr-code.styles.js +0 -9
- package/dist/components/radio/radio.component.d.ts +0 -19
- package/dist/components/radio/radio.component.js +0 -120
- package/dist/components/radio/radio.styles.d.ts +0 -1
- package/dist/components/radio/radio.styles.js +0 -132
- package/dist/components/radio-button/radio-button.component.d.ts +0 -22
- package/dist/components/radio-button/radio-button.component.js +0 -131
- package/dist/components/radio-button/radio-button.d.ts +0 -8
- package/dist/components/radio-button/radio-button.js +0 -5
- package/dist/components/radio-button/radio-button.styles.d.ts +0 -1
- package/dist/components/radio-button/radio-button.styles.js +0 -25
- package/dist/components/radio-group/radio-group.component.d.ts +0 -46
- package/dist/components/radio-group/radio-group.component.js +0 -379
- package/dist/components/radio-group/radio-group.styles.d.ts +0 -1
- package/dist/components/radio-group/radio-group.styles.js +0 -42
- package/dist/components/rating/rating.component.d.ts +0 -37
- package/dist/components/rating/rating.component.js +0 -308
- package/dist/components/rating/rating.styles.d.ts +0 -1
- package/dist/components/rating/rating.styles.js +0 -94
- package/dist/components/resize-observer/resize-observer.component.d.ts +0 -26
- package/dist/components/resize-observer/resize-observer.component.js +0 -89
- package/dist/components/resize-observer/resize-observer.styles.d.ts +0 -1
- package/dist/components/resize-observer/resize-observer.styles.js +0 -9
- package/dist/components/select/select.component.d.ts +0 -174
- package/dist/components/select/select.component.js +0 -960
- package/dist/components/select/select.styles.d.ts +0 -1
- package/dist/components/select/select.styles.js +0 -363
- package/dist/components/spinner/spinner.component.d.ts +0 -20
- package/dist/components/spinner/spinner.component.js +0 -47
- package/dist/components/spinner/spinner.styles.d.ts +0 -1
- package/dist/components/spinner/spinner.styles.js +0 -61
- package/dist/components/switch/switch.component.d.ts +0 -84
- package/dist/components/switch/switch.component.js +0 -281
- package/dist/components/switch/switch.styles.d.ts +0 -1
- package/dist/components/switch/switch.styles.js +0 -178
- package/dist/components/tab/tab.component.d.ts +0 -22
- package/dist/components/tab/tab.component.js +0 -112
- package/dist/components/tab/tab.styles.d.ts +0 -1
- package/dist/components/tab/tab.styles.js +0 -85
- package/dist/components/tab-group/tab-group.component.d.ts +0 -51
- package/dist/components/tab-group/tab-group.component.js +0 -513
- package/dist/components/tab-group/tab-group.styles.d.ts +0 -1
- package/dist/components/tab-group/tab-group.styles.js +0 -219
- package/dist/components/tab-panel/tab-panel.component.d.ts +0 -12
- package/dist/components/tab-panel/tab-panel.component.js +0 -56
- package/dist/components/tab-panel/tab-panel.styles.d.ts +0 -1
- package/dist/components/tab-panel/tab-panel.styles.js +0 -18
- package/dist/components/tag/tag.component.d.ts +0 -38
- package/dist/components/tag/tag.component.js +0 -109
- package/dist/components/tag/tag.styles.d.ts +0 -1
- package/dist/components/tag/tag.styles.js +0 -155
- package/dist/components/tooltip/tooltip.component.d.ts +0 -38
- package/dist/components/tooltip/tooltip.component.js +0 -267
- package/dist/components/tooltip/tooltip.styles.d.ts +0 -1
- package/dist/components/tooltip/tooltip.styles.js +0 -59
- package/dist/default.css +0 -1005
- package/dist/events/pc-request-close.d.ts +0 -8
- package/dist/events/pc-request-close.js +0 -1
- package/dist/internal/modal.d.ts +0 -19
- package/dist/internal/modal.js +0 -116
- package/dist/native-styles.css +0 -261
- package/dist/style-utilities/fouce.css +0 -13
- package/dist/style-utilities/style-utilities.css +0 -2
- package/dist/style-utilities/visually-hidden.css +0 -12
- package/dist/utilities/base-path.d.ts +0 -2
- package/dist/utilities/base-path.js +0 -8
- package/dist/utility.css +0 -41
- package/src/animations/attention_seekers/bounce.ts +0 -43
- package/src/animations/attention_seekers/flash.ts +0 -7
- package/src/animations/attention_seekers/headShake.ts +0 -8
- package/src/animations/attention_seekers/heartBeat.ts +0 -7
- package/src/animations/attention_seekers/jello.ts +0 -15
- package/src/animations/attention_seekers/pulse.ts +0 -5
- package/src/animations/attention_seekers/rubberBand.ts +0 -9
- package/src/animations/attention_seekers/shake.ts +0 -13
- package/src/animations/attention_seekers/shakeX.ts +0 -13
- package/src/animations/attention_seekers/shakeY.ts +0 -13
- package/src/animations/attention_seekers/swing.ts +0 -7
- package/src/animations/attention_seekers/tada.ts +0 -40
- package/src/animations/attention_seekers/wobble.ts +0 -24
- package/src/animations/back_entrances/backInDown.ts +0 -5
- package/src/animations/back_entrances/backInLeft.ts +0 -5
- package/src/animations/back_entrances/backInRight.ts +0 -5
- package/src/animations/back_entrances/backInUp.ts +0 -5
- package/src/animations/back_exits/backOutDown.ts +0 -5
- package/src/animations/back_exits/backOutLeft.ts +0 -5
- package/src/animations/back_exits/backOutRight.ts +0 -5
- package/src/animations/back_exits/backOutUp.ts +0 -5
- package/src/animations/bouncing_entrances/bounceIn.ts +0 -14
- package/src/animations/bouncing_entrances/bounceInDown.ts +0 -20
- package/src/animations/bouncing_entrances/bounceInLeft.ts +0 -20
- package/src/animations/bouncing_entrances/bounceInRight.ts +0 -20
- package/src/animations/bouncing_entrances/bounceInUp.ts +0 -20
- package/src/animations/bouncing_exits/bounceOut.ts +0 -6
- package/src/animations/bouncing_exits/bounceOutDown.ts +0 -18
- package/src/animations/bouncing_exits/bounceOutLeft.ts +0 -12
- package/src/animations/bouncing_exits/bounceOutRight.ts +0 -12
- package/src/animations/bouncing_exits/bounceOutUp.ts +0 -18
- package/src/animations/easings/easings.ts +0 -31
- package/src/animations/fading_entrances/fadeIn.ts +0 -4
- package/src/animations/fading_entrances/fadeInBottomLeft.ts +0 -4
- package/src/animations/fading_entrances/fadeInBottomRight.ts +0 -4
- package/src/animations/fading_entrances/fadeInDown.ts +0 -4
- package/src/animations/fading_entrances/fadeInDownBig.ts +0 -4
- package/src/animations/fading_entrances/fadeInLeft.ts +0 -4
- package/src/animations/fading_entrances/fadeInLeftBig.ts +0 -4
- package/src/animations/fading_entrances/fadeInRight.ts +0 -4
- package/src/animations/fading_entrances/fadeInRightBig.ts +0 -4
- package/src/animations/fading_entrances/fadeInTopLeft.ts +0 -4
- package/src/animations/fading_entrances/fadeInTopRight.ts +0 -4
- package/src/animations/fading_entrances/fadeInUp.ts +0 -4
- package/src/animations/fading_entrances/fadeInUpBig.ts +0 -4
- package/src/animations/fading_exits/fadeOut.ts +0 -4
- package/src/animations/fading_exits/fadeOutBottomLeft.ts +0 -4
- package/src/animations/fading_exits/fadeOutBottomRight.ts +0 -4
- package/src/animations/fading_exits/fadeOutDown.ts +0 -4
- package/src/animations/fading_exits/fadeOutDownBig.ts +0 -4
- package/src/animations/fading_exits/fadeOutLeft.ts +0 -4
- package/src/animations/fading_exits/fadeOutLeftBig.ts +0 -4
- package/src/animations/fading_exits/fadeOutRight.ts +0 -4
- package/src/animations/fading_exits/fadeOutRightBig.ts +0 -4
- package/src/animations/fading_exits/fadeOutTopLeft.ts +0 -4
- package/src/animations/fading_exits/fadeOutTopRight.ts +0 -4
- package/src/animations/fading_exits/fadeOutUp.ts +0 -4
- package/src/animations/fading_exits/fadeOutUpBig.ts +0 -4
- package/src/animations/flippers/flip.ts +0 -32
- package/src/animations/flippers/flipInX.ts +0 -20
- package/src/animations/flippers/flipInY.ts +0 -20
- package/src/animations/flippers/flipOutX.ts +0 -13
- package/src/animations/flippers/flipOutY.ts +0 -13
- package/src/animations/index.ts +0 -101
- package/src/animations/lightspeed/lightSpeedInLeft.ts +0 -10
- package/src/animations/lightspeed/lightSpeedInRight.ts +0 -10
- package/src/animations/lightspeed/lightSpeedOutLeft.ts +0 -8
- package/src/animations/lightspeed/lightSpeedOutRight.ts +0 -8
- package/src/animations/rotating_entrances/rotateIn.ts +0 -4
- package/src/animations/rotating_entrances/rotateInDownLeft.ts +0 -4
- package/src/animations/rotating_entrances/rotateInDownRight.ts +0 -4
- package/src/animations/rotating_entrances/rotateInUpLeft.ts +0 -4
- package/src/animations/rotating_entrances/rotateInUpRight.ts +0 -4
- package/src/animations/rotating_exits/rotateOut.ts +0 -4
- package/src/animations/rotating_exits/rotateOutDownLeft.ts +0 -4
- package/src/animations/rotating_exits/rotateOutDownRight.ts +0 -4
- package/src/animations/rotating_exits/rotateOutUpLeft.ts +0 -4
- package/src/animations/rotating_exits/rotateOutUpRight.ts +0 -4
- package/src/animations/sliding_entrances/slideInDown.ts +0 -4
- package/src/animations/sliding_entrances/slideInLeft.ts +0 -4
- package/src/animations/sliding_entrances/slideInRight.ts +0 -4
- package/src/animations/sliding_entrances/slideInUp.ts +0 -4
- package/src/animations/sliding_exits/slideOutDown.ts +0 -4
- package/src/animations/sliding_exits/slideOutLeft.ts +0 -4
- package/src/animations/sliding_exits/slideOutRight.ts +0 -4
- package/src/animations/sliding_exits/slideOutUp.ts +0 -4
- package/src/animations/specials/hinge.ts +0 -26
- package/src/animations/specials/jackInTheBox.ts +0 -11
- package/src/animations/specials/rollIn.ts +0 -8
- package/src/animations/specials/rollOut.ts +0 -8
- package/src/animations/zooming_entrances/zoomIn.ts +0 -4
- package/src/animations/zooming_entrances/zoomInDown.ts +0 -14
- package/src/animations/zooming_entrances/zoomInLeft.ts +0 -14
- package/src/animations/zooming_entrances/zoomInRight.ts +0 -14
- package/src/animations/zooming_entrances/zoomInUp.ts +0 -14
- package/src/animations/zooming_exits/zoomOut.ts +0 -5
- package/src/animations/zooming_exits/zoomOutDown.ts +0 -14
- package/src/animations/zooming_exits/zoomOutLeft.ts +0 -12
- package/src/animations/zooming_exits/zoomOutRight.ts +0 -12
- package/src/animations/zooming_exits/zoomOutUp.ts +0 -14
- package/src/components/animation/animation.component.ts +0 -224
- package/src/components/animation/animation.styles.ts +0 -7
- package/src/components/animation/animation.ts +0 -10
- package/src/components/animation/animations.ts +0 -13
- package/src/components/avatar/avatar.component.ts +0 -113
- package/src/components/avatar/avatar.styles.ts +0 -66
- package/src/components/avatar/avatar.ts +0 -10
- package/src/components/badge/badge.component.ts +0 -54
- package/src/components/badge/badge.styles.ts +0 -74
- package/src/components/badge/badge.ts +0 -10
- package/src/components/button/button.component.ts +0 -335
- package/src/components/button/button.styles.ts +0 -320
- package/src/components/button/button.ts +0 -10
- package/src/components/button-group/button-group.component.ts +0 -101
- package/src/components/button-group/button-group.styles.ts +0 -12
- package/src/components/button-group/button-group.ts +0 -10
- package/src/components/callout/callout.component.ts +0 -60
- package/src/components/callout/callout.styles.ts +0 -66
- package/src/components/callout/callout.ts +0 -10
- package/src/components/card/card.component.ts +0 -59
- package/src/components/card/card.styles.ts +0 -63
- package/src/components/card/card.ts +0 -10
- package/src/components/checkbox/checkbox.component.ts +0 -244
- package/src/components/checkbox/checkbox.styles.ts +0 -164
- package/src/components/checkbox/checkbox.ts +0 -10
- package/src/components/comparer/comparer.component.ts +0 -188
- package/src/components/comparer/comparer.styles.ts +0 -73
- package/src/components/comparer/comparer.ts +0 -10
- package/src/components/copy-button/copy-button.component.ts +0 -272
- package/src/components/copy-button/copy-button.styles.ts +0 -59
- package/src/components/copy-button/copy-button.ts +0 -10
- package/src/components/details/details.component.ts +0 -259
- package/src/components/details/details.styles.ts +0 -84
- package/src/components/details/details.ts +0 -10
- package/src/components/dialog/dialog.component.ts +0 -403
- package/src/components/dialog/dialog.styles.ts +0 -121
- package/src/components/dialog/dialog.ts +0 -10
- package/src/components/divider/divider.component.ts +0 -42
- package/src/components/divider/divider.styles.ts +0 -27
- package/src/components/divider/divider.ts +0 -10
- package/src/components/drawer/drawer.component.ts +0 -565
- package/src/components/drawer/drawer.styles.ts +0 -155
- package/src/components/drawer/drawer.ts +0 -10
- package/src/components/dropdown/dropdown.component.ts +0 -430
- package/src/components/dropdown/dropdown.styles.ts +0 -50
- package/src/components/dropdown/dropdown.ts +0 -10
- package/src/components/icon/icon.component.ts +0 -239
- package/src/components/icon/icon.styles.ts +0 -47
- package/src/components/icon/icon.ts +0 -10
- package/src/components/icon/library.default.ts +0 -10
- package/src/components/icon/library.system.ts +0 -136
- package/src/components/icon/library.ts +0 -54
- package/src/components/icon-button/icon-button.component.ts +0 -129
- package/src/components/icon-button/icon-button.styles.ts +0 -51
- package/src/components/icon-button/icon-button.ts +0 -10
- package/src/components/input/input.component.ts +0 -496
- package/src/components/input/input.styles.ts +0 -306
- package/src/components/input/input.ts +0 -10
- package/src/components/menu/menu.component.ts +0 -161
- package/src/components/menu/menu.styles.ts +0 -18
- package/src/components/menu/menu.ts +0 -10
- package/src/components/menu-item/menu-item.component.ts +0 -190
- package/src/components/menu-item/menu-item.styles.ts +0 -155
- package/src/components/menu-item/menu-item.ts +0 -10
- package/src/components/menu-item/submenu-controller.ts +0 -337
- package/src/components/menu-label/menu-label.component.ts +0 -22
- package/src/components/menu-label/menu-label.styles.ts +0 -20
- package/src/components/menu-label/menu-label.ts +0 -10
- package/src/components/option/option.component.ts +0 -141
- package/src/components/option/option.styles.ts +0 -106
- package/src/components/option/option.ts +0 -10
- package/src/components/popup/popup.component.ts +0 -540
- package/src/components/popup/popup.styles.ts +0 -63
- package/src/components/popup/popup.ts +0 -12
- package/src/components/qr-code/qr-code.component.ts +0 -70
- package/src/components/qr-code/qr-code.styles.ts +0 -7
- package/src/components/qr-code/qr-code.ts +0 -10
- package/src/components/radio/radio.component.ts +0 -100
- package/src/components/radio/radio.styles.ts +0 -130
- package/src/components/radio/radio.ts +0 -10
- package/src/components/radio-button/radio-button.component.ts +0 -116
- package/src/components/radio-button/radio-button.styles.ts +0 -23
- package/src/components/radio-button/radio-button.ts +0 -10
- package/src/components/radio-group/radio-group.component.ts +0 -404
- package/src/components/radio-group/radio-group.styles.ts +0 -40
- package/src/components/radio-group/radio-group.ts +0 -10
- package/src/components/rating/rating.component.ts +0 -319
- package/src/components/rating/rating.styles.ts +0 -92
- package/src/components/rating/rating.ts +0 -10
- package/src/components/resize-observer/resize-observer.component.ts +0 -91
- package/src/components/resize-observer/resize-observer.styles.ts +0 -7
- package/src/components/resize-observer/resize-observer.ts +0 -10
- package/src/components/select/select.component.ts +0 -1013
- package/src/components/select/select.styles.ts +0 -361
- package/src/components/select/select.ts +0 -10
- package/src/components/spinner/spinner.component.ts +0 -38
- package/src/components/spinner/spinner.styles.ts +0 -59
- package/src/components/spinner/spinner.ts +0 -10
- package/src/components/switch/switch.component.ts +0 -253
- package/src/components/switch/switch.styles.ts +0 -176
- package/src/components/switch/switch.ts +0 -10
- package/src/components/tab/tab.component.ts +0 -87
- package/src/components/tab/tab.styles.ts +0 -83
- package/src/components/tab/tab.ts +0 -10
- package/src/components/tab-group/tab-group.component.ts +0 -607
- package/src/components/tab-group/tab-group.styles.ts +0 -217
- package/src/components/tab-group/tab-group.ts +0 -10
- package/src/components/tab-panel/tab-panel.component.ts +0 -43
- package/src/components/tab-panel/tab-panel.styles.ts +0 -16
- package/src/components/tab-panel/tab-panel.ts +0 -10
- package/src/components/tag/tag.component.ts +0 -94
- package/src/components/tag/tag.styles.ts +0 -153
- package/src/components/tag/tag.ts +0 -10
- package/src/components/tooltip/tooltip.component.ts +0 -276
- package/src/components/tooltip/tooltip.styles.ts +0 -57
- package/src/components/tooltip/tooltip.ts +0 -10
- package/src/default.css +0 -1005
- package/src/events/events.ts +0 -35
- package/src/events/pc-after-collapse.ts +0 -7
- package/src/events/pc-after-expand.ts +0 -7
- package/src/events/pc-after-hide.ts +0 -7
- package/src/events/pc-after-show.ts +0 -7
- package/src/events/pc-blur.ts +0 -7
- package/src/events/pc-cancel.ts +0 -7
- package/src/events/pc-change.ts +0 -7
- package/src/events/pc-clear.ts +0 -7
- package/src/events/pc-close.ts +0 -7
- package/src/events/pc-collapse.ts +0 -7
- package/src/events/pc-copy.ts +0 -7
- package/src/events/pc-error.ts +0 -7
- package/src/events/pc-expand.ts +0 -7
- package/src/events/pc-finish.ts +0 -7
- package/src/events/pc-focus.ts +0 -7
- package/src/events/pc-hide.ts +0 -7
- package/src/events/pc-hover.ts +0 -10
- package/src/events/pc-initial-focus.ts +0 -7
- package/src/events/pc-input.ts +0 -7
- package/src/events/pc-invalid.ts +0 -7
- package/src/events/pc-lazy-change.ts +0 -7
- package/src/events/pc-lazy-load.ts +0 -7
- package/src/events/pc-load.ts +0 -7
- package/src/events/pc-mutation.ts +0 -7
- package/src/events/pc-remove.ts +0 -7
- package/src/events/pc-reposition.ts +0 -7
- package/src/events/pc-request-close.ts +0 -9
- package/src/events/pc-resize.ts +0 -7
- package/src/events/pc-select.ts +0 -9
- package/src/events/pc-selection-change.ts +0 -10
- package/src/events/pc-show.ts +0 -7
- package/src/events/pc-slide-change.ts +0 -13
- package/src/events/pc-start.ts +0 -7
- package/src/events/pc-tab-hide.ts +0 -7
- package/src/events/pc-tab-show.ts +0 -7
- package/src/global-shims.ts +0 -126
- package/src/global.d.ts +0 -31
- package/src/internal/active-elements.ts +0 -21
- package/src/internal/animate.ts +0 -62
- package/src/internal/close-active-element.ts +0 -7
- package/src/internal/debounce.ts +0 -25
- package/src/internal/default-value.ts +0 -40
- package/src/internal/drag.ts +0 -36
- package/src/internal/emit.ts +0 -19
- package/src/internal/event.ts +0 -12
- package/src/internal/form.ts +0 -389
- package/src/internal/math.ts +0 -14
- package/src/internal/modal.ts +0 -157
- package/src/internal/offset.ts +0 -12
- package/src/internal/scroll.ts +0 -95
- package/src/internal/scrollend-polyfill.ts +0 -99
- package/src/internal/slot.ts +0 -110
- package/src/internal/string.ts +0 -3
- package/src/internal/tabbable.ts +0 -207
- package/src/internal/watch.ts +0 -58
- package/src/native-styles.css +0 -261
- package/src/placer-autoloader.ts +0 -53
- package/src/placer.ts +0 -53
- package/src/style-utilities/fouce.css +0 -13
- package/src/style-utilities/style-utilities.css +0 -2
- package/src/style-utilities/visually-hidden.css +0 -12
- package/src/utilities/animation-registry.ts +0 -72
- package/src/utilities/animation.ts +0 -4
- package/src/utilities/base-path.ts +0 -39
- package/src/utilities/form.ts +0 -41
- package/src/utilities/icon-library.ts +0 -4
- package/src/utility.css +0 -41
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import{a as it}from"./chunk.7UYSBZLK.js";import{a as nt}from"./chunk.RYPVSVQS.js";import{a as Q}from"./chunk.63PFEC3G.js";import{a as k}from"./chunk.KWVZRE3E.js";import{f as ot}from"./chunk.5YXXLUP2.js";import{a as et}from"./chunk.RWQ2HCYN.js";import{a as st}from"./chunk.W5PM7F34.js";import{a as D}from"./chunk.XESREUP5.js";import{a as tt}from"./chunk.BSQP4EKW.js";import{a as S}from"./chunk.KKVT4LHX.js";import{a as rt}from"./chunk.7YEJIK24.js";import{a as B}from"./chunk.RZZMGXAZ.js";import{a as W,b as f,c as x,d as Z,e as E,g as J}from"./chunk.NYYTSWQF.js";import{a as m}from"./chunk.ZS4GILCB.js";import{a as z}from"./chunk.OOQOIJSK.js";import{a as c}from"./chunk.U2DNK7H4.js";import{a as F}from"./chunk.PSDD6Q4W.js";import{a as T}from"./chunk.H2EOXVSZ.js";import{a as P}from"./chunk.D5CFOPIE.js";import{a as K,c as N}from"./chunk.N5AZOOIZ.js";import{a as at}from"./chunk.E4QLFQIH.js";import{d as w}from"./chunk.2N5ZK4F4.js";import{b as _}from"./chunk.IIHX5LOR.js";import{b as h}from"./chunk.E6MOE4FE.js";function d(i,e){vt(i)&&(i="100%");let t=yt(i);return i=e===360?i:Math.min(e,Math.max(0,parseFloat(i))),t&&(i=parseInt(String(i*e),10)/100),Math.abs(i-e)<1e-6?1:(e===360?i=(i<0?i%e+e:i%e)/parseFloat(String(e)):i=i%e/parseFloat(String(e)),i)}function C(i){return Math.min(1,Math.max(0,i))}function vt(i){return typeof i=="string"&&i.indexOf(".")!==-1&&parseFloat(i)===1}function yt(i){return typeof i=="string"&&i.indexOf("%")!==-1}function L(i){return i=parseFloat(i),(isNaN(i)||i<0||i>1)&&(i=1),i}function A(i){return Number(i)<=1?`${Number(i)*100}%`:i}function $(i){return i.length===1?"0"+i:String(i)}function lt(i,e,t){return{r:d(i,255)*255,g:d(e,255)*255,b:d(t,255)*255}}function Y(i,e,t){i=d(i,255),e=d(e,255),t=d(t,255);let r=Math.max(i,e,t),s=Math.min(i,e,t),a=0,n=0,o=(r+s)/2;if(r===s)n=0,a=0;else{let p=r-s;switch(n=o>.5?p/(2-r-s):p/(r+s),r){case i:a=(e-t)/p+(e<t?6:0);break;case e:a=(t-i)/p+2;break;case t:a=(i-e)/p+4;break;default:break}a/=6}return{h:a,s:n,l:o}}function q(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*(6*t):t<1/2?e:t<2/3?i+(e-i)*(2/3-t)*6:i}function ht(i,e,t){let r,s,a;if(i=d(i,360),e=d(e,100),t=d(t,100),e===0)s=t,a=t,r=t;else{let n=t<.5?t*(1+e):t+e-t*e,o=2*t-n;r=q(o,n,i+1/3),s=q(o,n,i),a=q(o,n,i-1/3)}return{r:r*255,g:s*255,b:a*255}}function j(i,e,t){i=d(i,255),e=d(e,255),t=d(t,255);let r=Math.max(i,e,t),s=Math.min(i,e,t),a=0,n=r,o=r-s,p=r===0?0:o/r;if(r===s)a=0;else{switch(r){case i:a=(e-t)/o+(e<t?6:0);break;case e:a=(t-i)/o+2;break;case t:a=(i-e)/o+4;break;default:break}a/=6}return{h:a,s:p,v:n}}function ut(i,e,t){i=d(i,360)*6,e=d(e,100),t=d(t,100);let r=Math.floor(i),s=i-r,a=t*(1-e),n=t*(1-s*e),o=t*(1-(1-s)*e),p=r%6,b=[t,n,a,a,o,t][p],u=[o,t,t,n,a,a][p],H=[a,a,o,t,t,n][p];return{r:b*255,g:u*255,b:H*255}}function O(i,e,t,r){let s=[$(Math.round(i).toString(16)),$(Math.round(e).toString(16)),$(Math.round(t).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function ct(i,e,t,r,s){let a=[$(Math.round(i).toString(16)),$(Math.round(e).toString(16)),$(Math.round(t).toString(16)),$(wt(r))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function pt(i,e,t,r){let s=i/100,a=e/100,n=t/100,o=r/100,p=255*(1-s)*(1-o),b=255*(1-a)*(1-o),u=255*(1-n)*(1-o);return{r:p,g:b,b:u}}function G(i,e,t){let r=1-i/255,s=1-e/255,a=1-t/255,n=Math.min(r,s,a);return n===1?(r=0,s=0,a=0):(r=(r-n)/(1-n)*100,s=(s-n)/(1-n)*100,a=(a-n)/(1-n)*100),n*=100,{c:Math.round(r),m:Math.round(s),y:Math.round(a),k:Math.round(n)}}function wt(i){return Math.round(parseFloat(i)*255).toString(16)}function U(i){return g(i)/255}function g(i){return parseInt(i,16)}function dt(i){return{r:i>>16,g:(i&65280)>>8,b:i&255}}var V={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ft(i){let e={r:0,g:0,b:0},t=1,r=null,s=null,a=null,n=!1,o=!1;return typeof i=="string"&&(i=$t(i)),typeof i=="object"&&(v(i.r)&&v(i.g)&&v(i.b)?(e=lt(i.r,i.g,i.b),n=!0,o=String(i.r).substr(-1)==="%"?"prgb":"rgb"):v(i.h)&&v(i.s)&&v(i.v)?(r=A(i.s),s=A(i.v),e=ut(i.h,r,s),n=!0,o="hsv"):v(i.h)&&v(i.s)&&v(i.l)?(r=A(i.s),a=A(i.l),e=ht(i.h,r,a),n=!0,o="hsl"):v(i.c)&&v(i.m)&&v(i.y)&&v(i.k)&&(e=pt(i.c,i.m,i.y,i.k),n=!0,o="cmyk"),Object.prototype.hasOwnProperty.call(i,"a")&&(t=i.a)),t=L(t),{ok:n,format:i.format||o,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var xt="[-\\+]?\\d+%?",kt="[-\\+]?\\d*\\.\\d+%?",M="(?:"+kt+")|(?:"+xt+")",X="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",I="[\\s|\\(]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")[,|\\s]+("+M+")\\s*\\)?",y={CSS_UNIT:new RegExp(M),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+I),cmyk:new RegExp("cmyk"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $t(i){if(i=i.trim().toLowerCase(),i.length===0)return!1;let e=!1;if(V[i])i=V[i],e=!0;else if(i==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=y.rgb.exec(i);return t?{r:t[1],g:t[2],b:t[3]}:(t=y.rgba.exec(i),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=y.hsl.exec(i),t?{h:t[1],s:t[2],l:t[3]}:(t=y.hsla.exec(i),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=y.hsv.exec(i),t?{h:t[1],s:t[2],v:t[3]}:(t=y.hsva.exec(i),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=y.cmyk.exec(i),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=y.hex8.exec(i),t?{r:g(t[1]),g:g(t[2]),b:g(t[3]),a:U(t[4]),format:e?"name":"hex8"}:(t=y.hex6.exec(i),t?{r:g(t[1]),g:g(t[2]),b:g(t[3]),format:e?"name":"hex"}:(t=y.hex4.exec(i),t?{r:g(t[1]+t[1]),g:g(t[2]+t[2]),b:g(t[3]+t[3]),a:U(t[4]+t[4]),format:e?"name":"hex8"}:(t=y.hex3.exec(i),t?{r:g(t[1]+t[1]),g:g(t[2]+t[2]),b:g(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function v(i){return typeof i=="number"?!Number.isNaN(i):y.CSS_UNIT.test(i)}var R=class i{constructor(e="",t={}){if(e instanceof i)return e;typeof e=="number"&&(e=dt(e)),this.originalInput=e;let r=ft(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??r.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){let e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){let e=this.toRgb(),t,r,s,a=e.r/255,n=e.g/255,o=e.b/255;return a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),n<=.03928?r=n/12.92:r=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*r+.0722*s}getAlpha(){return this.a}setAlpha(e){return this.a=L(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){let{s:e}=this.toHsl();return e===0}toHsv(){let e=j(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){let e=j(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),s=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${r}%, ${s}%)`:`hsva(${t}, ${r}%, ${s}%, ${this.roundA})`}toHsl(){let e=Y(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){let e=Y(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),s=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${r}%, ${s}%)`:`hsla(${t}, ${r}%, ${s}%, ${this.roundA})`}toHex(e=!1){return O(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return ct(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){let e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${r})`:`rgba(${e}, ${t}, ${r}, ${this.roundA})`}toPercentageRgb(){let e=t=>`${Math.round(d(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){let e=t=>Math.round(d(t,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...G(this.r,this.g,this.b)}}toCmykString(){let{c:e,m:t,y:r,k:s}=G(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${r}, ${s})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;let e="#"+O(this.r,this.g,this.b,!1);for(let[t,r]of Object.entries(V))if(e===r)return t;return!1}toString(e){let t=!!e;e=e??this.format;let r=!1,s=this.a<1&&this.a>=0;return!t&&s&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),e==="cmyk"&&(r=this.toCmykString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new i(this.toString())}lighten(e=10){let t=this.toHsl();return t.l+=e/100,t.l=C(t.l),new i(t)}brighten(e=10){let t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new i(t)}darken(e=10){let t=this.toHsl();return t.l-=e/100,t.l=C(t.l),new i(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){let t=this.toHsl();return t.s-=e/100,t.s=C(t.s),new i(t)}saturate(e=10){let t=this.toHsl();return t.s+=e/100,t.s=C(t.s),new i(t)}greyscale(){return this.desaturate(100)}spin(e){let t=this.toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,new i(t)}mix(e,t=50){let r=this.toRgb(),s=new i(e).toRgb(),a=t/100,n={r:(s.r-r.r)*a+r.r,g:(s.g-r.g)*a+r.g,b:(s.b-r.b)*a+r.b,a:(s.a-r.a)*a+r.a};return new i(n)}analogous(e=6,t=30){let r=this.toHsl(),s=360/t,a=[this];for(r.h=(r.h-(s*e>>1)+720)%360;--e;)r.h=(r.h+s)%360,a.push(new i(r));return a}complement(){let e=this.toHsl();return e.h=(e.h+180)%360,new i(e)}monochromatic(e=6){let t=this.toHsv(),{h:r}=t,{s}=t,{v:a}=t,n=[],o=1/e;for(;e--;)n.push(new i({h:r,s,v:a})),a=(a+o)%1;return n}splitcomplement(){let e=this.toHsl(),{h:t}=e;return[this,new i({h:(t+72)%360,s:e.s,l:e.l}),new i({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){let t=this.toRgb(),r=new i(e).toRgb(),s=t.a+r.a*(1-t.a);return new i({r:(t.r*t.a+r.r*r.a*(1-t.a))/s,g:(t.g*t.a+r.g*r.a*(1-t.a))/s,b:(t.b*t.a+r.b*r.a*(1-t.a))/s,a:s})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){let t=this.toHsl(),{h:r}=t,s=[this],a=360/e;for(let n=1;n<e;n++)s.push(new i({h:(r+n*a)%360,s:t.s,l:t.l}));return s}equals(e){let t=new i(e);return this.format==="cmyk"||t.format==="cmyk"?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}};var gt=`:host {
|
|
2
|
+
--grid-width: 17em;
|
|
3
|
+
--grid-height: 12em;
|
|
4
|
+
--grid-handle-size: 1.25em;
|
|
5
|
+
--slider-height: 1em;
|
|
6
|
+
--slider-thumb-size: calc(var(--slider-height) + 0.25em);
|
|
7
|
+
--swatch-size: 1.5em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.color-picker {
|
|
11
|
+
inline-size: var(--grid-width);
|
|
12
|
+
background-color: var(--pc-color-surface-raised);
|
|
13
|
+
color: var(--pc-color-text-normal);
|
|
14
|
+
border: var(--pc-border-width-s) var(--pc-border-style)
|
|
15
|
+
var(--pc-color-surface-border);
|
|
16
|
+
border-radius: var(--pc-border-radius-l);
|
|
17
|
+
font-family: var(--pc-font-sans);
|
|
18
|
+
font-size: inherit;
|
|
19
|
+
font-weight: var(--pc-font-weight-normal);
|
|
20
|
+
user-select: none;
|
|
21
|
+
-webkit-user-select: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.color-picker.inline {
|
|
25
|
+
border: var(--pc-border-width-s) var(--pc-border-style)
|
|
26
|
+
var(--pc-color-surface-border);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.color-picker.inline:focus-visible {
|
|
30
|
+
outline: var(--pc-focus-ring);
|
|
31
|
+
outline-offset: var(--pc-focus-ring-offset);
|
|
32
|
+
animation: focus-ring-animation var(--pc-transition-medium)
|
|
33
|
+
cubic-bezier(0.33, 1, 0.68, 1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.color-picker.inline .label,
|
|
37
|
+
.color-picker.inline .label * {
|
|
38
|
+
position: absolute !important;
|
|
39
|
+
margin: -1px !important;
|
|
40
|
+
padding: 0 !important;
|
|
41
|
+
inline-size: 1px !important;
|
|
42
|
+
block-size: 1px !important;
|
|
43
|
+
width: 1px !important;
|
|
44
|
+
height: 1px !important;
|
|
45
|
+
clip-path: inset(50%) !important;
|
|
46
|
+
border: none !important;
|
|
47
|
+
overflow: hidden !important;
|
|
48
|
+
white-space: nowrap !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.grid {
|
|
52
|
+
position: relative;
|
|
53
|
+
block-size: var(--grid-height);
|
|
54
|
+
background-image:
|
|
55
|
+
linear-gradient(to bottom, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 100%) 100%),
|
|
56
|
+
linear-gradient(
|
|
57
|
+
to right,
|
|
58
|
+
rgb(255 255 255 / 100%) 0%,
|
|
59
|
+
rgb(255 255 255 / 0%) 100%
|
|
60
|
+
);
|
|
61
|
+
border-start-start-radius: var(--pc-border-radius-l);
|
|
62
|
+
border-start-end-radius: var(--pc-border-radius-l);
|
|
63
|
+
cursor: crosshair;
|
|
64
|
+
forced-color-adjust: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.grid-handle {
|
|
68
|
+
position: absolute;
|
|
69
|
+
margin-top: calc(var(--grid-handle-size) / -2);
|
|
70
|
+
margin-left: calc(var(--grid-handle-size) / -2);
|
|
71
|
+
inline-size: var(--grid-handle-size);
|
|
72
|
+
block-size: var(--grid-handle-size);
|
|
73
|
+
border: var(--pc-border-width-m) var(--pc-border-style)
|
|
74
|
+
var(--pc-color-neutral-95);
|
|
75
|
+
border-radius: var(--pc-border-radius-circle);
|
|
76
|
+
box-shadow: 0 0 0 var(--pc-border-width-s)
|
|
77
|
+
color-mix(in oklab, var(--pc-color-neutral-05) 25%, transparent);
|
|
78
|
+
z-index: 1;
|
|
79
|
+
transition: scale var(--pc-transition-fast) ease-in-out;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.grid-handle.dragging {
|
|
83
|
+
scale: 1.5;
|
|
84
|
+
cursor: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.grid-handle:focus-visible {
|
|
88
|
+
outline: var(--pc-focus-ring);
|
|
89
|
+
animation: focus-ring-animation var(--pc-transition-medium)
|
|
90
|
+
cubic-bezier(0.33, 1, 0.68, 1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.controls {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
padding: var(--pc-spacing-m);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.sliders {
|
|
100
|
+
flex: 1 1 auto;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.slider {
|
|
104
|
+
position: relative;
|
|
105
|
+
block-size: var(--slider-height);
|
|
106
|
+
border-radius: var(--pc-border-radius-pill);
|
|
107
|
+
box-shadow: inset 0 0 0 var(--pc-border-style)
|
|
108
|
+
color-mix(in oklab, var(--pc-color-neutral-05) 20%, transparent);
|
|
109
|
+
forced-color-adjust: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.slider:not(:last-of-type) {
|
|
113
|
+
margin-block-end: var(--pc-spacing-s);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.slider .slider-thumb {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: calc(50% - var(--slider-thumb-size) / 2);
|
|
119
|
+
margin-left: calc(var(--slider-thumb-size) / -2);
|
|
120
|
+
inline-size: var(--slider-thumb-size);
|
|
121
|
+
block-size: var(--slider-thumb-size);
|
|
122
|
+
background-color: var(--pc-color-neutral-95);
|
|
123
|
+
border-radius: var(--pc-border-radius-circle);
|
|
124
|
+
box-shadow: color-mix(
|
|
125
|
+
in oklab,
|
|
126
|
+
var(--pc-color-neutral-05) 25%,
|
|
127
|
+
transparent
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.slider .slider-thumb:focus-visible {
|
|
132
|
+
outline: var(--pc-focus-ring);
|
|
133
|
+
outline-offset: var(--pc-focus-ring-offset);
|
|
134
|
+
animation: focus-ring-animation var(--pc-transition-medium)
|
|
135
|
+
cubic-bezier(0.33, 1, 0.68, 1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.hue-slider {
|
|
139
|
+
background-image: linear-gradient(
|
|
140
|
+
to right,
|
|
141
|
+
hsl(0 100% 50%) 0%,
|
|
142
|
+
hsl(60 100% 50%) 16.7%,
|
|
143
|
+
hsl(120 100% 50%) 33.3%,
|
|
144
|
+
hsl(180 100% 50%) 50%,
|
|
145
|
+
hsl(240 100% 50%) 66.7%,
|
|
146
|
+
hsl(300 100% 50%) 83.3%,
|
|
147
|
+
hsl(360 100% 50%) 100%
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.alpha-slider .alpha-gradient {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 0;
|
|
154
|
+
left: 0;
|
|
155
|
+
inline-size: 100%;
|
|
156
|
+
block-size: 100%;
|
|
157
|
+
border-radius: inherit;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.preview {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
position: relative;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
flex: 0 0 auto;
|
|
166
|
+
margin-inline-start: var(--pc-spacing-m);
|
|
167
|
+
inline-size: 2.25rem;
|
|
168
|
+
block-size: 2.25rem;
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
border: none;
|
|
171
|
+
border-radius: var(--pc-border-radius-circle);
|
|
172
|
+
forced-color-adjust: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.preview::before {
|
|
176
|
+
content: "";
|
|
177
|
+
position: absolute;
|
|
178
|
+
inset-block-start: 0;
|
|
179
|
+
inset-inline-start: 0;
|
|
180
|
+
inline-size: 100%;
|
|
181
|
+
block-size: 100%;
|
|
182
|
+
background-color: var(--preview-color);
|
|
183
|
+
border-radius: inherit;
|
|
184
|
+
box-shadow: inset 0 0 0 var(--pc-border-width-s)
|
|
185
|
+
color-mix(in oklab, var(--pc-color-neutral-05) 20%, transparent);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.user-input {
|
|
189
|
+
display: flex;
|
|
190
|
+
padding-inline: var(--pc-spacing-m);
|
|
191
|
+
padding-block-start: 0;
|
|
192
|
+
padding-block-end: var(--pc-spacing-m);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.user-input pc-input {
|
|
196
|
+
flex: 1 1 auto;
|
|
197
|
+
min-inline-size: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.user-input pc-input::part(input) {
|
|
201
|
+
padding-inline-end: var(--pc-spacing-xxs);
|
|
202
|
+
background-color: var(--pc-color-surface-raised);
|
|
203
|
+
overflow: visible;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Bug: This does not remove the focus ring for some reason. */
|
|
207
|
+
.user-input pc-input:has(> pc-copy-button:focus-visible) {
|
|
208
|
+
--pc-focus-ring: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.user-input pc-input pc-copy-button {
|
|
212
|
+
margin-inline-start: var(--pc-spacing-xs);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.user-input pc-input.empty::part(input) {
|
|
216
|
+
padding-inline-end: var(--pc-form-control-padding-inline);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.user-input pc-input.empty pc-copy-button {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.user-input pc-copy-button::part(button) {
|
|
224
|
+
aspect-ratio: 1 / 1;
|
|
225
|
+
background-color: transparent;
|
|
226
|
+
color: var(--pc-color-text-normal);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.user-input pc-copy-button::part(success-icon) {
|
|
230
|
+
color: var(--pc-color-success-on-quiet);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.user-input pc-copy-button::part(error-icon) {
|
|
234
|
+
color: var(--pc-color-danger-on-quiet);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (hover: hover) {
|
|
238
|
+
.user-input pc-copy-button::part(button):hover {
|
|
239
|
+
color: color-mix(
|
|
240
|
+
in oklab,
|
|
241
|
+
var(--pc-color-text-normal),
|
|
242
|
+
var(--pc-color-mix-hover)
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.user-input pc-copy-button::part(button):active {
|
|
248
|
+
color: color-mix(
|
|
249
|
+
in oklab,
|
|
250
|
+
var(--pc-color-text-normal),
|
|
251
|
+
var(--pc-color-mix-active)
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.user-input pc-button-group {
|
|
256
|
+
margin-inline-start: var(--pc-spacing-s);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.user-input pc-button:first-of-type {
|
|
260
|
+
min-inline-size: 3.25em;
|
|
261
|
+
max-inline-size: 3.25em;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.swatches {
|
|
265
|
+
display: grid;
|
|
266
|
+
justify-items: center;
|
|
267
|
+
grid-template-columns: repeat(8, 1fr);
|
|
268
|
+
gap: var(--pc-spacing-s);
|
|
269
|
+
padding: var(--pc-spacing-m);
|
|
270
|
+
border-block-start: var(--pc-border-width-s) var(--pc-border-style)
|
|
271
|
+
var(--pc-color-surface-border);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.swatches .swatch {
|
|
275
|
+
position: relative;
|
|
276
|
+
inline-size: var(--swatch-size);
|
|
277
|
+
block-size: var(--swatch-size);
|
|
278
|
+
border-radius: var(--pc-border-radius-circle);
|
|
279
|
+
forced-color-adjust: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.swatches .swatch:focus-visible {
|
|
283
|
+
outline: var(--pc-focus-ring);
|
|
284
|
+
outline-offset: var(--pc-focus-ring-offset);
|
|
285
|
+
animation: focus-ring-animation var(--pc-transition-medium)
|
|
286
|
+
cubic-bezier(0.33, 1, 0.68, 1);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.swatches .swatch .swatch-color {
|
|
290
|
+
position: absolute;
|
|
291
|
+
inset-block-start: 0;
|
|
292
|
+
inset-inline-start: 0;
|
|
293
|
+
inline-size: 100%;
|
|
294
|
+
block-size: 100%;
|
|
295
|
+
border: solid 1px rgba(0, 0, 0, 0.125);
|
|
296
|
+
box-shadow: inset 0 0 0 var(--pc-border-width-s)
|
|
297
|
+
color-mix(in oklab, var(--pc-color-neutral-05) 20%, transparent);
|
|
298
|
+
border-radius: inherit;
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.pixel-background {
|
|
303
|
+
background-image:
|
|
304
|
+
linear-gradient(
|
|
305
|
+
45deg,
|
|
306
|
+
var(--pc-color-neutral-fill-normal) 25%,
|
|
307
|
+
transparent 25%
|
|
308
|
+
),
|
|
309
|
+
linear-gradient(
|
|
310
|
+
45deg,
|
|
311
|
+
transparent 75%,
|
|
312
|
+
var(--pc-color-neutral-fill-normal) 75%
|
|
313
|
+
),
|
|
314
|
+
linear-gradient(
|
|
315
|
+
45deg,
|
|
316
|
+
transparent 75%,
|
|
317
|
+
var(--pc-color-neutral-fill-normal) 75%
|
|
318
|
+
),
|
|
319
|
+
linear-gradient(
|
|
320
|
+
45deg,
|
|
321
|
+
var(--pc-color-neutral-fill-normal) 25%,
|
|
322
|
+
transparent 25%
|
|
323
|
+
);
|
|
324
|
+
background-size: 0.5rem 0.5rem;
|
|
325
|
+
background-position:
|
|
326
|
+
0 0,
|
|
327
|
+
0 0,
|
|
328
|
+
-0.25rem -0.25rem,
|
|
329
|
+
0.25rem 0.25rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.color-picker.disabled {
|
|
333
|
+
opacity: 0.5;
|
|
334
|
+
cursor: not-allowed;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.color-picker.disabled .grid,
|
|
338
|
+
.color-picker.disabled .grid-handle,
|
|
339
|
+
.color-picker.disabled .sliders .slider,
|
|
340
|
+
.color-picker.disabled .sliders .slider .slider-thumb,
|
|
341
|
+
.color-picker.disabled .preview,
|
|
342
|
+
.color-picker.disabled .swatches .swatch,
|
|
343
|
+
.color-picker.disabled .swatches .swatch .swatch-color {
|
|
344
|
+
pointer-events: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.color-popup::part(popup) {
|
|
348
|
+
max-block-size: none;
|
|
349
|
+
overflow: visible;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.popup-trigger {
|
|
353
|
+
display: inline-block;
|
|
354
|
+
position: relative;
|
|
355
|
+
inline-size: var(--pc-form-control-height);
|
|
356
|
+
block-size: var(--pc-form-control-height);
|
|
357
|
+
background-color: transparent;
|
|
358
|
+
border: none;
|
|
359
|
+
border-radius: var(--pc-border-radius-m);
|
|
360
|
+
font-size: inherit;
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
forced-color-adjust: none;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.popup-trigger::before {
|
|
366
|
+
content: "";
|
|
367
|
+
position: absolute;
|
|
368
|
+
inset-block-start: 0;
|
|
369
|
+
inset-inline-end: 0;
|
|
370
|
+
inline-size: 100%;
|
|
371
|
+
block-size: 100%;
|
|
372
|
+
border-radius: inherit;
|
|
373
|
+
background-color: currentColor;
|
|
374
|
+
box-shadow:
|
|
375
|
+
inset 0 0 0 var(--pc-border-width-m) var(--pc-color-surface-border),
|
|
376
|
+
inset 0 0 0 var(--pc-border-width-xl) var(--pc-color-surface-default);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.popup-trigger.empty::before {
|
|
380
|
+
background-color: transparent;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.popup-trigger:focus-visible {
|
|
384
|
+
outline: none;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.popup-trigger:focus-visible:not([disabled]) {
|
|
388
|
+
outline: var(--pc-focus-ring);
|
|
389
|
+
outline-offset: var(--pc-focus-ring-offset);
|
|
390
|
+
animation: focus-ring-animation var(--pc-transition-medium)
|
|
391
|
+
cubic-bezier(0.33, 1, 0.68, 1);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.popup-trigger[disabled] {
|
|
395
|
+
opacity: 0.5;
|
|
396
|
+
cursor: not-allowed;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@keyframes focus-ring-animation {
|
|
400
|
+
0% {
|
|
401
|
+
outline-width: 0;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
50% {
|
|
405
|
+
outline-width: calc(var(--pc-focus-ring-width) * 2);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
100% {
|
|
409
|
+
outline-width: var(--pc-focus-ring-width);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
`;var bt="EyeDropper"in window;K("colorPicker.show",{keyframes:[{offset:0,opacity:0,transform:"scaleY(0.35) scaleX(0.95) translateY(-10px) rotate(1deg)"},{offset:.25,opacity:1,transform:"scaleY(1.03) scaleX(1.005) translateY(2px) rotate(-0.5deg)"},{offset:.5,transform:"scaleY(0.995) scaleX(0.999) translateY(-0.5px) rotate(0.1deg)"},{offset:.75,transform:"scaleY(1.002) scaleX(1.0005) translateY(0.2px) rotate(-0.05deg)"},{offset:1,opacity:1,transform:"scaleY(1) scaleX(1) translateY(0) rotate(0deg)"}],options:{duration:1e3,easing:"cubic-bezier(0.2, 0.8, 0.2, 1)",fill:"forwards"}});K("colorPicker.hide",{keyframes:[{offset:0,opacity:1,transform:"scaleY(1) scaleX(1) translateY(0) rotate(0deg)"},{offset:.15,transform:"scaleY(1.005) scaleX(1.001) translateY(0.5px) rotate(-0.002deg)"},{offset:.4,transform:"scaleY(0.99) scaleX(0.998) translateY(-1px) rotate(0.008deg)"},{offset:.75,transform:"scaleY(0.6) scaleX(0.9) translateY(10px) rotate(0.007deg)"},{offset:1,opacity:0,transform:"scaleY(0.3) scaleX(0.8) translateY(25px) rotate(0.01deg)"}],options:{duration:400,easing:"cubic-bezier(0.6, 0.05, 0.8, 0.2)",fill:"forwards"}});var l=class extends J{constructor(){super();this.formControlController=new _(this);this.hasSlotController=new P(this,"label","hint");this.localize=new at(this);this.isSafeValue=!1;this.hasFocus=!1;this.isDraggingGridHandle=!1;this.isEmpty=!1;this.inputValue="";this.hue=0;this.saturation=100;this.brightness=100;this.alpha=100;this.value="";this.defaultValue="";this.label="";this.hint="";this.format="hex";this.inline=!1;this.size="medium";this.noFormatToggle=!1;this.name="";this.disabled=!1;this.open=!1;this.opacity=!1;this.uppercase=!1;this.swatches="";this.form="";this.required=!1;this.handleFocusIn=()=>{this.hasFocus=!0,c(this,"pc-focus")};this.handleFocusOut=()=>{this.hasFocus=!1,c(this,"pc-blur")};this.handleKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focus())};this.handleDocumentKeyDown=t=>{if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focus(),this.hide();return}t.key==="Tab"&&setTimeout(()=>{let r=this.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this||r?.closest(this.tagName.toLowerCase())!==this)&&this.hide()})};this.handleDocumentMouseDown=t=>{let s=t.composedPath().some(a=>a instanceof Element&&(a.closest(".color-picker")||a===this.trigger));this&&!s&&this.hide()};this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}firstUpdated(){this.input.updateComplete.then(()=>{this.formControlController.updateValidity()})}handleFormatToggle(){let t=["hex","rgb","hsl","hsv"],r=(t.indexOf(this.format)+1)%t.length;this.format=t[r],this.setColor(this.value),c(this,"pc-change"),c(this,"pc-input")}handleAlphaDrag(t){let r=this.shadowRoot.querySelector(".alpha-slider"),s=r.querySelector(".slider-thumb"),{width:a}=r.getBoundingClientRect(),n=this.value,o=this.value;s.focus(),t.preventDefault(),F(r,{onMove:p=>{this.alpha=m(p/a*100,0,100),this.syncValues(),this.value!==o&&(o=this.value,c(this,"pc-input"))},onStop:()=>{this.value!==n&&(n=this.value,c(this,"pc-change"))},initialEvent:t})}handleHueDrag(t){let r=this.shadowRoot.querySelector(".hue-slider"),s=r.querySelector(".slider-thumb"),{width:a}=r.getBoundingClientRect(),n=this.value,o=this.value;s.focus(),t.preventDefault(),F(r,{onMove:p=>{this.hue=m(p/a*360,0,360),this.syncValues(),this.value!==o&&(o=this.value,c(this,"pc-input"))},onStop:()=>{this.value!==n&&(n=this.value,c(this,"pc-change"))},initialEvent:t})}handleGridDrag(t){let r=this.shadowRoot.querySelector(".grid"),s=r.querySelector(".grid-handle"),{width:a,height:n}=r.getBoundingClientRect(),o=this.value,p=this.value;s.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,F(r,{onMove:(b,u)=>{this.saturation=m(b/a*100,0,100),this.brightness=m(100-u/n*100,0,100),this.syncValues(),this.value!==p&&(p=this.value,c(this,"pc-input"))},onStop:()=>{this.isDraggingGridHandle=!1,this.value!==o&&(o=this.value,c(this,"pc-change"))},initialEvent:t})}handleAlphaKeyDown(t){let r=t.shiftKey?10:1,s=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.alpha=m(this.alpha-r,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.alpha=m(this.alpha+r,0,100),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.alpha=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==s&&(c(this,"pc-change"),c(this,"pc-input"))}handleHueKeyDown(t){let r=t.shiftKey?10:1,s=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.hue=m(this.hue-r,0,360),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.hue=m(this.hue+r,0,360),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.hue=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==s&&(c(this,"pc-change"),c(this,"pc-input"))}handleGridKeyDown(t){let r=t.shiftKey?10:1,s=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=m(this.saturation-r,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=m(this.saturation+r,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=m(this.brightness+r,0,100),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=m(this.brightness-r,0,100),this.syncValues()),this.value!==s&&(c(this,"pc-change"),c(this,"pc-input"))}handleInputChange(t){let r=t.target,s=this.value;t.stopPropagation(),this.input.value?(this.setColor(r.value),r.value=this.value):this.value="",this.value!==s&&(c(this,"pc-change"),c(this,"pc-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if(t.key==="Enter"){let r=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==r&&(c(this,"pc-change"),c(this,"pc-input")),setTimeout(()=>this.input.select())):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){let r=new R(t);if(!r.isValid)return null;let s=r.toHsl(),a={h:s.h,s:s.s*100,l:s.l*100,a:s.a},n=r.toRgb(),o=r.toHexString(),p=r.toHex8String(),b=r.toHsv(),u={h:b.h,s:b.s*100,v:b.v*100,a:b.a};return{hsl:{h:a.h,s:a.s,l:a.l,string:this.setLetterCase(`hsl(${Math.round(a.h)} ${Math.round(a.s)}% ${Math.round(a.l)}%)`)},hsla:{h:a.h,s:a.s,l:a.l,a:a.a,string:this.setLetterCase(`hsl(${Math.round(a.h)} ${Math.round(a.s)}% ${Math.round(a.l)}% / ${a.a*100}%)`)},hsv:{h:u.h,s:u.s,v:u.v,string:this.setLetterCase(`hsv(${Math.round(u.h)} ${Math.round(u.s)}% ${Math.round(u.v)}%)`)},hsva:{h:u.h,s:u.s,v:u.v,a:u.a,string:this.setLetterCase(`hsv(${Math.round(u.h)} ${Math.round(u.s)}% ${Math.round(u.v)}% / ${u.a*100}%)`)},rgb:{r:n.r,g:n.g,b:n.b,string:this.setLetterCase(`rgb(${Math.round(n.r)} ${Math.round(n.g)} ${Math.round(n.b)})`)},rgba:{r:n.r,g:n.g,b:n.b,a:n.a,string:this.setLetterCase(`rgb(${Math.round(n.r)} ${Math.round(n.g)} ${Math.round(n.b)} / ${n.a*100}%)`)},hex:this.setLetterCase(o),hexa:this.setLetterCase(p)}}setColor(t){let r=this.parseColor(t);return r===null?!1:(this.hue=r.hsva.h,this.saturation=r.hsva.s,this.brightness=r.hsva.v,this.alpha=this.opacity?r.hsva.a*100:100,this.syncValues(),!0)}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){let t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${Math.round(this.alpha/100)})`);t!==null&&(this.format==="hsl"?this.inputValue=t.hsva.a<1?t.hsla.string:t.hsl.string:this.format==="rgb"?this.inputValue=t.hsva.a<1?t.rgba.string:t.rgb.string:this.format==="hsv"?this.inputValue=t.hsva.a<1?t.hsva.string:t.hsv.string:this.inputValue=t.hsva.a<1?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleEyeDropper(){if(!bt)return;new EyeDropper().open().then(r=>{let s=this.value;this.setColor(r.sRGBHex),this.value!==s&&(c(this,"pc-change"),c(this,"pc-input"))}).catch()}selectSwatch(t){let r=this.value;this.disabled||(this.setColor(t),this.value!==r&&(c(this,"pc-change"),c(this,"pc-input")))}getHexString(t,r,s,a=100){let n=new R(`hsva(${t}, ${r}%, ${s}%, ${a/100})`);return n.isValid?n.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,r){if(this.isEmpty=!r,r||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){let s=this.parseColor(r);s!==null?(this.inputValue=this.value,this.hue=s.hsva.h,this.saturation=s.hsva.s,this.brightness=s.hsva.v,this.alpha=s.hsva.a*100,this.syncValues()):this.inputValue=t??""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){let t=this.inline?this.base:this.trigger;this.hasFocus&&(t.focus({preventScroll:!0}),t.blur()),this.popup?.active&&this.hide()}getFormattedValue(t="hex"){let r=this.parseColor(`hsv(${this.hue} ${this.saturation}% ${this.brightness}% / ${this.alpha}%)`);if(r===null)return"";switch(t){case"hex":return r.hex;case"hexa":return r.hexa;case"rgb":return r.rgb.string;case"rgba":return r.rgba.string;case"hsl":return r.hsl.string;case"hsla":return r.hsla.string;case"hsv":return r.hsv.string;case"hsva":return r.hsva.string;default:return""}}handleTriggerClick(){this.open?this.hide():(this.show(),this.focus())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}updateAccessibleTrigger(){let t=this.trigger;t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}async show(){if(!this.open)return this.open=!0,z(this,"pc-after-show")}async hide(){if(this.open)return this.open=!1,z(this,"pc-after-hide")}addOpenListeners(){this.base.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.base&&this.base.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){c(this,"pc-show"),this.addOpenListeners(),await this.updateComplete,this.base.hidden=!1,this.popup.active=!0;let t=N(this,"colorPicker.show",{dir:this.localize.dir()});B(this.popup.popup,t.keyframes,t.options),z(this,"pc-after-show")}else{c(this,"pc-hide"),this.removeOpenListeners();let t=N(this,"colorPicker.hide",{dir:this.localize.dir()});await B(this.popup.popup,t.keyframes,t.options),this.base.hidden=!0,this.popup.active=!1,z(this,"pc-after-hide")}}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.inline&&!this.validity.valid&&!this.open?(this.show(),this.addEventListener("pc-after-show",()=>this.input.reportValidity(),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1):this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("hint"),s=this.label?!0:!!t,a=this.hint?!0:!!r,n=this.saturation,o=100-this.brightness,p=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter(u=>u.trim()!==""),b=w`
|
|
413
|
+
<div
|
|
414
|
+
part="base"
|
|
415
|
+
class=${S({"color-picker":!0,inline:this.inline,disabled:this.disabled,focused:this.hasFocus})}
|
|
416
|
+
aria-disabled=${this.disabled?"true":"false"}
|
|
417
|
+
aria-labelledby="label"
|
|
418
|
+
tabindex=${this.inline?"0":"-1"}
|
|
419
|
+
>
|
|
420
|
+
${this.inline?w`
|
|
421
|
+
<slot class="label" name="label">
|
|
422
|
+
${this.label}
|
|
423
|
+
</slot>
|
|
424
|
+
`:null}
|
|
425
|
+
|
|
426
|
+
<div
|
|
427
|
+
part="grid"
|
|
428
|
+
class="grid"
|
|
429
|
+
style=${k({backgroundColor:this.getHexString(this.hue,100,100)})}
|
|
430
|
+
@pointerdown=${this.handleGridDrag}
|
|
431
|
+
@touchmove=${this.handleTouchMove}
|
|
432
|
+
>
|
|
433
|
+
<span
|
|
434
|
+
part="grid-handle"
|
|
435
|
+
class=${S({"grid-handle":!0,dragging:this.isDraggingGridHandle})}
|
|
436
|
+
style=${k({top:`${o}%`,left:`${n}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
|
|
437
|
+
role="application"
|
|
438
|
+
aria-label="HSV"
|
|
439
|
+
tabindex=${D(this.disabled?void 0:"0")}
|
|
440
|
+
@keydown=${this.handleGridKeyDown}
|
|
441
|
+
></span>
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
<div class="controls">
|
|
445
|
+
<div class="sliders">
|
|
446
|
+
<div
|
|
447
|
+
part="slider hue-slider"
|
|
448
|
+
class="slider hue-slider"
|
|
449
|
+
@pointerdown=${this.handleHueDrag}
|
|
450
|
+
@touchmove=${this.handleTouchMove}
|
|
451
|
+
>
|
|
452
|
+
<span
|
|
453
|
+
part="slider-thumb hue-slider-thumb"
|
|
454
|
+
class="slider-thumb"
|
|
455
|
+
style=${k({left:`${this.hue===0?0:100/(360/this.hue)}%`})}
|
|
456
|
+
role="slider"
|
|
457
|
+
aria-label=${this.localize.term("hue")}
|
|
458
|
+
aria-orientation="horizontal"
|
|
459
|
+
aria-valuemin="0"
|
|
460
|
+
aria-valuemax="360"
|
|
461
|
+
aria-valuenow=${`${Math.round(this.hue)}`}
|
|
462
|
+
tabindex=${D(this.disabled?void 0:"0")}
|
|
463
|
+
@keydown=${this.handleHueKeyDown}
|
|
464
|
+
></span>
|
|
465
|
+
</div>
|
|
466
|
+
|
|
467
|
+
${this.opacity?w`
|
|
468
|
+
<div
|
|
469
|
+
part="slider opacity-slider"
|
|
470
|
+
class="slider alpha-slider pixel-background"
|
|
471
|
+
@pointerdown=${this.handleAlphaDrag}
|
|
472
|
+
@touchmove=${this.handleTouchMove}
|
|
473
|
+
>
|
|
474
|
+
<div
|
|
475
|
+
class="alpha-gradient"
|
|
476
|
+
style=${k({backgroundImage:`
|
|
477
|
+
linear-gradient(
|
|
478
|
+
to right,
|
|
479
|
+
${this.getHexString(this.hue,this.saturation,this.brightness,0)} 0%,
|
|
480
|
+
${this.getHexString(this.hue,this.saturation,this.brightness,100)} 100%
|
|
481
|
+
)
|
|
482
|
+
`})}
|
|
483
|
+
></div>
|
|
484
|
+
<span
|
|
485
|
+
part="slider-thumb opacity-slider-thumb"
|
|
486
|
+
class="slider-thumb"
|
|
487
|
+
style=${k({left:`${this.alpha}%`})}
|
|
488
|
+
role="slider"
|
|
489
|
+
aria-label=${this.localize.term("opacity")}
|
|
490
|
+
aria-orientation="horizontal"
|
|
491
|
+
aria-valuemin="0"
|
|
492
|
+
aria-valuemax="100"
|
|
493
|
+
aria-valuenow=${Math.round(this.alpha)}
|
|
494
|
+
tabindex=${D(this.disabled?void 0:"0")}
|
|
495
|
+
@keydown=${this.handleAlphaKeyDown}
|
|
496
|
+
></span>
|
|
497
|
+
</div>
|
|
498
|
+
`:""}
|
|
499
|
+
</div>
|
|
500
|
+
<div
|
|
501
|
+
part="preview"
|
|
502
|
+
class="preview pixel-background"
|
|
503
|
+
style=${k({"--preview-color":this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
|
|
504
|
+
></div>
|
|
505
|
+
</div>
|
|
506
|
+
|
|
507
|
+
<div class="user-input" aria-live="polite">
|
|
508
|
+
<pc-input
|
|
509
|
+
part="input"
|
|
510
|
+
class=${S({empty:this.isEmpty})}
|
|
511
|
+
type="text"
|
|
512
|
+
id="color-input"
|
|
513
|
+
name=${this.name}
|
|
514
|
+
size="small"
|
|
515
|
+
autocomplete="off"
|
|
516
|
+
autocorrect="off"
|
|
517
|
+
autocapitalize="off"
|
|
518
|
+
spellcheck="false"
|
|
519
|
+
value=${this.isEmpty?"":this.inputValue}
|
|
520
|
+
?required=${this.required}
|
|
521
|
+
?disabled=${this.disabled}
|
|
522
|
+
aria-label=${this.localize.term("currentValue")}
|
|
523
|
+
@keydown=${this.handleInputKeyDown}
|
|
524
|
+
@pc-change=${this.handleInputChange}
|
|
525
|
+
@pc-input=${this.handleInputInput}
|
|
526
|
+
@pc-focus=${this.stopNestedEventPropagation}
|
|
527
|
+
@pc-blur=${this.stopNestedEventPropagation}
|
|
528
|
+
@pc-invalid=${this.handleInputInvalid}
|
|
529
|
+
>
|
|
530
|
+
${this.isEmpty?null:w`
|
|
531
|
+
<pc-copy-button
|
|
532
|
+
part="copy-button"
|
|
533
|
+
class="copy-button"
|
|
534
|
+
from="color-input.value"
|
|
535
|
+
slot="suffix"
|
|
536
|
+
exportparts="button:copy-button-button"
|
|
537
|
+
></pc-copy-button>
|
|
538
|
+
`}
|
|
539
|
+
</pc-input>
|
|
540
|
+
|
|
541
|
+
<pc-button-group>
|
|
542
|
+
${this.noFormatToggle?"":w`
|
|
543
|
+
<pc-button
|
|
544
|
+
part="format-button"
|
|
545
|
+
size="small"
|
|
546
|
+
variant="outlined"
|
|
547
|
+
aria-label=${this.localize.term("toggleColorFormat")}
|
|
548
|
+
exportparts="
|
|
549
|
+
base:format-button-base,
|
|
550
|
+
prefix:format-button-prefix,
|
|
551
|
+
label:format-button-label,
|
|
552
|
+
suffix:format-button-suffix
|
|
553
|
+
"
|
|
554
|
+
@click=${this.handleFormatToggle}
|
|
555
|
+
@pc-focus=${this.stopNestedEventPropagation}
|
|
556
|
+
@pc-blur=${this.stopNestedEventPropagation}
|
|
557
|
+
>
|
|
558
|
+
${this.setLetterCase(this.format)}
|
|
559
|
+
</pc-button>
|
|
560
|
+
`}
|
|
561
|
+
${bt?w`
|
|
562
|
+
<pc-button
|
|
563
|
+
part="eyedropper-button"
|
|
564
|
+
size="small"
|
|
565
|
+
variant="outlined"
|
|
566
|
+
exportparts="
|
|
567
|
+
base:eyedropper-button-base,
|
|
568
|
+
prefix:eyedropper-button-prefix,
|
|
569
|
+
label:eyedropper-button-label,
|
|
570
|
+
suffix:eyedropper-button-suffix,
|
|
571
|
+
"
|
|
572
|
+
@click=${this.handleEyeDropper}
|
|
573
|
+
@pc-focus=${this.stopNestedEventPropagation}
|
|
574
|
+
@pc-blur=${this.stopNestedEventPropagation}
|
|
575
|
+
>
|
|
576
|
+
<pc-icon
|
|
577
|
+
library="system"
|
|
578
|
+
icon-style="solid"
|
|
579
|
+
name="eye-dropper"
|
|
580
|
+
label=${this.localize.term("pickAColorFromTheScreen")}
|
|
581
|
+
></pc-icon>
|
|
582
|
+
</pc-button>
|
|
583
|
+
`:""}
|
|
584
|
+
</pc-button-group>
|
|
585
|
+
</div>
|
|
586
|
+
|
|
587
|
+
${p.length>0?w`
|
|
588
|
+
<div part="swatches" class="swatches">
|
|
589
|
+
${p.map(u=>{let H=this.parseColor(u);return H?w`
|
|
590
|
+
<div
|
|
591
|
+
part="swatch"
|
|
592
|
+
class="swatch pixel-background"
|
|
593
|
+
tabindex=${D(this.disabled?void 0:"0")}
|
|
594
|
+
role="button"
|
|
595
|
+
aria-label=${u}
|
|
596
|
+
@click=${()=>this.selectSwatch(u)}
|
|
597
|
+
@keydown=${mt=>!this.disabled&&mt.key==="Enter"&&this.setColor(H.hexa)}
|
|
598
|
+
>
|
|
599
|
+
<div
|
|
600
|
+
class="swatch-color"
|
|
601
|
+
style=${k({backgroundColor:H.hexa})}
|
|
602
|
+
></div>
|
|
603
|
+
</div>
|
|
604
|
+
`:(console.error(`Unable to parse this swatch colour: ${u}`,this),"")})}
|
|
605
|
+
</div>
|
|
606
|
+
`:""}
|
|
607
|
+
${this.inline?w`
|
|
608
|
+
<slot class="pc-visually-hidden" name="hint">
|
|
609
|
+
${this.hint}
|
|
610
|
+
</slot>
|
|
611
|
+
`:""}
|
|
612
|
+
</div>
|
|
613
|
+
`;return this.inline?b:w`
|
|
614
|
+
<label
|
|
615
|
+
part="label"
|
|
616
|
+
class="label"
|
|
617
|
+
id="label"
|
|
618
|
+
aria-hidden=${s?"false":"true"}
|
|
619
|
+
>
|
|
620
|
+
<slot name="label">${this.label}</slot>
|
|
621
|
+
</label>
|
|
622
|
+
<pc-popup
|
|
623
|
+
class="color-popup"
|
|
624
|
+
part="popup"
|
|
625
|
+
placement="bottom-start"
|
|
626
|
+
distance="0"
|
|
627
|
+
skidding="0"
|
|
628
|
+
sync="width"
|
|
629
|
+
flip
|
|
630
|
+
flip-fallback-strategy="best-fit"
|
|
631
|
+
shift
|
|
632
|
+
shift-padding="10"
|
|
633
|
+
aria-disabled=${this.disabled?"true":"false"}
|
|
634
|
+
>
|
|
635
|
+
<button
|
|
636
|
+
type="button"
|
|
637
|
+
part="trigger"
|
|
638
|
+
slot="anchor"
|
|
639
|
+
class=${S({"popup-trigger":!0,empty:this.isEmpty,focused:this.hasFocus,"pixel-background":!0})}
|
|
640
|
+
style=${k({color:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
|
|
641
|
+
.disabled=${this.disabled}
|
|
642
|
+
aria-labelledby="label"
|
|
643
|
+
@click=${this.handleTriggerClick}
|
|
644
|
+
@keydown=${this.handleTriggerKeyDown}
|
|
645
|
+
@keyup=${this.handleTriggerKeyUp}
|
|
646
|
+
></button>
|
|
647
|
+
|
|
648
|
+
${b}
|
|
649
|
+
</pc-popup>
|
|
650
|
+
|
|
651
|
+
<slot
|
|
652
|
+
class=${S({"has-hint":a})}
|
|
653
|
+
part="hint"
|
|
654
|
+
id="hint"
|
|
655
|
+
name="hint"
|
|
656
|
+
aria-hidden=${a?"false":"true"}
|
|
657
|
+
>
|
|
658
|
+
${this.hint}
|
|
659
|
+
</slot>
|
|
660
|
+
`}};l.css=[st,tt,gt],l.dependencies={"pc-button":et,"pc-button-group":it,"pc-icon":Q,"pc-input":nt,"pc-popup":ot},h([E('[part~="base"]')],l.prototype,"base",2),h([E('[part~="input"]')],l.prototype,"input",2),h([E('[part~="popup"]')],l.prototype,"popup",2),h([E('[part~="preview"]')],l.prototype,"previewButton",2),h([E('[part~="trigger"]')],l.prototype,"trigger",2),h([x()],l.prototype,"hasFocus",2),h([x()],l.prototype,"isDraggingGridHandle",2),h([x()],l.prototype,"isEmpty",2),h([x()],l.prototype,"inputValue",2),h([x()],l.prototype,"hue",2),h([x()],l.prototype,"saturation",2),h([x()],l.prototype,"brightness",2),h([x()],l.prototype,"alpha",2),h([f()],l.prototype,"value",2),h([rt()],l.prototype,"defaultValue",2),h([f()],l.prototype,"label",2),h([f()],l.prototype,"hint",2),h([f()],l.prototype,"format",2),h([f({type:Boolean,reflect:!0})],l.prototype,"inline",2),h([f({reflect:!0})],l.prototype,"size",2),h([f({attribute:"no-format-toggle",type:Boolean})],l.prototype,"noFormatToggle",2),h([f()],l.prototype,"name",2),h([f({type:Boolean,reflect:!0})],l.prototype,"disabled",2),h([f({type:Boolean,reflect:!0})],l.prototype,"open",2),h([f({type:Boolean})],l.prototype,"opacity",2),h([f({type:Boolean})],l.prototype,"uppercase",2),h([f()],l.prototype,"swatches",2),h([f({reflect:!0})],l.prototype,"form",2),h([f({type:Boolean,reflect:!0})],l.prototype,"required",2),h([Z({passive:!1})],l.prototype,"handleTouchMove",1),h([T("format",{waitUntilFirstUpdate:!0})],l.prototype,"handleFormatChange",1),h([T("opacity",{waitUntilFirstUpdate:!0})],l.prototype,"handleOpacityChange",1),h([T("value")],l.prototype,"handleValueChange",1),h([T("open",{waitUntilFirstUpdate:!0})],l.prototype,"handleOpenChange",1),l=h([W("pc-color-picker")],l);export{l as a};
|