optikos 0.0.0-stage → 0.2.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 +146 -0
- package/LICENSE +21 -0
- package/README.md +213 -2
- package/THIRD_PARTY_NOTICES.md +83 -0
- package/dist/bind.js +2 -0
- package/dist/bind.js.map +7 -0
- package/dist/chunk-23XLG2EM.js +2 -0
- package/dist/chunk-23XLG2EM.js.map +7 -0
- package/dist/chunk-27UZFEXD.js +2 -0
- package/dist/chunk-27UZFEXD.js.map +7 -0
- package/dist/chunk-2UPUC4RK.js +2 -0
- package/dist/chunk-2UPUC4RK.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-3DBEZGOY.js +2 -0
- package/dist/chunk-3DBEZGOY.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-4AA4FQEM.js +2 -0
- package/dist/chunk-4AA4FQEM.js.map +7 -0
- package/dist/chunk-4C666HHU.js +2 -0
- package/dist/chunk-4C666HHU.js.map +7 -0
- package/dist/chunk-4EZJ5FKJ.js +2 -0
- package/dist/chunk-4EZJ5FKJ.js.map +7 -0
- 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-5DJTP53N.js.map +7 -0
- package/dist/chunk-5JEXM5S7.js +2 -0
- package/dist/chunk-5JEXM5S7.js.map +7 -0
- package/dist/chunk-5Q76ACVI.js +2 -0
- package/dist/chunk-5Q76ACVI.js.map +7 -0
- package/dist/chunk-5QUY72FX.js +2 -0
- package/dist/chunk-5QUY72FX.js.map +7 -0
- package/dist/chunk-5YS7OD5E.js +2 -0
- package/dist/chunk-5YS7OD5E.js.map +7 -0
- package/dist/chunk-676AKAGF.js +2 -0
- package/dist/chunk-676AKAGF.js.map +7 -0
- package/dist/chunk-6NCXO5ZP.js +2 -0
- package/dist/chunk-6NCXO5ZP.js.map +7 -0
- package/dist/chunk-6VBK2I5B.js +2 -0
- package/dist/chunk-6VBK2I5B.js.map +7 -0
- package/dist/chunk-7KMIFXHZ.js +2 -0
- package/dist/chunk-7KMIFXHZ.js.map +7 -0
- package/dist/chunk-A2NKDOYN.js +2 -0
- package/dist/chunk-A2NKDOYN.js.map +7 -0
- package/dist/chunk-ATFJ7PNA.js +2 -0
- package/dist/chunk-ATFJ7PNA.js.map +7 -0
- package/dist/chunk-BXYWVRKJ.js +2 -0
- package/dist/chunk-BXYWVRKJ.js.map +7 -0
- package/dist/chunk-CKXS375P.js +2 -0
- package/dist/chunk-CKXS375P.js.map +7 -0
- package/dist/chunk-CUN5QO4T.js +2 -0
- package/dist/chunk-CUN5QO4T.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-ELYARUCN.js +2 -0
- package/dist/chunk-ELYARUCN.js.map +7 -0
- package/dist/chunk-EV73ADN2.js +2 -0
- package/dist/chunk-EV73ADN2.js.map +7 -0
- package/dist/chunk-FEHGU6EP.js +3 -0
- package/dist/chunk-FEHGU6EP.js.map +7 -0
- package/dist/chunk-FHM5NUS4.js +3 -0
- package/dist/chunk-FHM5NUS4.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-G2KUK6AT.js.map +7 -0
- package/dist/chunk-GBPLNXMP.js +2 -0
- package/dist/chunk-GBPLNXMP.js.map +7 -0
- package/dist/chunk-GNU4VOOE.js +2 -0
- package/dist/chunk-GNU4VOOE.js.map +7 -0
- package/dist/chunk-GZ7X34QP.js +2 -0
- package/dist/chunk-GZ7X34QP.js.map +7 -0
- 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-I4SP6JTU.js +2 -0
- package/dist/chunk-I4SP6JTU.js.map +7 -0
- package/dist/chunk-IHE2MQ3W.js +2 -0
- package/dist/chunk-IHE2MQ3W.js.map +7 -0
- package/dist/chunk-II6ITOA6.js +2 -0
- package/dist/chunk-II6ITOA6.js.map +7 -0
- package/dist/chunk-JBLRAM7Z.js +2 -0
- package/dist/chunk-JBLRAM7Z.js.map +7 -0
- package/dist/chunk-JI265XFO.js +2 -0
- package/dist/chunk-JI265XFO.js.map +7 -0
- 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-LW2WRUVL.js +2 -0
- package/dist/chunk-LW2WRUVL.js.map +7 -0
- package/dist/chunk-M242VYZA.js +2 -0
- package/dist/chunk-M242VYZA.js.map +7 -0
- 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-OWEQT2HN.js +2 -0
- package/dist/chunk-OWEQT2HN.js.map +7 -0
- package/dist/chunk-PZSHOSOS.js +2 -0
- package/dist/chunk-PZSHOSOS.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-SA53QUBF.js +2 -0
- package/dist/chunk-SA53QUBF.js.map +7 -0
- package/dist/chunk-TIPK3SCJ.js +2 -0
- package/dist/chunk-TIPK3SCJ.js.map +7 -0
- package/dist/chunk-TOLTUOZS.js +2 -0
- package/dist/chunk-TOLTUOZS.js.map +7 -0
- package/dist/chunk-TZOQWCVH.js +2 -0
- package/dist/chunk-TZOQWCVH.js.map +7 -0
- package/dist/chunk-VF7BGP6L.js +2 -0
- package/dist/chunk-VF7BGP6L.js.map +7 -0
- package/dist/chunk-VU3GIDZ3.js +2 -0
- package/dist/chunk-VU3GIDZ3.js.map +7 -0
- package/dist/chunk-VV7CFMPZ.js +2 -0
- package/dist/chunk-VV7CFMPZ.js.map +7 -0
- package/dist/chunk-W3H7GTJY.js +2 -0
- package/dist/chunk-W3H7GTJY.js.map +7 -0
- package/dist/chunk-X2ASKUFD.js +2 -0
- package/dist/chunk-X2ASKUFD.js.map +7 -0
- package/dist/chunk-X6AULZI4.js +1 -0
- package/dist/chunk-X6AULZI4.js.map +7 -0
- package/dist/chunk-XHOBNSBO.js +2 -0
- package/dist/chunk-XHOBNSBO.js.map +7 -0
- 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-YHEMA56R.js +2 -0
- package/dist/chunk-YHEMA56R.js.map +7 -0
- package/dist/chunk-Z2JBUHKA.js +2 -0
- package/dist/chunk-Z2JBUHKA.js.map +7 -0
- package/dist/chunk-Z2Z52GFT.js +2 -0
- package/dist/chunk-Z2Z52GFT.js.map +7 -0
- 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 +2 -0
- package/dist/components/breadcrumb.js.map +7 -0
- package/dist/components/button.js +2 -0
- package/dist/components/button.js.map +7 -0
- package/dist/components/calendar.js +2 -0
- package/dist/components/calendar.js.map +7 -0
- package/dist/components/cellediting.js +2 -0
- package/dist/components/cellediting.js.map +7 -0
- package/dist/components/chat.js +2 -0
- package/dist/components/chat.js.map +7 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/checkbox.js.map +7 -0
- 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 +2 -0
- package/dist/components/combobox.js.map +7 -0
- package/dist/components/commandpalette.js +2 -0
- package/dist/components/commandpalette.js.map +7 -0
- package/dist/components/container.js +2 -0
- package/dist/components/container.js.map +7 -0
- package/dist/components/dataview.js +2 -0
- package/dist/components/dataview.js.map +7 -0
- package/dist/components/datefield.js +2 -0
- package/dist/components/datefield.js.map +7 -0
- package/dist/components/daterangefield.js +2 -0
- package/dist/components/daterangefield.js.map +7 -0
- package/dist/components/dial.js +2 -0
- package/dist/components/dial.js.map +7 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/dropdown.js.map +7 -0
- 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 +2 -0
- package/dist/components/fieldset.js.map +7 -0
- package/dist/components/filterbuilder.js +2 -0
- package/dist/components/filterbuilder.js.map +7 -0
- package/dist/components/form.js +2 -0
- package/dist/components/form.js.map +7 -0
- 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 +2 -0
- package/dist/components/grid.js.map +7 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/icon.js.map +7 -0
- package/dist/components/inputgroup.js +2 -0
- package/dist/components/inputgroup.js.map +7 -0
- package/dist/components/label.js +2 -0
- package/dist/components/label.js.map +7 -0
- package/dist/components/listbox.js +2 -0
- package/dist/components/listbox.js.map +7 -0
- package/dist/components/lookupfield.js +2 -0
- package/dist/components/lookupfield.js.map +7 -0
- package/dist/components/menu.js +2 -0
- package/dist/components/menu.js.map +7 -0
- package/dist/components/messagebox.js +2 -0
- package/dist/components/messagebox.js.map +7 -0
- package/dist/components/navmenu.js +2 -0
- package/dist/components/navmenu.js.map +7 -0
- package/dist/components/numberfield.js +2 -0
- package/dist/components/numberfield.js.map +7 -0
- package/dist/components/pagination.js +2 -0
- package/dist/components/pagination.js.map +7 -0
- package/dist/components/panel.js +2 -0
- package/dist/components/panel.js.map +7 -0
- package/dist/components/pickerfield.js +2 -0
- package/dist/components/pickerfield.js.map +7 -0
- package/dist/components/radiogroup.js +2 -0
- package/dist/components/radiogroup.js.map +7 -0
- package/dist/components/searchgrid.js +2 -0
- package/dist/components/searchgrid.js.map +7 -0
- package/dist/components/secretfield.js +2 -0
- package/dist/components/secretfield.js.map +7 -0
- package/dist/components/select.js +2 -0
- package/dist/components/select.js.map +7 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/slider.js.map +7 -0
- package/dist/components/spacer.js +2 -0
- package/dist/components/spacer.js.map +7 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/spinner.js.map +7 -0
- package/dist/components/stepform.js +2 -0
- package/dist/components/stepform.js.map +7 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/stepper.js.map +7 -0
- package/dist/components/suggestfield.js +2 -0
- package/dist/components/suggestfield.js.map +7 -0
- package/dist/components/table.js +2 -0
- package/dist/components/table.js.map +7 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/tabs.js.map +7 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/textarea.js.map +7 -0
- package/dist/components/textfield.js +2 -0
- package/dist/components/textfield.js.map +7 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toast.js.map +7 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toggle.js.map +7 -0
- package/dist/components/toolbar.js +2 -0
- package/dist/components/toolbar.js.map +7 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tooltip.js.map +7 -0
- package/dist/components/tree.js +2 -0
- package/dist/components/tree.js.map +7 -0
- package/dist/components/viewmanager.js +2 -0
- package/dist/components/viewmanager.js.map +7 -0
- package/dist/components/viewport.js +2 -0
- package/dist/components/viewport.js.map +7 -0
- package/dist/components/widget.js +2 -0
- package/dist/components/widget.js.map +7 -0
- package/dist/components/window.js +2 -0
- package/dist/components/window.js.map +7 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +7 -0
- package/dist/css/badge.css +39 -0
- package/dist/css/base.css +180 -0
- package/dist/css/breadcrumb.css +53 -0
- package/dist/css/button.css +103 -0
- package/dist/css/calendar.css +108 -0
- package/dist/css/cellediting.css +33 -0
- package/dist/css/chat.css +232 -0
- package/dist/css/checkbox.css +64 -0
- package/dist/css/checkboxgroup.css +12 -0
- package/dist/css/chip.css +64 -0
- package/dist/css/codeviewer.css +109 -0
- package/dist/css/commandpalette.css +167 -0
- package/dist/css/container.css +5 -0
- package/dist/css/core.css +88 -0
- package/dist/css/dataview.css +56 -0
- package/dist/css/dial.css +203 -0
- package/dist/css/dropdown.css +13 -0
- package/dist/css/field.css +62 -0
- package/dist/css/fieldgroup.css +26 -0
- package/dist/css/fieldlist.css +84 -0
- package/dist/css/fieldset.css +68 -0
- package/dist/css/filterbuilder.css +125 -0
- package/dist/css/form.css +8 -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 +378 -0
- package/dist/css/icon.css +16 -0
- package/dist/css/inputgroup.css +58 -0
- package/dist/css/label.css +12 -0
- package/dist/css/layout.css +116 -0
- package/dist/css/listbox.css +50 -0
- package/dist/css/menu.css +92 -0
- package/dist/css/messagebox.css +6 -0
- package/dist/css/motion.css +29 -0
- package/dist/css/navmenu.css +115 -0
- package/dist/css/pagination.css +23 -0
- package/dist/css/panel.css +84 -0
- package/dist/css/pickerfield.css +85 -0
- package/dist/css/radiogroup.css +53 -0
- package/dist/css/searchgrid.css +37 -0
- package/dist/css/secretfield.css +73 -0
- package/dist/css/slider.css +107 -0
- package/dist/css/spacer.css +7 -0
- package/dist/css/stepform.css +46 -0
- package/dist/css/stepper.css +122 -0
- package/dist/css/table.css +36 -0
- package/dist/css/tabs.css +108 -0
- package/dist/css/textarea.css +11 -0
- package/dist/css/textfield.css +59 -0
- package/dist/css/toast.css +91 -0
- package/dist/css/toggle.css +39 -0
- package/dist/css/toolbar.css +14 -0
- package/dist/css/tooltip.css +17 -0
- package/dist/css/tree.css +94 -0
- package/dist/css/viewport.css +9 -0
- package/dist/css/widget.css +135 -0
- package/dist/css/window.css +35 -0
- package/dist/data.js +2 -0
- package/dist/data.js.map +7 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +7 -0
- package/dist/motion.js +2 -0
- package/dist/motion.js.map +7 -0
- package/dist/optikos.css +4240 -0
- package/dist/themes/compact.css +17 -0
- package/dist/themes/dark.css +53 -0
- package/dist/types/bind/index.d.ts +23 -0
- 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/button/button.d.ts +34 -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/base/icon/icon.d.ts +17 -0
- package/dist/types/components/base/label/label.d.ts +14 -0
- package/dist/types/components/breadcrumb.d.ts +1 -0
- package/dist/types/components/button.d.ts +1 -0
- package/dist/types/components/calendar.d.ts +1 -0
- package/dist/types/components/cellediting.d.ts +1 -0
- package/dist/types/components/chat/chat/chat.d.ts +84 -0
- package/dist/types/components/chat.d.ts +1 -0
- package/dist/types/components/checkbox.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/combobox.d.ts +1 -0
- package/dist/types/components/commandpalette.d.ts +1 -0
- package/dist/types/components/container.d.ts +1 -0
- package/dist/types/components/data/cellediting/cellediting.d.ts +10 -0
- package/dist/types/components/data/dataview/dataview.d.ts +61 -0
- package/dist/types/components/data/filterbuilder/filterbuilder.d.ts +73 -0
- package/dist/types/components/data/grid/grid.d.ts +177 -0
- package/dist/types/components/data/pagination/pagination.d.ts +31 -0
- package/dist/types/components/data/searchgrid/searchgrid.d.ts +63 -0
- package/dist/types/components/data/table/table.d.ts +26 -0
- package/dist/types/components/data/tree/tree.d.ts +71 -0
- package/dist/types/components/data/viewmanager/viewmanager.d.ts +86 -0
- package/dist/types/components/dataview.d.ts +1 -0
- package/dist/types/components/datefield.d.ts +1 -0
- package/dist/types/components/daterangefield.d.ts +1 -0
- package/dist/types/components/dates/calendar/calendar.d.ts +48 -0
- package/dist/types/components/dial.d.ts +1 -0
- package/dist/types/components/dropdown.d.ts +1 -0
- package/dist/types/components/feedback/spinner/spinner.d.ts +11 -0
- package/dist/types/components/fieldgroup.d.ts +1 -0
- package/dist/types/components/fieldlist.d.ts +1 -0
- package/dist/types/components/fields/checkbox/checkbox.d.ts +20 -0
- package/dist/types/components/fields/checkboxgroup/checkboxgroup.d.ts +27 -0
- package/dist/types/components/fields/combobox/combobox.d.ts +15 -0
- package/dist/types/components/fields/datefield/datefield.d.ts +30 -0
- package/dist/types/components/fields/daterangefield/daterangefield.d.ts +32 -0
- package/dist/types/components/fields/dial/dial.d.ts +84 -0
- package/dist/types/components/fields/listbox/listbox.d.ts +54 -0
- package/dist/types/components/fields/lookupfield/lookupfield.d.ts +25 -0
- package/dist/types/components/fields/numberfield/numberfield.d.ts +31 -0
- package/dist/types/components/fields/pickerfield/pickerfield.d.ts +77 -0
- package/dist/types/components/fields/radiogroup/radiogroup.d.ts +26 -0
- package/dist/types/components/fields/secretfield/secretfield.d.ts +52 -0
- package/dist/types/components/fields/select/select.d.ts +10 -0
- package/dist/types/components/fields/slider/slider.d.ts +62 -0
- package/dist/types/components/fields/suggestfield/suggestfield.d.ts +34 -0
- package/dist/types/components/fields/textarea/textarea.d.ts +16 -0
- package/dist/types/components/fields/textfield/textfield.d.ts +38 -0
- package/dist/types/components/fields/toggle/toggle.d.ts +9 -0
- package/dist/types/components/fieldset.d.ts +1 -0
- package/dist/types/components/filterbuilder.d.ts +1 -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 +68 -0
- 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 +64 -0
- package/dist/types/components/form.d.ts +1 -0
- 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/grid.d.ts +1 -0
- package/dist/types/components/icon.d.ts +1 -0
- package/dist/types/components/inputgroup.d.ts +1 -0
- package/dist/types/components/label.d.ts +1 -0
- package/dist/types/components/layout/container/container.d.ts +1 -0
- package/dist/types/components/layout/fieldset/fieldset.d.ts +30 -0
- package/dist/types/components/layout/panel/panel.d.ts +53 -0
- package/dist/types/components/layout/panel/reload.d.ts +1 -0
- package/dist/types/components/layout/spacer/spacer.d.ts +12 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +15 -0
- package/dist/types/components/layout/viewport/viewport.d.ts +7 -0
- package/dist/types/components/listbox.d.ts +1 -0
- package/dist/types/components/lookupfield.d.ts +1 -0
- package/dist/types/components/menu.d.ts +1 -0
- package/dist/types/components/messagebox.d.ts +1 -0
- package/dist/types/components/navigation/breadcrumb/breadcrumb.d.ts +32 -0
- package/dist/types/components/navigation/navmenu/navmenu.d.ts +63 -0
- package/dist/types/components/navigation/stepper/stepper.d.ts +31 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +57 -0
- package/dist/types/components/navmenu.d.ts +1 -0
- package/dist/types/components/numberfield.d.ts +1 -0
- package/dist/types/components/overlays/commandpalette/commandpalette.d.ts +80 -0
- package/dist/types/components/overlays/dropdown/dropdown.d.ts +41 -0
- package/dist/types/components/overlays/menu/menu.d.ts +56 -0
- package/dist/types/components/overlays/messagebox/messagebox.d.ts +61 -0
- package/dist/types/components/overlays/toast/toast.d.ts +45 -0
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/overlays/widget/widget.d.ts +61 -0
- package/dist/types/components/overlays/window/window.d.ts +38 -0
- package/dist/types/components/pagination.d.ts +1 -0
- package/dist/types/components/panel.d.ts +1 -0
- package/dist/types/components/pickerfield.d.ts +1 -0
- package/dist/types/components/radiogroup.d.ts +1 -0
- package/dist/types/components/searchgrid.d.ts +1 -0
- package/dist/types/components/secretfield.d.ts +1 -0
- package/dist/types/components/select.d.ts +1 -0
- package/dist/types/components/slider.d.ts +1 -0
- package/dist/types/components/spacer.d.ts +1 -0
- package/dist/types/components/spinner.d.ts +1 -0
- package/dist/types/components/stepform.d.ts +1 -0
- package/dist/types/components/stepper.d.ts +1 -0
- package/dist/types/components/suggestfield.d.ts +1 -0
- package/dist/types/components/table.d.ts +1 -0
- package/dist/types/components/tabs.d.ts +1 -0
- package/dist/types/components/textarea.d.ts +1 -0
- package/dist/types/components/textfield.d.ts +1 -0
- package/dist/types/components/toast.d.ts +1 -0
- package/dist/types/components/toggle.d.ts +1 -0
- package/dist/types/components/toolbar.d.ts +1 -0
- package/dist/types/components/tooltip.d.ts +1 -0
- package/dist/types/components/tree.d.ts +1 -0
- package/dist/types/components/viewmanager.d.ts +1 -0
- package/dist/types/components/viewport.d.ts +1 -0
- package/dist/types/components/widget.d.ts +1 -0
- package/dist/types/components/window.d.ts +1 -0
- package/dist/types/core/component.d.ts +94 -0
- package/dist/types/core/container.d.ts +43 -0
- package/dist/types/core/date.d.ts +14 -0
- package/dist/types/core/dom.d.ts +11 -0
- package/dist/types/core/emitter.d.ts +12 -0
- package/dist/types/core/field.d.ts +78 -0
- package/dist/types/core/focus.d.ts +18 -0
- package/dist/types/core/i18n.d.ts +12 -0
- package/dist/types/core/index.d.ts +15 -0
- package/dist/types/core/layer.d.ts +6 -0
- package/dist/types/core/position.d.ts +19 -0
- package/dist/types/core/registry.d.ts +12 -0
- package/dist/types/core/validators.d.ts +10 -0
- package/dist/types/core/virtual.d.ts +24 -0
- package/dist/types/data/column.d.ts +32 -0
- package/dist/types/data/format.d.ts +4 -0
- package/dist/types/data/index.d.ts +5 -0
- package/dist/types/data/model.d.ts +28 -0
- package/dist/types/data/proxy.d.ts +61 -0
- package/dist/types/data/store.d.ts +94 -0
- package/dist/types/index.d.ts +67 -0
- package/dist/types/layout/layout.d.ts +27 -0
- package/dist/types/motion/config.d.ts +83 -0
- package/dist/types/motion/core.d.ts +40 -0
- package/dist/types/motion/extras.d.ts +66 -0
- package/dist/types/motion/index.d.ts +3 -0
- package/dist/types/themes/define.d.ts +31 -0
- package/dist/types/themes/index.d.ts +1 -0
- package/dist/types/ui/enums.d.ts +82 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/ui.d.ts +67 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +7 -0
- package/package.json +104 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type Trigger = Element | {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
} | undefined;
|
|
5
|
+
/** `transform-origin` that puts the popover's growth point at the trigger (rules 11 and 12). */
|
|
6
|
+
export declare function originFor(trigger: Trigger, el: HTMLElement): string | undefined;
|
|
7
|
+
type Kind = 'dropdown' | 'popover' | 'modal';
|
|
8
|
+
/**
|
|
9
|
+
* A floating element appears: fades in and scales up from `popover.scale` (0.95), growing out of the trigger, ease-out.
|
|
10
|
+
* Resolves when it finished; `null` when nothing was animated (motion off, no Web Animations).
|
|
11
|
+
*/
|
|
12
|
+
export declare function popIn(el: HTMLElement, trigger?: Trigger, kind?: Kind): Promise<void> | null;
|
|
13
|
+
/** The inverse: shrinks back toward the trigger, `exitRatio` (80 %) as long as the entrance, ease-in. The caller hides the element when it resolves. */
|
|
14
|
+
export declare function popOut(el: HTMLElement, trigger?: Trigger, kind?: Kind): Promise<void> | null;
|
|
15
|
+
export interface StaggerOptions {
|
|
16
|
+
/** Delay between consecutive items (ms). Default `stagger.step` (30). */
|
|
17
|
+
step?: number;
|
|
18
|
+
/** After this many items the delay stops growing. Default `stagger.max` (12). */
|
|
19
|
+
max?: number;
|
|
20
|
+
/** Start offset in px (rises from below). Default 6. */
|
|
21
|
+
dy?: number;
|
|
22
|
+
}
|
|
23
|
+
/** The delay (ms) of the item at `index` in a staggered group. */
|
|
24
|
+
export declare const staggerDelay: (index: number, o?: StaggerOptions) => number;
|
|
25
|
+
/** Items of a list enter one after the other, 30 ms apart (rule 3), each ease-out. */
|
|
26
|
+
export declare function stagger(els: ArrayLike<Element>, o?: StaggerOptions): Promise<void> | null;
|
|
27
|
+
/** The parts of a card settle in order: every match of the first selector, then the second... one stagger step apart (rule 6). */
|
|
28
|
+
export declare function staggerDetails(root: ParentNode, selectors: string[], o?: StaggerOptions): Promise<void> | null;
|
|
29
|
+
/** A subtle ring and a tiny swell to confirm that something worked (rule 8). */
|
|
30
|
+
export declare function pulse(el: HTMLElement, color?: string): Promise<void> | null;
|
|
31
|
+
/** A plain entrance: fade in while rising a little, ease-out (rule 1). */
|
|
32
|
+
export declare function enter(el: HTMLElement, o?: {
|
|
33
|
+
dy?: number;
|
|
34
|
+
delay?: number;
|
|
35
|
+
}): Promise<void> | null;
|
|
36
|
+
/** The same motion going out: shorter by `exitRatio`, ease-in (rules 1 and 15). */
|
|
37
|
+
export declare function exit(el: HTMLElement, o?: {
|
|
38
|
+
dy?: number;
|
|
39
|
+
}): Promise<void> | null;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
type Pt = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Points of a quadratic curve from (x0,y0) to (x1,y1) that bows sideways by `bend` × the distance: the path of a thing that
|
|
7
|
+
* is thrown, not slid (rule 7). `steps + 1` points, the first and last are the ends.
|
|
8
|
+
*/
|
|
9
|
+
export declare function arcPoints(x0: number, y0: number, x1: number, y1: number, bend: number, steps?: number): Pt[];
|
|
10
|
+
/** Moves an element to a target along an arc, ease-in-out (rules 7 and 9). The element ends at the target; `Animation.cancel()` undoes it. */
|
|
11
|
+
export declare function moveArc(el: HTMLElement, to: Element | Pt, o?: {
|
|
12
|
+
bend?: number;
|
|
13
|
+
duration?: number;
|
|
14
|
+
}): Animation | null;
|
|
15
|
+
/** Resistance past a limit: the further you pull, the less it moves (never more than `limit`). Pure, for your own drags (rule 19). */
|
|
16
|
+
export declare function rubberBand(distance: number, limit: number, resistance?: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Rubber-band overscroll for a scrollable element, only when you push past its start or end (rule 19): the content follows the
|
|
19
|
+
* finger with growing resistance and eases back (no bounce) when you let go. Returns the function that removes it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function rubberScroll(scroller: HTMLElement, axis?: 'y' | 'x'): () => void;
|
|
22
|
+
/**
|
|
23
|
+
* A knob that stretches `stretch.amount` (12 %) along its travel while it moves, from the side it is moving away from, and
|
|
24
|
+
* relaxes when released. While held nothing tweens (rule 14): the stretch follows the pointer directly.
|
|
25
|
+
*/
|
|
26
|
+
export declare function knobStretch(knob: HTMLElement, axis?: 'x' | 'y'): {
|
|
27
|
+
/** Call with the movement since the last call (px, signed). */
|
|
28
|
+
move(delta: number): void;
|
|
29
|
+
release(): void;
|
|
30
|
+
};
|
|
31
|
+
/** Makes `knob` draggable along `track`: value from `min` to `max` in `step`s, the knob positioned in %, stretching as it moves. */
|
|
32
|
+
export declare function dragKnob(knob: HTMLElement, track: HTMLElement, o?: {
|
|
33
|
+
min?: number;
|
|
34
|
+
max?: number;
|
|
35
|
+
step?: number;
|
|
36
|
+
value?: number;
|
|
37
|
+
axis?: 'x' | 'y';
|
|
38
|
+
onChange?: (v: number) => void;
|
|
39
|
+
}): {
|
|
40
|
+
getValue: () => number;
|
|
41
|
+
setValue: (v: number) => void;
|
|
42
|
+
dispose: () => void;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Replaces the content of `host` with `next` letting the old and the new coexist for the whole transition: the old fades out
|
|
46
|
+
* while the new fades in, both softly blurred (rules 16 and 18). No flash, no empty frame in between.
|
|
47
|
+
*/
|
|
48
|
+
export declare function swap(host: HTMLElement, next: Node | string): Promise<void>;
|
|
49
|
+
type From = 'left' | 'right' | 'top' | 'bottom' | 'center';
|
|
50
|
+
/** Reveals an element through a mask that wipes across it (rule 17). */
|
|
51
|
+
export declare function reveal(el: HTMLElement, from?: From): Promise<void> | null;
|
|
52
|
+
/** Changes an element's background by wiping the new color across it through a mask, instead of fading (rule 17). */
|
|
53
|
+
export declare function wipeColor(el: HTMLElement, color: string, from?: From): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Shared-element transitions by identity (rule 20, "layoutId"): `snapshot` the element where it is, show the next screen, and
|
|
56
|
+
* `mount` the element that has the same id there: it flies from the old rectangle to the new one along an arc, ease-in-out.
|
|
57
|
+
*/
|
|
58
|
+
export declare const layoutId: {
|
|
59
|
+
snapshot(id: string, el: Element): void;
|
|
60
|
+
has: (id: string) => boolean;
|
|
61
|
+
release(id: string): void;
|
|
62
|
+
mount(id: string, el: HTMLElement): Animation | null;
|
|
63
|
+
/** `snapshot` + `mount` in one go, for when the new element already exists. */
|
|
64
|
+
transition(id: string, from: Element, to: HTMLElement): Animation | null;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { motion, DEFAULTS, isBouncy, type MotionConfig, type DeepPartial } from './config.js';
|
|
2
|
+
export { popIn, popOut, originFor, stagger, staggerDelay, staggerDetails, pulse, enter, exit, type StaggerOptions } from './core.js';
|
|
3
|
+
export { arcPoints, moveArc, rubberBand, rubberScroll, knobStretch, dragKnob, swap, reveal, wipeColor, layoutId } from './extras.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type Values = Record<string, string | number | undefined>;
|
|
2
|
+
type 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';
|
|
3
|
+
export interface ThemeDefinition {
|
|
4
|
+
/** Semantic colors: `{ primary: '#06f' }` → `--op-color-primary`. camelCase keys are kebab-cased. */
|
|
5
|
+
color?: Partial<Record<ColorToken | string, string>>;
|
|
6
|
+
font?: Values;
|
|
7
|
+
space?: Values;
|
|
8
|
+
/** `radius: '0.5rem'` sets `--op-radius`; `radius: { sm, lg, pill }` sets `--op-radius-sm`... */
|
|
9
|
+
radius?: Values | string | number;
|
|
10
|
+
shadow?: Values;
|
|
11
|
+
control?: Values;
|
|
12
|
+
/** Any other key is a component scope: `{ button: { radius: 0 } }` → `--op-button-radius`. A plain value sets the group's own token (`{ radius: 0 }` → `--op-radius`). */
|
|
13
|
+
[group: string]: Values | string | number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface Theme {
|
|
16
|
+
name: string;
|
|
17
|
+
/** CSS text, scoped to `[data-op-theme~="name"]`, inside `@layer optikos`. */
|
|
18
|
+
css: string;
|
|
19
|
+
/** Injects the CSS once without activating it (e.g. to offer it in a theme picker). */
|
|
20
|
+
inject(): void;
|
|
21
|
+
/** Injects the CSS and activates the theme on `el` (default: `<html>`), keeping other themes (`"dark custom"`). */
|
|
22
|
+
apply(el?: HTMLElement): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Typed, proprietary theme format. Produces the same custom properties a hand-written CSS theme would.
|
|
26
|
+
* Numbers are emitted unitless; write units as strings (`'4px'`).
|
|
27
|
+
*/
|
|
28
|
+
export declare function defineTheme(def: ThemeDefinition, name?: string): Theme;
|
|
29
|
+
/** Activates themes on an element (default `<html>`): `setTheme('dark compact')` or `setTheme(['dark', 'custom'])`. */
|
|
30
|
+
export declare function setTheme(names: string | string[], el?: HTMLElement): void;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { defineTheme, setTheme, type Theme, type ThemeDefinition } from './define.js';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const Variant: {
|
|
2
|
+
readonly Default: 'default';
|
|
3
|
+
readonly Primary: 'primary';
|
|
4
|
+
readonly Danger: 'danger';
|
|
5
|
+
readonly Ghost: 'ghost';
|
|
6
|
+
};
|
|
7
|
+
export type Variant = (typeof Variant)[keyof typeof Variant];
|
|
8
|
+
export declare const LabelPos: {
|
|
9
|
+
readonly Top: 'top';
|
|
10
|
+
readonly Left: 'left';
|
|
11
|
+
};
|
|
12
|
+
export type LabelPos = (typeof LabelPos)[keyof typeof LabelPos];
|
|
13
|
+
export declare const Direction: {
|
|
14
|
+
readonly Vertical: 'vertical';
|
|
15
|
+
readonly Horizontal: 'horizontal';
|
|
16
|
+
};
|
|
17
|
+
export type Direction = (typeof Direction)[keyof typeof Direction];
|
|
18
|
+
/** Layout `border` regions. */
|
|
19
|
+
export declare const Region: {
|
|
20
|
+
readonly North: 'north';
|
|
21
|
+
readonly South: 'south';
|
|
22
|
+
readonly West: 'west';
|
|
23
|
+
readonly East: 'east';
|
|
24
|
+
readonly Center: 'center';
|
|
25
|
+
};
|
|
26
|
+
export type Region = (typeof Region)[keyof typeof Region];
|
|
27
|
+
/** Widget sides. */
|
|
28
|
+
export declare const Side: {
|
|
29
|
+
readonly Right: 'right';
|
|
30
|
+
readonly Left: 'left';
|
|
31
|
+
readonly Top: 'top';
|
|
32
|
+
readonly Bottom: 'bottom';
|
|
33
|
+
};
|
|
34
|
+
export type Side = (typeof Side)[keyof typeof Side];
|
|
35
|
+
export declare const LayoutKind: {
|
|
36
|
+
readonly Fit: 'fit';
|
|
37
|
+
readonly HBox: 'hbox';
|
|
38
|
+
readonly VBox: 'vbox';
|
|
39
|
+
readonly Border: 'border';
|
|
40
|
+
readonly Grid: 'grid';
|
|
41
|
+
readonly Card: 'card';
|
|
42
|
+
};
|
|
43
|
+
export type LayoutKind = (typeof LayoutKind)[keyof typeof LayoutKind];
|
|
44
|
+
export declare const Selection: {
|
|
45
|
+
readonly None: 'none';
|
|
46
|
+
readonly Single: 'single';
|
|
47
|
+
readonly Multi: 'multi';
|
|
48
|
+
};
|
|
49
|
+
export type Selection = (typeof Selection)[keyof typeof Selection];
|
|
50
|
+
export declare const ToastType: {
|
|
51
|
+
readonly Info: 'info';
|
|
52
|
+
readonly Success: 'success';
|
|
53
|
+
readonly Warning: 'warning';
|
|
54
|
+
readonly Error: 'error';
|
|
55
|
+
};
|
|
56
|
+
export type ToastType = (typeof ToastType)[keyof typeof ToastType];
|
|
57
|
+
/** Filter operators (Store.filter, FilterBuilder, lookup filters). */
|
|
58
|
+
export declare const Op: {
|
|
59
|
+
readonly Eq: 'eq';
|
|
60
|
+
readonly Ne: 'ne';
|
|
61
|
+
readonly Contains: 'contains';
|
|
62
|
+
readonly NotContains: 'notContains';
|
|
63
|
+
readonly StartsWith: 'startsWith';
|
|
64
|
+
readonly EndsWith: 'endsWith';
|
|
65
|
+
readonly Gt: 'gt';
|
|
66
|
+
readonly Ge: 'ge';
|
|
67
|
+
readonly Lt: 'lt';
|
|
68
|
+
readonly Le: 'le';
|
|
69
|
+
readonly Between: 'between';
|
|
70
|
+
readonly NotBetween: 'notBetween';
|
|
71
|
+
readonly In: 'in';
|
|
72
|
+
readonly Nin: 'nin';
|
|
73
|
+
readonly Empty: 'empty';
|
|
74
|
+
readonly NotEmpty: 'notEmpty';
|
|
75
|
+
};
|
|
76
|
+
export type Op = (typeof Op)[keyof typeof Op];
|
|
77
|
+
/** The shipped themes (`setTheme(ThemeName.Dark)`; add `' compact'` for the dense variant). */
|
|
78
|
+
export declare const ThemeName: {
|
|
79
|
+
readonly Light: 'light';
|
|
80
|
+
readonly Dark: 'dark';
|
|
81
|
+
};
|
|
82
|
+
export type ThemeName = (typeof ThemeName)[keyof typeof ThemeName];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { TextField } from '../components/fields/textfield/textfield.js';
|
|
2
|
+
import { TextArea } from '../components/fields/textarea/textarea.js';
|
|
3
|
+
import { NumberField } from '../components/fields/numberfield/numberfield.js';
|
|
4
|
+
import { DateField } from '../components/fields/datefield/datefield.js';
|
|
5
|
+
import { DateRangeField } from '../components/fields/daterangefield/daterangefield.js';
|
|
6
|
+
import { Checkbox } from '../components/fields/checkbox/checkbox.js';
|
|
7
|
+
import { Toggle } from '../components/fields/toggle/toggle.js';
|
|
8
|
+
import { CheckboxGroup } from '../components/fields/checkboxgroup/checkboxgroup.js';
|
|
9
|
+
import { RadioGroup, type RadioOption } from '../components/fields/radiogroup/radiogroup.js';
|
|
10
|
+
import { Select } from '../components/fields/select/select.js';
|
|
11
|
+
import { ComboBox } from '../components/fields/combobox/combobox.js';
|
|
12
|
+
import { SuggestField } from '../components/fields/suggestfield/suggestfield.js';
|
|
13
|
+
import { LookupField } from '../components/fields/lookupfield/lookupfield.js';
|
|
14
|
+
import { SecretField } from '../components/fields/secretfield/secretfield.js';
|
|
15
|
+
import { Slider } from '../components/fields/slider/slider.js';
|
|
16
|
+
import { Dial } from '../components/fields/dial/dial.js';
|
|
17
|
+
import { Button } from '../components/base/button/button.js';
|
|
18
|
+
import { Panel } from '../components/layout/panel/panel.js';
|
|
19
|
+
import { Toolbar } from '../components/layout/toolbar/toolbar.js';
|
|
20
|
+
import { Container } from '../core/container.js';
|
|
21
|
+
import { Form } from '../components/form/form/form.js';
|
|
22
|
+
import type { Component } from '../core/component.js';
|
|
23
|
+
import type { AnyConfig } from '../core/registry.js';
|
|
24
|
+
type Cfg = Record<string, any>;
|
|
25
|
+
type Item = Component | AnyConfig | string;
|
|
26
|
+
type Options = (string | number | {
|
|
27
|
+
value: unknown;
|
|
28
|
+
label: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
})[];
|
|
31
|
+
export declare const ui: {
|
|
32
|
+
text: (name: string, label?: string, c?: Cfg) => TextField<string, any>;
|
|
33
|
+
email: (name: string, label?: string, c?: Cfg) => TextField<string, any>;
|
|
34
|
+
password: (name: string, label?: string, c?: Cfg) => TextField<string, any>;
|
|
35
|
+
area: (name: string, label?: string, c?: Cfg) => TextArea;
|
|
36
|
+
number: (name: string, label?: string, c?: Cfg) => NumberField;
|
|
37
|
+
date: (name: string, label?: string, c?: Cfg) => DateField;
|
|
38
|
+
dateRange: (name: string, label?: string, c?: Cfg) => DateRangeField;
|
|
39
|
+
secret: (name: string, label?: string, c?: Cfg) => SecretField;
|
|
40
|
+
slider: (name: string, label?: string, c?: Cfg) => Slider;
|
|
41
|
+
dial: (name: string, label?: string, c?: Cfg) => Dial;
|
|
42
|
+
/** `boxLabel` is the text beside the box. */
|
|
43
|
+
check: (name: string, boxLabel?: string, c?: Cfg) => Checkbox;
|
|
44
|
+
/** An on/off switch; `boxLabel` is the text beside it. */
|
|
45
|
+
toggle: (name: string, boxLabel?: string, c?: Cfg) => Toggle;
|
|
46
|
+
radio: (name: string, label: string, options: RadioOption[], c?: Cfg) => RadioGroup;
|
|
47
|
+
/** Several choices; the value is the list of checked values. */
|
|
48
|
+
checkGroup: (name: string, label: string, options: RadioOption[], c?: Cfg) => CheckboxGroup;
|
|
49
|
+
select: (name: string, label: string, options: Options, c?: Cfg) => Select<unknown>;
|
|
50
|
+
combo: (name: string, label: string, options: Options, c?: Cfg) => ComboBox<unknown>;
|
|
51
|
+
suggest: (name: string, label: string, query: (text: string, o: {
|
|
52
|
+
signal: AbortSignal;
|
|
53
|
+
}) => unknown, c?: Cfg) => SuggestField<unknown>;
|
|
54
|
+
/** `lookup` is a LookupDef or the name given to `registerLookup`. */
|
|
55
|
+
lookup: (name: string, label: string, lookup: Cfg | string, c?: Cfg) => LookupField<unknown>;
|
|
56
|
+
button: (text: string, handler?: (b: Button, ev: MouseEvent) => unknown, c?: Cfg) => Button;
|
|
57
|
+
primary: (text: string, handler?: (b: Button, ev: MouseEvent) => unknown, c?: Cfg) => Button;
|
|
58
|
+
danger: (text: string, handler?: (b: Button, ev: MouseEvent) => unknown, c?: Cfg) => Button;
|
|
59
|
+
row: (...items: Item[]) => Container<Cfg>;
|
|
60
|
+
col: (...items: Item[]) => Container<Cfg>;
|
|
61
|
+
/** `columns`: a number (equal columns, one column on narrow containers) or a CSS `grid-template-columns`. */
|
|
62
|
+
grid: (columns: number | string, ...items: Item[]) => Container<Cfg>;
|
|
63
|
+
panel: (title: string, items: Item[], c?: Cfg) => Panel<Cfg>;
|
|
64
|
+
toolbar: (...items: Item[]) => Toolbar;
|
|
65
|
+
form: (items: Item[], c?: Cfg) => Form;
|
|
66
|
+
};
|
|
67
|
+
export {};
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k}from"./chunk-ATFJ7PNA.js";import"./chunk-HXDTGP2K.js";import"./chunk-VU3GIDZ3.js";import"./chunk-6VBK2I5B.js";import"./chunk-NXSTUFS7.js";import"./chunk-G2KUK6AT.js";import"./chunk-Z2Z52GFT.js";import"./chunk-XHOBNSBO.js";import"./chunk-I4SP6JTU.js";import"./chunk-OGRFQTXA.js";import"./chunk-JI265XFO.js";import"./chunk-EDUMAMK4.js";import"./chunk-JK74QK3M.js";import"./chunk-GBPLNXMP.js";import"./chunk-TZOQWCVH.js";import"./chunk-EV73ADN2.js";import"./chunk-5Q76ACVI.js";import"./chunk-CUN5QO4T.js";import"./chunk-VF7BGP6L.js";import"./chunk-KLLAY2IM.js";import"./chunk-4LZZ244E.js";import"./chunk-LQRFNQ2N.js";import"./chunk-XYZ6VZ5T.js";import"./chunk-GNU4VOOE.js";import"./chunk-23XLG2EM.js";import"./chunk-YHEMA56R.js";import"./chunk-ZVK4L5GK.js";import"./chunk-7KMIFXHZ.js";import"./chunk-3TAW4AKH.js";import"./chunk-FHM5NUS4.js";import"./chunk-Z2JBUHKA.js";import"./chunk-W3H7GTJY.js";import"./chunk-G2DAD3MQ.js";import"./chunk-OWEQT2HN.js";import"./chunk-ZWNQREWS.js";import"./chunk-E4VNLYO2.js";import"./chunk-676AKAGF.js";import"./chunk-VV7CFMPZ.js";import"./chunk-2ZRNGG2N.js";import"./chunk-5JEXM5S7.js";import"./chunk-LW2WRUVL.js";import"./chunk-OEAXCCVM.js";import"./chunk-6NCXO5ZP.js";import"./chunk-2ZUZ5HDL.js";import"./chunk-4AA4FQEM.js";import"./chunk-2UPUC4RK.js";import"./chunk-4EZJ5FKJ.js";import"./chunk-A2NKDOYN.js";import"./chunk-PZSHOSOS.js";import"./chunk-TIPK3SCJ.js";import"./chunk-MW3RWBZ7.js";import"./chunk-4C666HHU.js";export{d as Direction,c as LabelPos,g as LayoutKind,j as Op,e as Region,h as Selection,f as Side,k as ThemeName,i as ToastType,b as Variant,a as ui};
|
|
2
|
+
//# sourceMappingURL=ui.js.map
|
package/dist/ui.js.map
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,106 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optikos",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Declarative UI components in plain TypeScript: forms, grids, windows and themes. No runtime dependencies.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ui",
|
|
7
|
+
"ui-components",
|
|
8
|
+
"components",
|
|
9
|
+
"typescript",
|
|
10
|
+
"vanilla",
|
|
11
|
+
"no-dependencies",
|
|
12
|
+
"declarative",
|
|
13
|
+
"grid",
|
|
14
|
+
"form",
|
|
15
|
+
"design-tokens",
|
|
16
|
+
"theming",
|
|
17
|
+
"accessibility"
|
|
18
|
+
],
|
|
19
|
+
"author": "Denis Zickuhr",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"homepage": "https://denis-zickuhr.github.io/optikos/",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/Denis-Zickuhr/optikos.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/Denis-Zickuhr/optikos/issues"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"**/*.css",
|
|
32
|
+
"./src/**",
|
|
33
|
+
"./dist/**"
|
|
34
|
+
],
|
|
35
|
+
"main": "./dist/index.js",
|
|
36
|
+
"types": "./dist/types/index.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/types/index.d.ts",
|
|
40
|
+
"import": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./core": {
|
|
43
|
+
"types": "./dist/types/core/index.d.ts",
|
|
44
|
+
"import": "./dist/core.js"
|
|
45
|
+
},
|
|
46
|
+
"./motion": {
|
|
47
|
+
"types": "./dist/types/motion/index.d.ts",
|
|
48
|
+
"import": "./dist/motion.js"
|
|
49
|
+
},
|
|
50
|
+
"./ui": {
|
|
51
|
+
"types": "./dist/types/ui/index.d.ts",
|
|
52
|
+
"import": "./dist/ui.js"
|
|
53
|
+
},
|
|
54
|
+
"./bind": {
|
|
55
|
+
"types": "./dist/types/bind/index.d.ts",
|
|
56
|
+
"import": "./dist/bind.js"
|
|
57
|
+
},
|
|
58
|
+
"./components/*": {
|
|
59
|
+
"types": "./dist/types/components/*.d.ts",
|
|
60
|
+
"import": "./dist/components/*.js"
|
|
61
|
+
},
|
|
62
|
+
"./optikos.css": "./dist/optikos.css",
|
|
63
|
+
"./css/*": "./dist/css/*",
|
|
64
|
+
"./themes/*": "./dist/themes/*",
|
|
65
|
+
"./data": {
|
|
66
|
+
"types": "./dist/types/data/index.d.ts",
|
|
67
|
+
"import": "./dist/data.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"dist",
|
|
72
|
+
"CHANGELOG.md",
|
|
73
|
+
"THIRD_PARTY_NOTICES.md"
|
|
74
|
+
],
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"dev": "node scripts/dev.mjs",
|
|
80
|
+
"sandbox": "node scripts/dev.mjs sandbox",
|
|
81
|
+
"demo": "node scripts/dev.mjs demo",
|
|
82
|
+
"build": "node scripts/build.mjs",
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"test": "vitest run",
|
|
85
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
86
|
+
"bench": "node scripts/bench.mjs",
|
|
87
|
+
"check": "npm run gen && npm run typecheck && npm test && npm run build",
|
|
88
|
+
"new:component": "node scripts/new-component.mjs",
|
|
89
|
+
"release": "node scripts/release.mjs",
|
|
90
|
+
"theme": "node scripts/theme.mjs",
|
|
91
|
+
"gen": "node scripts/gen.mjs",
|
|
92
|
+
"site": "node scripts/site.mjs",
|
|
93
|
+
"site:build": "node scripts/site.mjs build",
|
|
94
|
+
"mcp": "node scripts/mcp.mjs"
|
|
95
|
+
},
|
|
96
|
+
"devDependencies": {
|
|
97
|
+
"@types/node": "^26.6.6",
|
|
98
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
99
|
+
"axe-core": "4.14.0",
|
|
100
|
+
"esbuild": "^0.28.2",
|
|
101
|
+
"happy-dom": "^21.0.4",
|
|
102
|
+
"playwright": "1.65.0",
|
|
103
|
+
"typescript": "^7.0.2",
|
|
104
|
+
"vitest": "^5.1.0"
|
|
105
|
+
}
|
|
106
|
+
}
|