@tempots/beatui 0.30.2 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2019-BY_FFnZU.cjs +1 -0
- package/dist/{2019-Cd9nHhvg.js → 2019-C660mMK6.js} +9 -10
- package/dist/{2020-CyKJpuK6.js → 2020-C3P-aGet.js} +30 -31
- package/dist/2020-Cyyhc8pv.cjs +1 -0
- package/dist/{ar-Dz8Mg5la.js → ar-BUxQ3yNv.js} +30 -15
- package/dist/ar-DcFl4tkv.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +85 -84
- package/dist/beatui.css +32 -6
- package/dist/beatui.tailwind.css +32 -6
- package/dist/{de-ToWTQGEo.js → de-CKKQr2-K.js} +27 -12
- package/dist/de-DEUS3n0J.cjs +1 -0
- package/dist/{es-CruxS0Tz.js → es-C5VUn_X1.js} +27 -12
- package/dist/es-CIeoDpkc.cjs +1 -0
- package/dist/{fa-Cf0NZLWA.js → fa-Cs2LZsfr.js} +30 -15
- package/dist/fa-gXa9Xdjn.cjs +1 -0
- package/dist/fr-6SpJ-gVV.cjs +1 -0
- package/dist/{fr-YKXmqMGr.js → fr-Dlw8mKFp.js} +20 -5
- package/dist/{he-D8ZOduPw.js → he-Cm4NxsyE.js} +30 -15
- package/dist/he-D9cwxZOb.cjs +1 -0
- package/dist/hi-CNRHnMsQ.cjs +1 -0
- package/dist/{hi-CIamzVEf.js → hi-Cjz1aQX2.js} +30 -15
- package/dist/index-BI5w0jSz.js +2707 -0
- package/dist/index-Bv2gn_kV.cjs +4 -0
- package/dist/index-C-FUCwXi.js +14275 -0
- package/dist/index-CKyH3jwP.cjs +1 -0
- package/dist/index-CXY0yKJD.cjs +34 -0
- package/dist/{index-O9BwR_8P.cjs → index-CYY_JLSN.cjs} +1 -1
- package/dist/index-DKy2mZws.cjs +1 -0
- package/dist/{index-B2079wM-.js → index-DjShJtXp.js} +15 -15
- package/dist/index-DwyUOY3r.js +68 -0
- package/dist/{index-DDpjzV7E.js → index-Jd2O_Iux.js} +304 -307
- package/dist/{index-DFJed4ks.js → index-_Kh76-c2.js} +1 -1
- package/dist/index-klVI8k8O.cjs +8 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1123 -1229
- package/dist/it-DvBJ31Ls.cjs +1 -0
- package/dist/{it-Bn7tG_KC.js → it-iuFeIEsO.js} +29 -14
- package/dist/{ja-i1ULXeiu.js → ja-D6Dd96v-.js} +25 -10
- package/dist/ja-FKJGj5My.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-BpKDmtvY.js → ko-C8GOsfIU.js} +30 -15
- package/dist/ko-PqVOGPUi.cjs +1 -0
- package/dist/markdown/index.cjs.js +1 -2
- package/dist/markdown/index.es.js +4 -420
- package/dist/{modal-DvGSDVSv.js → modal-CuhK7DqK.js} +14 -13
- package/dist/modal-RQtwnFy9.cjs +1 -0
- package/dist/{nl-Cs4PDWCJ.js → nl-Ct2cyWWi.js} +31 -16
- package/dist/nl-DAhT0vfu.cjs +1 -0
- package/dist/notice-BnX2sRrK.cjs +2 -0
- package/dist/notice-Dz_BJg8D.js +1467 -0
- package/dist/{pl-BFLNf991.js → pl-DewgRE-k.js} +31 -16
- package/dist/pl-JgD0mCRa.cjs +1 -0
- package/dist/prosemirror/index.cjs.js +1 -0
- package/dist/prosemirror/index.es.js +6 -0
- package/dist/prosemirror.css +294 -0
- package/dist/pt-BkoMl_PC.cjs +1 -0
- package/dist/{pt-BRZeOkcE.js → pt-CNyp2zeW.js} +31 -16
- package/dist/ru-9OW0HQFS.cjs +1 -0
- package/dist/{ru-KI7Gowz-.js → ru-U6PdSzha.js} +35 -20
- package/dist/styles-url-CF_019NX.js +4 -0
- package/dist/styles-url-DhmSan6u.cjs +1 -0
- package/dist/toolbar-D7fDCmUn.cjs +1 -0
- package/dist/toolbar-DTh9Ouhs.js +118 -0
- package/dist/{tr-CYk8Fua5.js → tr-CQVvooxi.js} +28 -13
- package/dist/tr-DsOaoQqh.cjs +1 -0
- package/dist/translations-BDRano6u.cjs +1 -0
- package/dist/{translations-DdNHXAWr.js → translations-Cic51rHH.js} +1 -1
- package/dist/translations-D4PjDB1t.js +831 -0
- package/dist/translations-DDFTHcX3.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +14 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +14 -0
- package/dist/types/beatui-i18n/translations.d.ts +14 -0
- package/dist/types/components/form/input/input-container.d.ts +3 -1
- package/dist/types/components/form/input/input-options.d.ts +6 -0
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -0
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +4 -0
- package/dist/types/components/prosemirror/link-control.d.ts +12 -0
- package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +76 -0
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +18 -0
- package/dist/types/components/prosemirror/utils.d.ts +12 -0
- package/dist/types/prosemirror/index.d.ts +2 -0
- package/dist/{ur-BIcZGLWt.js → ur-C3LypxEh.js} +30 -15
- package/dist/ur-C8v4y2tI.cjs +1 -0
- package/dist/utils-D8WljbbZ.cjs +1 -0
- package/dist/{utils-D1op9R8_.js → utils-DY9kZecl.js} +74 -73
- package/dist/vi-DzLo7qhK.cjs +1 -0
- package/dist/{vi-BeK62QeB.js → vi-M5ObJg3d.js} +19 -4
- package/dist/zh-BXk4IZBo.cjs +1 -0
- package/dist/{zh-Dt6yWDu2.js → zh-DGA8R46s.js} +32 -17
- package/package.json +20 -13
- package/dist/2019-Bl1mhxeM.cjs +0 -1
- package/dist/2020-BKqFJLj6.cjs +0 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/apl-M-DNMvvR.cjs +0 -1
- package/dist/ar-CbsALGhG.cjs +0 -1
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asciiarmor-BMx3XVjX.cjs +0 -1
- package/dist/asn1-OOsVM4yU.cjs +0 -1
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-B1QUaW1C.cjs +0 -1
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-BjUlYKdF.cjs +0 -1
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BEMIzMUI.cjs +0 -1
- package/dist/clike-DGTaUp48.js +0 -620
- package/dist/clojure-Ap_IXD2I.cjs +0 -1
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-C4D5_VmS.cjs +0 -1
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/cobol-Du-cT2hr.cjs +0 -1
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/coffeescript-DDFAj2ea.cjs +0 -1
- package/dist/commonlisp-CXBBRCTx.cjs +0 -1
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/crystal-DAFWRDbh.cjs +0 -1
- package/dist/css-BkF-NPzE.js +0 -1553
- package/dist/css-DzFJyRJ8.cjs +0 -1
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/cypher-BN0-oCze.cjs +0 -1
- package/dist/d-BHsqGcfm.cjs +0 -1
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/de-MO-u5hoD.cjs +0 -1
- package/dist/diff-CemTHKfk.cjs +0 -1
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-BBTH3voH.cjs +0 -1
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-ChoVQPwv.cjs +0 -1
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/dylan-apTQIgUA.cjs +0 -1
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ebnf-LYmLy17h.cjs +0 -1
- package/dist/ecl-C7WNQq7-.cjs +0 -1
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-BJThA8RG.cjs +0 -1
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/elm-CcXP9T36.cjs +0 -1
- package/dist/erlang-B6mpcObI.cjs +0 -1
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/es-CqkWVfis.cjs +0 -1
- package/dist/fa-DR8j7v-l.cjs +0 -1
- package/dist/factor-B-tsx9yW.cjs +0 -1
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-BzAKklXo.cjs +0 -1
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/forth-CPAzyZ_n.cjs +0 -1
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/fortran-DHiTlGV1.cjs +0 -1
- package/dist/fr-ClK0mWTO.cjs +0 -1
- package/dist/gas-BiPtGF2E.cjs +0 -1
- package/dist/gas-cpmYfFX2.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/gherkin-Djo7Y51D.cjs +0 -1
- package/dist/groovy-BMVITiCm.cjs +0 -1
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haskell-CngODaW-.cjs +0 -1
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/haxe-Dyk-piTh.cjs +0 -1
- package/dist/he-DeJMBRTP.cjs +0 -1
- package/dist/hi-C9Anq8Ae.cjs +0 -1
- package/dist/http-BkLifcnL.cjs +0 -1
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/idl-FmHDmsE-.cjs +0 -1
- package/dist/index-0dpJGQbC.js +0 -94
- package/dist/index-52kzSRNb.cjs +0 -1
- package/dist/index-5a6_6F3Z.cjs +0 -6
- package/dist/index-BGHGZg_7.js +0 -552
- package/dist/index-BMn-7Ble.js +0 -1307
- package/dist/index-BR0F2BVZ.cjs +0 -1
- package/dist/index-BlCmv2EJ.cjs +0 -1
- package/dist/index-BlamLFdS.js +0 -76
- package/dist/index-By8a3eg5.cjs +0 -1
- package/dist/index-C0sjoDdy.js +0 -309
- package/dist/index-C9RMQY3t.cjs +0 -1
- package/dist/index-CDBeAhhM.js +0 -289
- package/dist/index-CH2HgQJF.cjs +0 -1
- package/dist/index-CT9YDHSn.js +0 -74
- package/dist/index-CUZnWZnQ.cjs +0 -3
- package/dist/index-CVNvgkJN.js +0 -342
- package/dist/index-C_NT6gCL.cjs +0 -1
- package/dist/index-CafCsH0Z.cjs +0 -1
- package/dist/index-Cei6J0b_.cjs +0 -8
- package/dist/index-CmcOKNW2.js +0 -302
- package/dist/index-CvpdOKX2.js +0 -136
- package/dist/index-CxE1PN5L.cjs +0 -1
- package/dist/index-D2BpI4Zz.cjs +0 -2
- package/dist/index-D40RPDMJ.cjs +0 -1
- package/dist/index-D5iq4kyE.cjs +0 -1
- package/dist/index-DFzKuRY8.cjs +0 -1
- package/dist/index-DIO9qaw5.cjs +0 -1
- package/dist/index-DIR2rO5B.cjs +0 -1
- package/dist/index-DPnQDm6f.js +0 -138
- package/dist/index-DU0jpFGR.cjs +0 -1
- package/dist/index-DUvVsNDG.cjs +0 -13
- package/dist/index-DVZnPL32.js +0 -953
- package/dist/index-DiYfLAVQ.js +0 -554
- package/dist/index-DnIheaHS.js +0 -251
- package/dist/index-Dp2K8q6O.cjs +0 -7
- package/dist/index-DrlNzz-e.js +0 -59
- package/dist/index-Dx9UDsJi.cjs +0 -1
- package/dist/index-DxY-AOQA.js +0 -157
- package/dist/index-Mmd0YHPJ.js +0 -960
- package/dist/index-NyiYUSW3.js +0 -101
- package/dist/index-alBMysbQ.js +0 -1874
- package/dist/index-lEkIbMCl.js +0 -612
- package/dist/index-qwDdlmIi.js +0 -270
- package/dist/index-x3mhc_C_.cjs +0 -1
- package/dist/it-5n3LuTHe.cjs +0 -1
- package/dist/ja-Bdp4_B8-.cjs +0 -1
- package/dist/javascript-C2yteZeJ.js +0 -691
- package/dist/javascript-DngSGg_0.cjs +0 -1
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/jinja2-wbVbDTNi.cjs +0 -1
- package/dist/julia-DA67Qw9E.cjs +0 -1
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/ko-B5SwKB-j.cjs +0 -1
- package/dist/livescript-Bg3URadp.cjs +0 -1
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-CIsxjGwi.cjs +0 -1
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-BG089QIc.cjs +0 -1
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mbox-CySolFFZ.cjs +0 -1
- package/dist/milkdown/index.cjs.js +0 -1
- package/dist/milkdown/index.es.js +0 -4
- package/dist/milkdown-input-Bkgdi-Bv.cjs +0 -944
- package/dist/milkdown-input-CciSI_a5.js +0 -63967
- package/dist/milkdown-url-D99P-nA-.js +0 -4
- package/dist/milkdown-url-DqoUZH3u.cjs +0 -1
- package/dist/milkdown.css +0 -1914
- package/dist/mirc-BfqEffzk.cjs +0 -1
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/mllike-QUjwI6zq.cjs +0 -1
- package/dist/modal-CAKAT7wv.cjs +0 -1
- package/dist/modelica-B6Zhcb-M.cjs +0 -1
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-BToym4Bs.cjs +0 -1
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/mumps-wfyQdxSu.cjs +0 -1
- package/dist/nginx-CwqyBUfA.cjs +0 -1
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nl-Cenl4nr6.cjs +0 -1
- package/dist/notice-DBME6bFw.cjs +0 -2
- package/dist/notice-DVEacWKt.js +0 -2275
- package/dist/nsis-DPj2fUaP.cjs +0 -1
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/ntriples-DgwJmozm.cjs +0 -1
- package/dist/octave-1pkKrgAA.cjs +0 -1
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-BXOZCt0U.cjs +0 -1
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/pascal-DtY2LEkJ.cjs +0 -1
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/perl-CVDWbEju.cjs +0 -1
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/pig-DMByOrnr.cjs +0 -1
- package/dist/pl-7xYNCk-v.cjs +0 -1
- package/dist/powershell-BaoYaFvj.cjs +0 -1
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/preprocess-CvkqwVNt.cjs +0 -3
- package/dist/preprocess-D898zxsP.js +0 -2295
- package/dist/properties-DXHJZ3WE.cjs +0 -1
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BKhXdfH6.cjs +0 -1
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pt-DOLL0Jpj.cjs +0 -1
- package/dist/pug-CwAQJzGR.js +0 -248
- package/dist/pug-kEfRDOiF.cjs +0 -1
- package/dist/puppet-8mAyuMbW.cjs +0 -1
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-BkR3uSy8.js +0 -313
- package/dist/python-D-iU6WXz.cjs +0 -1
- package/dist/q-BPQ45Nxu.cjs +0 -1
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/r-r2_EZsON.cjs +0 -1
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/rpm-YK81m3qU.cjs +0 -1
- package/dist/ru-DoS9XuqG.cjs +0 -1
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/ruby-Cn1sFkZF.cjs +0 -1
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/sas-DAGcJy94.cjs +0 -1
- package/dist/scheme-B0ZrbojV.cjs +0 -1
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-BMYo43V6.cjs +0 -1
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/sieve-CIYW-b_H.cjs +0 -1
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/simple-mode-BIKNPBes.cjs +0 -1
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/smalltalk-CSslY-3i.cjs +0 -1
- package/dist/solr-A1kSnAwJ.cjs +0 -1
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-DnHMBLLY.cjs +0 -1
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-B7_BK8hB.cjs +0 -1
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-9VmIWHrZ.cjs +0 -1
- package/dist/sql-CfG5lQ3l.js +0 -282
- package/dist/stex-B4wyjEnp.cjs +0 -1
- package/dist/stex-Du4h4KAU.js +0 -129
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/stylus-D6GYOT3Z.cjs +0 -1
- package/dist/swift-DGw6Cgu8.cjs +0 -1
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-ByLXbQFo.cjs +0 -1
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/textile-iryw-lTw.cjs +0 -1
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiddlywiki-D8IJz1k7.cjs +0 -1
- package/dist/tiki-C5p5KSQK.cjs +0 -1
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-3ZsH_4Qa.cjs +0 -1
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/tr-BVmoz40w.cjs +0 -1
- package/dist/translations-Dv56lQia.cjs +0 -1
- package/dist/troff-D-3QCOYN.cjs +0 -1
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-C2MXAqcM.cjs +0 -1
- package/dist/ttcn-cfg-BYqcMRxC.cjs +0 -1
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-DSJNatSv.cjs +0 -1
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/types/components/milkdown/milkdown-input.d.ts +0 -15
- package/dist/types/milkdown/index.d.ts +0 -1
- package/dist/ur-orNTOdMP.cjs +0 -1
- package/dist/utils-Dobqjl2y.cjs +0 -1
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vb-qzHzzvyB.cjs +0 -1
- package/dist/vbscript-1f_Dhg5H.js +0 -324
- package/dist/vbscript-CWm8v9tE.cjs +0 -1
- package/dist/velocity-D3_yAIp3.cjs +0 -1
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-BOhLNmQo.cjs +0 -1
- package/dist/verilog-CiS1jyi5.js +0 -262
- package/dist/vhdl-CMFbi8Im.cjs +0 -1
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/vi-BWyUDP07.cjs +0 -1
- package/dist/webidl-CWb_flNk.cjs +0 -1
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/xquery-Cjw5fRnG.cjs +0 -1
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/yacas-urx_N5C8.cjs +0 -1
- package/dist/z80-CsG3CM6M.cjs +0 -1
- package/dist/z80-Pki2zAjW.js +0 -61
- package/dist/zh-RVJj1NQq.cjs +0 -1
- /package/dist/types/{components/milkdown/milkdown-url.d.ts → prosemirror/styles-url.d.ts} +0 -0
- /package/dist/types/{milkdown → prosemirror}/styles.d.ts +0 -0
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
import { makeProviderMark as R, localStorageProp as j, computedOf as m, Use as O, html as f, attr as c, When as w, Fragment as y, aria as b, coalesce as z, style as L, prop as $, on as I, OnDispose as A, Value as _, WithElement as K, input as W, Empty as P, emitValue as S } from "@tempots/dom";
|
|
2
|
+
import { b as J, g as Q } from "./colors-WfmhQ5e1.js";
|
|
3
|
+
import { WhenInViewport as Y, Query as Z, ElementRect as X } from "@tempots/ui";
|
|
4
|
+
function T(t, {
|
|
5
|
+
units: e = ["B", "KB", "MB", "GB", "TB"],
|
|
6
|
+
decimalPlaces: n = 0,
|
|
7
|
+
locale: o
|
|
8
|
+
} = {}) {
|
|
9
|
+
if (t === 0 || t === 0n)
|
|
10
|
+
return new Intl.NumberFormat(o, {
|
|
11
|
+
style: "unit",
|
|
12
|
+
unit: "byte",
|
|
13
|
+
unitDisplay: "short",
|
|
14
|
+
maximumFractionDigits: 0
|
|
15
|
+
}).format(0).replace("byte", e[0]);
|
|
16
|
+
let r, a;
|
|
17
|
+
if (typeof t == "bigint") {
|
|
18
|
+
let l = t < 0n ? -t : t;
|
|
19
|
+
for (r = 0; l >= 1024n && r < e.length - 1; )
|
|
20
|
+
l = l / 1024n, r++;
|
|
21
|
+
a = Number(t) / Math.pow(1024, r);
|
|
22
|
+
} else
|
|
23
|
+
r = Math.floor(Math.log(Math.abs(t)) / Math.log(1024)), r = Math.min(r, e.length - 1), a = t / Math.pow(1024, r);
|
|
24
|
+
return new Intl.NumberFormat(o, {
|
|
25
|
+
style: "unit",
|
|
26
|
+
unit: "byte",
|
|
27
|
+
unitDisplay: "short",
|
|
28
|
+
minimumFractionDigits: r === 0 ? 0 : n,
|
|
29
|
+
maximumFractionDigits: r === 0 ? 0 : n
|
|
30
|
+
}).format(a).replace("byte", e[r]);
|
|
31
|
+
}
|
|
32
|
+
const N = {
|
|
33
|
+
loadingExtended: "Loading, please wait",
|
|
34
|
+
loadingShort: "Loading...",
|
|
35
|
+
locale: "Locale",
|
|
36
|
+
iconDescription: "Icon",
|
|
37
|
+
loadingIcon: "Loading icon",
|
|
38
|
+
failedToLoadIcon: "Failed to load icon",
|
|
39
|
+
editLabel: "Edit",
|
|
40
|
+
selectOne: "Select one",
|
|
41
|
+
selectMany: "Select many",
|
|
42
|
+
noResults: "No results",
|
|
43
|
+
passwordPlaceholderText: "Secret Password",
|
|
44
|
+
togglePasswordVisibility: "Toggle password visibility",
|
|
45
|
+
toggleMenu: "Toggle menu",
|
|
46
|
+
toggleAside: "Toggle aside",
|
|
47
|
+
mainNavigation: "Main navigation",
|
|
48
|
+
sidebar: "Sidebar",
|
|
49
|
+
closeDrawer: "Close drawer",
|
|
50
|
+
closeModal: "Close modal",
|
|
51
|
+
confirm: "Confirm",
|
|
52
|
+
cancel: "Cancel",
|
|
53
|
+
addLabel: "Add",
|
|
54
|
+
removeItem: "Remove item",
|
|
55
|
+
// languages
|
|
56
|
+
currentLocale: "English",
|
|
57
|
+
ar: "Arabic",
|
|
58
|
+
de: "German",
|
|
59
|
+
en: "English",
|
|
60
|
+
es: "Spanish",
|
|
61
|
+
fr: "French",
|
|
62
|
+
hi: "Hindi",
|
|
63
|
+
it: "Italian",
|
|
64
|
+
ja: "Japanese",
|
|
65
|
+
ko: "Korean",
|
|
66
|
+
nl: "Dutch",
|
|
67
|
+
pl: "Polish",
|
|
68
|
+
pt: "Portuguese",
|
|
69
|
+
ru: "Russian",
|
|
70
|
+
tr: "Turkish",
|
|
71
|
+
vi: "Vietnamese",
|
|
72
|
+
zh: "Chinese",
|
|
73
|
+
he: "Hebrew",
|
|
74
|
+
fa: "Persian",
|
|
75
|
+
ur: "Urdu",
|
|
76
|
+
// input
|
|
77
|
+
emailPlaceholderText: "Enter your email",
|
|
78
|
+
incrementValue: "Increment value",
|
|
79
|
+
decrementValue: "Decrement value",
|
|
80
|
+
// drop zone
|
|
81
|
+
dropZoneInstructions: (t) => t ? "Click to choose or drag files here, or press Enter or Space to open file selector" : "Drag files here",
|
|
82
|
+
// size
|
|
83
|
+
fileSizeUnits: ["Bytes", "KB", "MB", "GB", "TB"],
|
|
84
|
+
// file input
|
|
85
|
+
removeFile: "Remove file",
|
|
86
|
+
clearAllFiles: "Clear all files",
|
|
87
|
+
// inputs reset
|
|
88
|
+
clearValue: "Reset",
|
|
89
|
+
unknownType: "Unknown type",
|
|
90
|
+
filesInputInstructions: (t, e, n) => {
|
|
91
|
+
let o = t == null || t > 1 ? "Click to choose or drag files here" : "Click to choose or drag a file here";
|
|
92
|
+
if (t || e) {
|
|
93
|
+
const r = [];
|
|
94
|
+
if (t != null && t > 1 && r.push(`up to ${t} files`), e && n) {
|
|
95
|
+
const a = T(e, {
|
|
96
|
+
units: n
|
|
97
|
+
});
|
|
98
|
+
r.push(`max ${a} each`);
|
|
99
|
+
}
|
|
100
|
+
r.length > 0 && (o += ` (${r.join(", ")})`);
|
|
101
|
+
} else if (e && n) {
|
|
102
|
+
const r = T(e, {
|
|
103
|
+
units: n
|
|
104
|
+
});
|
|
105
|
+
o += ` (max ${r})`;
|
|
106
|
+
}
|
|
107
|
+
return o;
|
|
108
|
+
},
|
|
109
|
+
// ProseMirror editor
|
|
110
|
+
prosemirror: {
|
|
111
|
+
bold: "Bold",
|
|
112
|
+
italic: "Italic",
|
|
113
|
+
code: "Inline code",
|
|
114
|
+
link: "Insert link",
|
|
115
|
+
removeLink: "Remove link",
|
|
116
|
+
heading: (t) => `Heading ${t}`,
|
|
117
|
+
bulletList: "Bullet list",
|
|
118
|
+
orderedList: "Ordered list",
|
|
119
|
+
blockquote: "Blockquote",
|
|
120
|
+
codeBlock: "Code block",
|
|
121
|
+
horizontalRule: "Horizontal rule",
|
|
122
|
+
linkUrlPlaceholder: "https://example.com"
|
|
123
|
+
}
|
|
124
|
+
}, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
125
|
+
__proto__: null,
|
|
126
|
+
default: N
|
|
127
|
+
}, Symbol.toStringTag, { value: "Module" })), et = N, ot = "en", nt = (t, e, n) => {
|
|
128
|
+
const o = t[e];
|
|
129
|
+
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, a) => {
|
|
130
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + e + (e.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
|
|
131
|
+
});
|
|
132
|
+
}, rt = /* @__PURE__ */ new Set([
|
|
133
|
+
"ar",
|
|
134
|
+
// Arabic
|
|
135
|
+
"he",
|
|
136
|
+
// Hebrew
|
|
137
|
+
"fa",
|
|
138
|
+
// Persian/Farsi
|
|
139
|
+
"ur",
|
|
140
|
+
// Urdu
|
|
141
|
+
"ps",
|
|
142
|
+
// Pashto
|
|
143
|
+
"sd",
|
|
144
|
+
// Sindhi
|
|
145
|
+
"ku",
|
|
146
|
+
// Kurdish
|
|
147
|
+
"dv",
|
|
148
|
+
// Divehi/Maldivian
|
|
149
|
+
"yi",
|
|
150
|
+
// Yiddish
|
|
151
|
+
"ji",
|
|
152
|
+
// Yiddish (alternative code)
|
|
153
|
+
"iw",
|
|
154
|
+
// Hebrew (deprecated, but still used)
|
|
155
|
+
"in"
|
|
156
|
+
// Indonesian (deprecated, but sometimes confused)
|
|
157
|
+
]);
|
|
158
|
+
function q(t) {
|
|
159
|
+
if (!t) return "ltr";
|
|
160
|
+
const e = t.split(/[-_]/)[0].toLowerCase();
|
|
161
|
+
return rt.has(e) ? "rtl" : "ltr";
|
|
162
|
+
}
|
|
163
|
+
function at(t, e) {
|
|
164
|
+
return t === "auto" ? q(e) : t;
|
|
165
|
+
}
|
|
166
|
+
function jt(t) {
|
|
167
|
+
return `b-${t}`;
|
|
168
|
+
}
|
|
169
|
+
function Tt(t) {
|
|
170
|
+
return q(t) === "rtl";
|
|
171
|
+
}
|
|
172
|
+
function Et(t) {
|
|
173
|
+
return t === "ltr" ? "rtl" : "ltr";
|
|
174
|
+
}
|
|
175
|
+
const st = {
|
|
176
|
+
ltr: {
|
|
177
|
+
"inline-start": "left",
|
|
178
|
+
"inline-end": "right",
|
|
179
|
+
"block-start": "top",
|
|
180
|
+
"block-end": "bottom"
|
|
181
|
+
},
|
|
182
|
+
rtl: {
|
|
183
|
+
"inline-start": "right",
|
|
184
|
+
"inline-end": "left",
|
|
185
|
+
"block-start": "top",
|
|
186
|
+
"block-end": "bottom"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
function Vt(t, e) {
|
|
190
|
+
return st[e][t];
|
|
191
|
+
}
|
|
192
|
+
const lt = {
|
|
193
|
+
mark: R("Locale"),
|
|
194
|
+
create: (t) => {
|
|
195
|
+
const e = j({
|
|
196
|
+
defaultValue: navigator.language ?? "en-US",
|
|
197
|
+
key: "beatui-locale"
|
|
198
|
+
}), n = j({
|
|
199
|
+
defaultValue: "auto",
|
|
200
|
+
key: "beatui-direction-preference"
|
|
201
|
+
}), o = m(
|
|
202
|
+
e,
|
|
203
|
+
n
|
|
204
|
+
)(
|
|
205
|
+
(a, s) => at(s, a)
|
|
206
|
+
);
|
|
207
|
+
return {
|
|
208
|
+
value: {
|
|
209
|
+
locale: e,
|
|
210
|
+
setLocale: (a) => e.set(a),
|
|
211
|
+
direction: o,
|
|
212
|
+
directionPreference: n,
|
|
213
|
+
setDirectionPreference: (a) => n.set(a)
|
|
214
|
+
},
|
|
215
|
+
dispose: () => {
|
|
216
|
+
e.dispose(), n.dispose(), o.dispose();
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
variants: it,
|
|
222
|
+
special: ct,
|
|
223
|
+
overrides: M
|
|
224
|
+
} = J;
|
|
225
|
+
function k(t, e) {
|
|
226
|
+
switch (t) {
|
|
227
|
+
case "white":
|
|
228
|
+
return "var(--color-white)";
|
|
229
|
+
case "black":
|
|
230
|
+
return "var(--color-black)";
|
|
231
|
+
case "transparent":
|
|
232
|
+
return "transparent";
|
|
233
|
+
default:
|
|
234
|
+
return Q(t, e);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function U(t, e) {
|
|
238
|
+
const n = ct[t];
|
|
239
|
+
if (!n) return;
|
|
240
|
+
if (e === "light")
|
|
241
|
+
return n;
|
|
242
|
+
const o = M[t];
|
|
243
|
+
return o ? o[e] : n;
|
|
244
|
+
}
|
|
245
|
+
function x(t, e, n) {
|
|
246
|
+
const o = M[t];
|
|
247
|
+
if (o) {
|
|
248
|
+
const a = o[n];
|
|
249
|
+
if (a)
|
|
250
|
+
return { backgroundColor: a.backgroundColor, textColor: a.color };
|
|
251
|
+
}
|
|
252
|
+
if (e === "solid") {
|
|
253
|
+
const a = U(t, n);
|
|
254
|
+
if (a)
|
|
255
|
+
return {
|
|
256
|
+
backgroundColor: a.backgroundColor,
|
|
257
|
+
textColor: a.color
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const r = it[e][n];
|
|
261
|
+
return {
|
|
262
|
+
backgroundColor: k(t, r.bgShade),
|
|
263
|
+
textColor: r.textColor
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
const ut = {
|
|
267
|
+
light: { shade: 600, textColor: "var(--color-white)" },
|
|
268
|
+
dark: { shade: 600, textColor: "var(--text-inverted-dark)" }
|
|
269
|
+
}, dt = {
|
|
270
|
+
light: { shade: 300, textColor: "var(--text-normal-light)" },
|
|
271
|
+
dark: { shade: 700, textColor: "var(--text-normal-dark)" }
|
|
272
|
+
}, ht = {
|
|
273
|
+
light: { shade: 400, textColor: "var(--text-normal-light)" },
|
|
274
|
+
dark: { shade: 600, textColor: "var(--text-normal-dark)" }
|
|
275
|
+
};
|
|
276
|
+
function p(t, e, n) {
|
|
277
|
+
const o = M[t];
|
|
278
|
+
if (o) {
|
|
279
|
+
const a = o[n];
|
|
280
|
+
if (a)
|
|
281
|
+
return { backgroundColor: a.backgroundColor, textColor: a.color };
|
|
282
|
+
}
|
|
283
|
+
if (e === "solid") {
|
|
284
|
+
const a = U(t, n);
|
|
285
|
+
if (a)
|
|
286
|
+
return {
|
|
287
|
+
backgroundColor: a.backgroundColor,
|
|
288
|
+
textColor: a.color
|
|
289
|
+
};
|
|
290
|
+
const s = ut[n];
|
|
291
|
+
return {
|
|
292
|
+
backgroundColor: k(t, s.shade),
|
|
293
|
+
textColor: s.textColor
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
const r = e === "light" ? dt[n] : ht[n];
|
|
297
|
+
return {
|
|
298
|
+
backgroundColor: k(t, r.shade),
|
|
299
|
+
textColor: r.textColor
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function E(t, e) {
|
|
303
|
+
const n = e === "light" ? 500 : 600;
|
|
304
|
+
switch (t) {
|
|
305
|
+
case "white":
|
|
306
|
+
return e === "light" ? "var(--text-inverse-light)" : "var(--text-inverted-dark)";
|
|
307
|
+
case "black":
|
|
308
|
+
return "var(--color-black)";
|
|
309
|
+
case "transparent":
|
|
310
|
+
return "transparent";
|
|
311
|
+
default:
|
|
312
|
+
return k(t, n);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function C(t, e) {
|
|
316
|
+
return t === "white" ? "var(--color-white)" : t === "black" ? "var(--color-black)" : t === "transparent" ? "inherit" : k(t, e === "light" ? 800 : 200);
|
|
317
|
+
}
|
|
318
|
+
function V(t, e, n) {
|
|
319
|
+
return e === "soft" ? k(t, n === "light" ? 300 : 700) : k(t, n === "light" ? 500 : 600);
|
|
320
|
+
}
|
|
321
|
+
const bt = "bui-icons", D = /* @__PURE__ */ new Map(), H = (() => {
|
|
322
|
+
try {
|
|
323
|
+
return typeof indexedDB < "u" && indexedDB !== null;
|
|
324
|
+
} catch {
|
|
325
|
+
return !1;
|
|
326
|
+
}
|
|
327
|
+
})();
|
|
328
|
+
function gt() {
|
|
329
|
+
return H ? new Promise((t, e) => {
|
|
330
|
+
const n = indexedDB.open(bt, 1);
|
|
331
|
+
n.onupgradeneeded = function(o) {
|
|
332
|
+
const r = o.target.result;
|
|
333
|
+
r.objectStoreNames.contains("icons") || r.createObjectStore("icons");
|
|
334
|
+
}, n.onsuccess = function() {
|
|
335
|
+
t(n.result);
|
|
336
|
+
}, n.onerror = function() {
|
|
337
|
+
e(n.error);
|
|
338
|
+
};
|
|
339
|
+
}) : Promise.reject(new Error("IndexedDB not available"));
|
|
340
|
+
}
|
|
341
|
+
const B = H ? gt() : null;
|
|
342
|
+
function ft(t, e) {
|
|
343
|
+
return new Promise(async (n, o) => {
|
|
344
|
+
try {
|
|
345
|
+
if (B) {
|
|
346
|
+
const a = (await B).transaction("icons", "readwrite");
|
|
347
|
+
a.objectStore("icons").put(e, t), a.oncomplete = n, a.onerror = o;
|
|
348
|
+
} else
|
|
349
|
+
D.set(t, e), n(void 0);
|
|
350
|
+
} catch {
|
|
351
|
+
D.set(t, e), n(void 0);
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function pt(t) {
|
|
356
|
+
return new Promise(async (e, n) => {
|
|
357
|
+
try {
|
|
358
|
+
if (B) {
|
|
359
|
+
const s = (await B).transaction("icons", "readonly").objectStore("icons").get(t);
|
|
360
|
+
s.onsuccess = function() {
|
|
361
|
+
e(s.result);
|
|
362
|
+
}, s.onerror = n;
|
|
363
|
+
} else
|
|
364
|
+
e(D.get(t) || null);
|
|
365
|
+
} catch {
|
|
366
|
+
e(D.get(t) || null);
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
async function mt(t) {
|
|
371
|
+
const e = `https://api.iconify.design/${t}.svg`;
|
|
372
|
+
return fetch(e).then((n) => {
|
|
373
|
+
if (n.status === 200)
|
|
374
|
+
return n.text();
|
|
375
|
+
throw new Error(`Failed to load icon: ${t}`);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
async function kt(t) {
|
|
379
|
+
const e = t.replace(":", "/"), n = await pt(e);
|
|
380
|
+
if (n)
|
|
381
|
+
return n;
|
|
382
|
+
const o = await mt(e);
|
|
383
|
+
return await ft(e, o), o;
|
|
384
|
+
}
|
|
385
|
+
function vt(t) {
|
|
386
|
+
return ["bc-icon", `bc-icon--${t}`].join(" ");
|
|
387
|
+
}
|
|
388
|
+
function xt(t, e = "solid") {
|
|
389
|
+
if (!t) return "";
|
|
390
|
+
const n = V(t, e, "light"), o = V(t, e, "dark");
|
|
391
|
+
return `--icon-color: ${n}; --icon-color-dark: ${o}`;
|
|
392
|
+
}
|
|
393
|
+
function Ct({
|
|
394
|
+
icon: t,
|
|
395
|
+
size: e = "md",
|
|
396
|
+
color: n,
|
|
397
|
+
title: o,
|
|
398
|
+
accessibility: r = "auto",
|
|
399
|
+
tone: a = "solid"
|
|
400
|
+
}, ...s) {
|
|
401
|
+
const i = m(
|
|
402
|
+
r,
|
|
403
|
+
o
|
|
404
|
+
)((l, d) => l === "decorative" ? !1 : l === "informative" ? !0 : d != null && d !== "");
|
|
405
|
+
return O(
|
|
406
|
+
G,
|
|
407
|
+
(l) => f.span(
|
|
408
|
+
c.class(
|
|
409
|
+
m(e, n)((d) => vt(d ?? "md"))
|
|
410
|
+
),
|
|
411
|
+
c.style(
|
|
412
|
+
m(
|
|
413
|
+
n,
|
|
414
|
+
a
|
|
415
|
+
)(
|
|
416
|
+
(d, g) => xt(d ?? void 0, g ?? "solid")
|
|
417
|
+
)
|
|
418
|
+
),
|
|
419
|
+
// Add accessibility attributes based on icon type
|
|
420
|
+
w(
|
|
421
|
+
i,
|
|
422
|
+
() => y(
|
|
423
|
+
c.role("img"),
|
|
424
|
+
b.label(z(o, l.$.iconDescription))
|
|
425
|
+
),
|
|
426
|
+
() => b.hidden(!0)
|
|
427
|
+
),
|
|
428
|
+
Y(
|
|
429
|
+
{ once: !0 },
|
|
430
|
+
() => Z({
|
|
431
|
+
request: t,
|
|
432
|
+
load: ({ request: d }) => kt(d),
|
|
433
|
+
convertError: String,
|
|
434
|
+
success: ({ value: d }) => f.span(
|
|
435
|
+
L.width("100%"),
|
|
436
|
+
L.height("100%"),
|
|
437
|
+
c.innerHTML(d)
|
|
438
|
+
),
|
|
439
|
+
pending: () => f.span(
|
|
440
|
+
c.class("animate-spin"),
|
|
441
|
+
// Loading state accessibility
|
|
442
|
+
w(
|
|
443
|
+
i,
|
|
444
|
+
() => y(c.role("img"), b.label(l.$.loadingIcon)),
|
|
445
|
+
() => b.hidden(!0)
|
|
446
|
+
),
|
|
447
|
+
"↻"
|
|
448
|
+
),
|
|
449
|
+
failure: ({ error: d }) => f.span(
|
|
450
|
+
c.title(d),
|
|
451
|
+
c.class("text-red-500"),
|
|
452
|
+
// Error state accessibility
|
|
453
|
+
w(
|
|
454
|
+
i,
|
|
455
|
+
() => y(c.role("img"), b.label(l.$.failedToLoadIcon)),
|
|
456
|
+
() => b.hidden(!0)
|
|
457
|
+
),
|
|
458
|
+
"🚫"
|
|
459
|
+
)
|
|
460
|
+
})
|
|
461
|
+
),
|
|
462
|
+
...s
|
|
463
|
+
)
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
function wt(t, e, n) {
|
|
467
|
+
const o = [
|
|
468
|
+
"bc-button",
|
|
469
|
+
`bc-button--size-${t}`,
|
|
470
|
+
`bc-control--padding-${t}`,
|
|
471
|
+
`bc-control--rounded-${e}`
|
|
472
|
+
];
|
|
473
|
+
return n && o.push("bc-button--loading"), o.join(" ");
|
|
474
|
+
}
|
|
475
|
+
function yt(t, e, n) {
|
|
476
|
+
const o = /* @__PURE__ */ new Map();
|
|
477
|
+
o.set("--button-text-shadow", "var(--text-shadow-none)"), o.set("--button-text-shadow-dark", "var(--text-shadow-none)");
|
|
478
|
+
const r = (a, s, i, l) => {
|
|
479
|
+
n || (o.set("--button-bg-hover", a), o.set("--button-text-hover", i), o.set("--button-bg-hover-dark", s), o.set("--button-text-hover-dark", l));
|
|
480
|
+
};
|
|
481
|
+
switch (t) {
|
|
482
|
+
case "filled": {
|
|
483
|
+
const a = x(e, "solid", "light"), s = x(e, "solid", "dark");
|
|
484
|
+
o.set("--button-bg", a.backgroundColor), o.set("--button-text", a.textColor), o.set("--button-bg-dark", s.backgroundColor), o.set("--button-text-dark", s.textColor), o.set(
|
|
485
|
+
"--button-text-shadow",
|
|
486
|
+
"var(--text-shadow-button-filled, var(--text-shadow-sm))"
|
|
487
|
+
), o.set(
|
|
488
|
+
"--button-text-shadow-dark",
|
|
489
|
+
"var(--text-shadow-button-filled, var(--text-shadow-sm))"
|
|
490
|
+
);
|
|
491
|
+
const i = p(e, "solid", "light"), l = p(e, "solid", "dark");
|
|
492
|
+
r(
|
|
493
|
+
i.backgroundColor,
|
|
494
|
+
l.backgroundColor,
|
|
495
|
+
i.textColor,
|
|
496
|
+
l.textColor
|
|
497
|
+
);
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
case "light": {
|
|
501
|
+
const a = x(e, "light", "light"), s = x(e, "light", "dark");
|
|
502
|
+
o.set("--button-bg", a.backgroundColor), o.set("--button-text", a.textColor), o.set("--button-bg-dark", s.backgroundColor), o.set("--button-text-dark", s.textColor);
|
|
503
|
+
const i = p(e, "light", "light"), l = p(e, "light", "dark");
|
|
504
|
+
r(
|
|
505
|
+
i.backgroundColor,
|
|
506
|
+
l.backgroundColor,
|
|
507
|
+
i.textColor,
|
|
508
|
+
l.textColor
|
|
509
|
+
);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
case "outline": {
|
|
513
|
+
o.set("--button-bg", "transparent"), o.set("--button-bg-dark", "transparent"), o.set("--button-border", E(e, "light")), o.set("--button-border-dark", E(e, "dark")), o.set("--button-text", C(e, "light")), o.set("--button-text-dark", C(e, "dark")), o.set(
|
|
514
|
+
"--button-text-shadow",
|
|
515
|
+
"var(--text-shadow-button-light, var(--text-shadow-xs))"
|
|
516
|
+
), o.set(
|
|
517
|
+
"--button-text-shadow-dark",
|
|
518
|
+
"var(--text-shadow-button-light, var(--text-shadow-xs))"
|
|
519
|
+
);
|
|
520
|
+
const a = p(e, "light", "light"), s = p(e, "light", "dark");
|
|
521
|
+
r(
|
|
522
|
+
a.backgroundColor,
|
|
523
|
+
s.backgroundColor,
|
|
524
|
+
a.textColor,
|
|
525
|
+
s.textColor
|
|
526
|
+
);
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
case "default": {
|
|
530
|
+
const a = x("neutral", "light", "light"), s = x("neutral", "light", "dark");
|
|
531
|
+
o.set("--button-bg", a.backgroundColor), o.set("--button-text", C(e, "light")), o.set("--button-bg-dark", s.backgroundColor), o.set("--button-text-dark", C(e, "dark")), o.set(
|
|
532
|
+
"--button-text-shadow",
|
|
533
|
+
"var(--text-shadow-button-default, var(--text-shadow-2xs))"
|
|
534
|
+
), o.set(
|
|
535
|
+
"--button-text-shadow-dark",
|
|
536
|
+
"var(--text-shadow-button-default, var(--text-shadow-2xs))"
|
|
537
|
+
);
|
|
538
|
+
const i = p("base", "light", "light"), l = p("base", "light", "dark");
|
|
539
|
+
r(
|
|
540
|
+
i.backgroundColor,
|
|
541
|
+
l.backgroundColor,
|
|
542
|
+
o.get("--button-text") ?? a.textColor,
|
|
543
|
+
o.get("--button-text-dark") ?? s.textColor
|
|
544
|
+
);
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
case "text": {
|
|
548
|
+
o.set("--button-bg", "transparent"), o.set("--button-bg-dark", "transparent"), o.set("--button-text", C(e, "light")), o.set("--button-text-dark", C(e, "dark")), n || o.set("--button-hover-decoration", "underline");
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return Array.from(o.entries()).map(([a, s]) => `${a}: ${s}`).join("; ");
|
|
553
|
+
}
|
|
554
|
+
function Rt({
|
|
555
|
+
type: t = "button",
|
|
556
|
+
disabled: e,
|
|
557
|
+
loading: n,
|
|
558
|
+
variant: o = "filled",
|
|
559
|
+
size: r = "md",
|
|
560
|
+
color: a = "base",
|
|
561
|
+
roundedness: s = "sm",
|
|
562
|
+
onClick: i = () => {
|
|
563
|
+
}
|
|
564
|
+
}, ...l) {
|
|
565
|
+
const d = $(null);
|
|
566
|
+
return O(
|
|
567
|
+
G,
|
|
568
|
+
(g) => f.button(
|
|
569
|
+
c.type(t),
|
|
570
|
+
c.disabled(
|
|
571
|
+
m(
|
|
572
|
+
e,
|
|
573
|
+
n
|
|
574
|
+
)((u, h) => u || h)
|
|
575
|
+
),
|
|
576
|
+
// Add ARIA attributes for accessibility
|
|
577
|
+
b.busy(n ?? !1),
|
|
578
|
+
w(n ?? !1, () => b.label(g.$.loadingExtended)),
|
|
579
|
+
c.class(
|
|
580
|
+
m(
|
|
581
|
+
r,
|
|
582
|
+
s,
|
|
583
|
+
n
|
|
584
|
+
)(
|
|
585
|
+
(u, h, v) => wt(u ?? "md", h ?? "sm", v)
|
|
586
|
+
)
|
|
587
|
+
),
|
|
588
|
+
c.style(
|
|
589
|
+
m(
|
|
590
|
+
o,
|
|
591
|
+
a,
|
|
592
|
+
e
|
|
593
|
+
)(
|
|
594
|
+
(u, h, v) => yt(
|
|
595
|
+
u ?? "filled",
|
|
596
|
+
h ?? "base",
|
|
597
|
+
v
|
|
598
|
+
)
|
|
599
|
+
)
|
|
600
|
+
),
|
|
601
|
+
w(
|
|
602
|
+
n ?? !1,
|
|
603
|
+
() => y(
|
|
604
|
+
L.width(
|
|
605
|
+
d.map((u) => u == null ? "" : `${u.width}px`)
|
|
606
|
+
),
|
|
607
|
+
L.height(
|
|
608
|
+
d.map((u) => u == null ? "" : `${u.height}px`)
|
|
609
|
+
),
|
|
610
|
+
Ct({ icon: "line-md:loading-twotone-loop", size: r ?? "md" }),
|
|
611
|
+
// Hidden live region for screen reader announcements
|
|
612
|
+
f.span(
|
|
613
|
+
c.class("sr-only"),
|
|
614
|
+
b.live("polite"),
|
|
615
|
+
g.$.loadingExtended
|
|
616
|
+
)
|
|
617
|
+
),
|
|
618
|
+
() => y(I.click(i), ...l)
|
|
619
|
+
),
|
|
620
|
+
w(
|
|
621
|
+
n != null,
|
|
622
|
+
() => X(
|
|
623
|
+
(u) => A(
|
|
624
|
+
u.on((h) => {
|
|
625
|
+
_.get(n ?? !1) || d.set(h);
|
|
626
|
+
})
|
|
627
|
+
)
|
|
628
|
+
)
|
|
629
|
+
)
|
|
630
|
+
)
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
function It(t, e, n, o) {
|
|
634
|
+
const r = [
|
|
635
|
+
t ? "bc-base-input-container" : "bc-input-container"
|
|
636
|
+
];
|
|
637
|
+
return e ? r.push(
|
|
638
|
+
t ? "bc-base-input-container--disabled" : "bc-input-container--disabled"
|
|
639
|
+
) : r.push(
|
|
640
|
+
t ? "bc-base-input-container--default" : "bc-input-container--default"
|
|
641
|
+
), n && r.push("bc-input-container--error"), t || (r.push(`bc-control--padding-${o}`), r.push(`bc-control--text-size-${o}`)), r.join(" ");
|
|
642
|
+
}
|
|
643
|
+
const Lt = ({
|
|
644
|
+
baseContainer: t,
|
|
645
|
+
disabled: e,
|
|
646
|
+
input: n,
|
|
647
|
+
before: o,
|
|
648
|
+
after: r,
|
|
649
|
+
hasError: a,
|
|
650
|
+
focusableSelector: s = "input, select, textarea",
|
|
651
|
+
growInput: i = !0,
|
|
652
|
+
size: l
|
|
653
|
+
}, ...d) => {
|
|
654
|
+
const g = _.map(e ?? !1, (u) => u);
|
|
655
|
+
return f.div(
|
|
656
|
+
K((u) => {
|
|
657
|
+
const h = () => {
|
|
658
|
+
u.querySelector(s)?.focus();
|
|
659
|
+
};
|
|
660
|
+
return u.addEventListener("click", h), A(() => u.removeEventListener("click", h));
|
|
661
|
+
}),
|
|
662
|
+
c.class(
|
|
663
|
+
m(
|
|
664
|
+
t,
|
|
665
|
+
g,
|
|
666
|
+
a ?? !1,
|
|
667
|
+
l ?? "md"
|
|
668
|
+
)(
|
|
669
|
+
(u, h, v, F) => It(
|
|
670
|
+
u ?? !1,
|
|
671
|
+
h ?? !1,
|
|
672
|
+
v ?? !1,
|
|
673
|
+
F ?? "md"
|
|
674
|
+
)
|
|
675
|
+
)
|
|
676
|
+
),
|
|
677
|
+
o != null ? f.span(c.class("bc-input-container__before"), o) : null,
|
|
678
|
+
f.div(
|
|
679
|
+
c.class("bc-input-container__input"),
|
|
680
|
+
c.class(
|
|
681
|
+
_.map(
|
|
682
|
+
i,
|
|
683
|
+
(u) => u ? "bc-input-container__input--grow" : ""
|
|
684
|
+
)
|
|
685
|
+
),
|
|
686
|
+
n
|
|
687
|
+
),
|
|
688
|
+
r != null ? f.span(c.class("bc-input-container__after"), r) : null,
|
|
689
|
+
...d
|
|
690
|
+
);
|
|
691
|
+
}, Dt = ({
|
|
692
|
+
autocomplete: t,
|
|
693
|
+
autofocus: e,
|
|
694
|
+
class: n,
|
|
695
|
+
disabled: o,
|
|
696
|
+
name: r,
|
|
697
|
+
placeholder: a,
|
|
698
|
+
id: s,
|
|
699
|
+
required: i,
|
|
700
|
+
hasError: l
|
|
701
|
+
}) => y(
|
|
702
|
+
c.autocomplete(t),
|
|
703
|
+
c.autofocus(e),
|
|
704
|
+
c.class(n),
|
|
705
|
+
c.disabled(o),
|
|
706
|
+
c.name(r ?? s),
|
|
707
|
+
c.placeholder(a),
|
|
708
|
+
c.id(s),
|
|
709
|
+
b.required(i),
|
|
710
|
+
l != null ? b.invalid(
|
|
711
|
+
l ?? !1
|
|
712
|
+
) : null
|
|
713
|
+
), Ot = (t) => {
|
|
714
|
+
const { value: e, onBlur: n, onChange: o, onInput: r } = t;
|
|
715
|
+
return Lt({
|
|
716
|
+
...t,
|
|
717
|
+
input: W.text(
|
|
718
|
+
Dt(t),
|
|
719
|
+
c.value(e),
|
|
720
|
+
c.class("bc-input"),
|
|
721
|
+
n != null ? I.blur(S(n)) : P,
|
|
722
|
+
o != null ? I.change(S(o)) : P,
|
|
723
|
+
r != null ? I.input(S(r)) : P
|
|
724
|
+
)
|
|
725
|
+
});
|
|
726
|
+
};
|
|
727
|
+
function Bt(t) {
|
|
728
|
+
const e = t.split("-"), n = [t];
|
|
729
|
+
return e.length > 1 && n.push(e[0]), n;
|
|
730
|
+
}
|
|
731
|
+
function Pt({
|
|
732
|
+
locale: t,
|
|
733
|
+
defaultLocale: e = "en-US",
|
|
734
|
+
defaultMessages: n,
|
|
735
|
+
localeLoader: o
|
|
736
|
+
}) {
|
|
737
|
+
const r = $(e), a = $(n), s = t.on(async (i) => {
|
|
738
|
+
if (i === r.value) return;
|
|
739
|
+
r.set(i);
|
|
740
|
+
const l = Bt(i);
|
|
741
|
+
for (const d of l)
|
|
742
|
+
try {
|
|
743
|
+
const g = await o(d);
|
|
744
|
+
if (
|
|
745
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
746
|
+
typeof g.default == "object" && Object.keys(g).length === 1
|
|
747
|
+
) {
|
|
748
|
+
console.error(
|
|
749
|
+
"It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function."
|
|
750
|
+
);
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
if (i === r.value) {
|
|
754
|
+
a.set(g);
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
} catch {
|
|
758
|
+
continue;
|
|
759
|
+
}
|
|
760
|
+
console.warn(`No locale found for "${t.value}", using fallback`), i === r.value && a.set(n);
|
|
761
|
+
});
|
|
762
|
+
return {
|
|
763
|
+
/** Clean up all resources and event listeners */
|
|
764
|
+
dispose: () => {
|
|
765
|
+
s(), r.dispose(), a.dispose();
|
|
766
|
+
},
|
|
767
|
+
/** Translation functions that return reactive signals */
|
|
768
|
+
t: a
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function St({
|
|
772
|
+
defaultLocale: t,
|
|
773
|
+
defaultMessages: e,
|
|
774
|
+
localeLoader: n,
|
|
775
|
+
providerName: o = "I18nProvider"
|
|
776
|
+
}) {
|
|
777
|
+
return {
|
|
778
|
+
mark: R(o),
|
|
779
|
+
create: (r, a) => {
|
|
780
|
+
const {
|
|
781
|
+
value: { locale: s }
|
|
782
|
+
} = a.getProvider(lt.mark), { t: i, dispose: l } = Pt({
|
|
783
|
+
locale: s,
|
|
784
|
+
defaultMessages: e,
|
|
785
|
+
defaultLocale: t,
|
|
786
|
+
localeLoader: n
|
|
787
|
+
});
|
|
788
|
+
return {
|
|
789
|
+
value: i,
|
|
790
|
+
dispose: l
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
const G = St({
|
|
796
|
+
defaultLocale: ot,
|
|
797
|
+
defaultMessages: et,
|
|
798
|
+
localeLoader: async (t) => (await nt(/* @__PURE__ */ Object.assign({ "./locales/ar.ts": () => import("./ar-BUxQ3yNv.js"), "./locales/de.ts": () => import("./de-CKKQr2-K.js"), "./locales/en.ts": () => Promise.resolve().then(() => tt), "./locales/es.ts": () => import("./es-C5VUn_X1.js"), "./locales/fa.ts": () => import("./fa-Cs2LZsfr.js"), "./locales/fr.ts": () => import("./fr-Dlw8mKFp.js"), "./locales/he.ts": () => import("./he-Cm4NxsyE.js"), "./locales/hi.ts": () => import("./hi-Cjz1aQX2.js"), "./locales/it.ts": () => import("./it-iuFeIEsO.js"), "./locales/ja.ts": () => import("./ja-D6Dd96v-.js"), "./locales/ko.ts": () => import("./ko-C8GOsfIU.js"), "./locales/nl.ts": () => import("./nl-Ct2cyWWi.js"), "./locales/pl.ts": () => import("./pl-DewgRE-k.js"), "./locales/pt.ts": () => import("./pt-CNyp2zeW.js"), "./locales/ru.ts": () => import("./ru-U6PdSzha.js"), "./locales/tr.ts": () => import("./tr-CQVvooxi.js"), "./locales/ur.ts": () => import("./ur-C3LypxEh.js"), "./locales/vi.ts": () => import("./vi-M5ObJg3d.js"), "./locales/zh.ts": () => import("./zh-DGA8R46s.js") }), `./locales/${t}.ts`, 3)).default,
|
|
799
|
+
providerName: "BeatUII18n"
|
|
800
|
+
});
|
|
801
|
+
export {
|
|
802
|
+
Rt as B,
|
|
803
|
+
Dt as C,
|
|
804
|
+
Ct as I,
|
|
805
|
+
lt as L,
|
|
806
|
+
Ot as T,
|
|
807
|
+
nt as _,
|
|
808
|
+
G as a,
|
|
809
|
+
Lt as b,
|
|
810
|
+
x as c,
|
|
811
|
+
et as d,
|
|
812
|
+
E as e,
|
|
813
|
+
T as f,
|
|
814
|
+
wt as g,
|
|
815
|
+
p as h,
|
|
816
|
+
yt as i,
|
|
817
|
+
ot as j,
|
|
818
|
+
H as k,
|
|
819
|
+
pt as l,
|
|
820
|
+
St as m,
|
|
821
|
+
Pt as n,
|
|
822
|
+
q as o,
|
|
823
|
+
jt as p,
|
|
824
|
+
Tt as q,
|
|
825
|
+
at as r,
|
|
826
|
+
ft as s,
|
|
827
|
+
C as t,
|
|
828
|
+
Et as u,
|
|
829
|
+
st as v,
|
|
830
|
+
Vt as w
|
|
831
|
+
};
|