optikos 0.1.0 → 0.3.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/CHANGELOG.md +135 -0
- package/README.md +13 -11
- package/dist/chunk-23XLG2EM.js +2 -0
- package/dist/{chunk-666O2GKD.js.map → chunk-23XLG2EM.js.map} +1 -1
- package/dist/chunk-2YZB6XQR.js +2 -0
- package/dist/chunk-2YZB6XQR.js.map +7 -0
- package/dist/chunk-2ZRNGG2N.js +2 -0
- package/dist/chunk-2ZRNGG2N.js.map +7 -0
- package/dist/chunk-2ZUZ5HDL.js +2 -0
- package/dist/chunk-2ZUZ5HDL.js.map +7 -0
- package/dist/chunk-3S24ZRPK.js +2 -0
- package/dist/chunk-3S24ZRPK.js.map +7 -0
- package/dist/chunk-3TAW4AKH.js +2 -0
- package/dist/chunk-3TAW4AKH.js.map +7 -0
- package/dist/chunk-4EQEHJB3.js +2 -0
- package/dist/chunk-4EQEHJB3.js.map +7 -0
- package/dist/chunk-4EZJ5FKJ.js +2 -0
- package/dist/{chunk-IHAYOSBR.js.map → chunk-4EZJ5FKJ.js.map} +1 -1
- package/dist/chunk-4LZZ244E.js +2 -0
- package/dist/chunk-4LZZ244E.js.map +7 -0
- package/dist/chunk-4SYIIX5A.js +2 -0
- package/dist/chunk-4SYIIX5A.js.map +7 -0
- package/dist/chunk-5BC72727.js +2 -0
- package/dist/chunk-5BC72727.js.map +7 -0
- package/dist/chunk-5DJTP53N.js +2 -0
- package/dist/{chunk-ODWPBBVL.js.map → chunk-5DJTP53N.js.map} +1 -1
- package/dist/{chunk-NWTTHDIM.js → chunk-5JEXM5S7.js} +2 -2
- package/dist/chunk-5Q76ACVI.js +2 -0
- package/dist/{chunk-O4DCHALR.js.map → chunk-5Q76ACVI.js.map} +1 -1
- package/dist/chunk-5QUY72FX.js +2 -0
- package/dist/chunk-5QUY72FX.js.map +7 -0
- package/dist/{chunk-NV5AIBQP.js → chunk-6VBK2I5B.js} +2 -2
- package/dist/{chunk-ZYUXCZX7.js → chunk-7KMIFXHZ.js} +2 -2
- package/dist/{chunk-IYPKPLCU.js → chunk-A2NKDOYN.js} +2 -2
- package/dist/chunk-A2NKDOYN.js.map +7 -0
- package/dist/chunk-CKXS375P.js +2 -0
- package/dist/chunk-CKXS375P.js.map +7 -0
- package/dist/chunk-DBMWS3O5.js +2 -0
- package/dist/chunk-DBMWS3O5.js.map +7 -0
- package/dist/chunk-E4VNLYO2.js +2 -0
- package/dist/chunk-E4VNLYO2.js.map +7 -0
- package/dist/chunk-EDUMAMK4.js +2 -0
- package/dist/chunk-EDUMAMK4.js.map +7 -0
- package/dist/chunk-EJGWCKE4.js +2 -0
- package/dist/{chunk-4DHQKECB.js.map → chunk-EJGWCKE4.js.map} +1 -1
- package/dist/chunk-ELYARUCN.js +2 -0
- package/dist/{chunk-Z25NC4CS.js → chunk-EV73ADN2.js} +2 -2
- package/dist/{chunk-LV6HXFHU.js → chunk-FEHGU6EP.js} +3 -3
- package/dist/chunk-FEHGU6EP.js.map +7 -0
- package/dist/chunk-G2DAD3MQ.js +2 -0
- package/dist/chunk-G2DAD3MQ.js.map +7 -0
- package/dist/chunk-G2KUK6AT.js +2 -0
- package/dist/chunk-GD5JGKM7.js +2 -0
- package/dist/chunk-GD5JGKM7.js.map +7 -0
- package/dist/{chunk-LBCWEWPN.js → chunk-GNU4VOOE.js} +2 -2
- package/dist/{chunk-IW7PK4VS.js → chunk-GZ7X34QP.js} +2 -2
- package/dist/chunk-HOF4JGMQ.js +2 -0
- package/dist/chunk-HOF4JGMQ.js.map +7 -0
- package/dist/chunk-HXDTGP2K.js +2 -0
- package/dist/chunk-HXDTGP2K.js.map +7 -0
- package/dist/{chunk-QEQIJAAB.js → chunk-I4SP6JTU.js} +2 -2
- package/dist/chunk-IHE2MQ3W.js +2 -0
- package/dist/{chunk-OW2ZSMGS.js.map → chunk-IHE2MQ3W.js.map} +1 -1
- package/dist/chunk-JBLRAM7Z.js +2 -0
- package/dist/{chunk-JZNEB7A7.js.map → chunk-JBLRAM7Z.js.map} +1 -1
- package/dist/{chunk-4SUKNSCY.js → chunk-JI265XFO.js} +2 -2
- package/dist/chunk-JK74QK3M.js +2 -0
- package/dist/chunk-JK74QK3M.js.map +7 -0
- package/dist/chunk-JOFQJGZK.js +2 -0
- package/dist/chunk-JOFQJGZK.js.map +7 -0
- package/dist/chunk-KCEUD232.js +2 -0
- package/dist/chunk-KCEUD232.js.map +7 -0
- package/dist/chunk-KLLAY2IM.js +2 -0
- package/dist/chunk-KLLAY2IM.js.map +7 -0
- package/dist/chunk-LBJSMXLV.js +2 -0
- package/dist/chunk-LBJSMXLV.js.map +7 -0
- package/dist/chunk-LQRFNQ2N.js +2 -0
- package/dist/chunk-LQRFNQ2N.js.map +7 -0
- package/dist/{chunk-NDBFYIL6.js → chunk-LW2WRUVL.js} +2 -2
- package/dist/{chunk-NDBFYIL6.js.map → chunk-LW2WRUVL.js.map} +2 -2
- package/dist/chunk-M242VYZA.js +2 -0
- package/dist/{chunk-XVIC24AW.js.map → chunk-M242VYZA.js.map} +1 -1
- package/dist/chunk-MB3MU6HR.js +2 -0
- package/dist/chunk-MB3MU6HR.js.map +7 -0
- package/dist/chunk-MW3RWBZ7.js +2 -0
- package/dist/chunk-MW3RWBZ7.js.map +7 -0
- package/dist/chunk-NXSTUFS7.js +2 -0
- package/dist/chunk-NXSTUFS7.js.map +7 -0
- package/dist/chunk-OEAXCCVM.js +2 -0
- package/dist/chunk-OEAXCCVM.js.map +7 -0
- package/dist/chunk-OGRFQTXA.js +2 -0
- package/dist/chunk-OGRFQTXA.js.map +7 -0
- package/dist/chunk-Q26YZYTD.js +2 -0
- package/dist/chunk-Q26YZYTD.js.map +7 -0
- package/dist/chunk-REW4LR46.js +2 -0
- package/dist/chunk-REW4LR46.js.map +7 -0
- package/dist/chunk-RNN55473.js +2 -0
- package/dist/chunk-RNN55473.js.map +7 -0
- package/dist/{chunk-6NJW7QFD.js → chunk-SA53QUBF.js} +2 -2
- package/dist/chunk-TIPK3SCJ.js +2 -0
- package/dist/chunk-TIPK3SCJ.js.map +7 -0
- package/dist/{chunk-TBLICXWW.js → chunk-TOLTUOZS.js} +2 -2
- package/dist/{chunk-DXO3UJKL.js → chunk-TZOQWCVH.js} +2 -2
- package/dist/chunk-UB5RYS7T.js +2 -0
- package/dist/chunk-UB5RYS7T.js.map +7 -0
- package/dist/chunk-UXXJOU5J.js +2 -0
- package/dist/chunk-UXXJOU5J.js.map +7 -0
- package/dist/chunk-VU3GIDZ3.js +2 -0
- package/dist/chunk-VU3GIDZ3.js.map +7 -0
- package/dist/chunk-W2BAFOCN.js +3 -0
- package/dist/chunk-W2BAFOCN.js.map +7 -0
- package/dist/{chunk-SNTHW4K2.js → chunk-W3H7GTJY.js} +2 -2
- package/dist/chunk-WFGTQZIQ.js +2 -0
- package/dist/chunk-WFGTQZIQ.js.map +7 -0
- package/dist/{chunk-ZHVSHDLH.js → chunk-XHOBNSBO.js} +2 -2
- package/dist/chunk-XX2MVWFS.js +4 -0
- package/dist/chunk-XX2MVWFS.js.map +7 -0
- package/dist/chunk-XYZ6VZ5T.js +2 -0
- package/dist/chunk-XYZ6VZ5T.js.map +7 -0
- package/dist/chunk-YBAYEU25.js +2 -0
- package/dist/chunk-YBAYEU25.js.map +7 -0
- package/dist/chunk-YF75HKL6.js +2 -0
- package/dist/chunk-YF75HKL6.js.map +7 -0
- package/dist/chunk-YHEMA56R.js +2 -0
- package/dist/{chunk-5GNEFX6F.js.map → chunk-YHEMA56R.js.map} +1 -1
- package/dist/chunk-Z2JBUHKA.js +2 -0
- package/dist/chunk-Z2JBUHKA.js.map +7 -0
- package/dist/{chunk-6O2BXCRN.js → chunk-Z2Z52GFT.js} +2 -2
- package/dist/chunk-ZPPELYNJ.js +2 -0
- package/dist/chunk-ZPPELYNJ.js.map +7 -0
- package/dist/chunk-ZVK4L5GK.js +2 -0
- package/dist/chunk-ZVK4L5GK.js.map +7 -0
- package/dist/chunk-ZWNQREWS.js +2 -0
- package/dist/chunk-ZWNQREWS.js.map +7 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/badge.js.map +7 -0
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/cellediting.js +2 -0
- package/dist/components/cellediting.js.map +7 -0
- package/dist/components/chat.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkboxgroup.js +2 -0
- package/dist/components/checkboxgroup.js.map +7 -0
- package/dist/components/chip.js +2 -0
- package/dist/components/chip.js.map +7 -0
- package/dist/components/codeviewer.js +2 -0
- package/dist/components/codeviewer.js.map +7 -0
- package/dist/components/combobox.js +1 -1
- package/dist/components/commandpalette.js +1 -1
- package/dist/components/container.js +1 -1
- package/dist/components/dataview.js +1 -1
- package/dist/components/datefield.js +1 -1
- package/dist/components/daterangefield.js +1 -1
- package/dist/components/dial.js +2 -0
- package/dist/components/dial.js.map +7 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/fieldgroup.js +2 -0
- package/dist/components/fieldgroup.js.map +7 -0
- package/dist/components/fieldlist.js +2 -0
- package/dist/components/fieldlist.js.map +7 -0
- package/dist/components/fieldset.js +1 -1
- package/dist/components/filterbuilder.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/formactions.js +2 -0
- package/dist/components/formactions.js.map +7 -0
- package/dist/components/formerrors.js +2 -0
- package/dist/components/formerrors.js.map +7 -0
- package/dist/components/formsection.js +2 -0
- package/dist/components/formsection.js.map +7 -0
- package/dist/components/grid.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/inputgroup.js +2 -0
- package/dist/components/inputgroup.js.map +7 -0
- package/dist/components/label.js +1 -1
- package/dist/components/listbox.js +1 -1
- package/dist/components/lookupfield.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/messagebox.js +1 -1
- package/dist/components/navmenu.js +1 -1
- package/dist/components/numberfield.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pickerfield.js +1 -1
- package/dist/components/radiogroup.js +1 -1
- package/dist/components/searchgrid.js +1 -1
- package/dist/components/secretfield.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spacer.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/stepform.js +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/suggestfield.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/textfield.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle.js +2 -0
- package/dist/components/toggle.js.map +7 -0
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tree.js +2 -0
- package/dist/components/tree.js.map +7 -0
- package/dist/components/viewmanager.js +1 -1
- package/dist/components/viewport.js +1 -1
- package/dist/components/widget.js +1 -1
- package/dist/components/window.js +1 -1
- package/dist/core.js +1 -1
- package/dist/css/badge.css +39 -0
- package/dist/css/base.css +71 -51
- package/dist/css/button.css +2 -0
- package/dist/css/cellediting.css +33 -0
- package/dist/css/chat.css +0 -1
- package/dist/css/checkboxgroup.css +12 -0
- package/dist/css/chip.css +64 -0
- package/dist/css/codeviewer.css +109 -0
- package/dist/css/dial.css +203 -0
- package/dist/css/fieldgroup.css +26 -0
- package/dist/css/fieldlist.css +84 -0
- package/dist/css/fieldset.css +36 -0
- package/dist/css/formactions.css +40 -0
- package/dist/css/formerrors.css +39 -0
- package/dist/css/formsection.css +45 -0
- package/dist/css/grid.css +14 -3
- package/dist/css/inputgroup.css +58 -0
- package/dist/css/menu.css +54 -0
- package/dist/css/navmenu.css +9 -7
- package/dist/css/panel.css +8 -1
- package/dist/css/stepform.css +9 -0
- package/dist/css/stepper.css +7 -2
- package/dist/css/tabs.css +12 -3
- package/dist/css/toggle.css +39 -0
- package/dist/css/tree.css +94 -0
- package/dist/css/widget.css +58 -0
- package/dist/css/window.css +4 -0
- package/dist/data.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/optikos.css +1221 -106
- package/dist/themes/dark.css +47 -32
- package/dist/types/components/badge.d.ts +1 -0
- package/dist/types/components/base/badge/badge.d.ts +18 -0
- package/dist/types/components/base/chip/chip.d.ts +27 -0
- package/dist/types/components/base/codeviewer/codeviewer.d.ts +48 -0
- package/dist/types/components/cellediting.d.ts +1 -0
- package/dist/types/components/checkboxgroup.d.ts +1 -0
- package/dist/types/components/chip.d.ts +1 -0
- package/dist/types/components/codeviewer.d.ts +1 -0
- package/dist/types/components/data/cellediting/cellediting.d.ts +10 -0
- package/dist/types/components/data/filterbuilder/filterbuilder.d.ts +3 -1
- package/dist/types/components/data/grid/grid.d.ts +42 -16
- package/dist/types/components/data/tree/tree.d.ts +71 -0
- package/dist/types/components/dial.d.ts +1 -0
- package/dist/types/components/fieldgroup.d.ts +1 -0
- package/dist/types/components/fieldlist.d.ts +1 -0
- package/dist/types/components/fields/checkboxgroup/checkboxgroup.d.ts +27 -0
- package/dist/types/components/fields/dial/dial.d.ts +84 -0
- package/dist/types/components/fields/toggle/toggle.d.ts +9 -0
- package/dist/types/components/form/fieldgroup/fieldgroup.d.ts +33 -0
- package/dist/types/components/form/fieldlist/fieldlist.d.ts +58 -0
- package/dist/types/components/form/form/form.d.ts +19 -2
- package/dist/types/components/form/formactions/formactions.d.ts +34 -0
- package/dist/types/components/form/formerrors/formerrors.d.ts +23 -0
- package/dist/types/components/form/formsection/formsection.d.ts +26 -0
- package/dist/types/components/form/inputgroup/inputgroup.d.ts +28 -0
- package/dist/types/components/form/stepform/stepform.d.ts +30 -4
- package/dist/types/components/formactions.d.ts +1 -0
- package/dist/types/components/formerrors.d.ts +1 -0
- package/dist/types/components/formsection.d.ts +1 -0
- package/dist/types/components/inputgroup.d.ts +1 -0
- package/dist/types/components/layout/fieldset/fieldset.d.ts +9 -0
- package/dist/types/components/layout/panel/panel.d.ts +6 -0
- package/dist/types/components/layout/panel/reload.d.ts +1 -0
- package/dist/types/components/navigation/navmenu/navmenu.d.ts +6 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +8 -0
- package/dist/types/components/overlays/menu/menu.d.ts +17 -0
- package/dist/types/components/overlays/messagebox/messagebox.d.ts +8 -0
- package/dist/types/components/overlays/widget/widget.d.ts +13 -0
- package/dist/types/components/overlays/window/window.d.ts +8 -1
- package/dist/types/components/toggle.d.ts +1 -0
- package/dist/types/components/tree.d.ts +1 -0
- package/dist/types/core/component.d.ts +6 -2
- package/dist/types/core/i18n.d.ts +5 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/position.d.ts +4 -1
- package/dist/types/data/column.d.ts +9 -4
- package/dist/types/index.d.ts +14 -0
- package/dist/types/themes/define.d.ts +4 -3
- package/dist/types/ui/enums.d.ts +0 -6
- package/dist/types/ui/ui.d.ts +12 -3
- package/dist/ui.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-4COBH4QJ.js +0 -2
- package/dist/chunk-4COBH4QJ.js.map +0 -7
- package/dist/chunk-4DHQKECB.js +0 -2
- package/dist/chunk-4Q67QI7J.js +0 -2
- package/dist/chunk-4Q67QI7J.js.map +0 -7
- package/dist/chunk-5AXLYDKU.js +0 -2
- package/dist/chunk-5AXLYDKU.js.map +0 -7
- package/dist/chunk-5GNEFX6F.js +0 -2
- package/dist/chunk-5Q6Y6CM4.js +0 -2
- package/dist/chunk-5Q6Y6CM4.js.map +0 -7
- package/dist/chunk-666O2GKD.js +0 -2
- package/dist/chunk-A66MDXHL.js +0 -2
- package/dist/chunk-A66MDXHL.js.map +0 -7
- package/dist/chunk-ARCW54L2.js +0 -2
- package/dist/chunk-ARCW54L2.js.map +0 -7
- package/dist/chunk-BIYNHKSA.js +0 -2
- package/dist/chunk-BIYNHKSA.js.map +0 -7
- package/dist/chunk-BNPVRIFT.js +0 -2
- package/dist/chunk-BNPVRIFT.js.map +0 -7
- package/dist/chunk-C3N7QTQB.js +0 -2
- package/dist/chunk-C3N7QTQB.js.map +0 -7
- package/dist/chunk-CEXY5A4T.js +0 -2
- package/dist/chunk-CN7USUJR.js +0 -2
- package/dist/chunk-CN7USUJR.js.map +0 -7
- package/dist/chunk-CQRHNTEX.js +0 -2
- package/dist/chunk-CUPAPOKC.js +0 -2
- package/dist/chunk-CUPAPOKC.js.map +0 -7
- package/dist/chunk-GZNQPENR.js +0 -2
- package/dist/chunk-GZNQPENR.js.map +0 -7
- package/dist/chunk-HFFK6K4K.js +0 -2
- package/dist/chunk-HFFK6K4K.js.map +0 -7
- package/dist/chunk-IHAYOSBR.js +0 -2
- package/dist/chunk-IO66A6G5.js +0 -2
- package/dist/chunk-IO66A6G5.js.map +0 -7
- package/dist/chunk-IYPKPLCU.js.map +0 -7
- package/dist/chunk-JTYWZMSZ.js +0 -2
- package/dist/chunk-JTYWZMSZ.js.map +0 -7
- package/dist/chunk-JVEPKW5X.js +0 -2
- package/dist/chunk-JVEPKW5X.js.map +0 -7
- package/dist/chunk-JZNEB7A7.js +0 -2
- package/dist/chunk-K2DGY6MP.js +0 -2
- package/dist/chunk-K2DGY6MP.js.map +0 -7
- package/dist/chunk-LEE2FEEL.js +0 -2
- package/dist/chunk-LEE2FEEL.js.map +0 -7
- package/dist/chunk-LMGCV35W.js +0 -2
- package/dist/chunk-LMGCV35W.js.map +0 -7
- package/dist/chunk-LV6HXFHU.js.map +0 -7
- package/dist/chunk-MA5BJL3S.js +0 -2
- package/dist/chunk-MA5BJL3S.js.map +0 -7
- package/dist/chunk-NHVEP72K.js +0 -2
- package/dist/chunk-NHVEP72K.js.map +0 -7
- package/dist/chunk-O4DCHALR.js +0 -2
- package/dist/chunk-ODWPBBVL.js +0 -2
- package/dist/chunk-OW2ZSMGS.js +0 -2
- package/dist/chunk-PSPQH35P.js +0 -2
- package/dist/chunk-PSPQH35P.js.map +0 -7
- package/dist/chunk-T4OYVG2X.js +0 -2
- package/dist/chunk-T4OYVG2X.js.map +0 -7
- package/dist/chunk-TK2RC3T5.js +0 -2
- package/dist/chunk-TK2RC3T5.js.map +0 -7
- package/dist/chunk-U3X2FW6U.js +0 -2
- package/dist/chunk-U3X2FW6U.js.map +0 -7
- package/dist/chunk-UPOBGNJ5.js +0 -2
- package/dist/chunk-UPOBGNJ5.js.map +0 -7
- package/dist/chunk-XVIC24AW.js +0 -2
- package/dist/chunk-XZ5CUZZP.js +0 -2
- package/dist/chunk-XZ5CUZZP.js.map +0 -7
- package/dist/chunk-XZEOSW3Q.js +0 -2
- package/dist/chunk-XZEOSW3Q.js.map +0 -7
- package/dist/chunk-YET5PM6F.js +0 -2
- package/dist/chunk-YET5PM6F.js.map +0 -7
- package/dist/chunk-ZCAAM4NH.js +0 -2
- package/dist/chunk-ZCAAM4NH.js.map +0 -7
- package/dist/themes/brand.css +0 -240
- package/dist/themes/brutal.css +0 -100
- package/dist/themes/corporate.css +0 -112
- package/dist/themes/editorial.css +0 -110
- package/dist/themes/soft.css +0 -101
- package/dist/themes/terminal.css +0 -91
- /package/dist/{chunk-NWTTHDIM.js.map → chunk-5JEXM5S7.js.map} +0 -0
- /package/dist/{chunk-NV5AIBQP.js.map → chunk-6VBK2I5B.js.map} +0 -0
- /package/dist/{chunk-ZYUXCZX7.js.map → chunk-7KMIFXHZ.js.map} +0 -0
- /package/dist/{chunk-CEXY5A4T.js.map → chunk-ELYARUCN.js.map} +0 -0
- /package/dist/{chunk-Z25NC4CS.js.map → chunk-EV73ADN2.js.map} +0 -0
- /package/dist/{chunk-CQRHNTEX.js.map → chunk-G2KUK6AT.js.map} +0 -0
- /package/dist/{chunk-LBCWEWPN.js.map → chunk-GNU4VOOE.js.map} +0 -0
- /package/dist/{chunk-IW7PK4VS.js.map → chunk-GZ7X34QP.js.map} +0 -0
- /package/dist/{chunk-QEQIJAAB.js.map → chunk-I4SP6JTU.js.map} +0 -0
- /package/dist/{chunk-4SUKNSCY.js.map → chunk-JI265XFO.js.map} +0 -0
- /package/dist/{chunk-6NJW7QFD.js.map → chunk-SA53QUBF.js.map} +0 -0
- /package/dist/{chunk-TBLICXWW.js.map → chunk-TOLTUOZS.js.map} +0 -0
- /package/dist/{chunk-DXO3UJKL.js.map → chunk-TZOQWCVH.js.map} +0 -0
- /package/dist/{chunk-SNTHW4K2.js.map → chunk-W3H7GTJY.js.map} +0 -0
- /package/dist/{chunk-ZHVSHDLH.js.map → chunk-XHOBNSBO.js.map} +0 -0
- /package/dist/{chunk-6O2BXCRN.js.map → chunk-Z2Z52GFT.js.map} +0 -0
package/dist/css/panel.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
padding: var(--op-panel-header-padding, var(--op-space-2) var(--op-space-3));
|
|
20
20
|
background: var(--op-panel-header-bg, var(--op-color-surface-2));
|
|
21
21
|
color: var(--op-panel-header-fg, var(--op-color-fg));
|
|
22
|
-
border-block-end: var(--op-border-width) solid var(--op-panel-border, var(--op-color-border));
|
|
22
|
+
border-block-end: var(--op-border-width) solid var(--op-panel-header-border, var(--op-panel-border, var(--op-color-border-strong)));
|
|
23
23
|
font-weight: var(--op-font-weight-bold);
|
|
24
24
|
}
|
|
25
25
|
.op-panel__title {
|
|
@@ -74,4 +74,11 @@
|
|
|
74
74
|
border-block-end: 0;
|
|
75
75
|
border-block-start: var(--op-border-width) solid var(--op-color-border);
|
|
76
76
|
}
|
|
77
|
+
/* the ↻ tool turns while the panel reloads */
|
|
78
|
+
.op-panel.is-reloading > .op-panel__header .op-panel__tool svg {
|
|
79
|
+
animation: op-spin 700ms linear infinite;
|
|
80
|
+
}
|
|
81
|
+
.op-motion-off .op-panel.is-reloading > .op-panel__header .op-panel__tool svg {
|
|
82
|
+
animation: none;
|
|
83
|
+
}
|
|
77
84
|
}
|
package/dist/css/stepform.css
CHANGED
|
@@ -43,4 +43,13 @@
|
|
|
43
43
|
margin: 0;
|
|
44
44
|
overflow-wrap: anywhere;
|
|
45
45
|
}
|
|
46
|
+
/* a step's general message (its validate returned a string) */
|
|
47
|
+
.op-stepform__note {
|
|
48
|
+
margin-block-end: var(--op-space-3);
|
|
49
|
+
padding: var(--op-space-2) var(--op-space-3);
|
|
50
|
+
color: var(--op-color-danger);
|
|
51
|
+
background: var(--op-color-danger-soft);
|
|
52
|
+
border-radius: var(--op-radius);
|
|
53
|
+
font-size: var(--op-font-size-sm);
|
|
54
|
+
}
|
|
46
55
|
}
|
package/dist/css/stepper.css
CHANGED
|
@@ -102,10 +102,15 @@
|
|
|
102
102
|
.op-stepper__step.is-error .op-stepper__btn {
|
|
103
103
|
color: var(--op-color-danger);
|
|
104
104
|
}
|
|
105
|
-
/* phones: only the current step
|
|
105
|
+
/* phones: only the current step shows its words; the others keep them for screen readers (the button's name) */
|
|
106
106
|
@media (max-width: 40rem) {
|
|
107
107
|
.op-stepper__step:not(.is-current) .op-stepper__text {
|
|
108
|
-
|
|
108
|
+
position: absolute;
|
|
109
|
+
inline-size: 0;
|
|
110
|
+
block-size: 0;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
clip-path: inset(50%);
|
|
113
|
+
white-space: nowrap;
|
|
109
114
|
}
|
|
110
115
|
.op-stepper__step:not(.is-current) {
|
|
111
116
|
flex: none;
|
package/dist/css/tabs.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
flex: none;
|
|
18
18
|
gap: var(--op-tabs-gap, var(--op-space-1));
|
|
19
|
-
background: var(--op-tabs-bar-bg, var(--op-color-surface));
|
|
19
|
+
background: var(--op-tabs-bar-bg, var(--op-color-surface-2));
|
|
20
20
|
border-block-end: var(--op-border-width) solid var(--op-color-border);
|
|
21
21
|
overflow-x: auto;
|
|
22
22
|
overflow-y: hidden;
|
|
@@ -57,13 +57,22 @@
|
|
|
57
57
|
color: var(--op-color-disabled-fg);
|
|
58
58
|
cursor: not-allowed;
|
|
59
59
|
}
|
|
60
|
-
.op-tabs__close
|
|
60
|
+
.op-tabs__close,
|
|
61
|
+
.op-tabs__reload {
|
|
61
62
|
display: inline-flex;
|
|
62
63
|
border-radius: var(--op-radius-sm);
|
|
63
64
|
}
|
|
64
|
-
.op-tabs__close:hover
|
|
65
|
+
.op-tabs__close:hover,
|
|
66
|
+
.op-tabs__reload:hover {
|
|
65
67
|
background: var(--op-color-hover);
|
|
66
68
|
}
|
|
69
|
+
/* the ↻ turns while the tab reloads */
|
|
70
|
+
.op-tabs__tab.is-reloading .op-tabs__reload svg {
|
|
71
|
+
animation: op-spin 700ms linear infinite;
|
|
72
|
+
}
|
|
73
|
+
.op-motion-off .op-tabs__tab.is-reloading .op-tabs__reload svg {
|
|
74
|
+
animation: none;
|
|
75
|
+
}
|
|
67
76
|
.op-tabs__panels {
|
|
68
77
|
flex: 1;
|
|
69
78
|
min-width: 0;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@layer optikos {
|
|
2
|
+
:root {
|
|
3
|
+
--op-toggle-width: 2.25rem;
|
|
4
|
+
--op-toggle-height: 1.25rem;
|
|
5
|
+
--op-toggle-knob-inset: 0.1875rem;
|
|
6
|
+
}
|
|
7
|
+
/* the checkbox box becomes a track; its knob is a pseudo-element that slides */
|
|
8
|
+
.op-toggle .op-checkbox__box {
|
|
9
|
+
inline-size: var(--op-toggle-width);
|
|
10
|
+
block-size: var(--op-toggle-height);
|
|
11
|
+
border-radius: var(--op-radius-pill);
|
|
12
|
+
background: var(--op-toggle-track-bg, var(--op-color-border-strong));
|
|
13
|
+
border-color: transparent;
|
|
14
|
+
transition: background var(--op-duration) var(--op-easing);
|
|
15
|
+
}
|
|
16
|
+
.op-toggle .op-checkbox__box > * {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
.op-toggle .op-checkbox__box::after {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset-block: var(--op-toggle-knob-inset);
|
|
23
|
+
inset-inline-start: var(--op-toggle-knob-inset);
|
|
24
|
+
aspect-ratio: 1;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
background: var(--op-toggle-knob-bg, var(--op-color-surface));
|
|
27
|
+
box-shadow: var(--op-shadow-sm);
|
|
28
|
+
transition: translate var(--op-duration) var(--op-easing);
|
|
29
|
+
}
|
|
30
|
+
.op-toggle.is-checked .op-checkbox__box {
|
|
31
|
+
background: var(--op-toggle-on-bg, var(--op-color-primary));
|
|
32
|
+
}
|
|
33
|
+
.op-toggle.is-checked .op-checkbox__box::after {
|
|
34
|
+
translate: calc(var(--op-toggle-width) - var(--op-toggle-height)) 0;
|
|
35
|
+
}
|
|
36
|
+
[dir='rtl'] .op-toggle.is-checked .op-checkbox__box::after {
|
|
37
|
+
translate: calc((var(--op-toggle-width) - var(--op-toggle-height)) * -1) 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@layer optikos {
|
|
2
|
+
:root {
|
|
3
|
+
--op-tree-indent: 1.25rem;
|
|
4
|
+
--op-tree-check-size: 1rem;
|
|
5
|
+
--op-tree-check-icon-size: 0.8em;
|
|
6
|
+
}
|
|
7
|
+
.op-tree {
|
|
8
|
+
display: block;
|
|
9
|
+
min-inline-size: 0;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
color: var(--op-tree-fg, var(--op-color-fg));
|
|
12
|
+
background: var(--op-tree-bg, transparent);
|
|
13
|
+
}
|
|
14
|
+
.op-tree__root,
|
|
15
|
+
.op-tree__group {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
}
|
|
20
|
+
.op-tree__item {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--op-space-2);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
min-block-size: var(--op-tree-item-height, var(--op-row-height));
|
|
26
|
+
padding-inline: var(--op-space-1) var(--op-space-3);
|
|
27
|
+
padding-inline-start: calc(var(--op-space-1) + var(--_level, 0) * var(--op-tree-indent));
|
|
28
|
+
border-radius: var(--op-radius-sm);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
user-select: none;
|
|
31
|
+
}
|
|
32
|
+
.op-tree__item:hover:not(.is-disabled) {
|
|
33
|
+
background: var(--op-tree-hover-bg, var(--op-color-hover));
|
|
34
|
+
}
|
|
35
|
+
.op-tree__item:focus-visible {
|
|
36
|
+
outline: var(--op-focus-width) solid var(--op-color-focus);
|
|
37
|
+
outline-offset: calc(var(--op-focus-width) * -1);
|
|
38
|
+
}
|
|
39
|
+
.op-tree__item.is-selected {
|
|
40
|
+
color: var(--op-tree-selected-fg, var(--op-color-fg));
|
|
41
|
+
background: var(--op-tree-selected-bg, var(--op-color-selected));
|
|
42
|
+
}
|
|
43
|
+
.op-tree__item.is-disabled {
|
|
44
|
+
color: var(--op-color-disabled-fg);
|
|
45
|
+
cursor: default;
|
|
46
|
+
}
|
|
47
|
+
.op-tree__toggle {
|
|
48
|
+
display: inline-grid;
|
|
49
|
+
place-items: center;
|
|
50
|
+
flex: none;
|
|
51
|
+
inline-size: var(--op-tree-indent);
|
|
52
|
+
color: var(--op-color-fg-muted);
|
|
53
|
+
}
|
|
54
|
+
.op-tree__toggle .op-icon {
|
|
55
|
+
transition: transform var(--op-duration) var(--op-easing);
|
|
56
|
+
}
|
|
57
|
+
.op-tree__item.is-expanded > .op-tree__toggle .op-icon {
|
|
58
|
+
transform: rotate(90deg);
|
|
59
|
+
}
|
|
60
|
+
.op-tree__spinner {
|
|
61
|
+
--op-spinner-size: var(--op-tree-check-size);
|
|
62
|
+
}
|
|
63
|
+
.op-tree__check {
|
|
64
|
+
display: inline-grid;
|
|
65
|
+
place-items: center;
|
|
66
|
+
flex: none;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
inline-size: var(--op-tree-check-size);
|
|
69
|
+
block-size: var(--op-tree-check-size);
|
|
70
|
+
border: var(--op-border-width) solid var(--op-color-border-strong);
|
|
71
|
+
border-radius: var(--op-radius-sm);
|
|
72
|
+
background: var(--op-color-surface);
|
|
73
|
+
--op-icon-size: var(--op-tree-check-icon-size);
|
|
74
|
+
}
|
|
75
|
+
.op-tree__check.is-checked,
|
|
76
|
+
.op-tree__check.is-mixed {
|
|
77
|
+
color: var(--op-color-primary-fg);
|
|
78
|
+
background: var(--op-color-primary);
|
|
79
|
+
border-color: var(--op-color-primary);
|
|
80
|
+
}
|
|
81
|
+
.op-tree__icon {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
color: var(--op-tree-icon-fg, var(--op-color-fg-muted));
|
|
84
|
+
}
|
|
85
|
+
.op-tree__text {
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
}
|
|
90
|
+
.op-tree__empty {
|
|
91
|
+
padding: var(--op-space-3);
|
|
92
|
+
color: var(--op-color-fg-muted);
|
|
93
|
+
}
|
|
94
|
+
}
|
package/dist/css/widget.css
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
--op-widget-height: 26rem;
|
|
5
5
|
--op-widget-wide: 36rem;
|
|
6
6
|
--op-widget-offset: var(--op-space-4);
|
|
7
|
+
--op-widget-grip: 0.5rem;
|
|
8
|
+
--op-widget-corner: 1rem;
|
|
7
9
|
}
|
|
8
10
|
.op-widget {
|
|
9
11
|
min-block-size: 0;
|
|
@@ -74,4 +76,60 @@
|
|
|
74
76
|
.op-widget.is-dragging {
|
|
75
77
|
transition: none;
|
|
76
78
|
}
|
|
79
|
+
/* resize: an invisible strip on the inner edge (a line shows on hover/focus); a corner grip once the widget was moved */
|
|
80
|
+
.op-widget__resize {
|
|
81
|
+
position: absolute;
|
|
82
|
+
z-index: 1;
|
|
83
|
+
touch-action: none;
|
|
84
|
+
}
|
|
85
|
+
.op-widget--right .op-widget__resize,
|
|
86
|
+
.op-widget--left .op-widget__resize {
|
|
87
|
+
inset-block: 0;
|
|
88
|
+
inline-size: var(--op-widget-grip);
|
|
89
|
+
cursor: ew-resize;
|
|
90
|
+
}
|
|
91
|
+
.op-widget--right .op-widget__resize {
|
|
92
|
+
inset-inline-start: calc(var(--op-widget-grip) / -2);
|
|
93
|
+
}
|
|
94
|
+
.op-widget--left .op-widget__resize {
|
|
95
|
+
inset-inline-end: calc(var(--op-widget-grip) / -2);
|
|
96
|
+
}
|
|
97
|
+
.op-widget--top .op-widget__resize,
|
|
98
|
+
.op-widget--bottom .op-widget__resize {
|
|
99
|
+
inset-inline: 0;
|
|
100
|
+
block-size: var(--op-widget-grip);
|
|
101
|
+
cursor: ns-resize;
|
|
102
|
+
}
|
|
103
|
+
.op-widget--top .op-widget__resize {
|
|
104
|
+
inset-block-end: calc(var(--op-widget-grip) / -2);
|
|
105
|
+
}
|
|
106
|
+
.op-widget--bottom .op-widget__resize {
|
|
107
|
+
inset-block-start: calc(var(--op-widget-grip) / -2);
|
|
108
|
+
}
|
|
109
|
+
.op-widget__resize:hover,
|
|
110
|
+
.op-widget__resize:focus-visible,
|
|
111
|
+
.op-widget.is-resizing .op-widget__resize {
|
|
112
|
+
background: linear-gradient(var(--op-color-primary), var(--op-color-primary)) center / var(--op-focus-width) 100% no-repeat;
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
.op-widget--top .op-widget__resize:is(:hover, :focus-visible),
|
|
116
|
+
.op-widget--bottom .op-widget__resize:is(:hover, :focus-visible),
|
|
117
|
+
.op-widget--top.is-resizing .op-widget__resize,
|
|
118
|
+
.op-widget--bottom.is-resizing .op-widget__resize {
|
|
119
|
+
background-size: 100% var(--op-focus-width);
|
|
120
|
+
}
|
|
121
|
+
.op-widget.is-moved .op-widget__resize {
|
|
122
|
+
inset: auto 0 0 auto;
|
|
123
|
+
inline-size: var(--op-widget-corner);
|
|
124
|
+
block-size: var(--op-widget-corner);
|
|
125
|
+
background: linear-gradient(135deg, transparent 55%, var(--op-color-border-strong) 55% 62%, transparent 62% 75%, var(--op-color-border-strong) 75% 82%, transparent 82%);
|
|
126
|
+
cursor: nwse-resize;
|
|
127
|
+
}
|
|
128
|
+
.op-widget.is-moved .op-widget__resize:focus-visible {
|
|
129
|
+
outline: var(--op-focus-width) solid var(--op-color-focus);
|
|
130
|
+
}
|
|
131
|
+
.op-widget.is-resizing {
|
|
132
|
+
transition: none;
|
|
133
|
+
user-select: none;
|
|
134
|
+
}
|
|
77
135
|
}
|
package/dist/css/window.css
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
inset: 0;
|
|
8
8
|
background: var(--op-backdrop-bg, var(--op-color-overlay));
|
|
9
9
|
}
|
|
10
|
+
/* mask: false — still modal (the page is inert and takes no clicks), just not dimmed */
|
|
11
|
+
.op-window-backdrop.is-clear {
|
|
12
|
+
background: transparent;
|
|
13
|
+
}
|
|
10
14
|
.op-window {
|
|
11
15
|
position: fixed;
|
|
12
16
|
inline-size: var(--op-window-width);
|
package/dist/data.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,b as e}from"./chunk-X2ASKUFD.js";import{a as f,b as g,c as h}from"./chunk-
|
|
1
|
+
import{a as d,b as e}from"./chunk-X2ASKUFD.js";import{a as f,b as g,c as h}from"./chunk-LW2WRUVL.js";import{a,b,c}from"./chunk-OEAXCCVM.js";import"./chunk-MW3RWBZ7.js";import"./chunk-4C666HHU.js";export{d as MemoryProxy,a as Model,e as RestProxy,c as Store,h as cellContent,g as format,b as matchFilter,f as registerFormat};
|
|
2
2
|
//# sourceMappingURL=data.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as Gr,b as Jr}from"./chunk-IHE2MQ3W.js";import{a as Kr,b as Nr}from"./chunk-SA53QUBF.js";import{a as Or}from"./chunk-5BC72727.js";import{a as Sr}from"./chunk-Q26YZYTD.js";import{a as qr}from"./chunk-GD5JGKM7.js";import{a as zr}from"./chunk-CKXS375P.js";import{a as Fr}from"./chunk-4SYIIX5A.js";import{a as Lr}from"./chunk-5QUY72FX.js";import{a as Rr}from"./chunk-WFGTQZIQ.js";import{a as Mr}from"./chunk-JOFQJGZK.js";import"./chunk-ELYARUCN.js";import{a as Ir}from"./chunk-REW4LR46.js";import{a as Pr}from"./chunk-TOLTUOZS.js";import{a as wr}from"./chunk-RNN55473.js";import{a as Cr}from"./chunk-LBJSMXLV.js";import{a as Dr}from"./chunk-3S24ZRPK.js";import{a as Br}from"./chunk-YBAYEU25.js";import{a as Hr}from"./chunk-HOF4JGMQ.js";import{a as $r}from"./chunk-JBLRAM7Z.js";import{a as jr}from"./chunk-DBMWS3O5.js";import{a as Vr,b as Er,c as kr}from"./chunk-UXXJOU5J.js";import{a as Ar}from"./chunk-5DJTP53N.js";import{a as lr}from"./chunk-ZPPELYNJ.js";import{a as gr,b as hr}from"./chunk-XX2MVWFS.js";import{a as yr}from"./chunk-FEHGU6EP.js";import{a as Tr}from"./chunk-KCEUD232.js";import{a as br}from"./chunk-M242VYZA.js";import{a as vr}from"./chunk-2YZB6XQR.js";import{a as C}from"./chunk-GZ7X34QP.js";import{a as K,b as N}from"./chunk-X2ASKUFD.js";import"./chunk-X6AULZI4.js";import{a as tr,b as mr,c as pr,d as fr,e as nr,f as xr,g as ir,h as sr,i as ar,j as cr,k as ur}from"./chunk-4EQEHJB3.js";import{a as Do}from"./chunk-HXDTGP2K.js";import{a as er}from"./chunk-VU3GIDZ3.js";import{a as Ho}from"./chunk-6VBK2I5B.js";import{a as _o}from"./chunk-NXSTUFS7.js";import{a as Ro}from"./chunk-G2KUK6AT.js";import{a as or}from"./chunk-Z2Z52GFT.js";import{a as jo}from"./chunk-XHOBNSBO.js";import{a as Co}from"./chunk-I4SP6JTU.js";import{a as Bo}from"./chunk-OGRFQTXA.js";import{a as Io}from"./chunk-JI265XFO.js";import{a as wo}from"./chunk-EDUMAMK4.js";import{a as rr}from"./chunk-JK74QK3M.js";import{a as Xo}from"./chunk-UB5RYS7T.js";import{a as Po}from"./chunk-TZOQWCVH.js";import{a as Mo}from"./chunk-EV73ADN2.js";import{a as Lo}from"./chunk-5Q76ACVI.js";import{a as Oo,b as Qo,c as Uo,d as Wo}from"./chunk-EJGWCKE4.js";import{a as No}from"./chunk-YF75HKL6.js";import{a as Zo}from"./chunk-KLLAY2IM.js";import{a as Go}from"./chunk-4LZZ244E.js";import{a as Fo}from"./chunk-LQRFNQ2N.js";import"./chunk-XYZ6VZ5T.js";import{a as qo}from"./chunk-GNU4VOOE.js";import{a as So}from"./chunk-23XLG2EM.js";import{a as Yo}from"./chunk-YHEMA56R.js";import{a as Jo}from"./chunk-ZVK4L5GK.js";import{a as Vo}from"./chunk-7KMIFXHZ.js";import{a as Ao}from"./chunk-3TAW4AKH.js";import{a as Ko}from"./chunk-W2BAFOCN.js";import{a as Eo}from"./chunk-Z2JBUHKA.js";import{a as $o}from"./chunk-W3H7GTJY.js";import{a as ko}from"./chunk-G2DAD3MQ.js";import{a as S,b as q}from"./chunk-OWEQT2HN.js";import{a as E,b as k,c as A}from"./chunk-ZWNQREWS.js";import{a as L,b as M}from"./chunk-E4VNLYO2.js";import{a as D,b as B,c as H}from"./chunk-676AKAGF.js";import{a as R,b as I,c as P}from"./chunk-VV7CFMPZ.js";import{a as w}from"./chunk-2ZRNGG2N.js";import{i as z}from"./chunk-5JEXM5S7.js";import{a as O,b as Q,c as U}from"./chunk-LW2WRUVL.js";import{a as F,b as G,c as J}from"./chunk-OEAXCCVM.js";import{a as no,b as xo,c as io,d as so,e as ao,f as co,g as uo,h as lo,i as go,j as ho}from"./chunk-6NCXO5ZP.js";import{a as dr}from"./chunk-MB3MU6HR.js";import{a as zo}from"./chunk-2ZUZ5HDL.js";import{a as Z,b as _,c as oo,d as ro,e as eo,f as to,g as mo,h as po,i as fo}from"./chunk-4AA4FQEM.js";import{a as W,b as X,c as Y}from"./chunk-2UPUC4RK.js";import{a as yo,b as To,c as bo,d as vo}from"./chunk-4EZJ5FKJ.js";import{a as v}from"./chunk-A2NKDOYN.js";import{a,b as c,c as u,d as m,e as d,f as l}from"./chunk-PZSHOSOS.js";import{a as $,b as j,c as V}from"./chunk-TIPK3SCJ.js";import{a as s,b as g,c as h,d as y,e as T,f as b}from"./chunk-MW3RWBZ7.js";import"./chunk-4C666HHU.js";function x(e,t="custom"){let p=[];for(let r in e){let o=e[r];if(o!=null)if(typeof o!="object")p.push(` --op-${m(r)}: ${o};`);else for(let n in o)p.push(` --op-${m(r)}-${m(n)}: ${o[n]};`)}let f=`@layer optikos {
|
|
2
2
|
[data-op-theme~='${t}'] {
|
|
3
|
-
${
|
|
3
|
+
${p.join(`
|
|
4
4
|
`)}
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`;return{name:t,css:
|
|
7
|
+
`;return{name:t,css:f,inject(){let r=`op-theme-${t}`,o=document.getElementById(r);o||(o=document.createElement("style"),o.id=r,document.head.appendChild(o)),o.textContent=f},apply(r=document.documentElement){this.inject();let o=new Set((r.getAttribute("data-op-theme")??"").split(/\s+/).filter(Boolean));o.add(t),r.setAttribute("data-op-theme",[...o].join(" "))}}}function i(e,t=document.documentElement){t.setAttribute("data-op-theme",Array.isArray(e)?e.join(" "):e)}export{dr as Badge,Sr as Breadcrumb,zo as Button,ko as Calendar,yr as Chat,Co as Checkbox,Bo as CheckboxGroup,lr as Chip,hr as CodeViewer,Io as ComboBox,Fr as CommandPalette,v as Component,A as Container,W as DEFAULTS,br as DataView,Ao as DateField,wo as DateRangeField,rr as Dial,fr as Direction,Eo as Dropdown,s as Emitter,w as Field,wr as FieldGroup,Cr as FieldList,Ir as FieldSet,vr as FilterBuilder,er as Form,Dr as FormActions,Br as FormErrors,Hr as FormSection,No as Grid,vo as Icon,Lr as InputGroup,Yo as Label,pr as LabelPos,ir as LayoutKind,Lo as ListBox,Xo as LookupField,K as MemoryProxy,Ko as Menu,Zo as MessageBox,F as Model,qr as NavMenu,Vo as NumberField,cr as Op,Jo as Pagination,Fo as Panel,Mo as PickerField,Ho as RadioGroup,nr as Region,N as RestProxy,Wo as SearchGrid,_o as SecretField,Ro as Select,sr as Selection,xr as Side,or as Slider,So as Spacer,Ar as Spinner,Rr as StepForm,Mr as Stepper,J as Store,Po as SuggestField,$r as Table,zr as Tabs,jo as TextArea,$o as TextField,ur as ThemeName,Gr as Toast,ar as ToastType,Do as Toggle,qo as Toolbar,Kr as Tooltip,jr as Tree,mr as Variant,kr as ViewManager,Pr as Viewport,Or as Widget,Go as Window,T as addMessages,no as arcPoints,Nr as attachTooltip,a as attr,U as cellContent,Tr as cellEditing,l as clamp,V as create,k as createLayout,z as date,x as defineTheme,co as dragKnob,po as enter,fo as exit,R as focusables,Q as format,y as getLocale,j as getType,c as h,To as hasIcon,bo as iconEl,X as isBouncy,m as kebab,ao as knobStretch,D as layer,ho as layoutId,Vr as localViewStorage,g as locales,H as lockModal,Uo as lookupStore,G as matchFilter,q as measure,Y as motion,xo as moveArc,Z as originFor,L as place,_ as popIn,oo as popOut,mo as pulse,d as px,$ as register,O as registerFormat,yo as registerIcons,E as registerLayout,Oo as registerLookup,Qo as resolveLookup,Er as restViewStorage,lo as reveal,P as roving,io as rubberBand,so as rubberScroll,h as setLocale,i as setTheme,eo as stagger,ro as staggerDelay,to as staggerDetails,uo as swap,b as t,B as toLayer,Jr as toast,gr as tokenize,M as track,I as trapFocus,tr as ui,u as uid,C as validators,S as virtualize,go as wipeColor};
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/themes/define.ts"],
|
|
4
|
-
"sourcesContent": ["import { kebab } from '../core/dom';\n\ntype Values = Record<string, string | number | undefined>;\ntype ColorToken = 'bg' | 'surface' | 'surface-2' | 'fg' | 'fg-muted' | 'border' | 'border-strong' | 'hover' | 'selected' | 'primary' | 'primary-hover' | 'primary-fg' | 'primary-soft' | 'danger' | 'danger-hover' | 'danger-fg' | 'danger-soft' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'info' | 'info-soft' | 'focus' | 'overlay';\n\nexport interface ThemeDefinition {\n /** Semantic colors: `{ primary: '#06f' }` \u2192 `--op-color-primary`. camelCase keys are kebab-cased. */\n color?: Partial<Record<ColorToken | string, string>>;\n font?: Values;\n space?: Values;\n radius?: Values;\n shadow?: Values;\n control?: Values;\n /** Any other key is a component scope: `{ button: { radius: 0 } }` \u2192 `--op-button-radius`. */\n [group: string]: Values | undefined;\n}\n\nexport interface Theme {\n name: string;\n /** CSS text, scoped to `[data-op-theme~=\"name\"]`, inside `@layer optikos`. */\n css: string;\n /** Injects the CSS once without activating it (e.g. to offer it in a theme picker). */\n inject(): void;\n /** Injects the CSS and activates the theme on `el` (default: `<html>`), keeping other themes (`\"dark custom\"`). */\n apply(el?: HTMLElement): void;\n}\n\n/**\n * Typed, proprietary theme format. Produces the same custom properties a hand-written CSS theme would.\n * Numbers are emitted unitless; write units as strings (`'4px'`).\n */\nexport function defineTheme(def: ThemeDefinition, name = 'custom'): Theme {\n const lines: string[] = [];\n for (const group in def) {\n const values = def[group];\n for (const key in values) lines.push(` --op-${kebab(group)}-${kebab(key)}: ${values[key
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["defineTheme", "def", "name", "lines", "group", "values", "
|
|
4
|
+
"sourcesContent": ["import { kebab } from '../core/dom';\n\ntype Values = Record<string, string | number | undefined>;\ntype ColorToken = 'bg' | 'surface' | 'surface-2' | 'fg' | 'fg-muted' | 'border' | 'border-strong' | 'hover' | 'selected' | 'primary' | 'primary-hover' | 'primary-fg' | 'primary-soft' | 'danger' | 'danger-hover' | 'danger-fg' | 'danger-soft' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'info' | 'info-soft' | 'focus' | 'overlay';\n\nexport interface ThemeDefinition {\n /** Semantic colors: `{ primary: '#06f' }` \u2192 `--op-color-primary`. camelCase keys are kebab-cased. */\n color?: Partial<Record<ColorToken | string, string>>;\n font?: Values;\n space?: Values;\n /** `radius: '0.5rem'` sets `--op-radius`; `radius: { sm, lg, pill }` sets `--op-radius-sm`... */\n radius?: Values | string | number;\n shadow?: Values;\n control?: Values;\n /** Any other key is a component scope: `{ button: { radius: 0 } }` \u2192 `--op-button-radius`. A plain value sets the group's own token (`{ radius: 0 }` \u2192 `--op-radius`). */\n [group: string]: Values | string | number | undefined;\n}\n\nexport interface Theme {\n name: string;\n /** CSS text, scoped to `[data-op-theme~=\"name\"]`, inside `@layer optikos`. */\n css: string;\n /** Injects the CSS once without activating it (e.g. to offer it in a theme picker). */\n inject(): void;\n /** Injects the CSS and activates the theme on `el` (default: `<html>`), keeping other themes (`\"dark custom\"`). */\n apply(el?: HTMLElement): void;\n}\n\n/**\n * Typed, proprietary theme format. Produces the same custom properties a hand-written CSS theme would.\n * Numbers are emitted unitless; write units as strings (`'4px'`).\n */\nexport function defineTheme(def: ThemeDefinition, name = 'custom'): Theme {\n const lines: string[] = [];\n for (const group in def) {\n const values = def[group];\n if (values == null) continue;\n if (typeof values !== 'object') lines.push(` --op-${kebab(group)}: ${values};`);\n else for (const key in values) lines.push(` --op-${kebab(group)}-${kebab(key)}: ${values[key]};`);\n }\n const css = `@layer optikos {\\n [data-op-theme~='${name}'] {\\n${lines.join('\\n')}\\n }\\n}\\n`;\n return {\n name,\n css,\n inject() {\n const id = `op-theme-${name}`;\n let style = document.getElementById(id);\n if (!style) {\n style = document.createElement('style');\n style.id = id;\n document.head.appendChild(style);\n }\n style.textContent = css;\n },\n apply(el = document.documentElement) {\n this.inject();\n const names = new Set((el.getAttribute('data-op-theme') ?? '').split(/\\s+/).filter(Boolean));\n names.add(name);\n el.setAttribute('data-op-theme', [...names].join(' '));\n },\n };\n}\n\n/** Activates themes on an element (default `<html>`): `setTheme('dark compact')` or `setTheme(['dark', 'custom'])`. */\nexport function setTheme(names: string | string[], el: HTMLElement = document.documentElement): void {\n el.setAttribute('data-op-theme', Array.isArray(names) ? names.join(' ') : names);\n}\n"],
|
|
5
|
+
"mappings": "sxHAgCO,SAASA,EAAYC,EAAsBC,EAAO,SAAiB,CACxE,IAAMC,EAAkB,CAAC,EACzB,QAAWC,KAASH,EAAK,CACvB,IAAMI,EAASJ,EAAIG,CAAK,EACxB,GAAIC,GAAU,KACd,GAAI,OAAOA,GAAW,SAAUF,EAAM,KAAK,YAAYG,EAAMF,CAAK,CAAC,KAAKC,CAAM,GAAG,MAC5E,SAAWE,KAAOF,EAAQF,EAAM,KAAK,YAAYG,EAAMF,CAAK,CAAC,IAAIE,EAAMC,CAAG,CAAC,KAAKF,EAAOE,CAAG,CAAC,GAAG,CACrG,CACA,IAAMC,EAAM;AAAA,qBAAwCN,CAAI;AAAA,EAASC,EAAM,KAAK;AAAA,CAAI,CAAC;AAAA;AAAA;AAAA,EACjF,MAAO,CACL,KAAAD,EACA,IAAAM,EACA,QAAS,CACP,IAAMC,EAAK,YAAYP,CAAI,GACvBQ,EAAQ,SAAS,eAAeD,CAAE,EACjCC,IACHA,EAAQ,SAAS,cAAc,OAAO,EACtCA,EAAM,GAAKD,EACX,SAAS,KAAK,YAAYC,CAAK,GAEjCA,EAAM,YAAcF,CACtB,EACA,MAAMG,EAAK,SAAS,gBAAiB,CACnC,KAAK,OAAO,EACZ,IAAMC,EAAQ,IAAI,KAAKD,EAAG,aAAa,eAAe,GAAK,IAAI,MAAM,KAAK,EAAE,OAAO,OAAO,CAAC,EAC3FC,EAAM,IAAIV,CAAI,EACdS,EAAG,aAAa,gBAAiB,CAAC,GAAGC,CAAK,EAAE,KAAK,GAAG,CAAC,CACvD,CACF,CACF,CAGO,SAASC,EAASD,EAA0BD,EAAkB,SAAS,gBAAuB,CACnGA,EAAG,aAAa,gBAAiB,MAAM,QAAQC,CAAK,EAAIA,EAAM,KAAK,GAAG,EAAIA,CAAK,CACjF",
|
|
6
|
+
"names": ["defineTheme", "def", "name", "lines", "group", "values", "kebab", "key", "css", "id", "style", "el", "names", "setTheme"]
|
|
7
7
|
}
|