optikos 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/LICENSE +21 -0
- package/README.md +211 -2
- package/THIRD_PARTY_NOTICES.md +83 -0
- package/dist/bind.js +2 -0
- package/dist/bind.js.map +7 -0
- package/dist/chunk-2UPUC4RK.js +2 -0
- package/dist/chunk-2UPUC4RK.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-4COBH4QJ.js +2 -0
- package/dist/chunk-4COBH4QJ.js.map +7 -0
- package/dist/chunk-4DHQKECB.js +2 -0
- package/dist/chunk-4DHQKECB.js.map +7 -0
- package/dist/chunk-4Q67QI7J.js +2 -0
- package/dist/chunk-4Q67QI7J.js.map +7 -0
- package/dist/chunk-4SUKNSCY.js +2 -0
- package/dist/chunk-4SUKNSCY.js.map +7 -0
- package/dist/chunk-5AXLYDKU.js +2 -0
- package/dist/chunk-5AXLYDKU.js.map +7 -0
- package/dist/chunk-5GNEFX6F.js +2 -0
- package/dist/chunk-5GNEFX6F.js.map +7 -0
- package/dist/chunk-5Q6Y6CM4.js +2 -0
- package/dist/chunk-5Q6Y6CM4.js.map +7 -0
- package/dist/chunk-666O2GKD.js +2 -0
- package/dist/chunk-666O2GKD.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-6NJW7QFD.js +2 -0
- package/dist/chunk-6NJW7QFD.js.map +7 -0
- package/dist/chunk-6O2BXCRN.js +2 -0
- package/dist/chunk-6O2BXCRN.js.map +7 -0
- package/dist/chunk-A66MDXHL.js +2 -0
- package/dist/chunk-A66MDXHL.js.map +7 -0
- package/dist/chunk-ARCW54L2.js +2 -0
- package/dist/chunk-ARCW54L2.js.map +7 -0
- package/dist/chunk-BIYNHKSA.js +2 -0
- package/dist/chunk-BIYNHKSA.js.map +7 -0
- package/dist/chunk-BNPVRIFT.js +2 -0
- package/dist/chunk-BNPVRIFT.js.map +7 -0
- package/dist/chunk-C3N7QTQB.js +2 -0
- package/dist/chunk-C3N7QTQB.js.map +7 -0
- package/dist/chunk-CEXY5A4T.js +2 -0
- package/dist/chunk-CEXY5A4T.js.map +7 -0
- package/dist/chunk-CN7USUJR.js +2 -0
- package/dist/chunk-CN7USUJR.js.map +7 -0
- package/dist/chunk-CQRHNTEX.js +2 -0
- package/dist/chunk-CQRHNTEX.js.map +7 -0
- package/dist/chunk-CUPAPOKC.js +2 -0
- package/dist/chunk-CUPAPOKC.js.map +7 -0
- package/dist/chunk-DXO3UJKL.js +2 -0
- package/dist/chunk-DXO3UJKL.js.map +7 -0
- package/dist/chunk-GZNQPENR.js +2 -0
- package/dist/chunk-GZNQPENR.js.map +7 -0
- package/dist/chunk-HFFK6K4K.js +2 -0
- package/dist/chunk-HFFK6K4K.js.map +7 -0
- package/dist/chunk-IHAYOSBR.js +2 -0
- package/dist/chunk-IHAYOSBR.js.map +7 -0
- package/dist/chunk-IO66A6G5.js +2 -0
- package/dist/chunk-IO66A6G5.js.map +7 -0
- package/dist/chunk-IW7PK4VS.js +2 -0
- package/dist/chunk-IW7PK4VS.js.map +7 -0
- package/dist/chunk-IYPKPLCU.js +2 -0
- package/dist/chunk-IYPKPLCU.js.map +7 -0
- package/dist/chunk-JTYWZMSZ.js +2 -0
- package/dist/chunk-JTYWZMSZ.js.map +7 -0
- package/dist/chunk-JVEPKW5X.js +2 -0
- package/dist/chunk-JVEPKW5X.js.map +7 -0
- package/dist/chunk-JZNEB7A7.js +2 -0
- package/dist/chunk-JZNEB7A7.js.map +7 -0
- package/dist/chunk-K2DGY6MP.js +2 -0
- package/dist/chunk-K2DGY6MP.js.map +7 -0
- package/dist/chunk-LBCWEWPN.js +2 -0
- package/dist/chunk-LBCWEWPN.js.map +7 -0
- package/dist/chunk-LEE2FEEL.js +2 -0
- package/dist/chunk-LEE2FEEL.js.map +7 -0
- package/dist/chunk-LMGCV35W.js +2 -0
- package/dist/chunk-LMGCV35W.js.map +7 -0
- package/dist/chunk-LV6HXFHU.js +3 -0
- package/dist/chunk-LV6HXFHU.js.map +7 -0
- package/dist/chunk-MA5BJL3S.js +2 -0
- package/dist/chunk-MA5BJL3S.js.map +7 -0
- package/dist/chunk-NDBFYIL6.js +2 -0
- package/dist/chunk-NDBFYIL6.js.map +7 -0
- package/dist/chunk-NHVEP72K.js +2 -0
- package/dist/chunk-NHVEP72K.js.map +7 -0
- package/dist/chunk-NV5AIBQP.js +2 -0
- package/dist/chunk-NV5AIBQP.js.map +7 -0
- package/dist/chunk-NWTTHDIM.js +2 -0
- package/dist/chunk-NWTTHDIM.js.map +7 -0
- package/dist/chunk-O4DCHALR.js +2 -0
- package/dist/chunk-O4DCHALR.js.map +7 -0
- package/dist/chunk-ODWPBBVL.js +2 -0
- package/dist/chunk-ODWPBBVL.js.map +7 -0
- package/dist/chunk-OW2ZSMGS.js +2 -0
- package/dist/chunk-OW2ZSMGS.js.map +7 -0
- package/dist/chunk-OWEQT2HN.js +2 -0
- package/dist/chunk-OWEQT2HN.js.map +7 -0
- package/dist/chunk-PSPQH35P.js +2 -0
- package/dist/chunk-PSPQH35P.js.map +7 -0
- package/dist/chunk-PZSHOSOS.js +2 -0
- package/dist/chunk-PZSHOSOS.js.map +7 -0
- package/dist/chunk-QEQIJAAB.js +2 -0
- package/dist/chunk-QEQIJAAB.js.map +7 -0
- package/dist/chunk-SNTHW4K2.js +2 -0
- package/dist/chunk-SNTHW4K2.js.map +7 -0
- package/dist/chunk-T4OYVG2X.js +2 -0
- package/dist/chunk-T4OYVG2X.js.map +7 -0
- package/dist/chunk-TBLICXWW.js +2 -0
- package/dist/chunk-TBLICXWW.js.map +7 -0
- package/dist/chunk-TK2RC3T5.js +2 -0
- package/dist/chunk-TK2RC3T5.js.map +7 -0
- package/dist/chunk-U3X2FW6U.js +2 -0
- package/dist/chunk-U3X2FW6U.js.map +7 -0
- package/dist/chunk-UPOBGNJ5.js +2 -0
- package/dist/chunk-UPOBGNJ5.js.map +7 -0
- package/dist/chunk-VV7CFMPZ.js +2 -0
- package/dist/chunk-VV7CFMPZ.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-XVIC24AW.js +2 -0
- package/dist/chunk-XVIC24AW.js.map +7 -0
- package/dist/chunk-XZ5CUZZP.js +2 -0
- package/dist/chunk-XZ5CUZZP.js.map +7 -0
- package/dist/chunk-XZEOSW3Q.js +2 -0
- package/dist/chunk-XZEOSW3Q.js.map +7 -0
- package/dist/chunk-YET5PM6F.js +2 -0
- package/dist/chunk-YET5PM6F.js.map +7 -0
- package/dist/chunk-Z25NC4CS.js +2 -0
- package/dist/chunk-Z25NC4CS.js.map +7 -0
- package/dist/chunk-ZCAAM4NH.js +2 -0
- package/dist/chunk-ZCAAM4NH.js.map +7 -0
- package/dist/chunk-ZHVSHDLH.js +2 -0
- package/dist/chunk-ZHVSHDLH.js.map +7 -0
- package/dist/chunk-ZYUXCZX7.js +2 -0
- package/dist/chunk-ZYUXCZX7.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/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/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/dropdown.js +2 -0
- package/dist/components/dropdown.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/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/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/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/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/base.css +160 -0
- package/dist/css/breadcrumb.css +53 -0
- package/dist/css/button.css +101 -0
- package/dist/css/calendar.css +108 -0
- package/dist/css/chat.css +233 -0
- package/dist/css/checkbox.css +64 -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/dropdown.css +13 -0
- package/dist/css/field.css +62 -0
- package/dist/css/fieldset.css +32 -0
- package/dist/css/filterbuilder.css +125 -0
- package/dist/css/form.css +8 -0
- package/dist/css/grid.css +367 -0
- package/dist/css/icon.css +16 -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 +47 -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 +77 -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 +117 -0
- package/dist/css/table.css +36 -0
- package/dist/css/tabs.css +99 -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/toolbar.css +14 -0
- package/dist/css/tooltip.css +17 -0
- package/dist/css/viewport.css +9 -0
- package/dist/css/widget.css +77 -0
- package/dist/css/window.css +31 -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 +3145 -0
- package/dist/themes/brand.css +240 -0
- package/dist/themes/brutal.css +100 -0
- package/dist/themes/compact.css +17 -0
- package/dist/themes/corporate.css +112 -0
- package/dist/themes/dark.css +38 -0
- package/dist/themes/editorial.css +110 -0
- package/dist/themes/soft.css +101 -0
- package/dist/themes/terminal.css +91 -0
- package/dist/types/bind/index.d.ts +23 -0
- package/dist/types/components/base/button/button.d.ts +34 -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/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/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/dataview/dataview.d.ts +61 -0
- package/dist/types/components/data/filterbuilder/filterbuilder.d.ts +71 -0
- package/dist/types/components/data/grid/grid.d.ts +151 -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/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/dropdown.d.ts +1 -0
- package/dist/types/components/feedback/spinner/spinner.d.ts +11 -0
- package/dist/types/components/fields/checkbox/checkbox.d.ts +20 -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/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/fieldset.d.ts +1 -0
- package/dist/types/components/filterbuilder.d.ts +1 -0
- package/dist/types/components/form/form/form.d.ts +51 -0
- package/dist/types/components/form/stepform/stepform.d.ts +62 -0
- package/dist/types/components/form.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/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 +21 -0
- package/dist/types/components/layout/panel/panel.d.ts +47 -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 +49 -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 +41 -0
- package/dist/types/components/overlays/messagebox/messagebox.d.ts +53 -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 +48 -0
- package/dist/types/components/overlays/window/window.d.ts +31 -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/toolbar.d.ts +1 -0
- package/dist/types/components/tooltip.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 +90 -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 +7 -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 +16 -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 +27 -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 +53 -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 +30 -0
- package/dist/types/themes/index.d.ts +1 -0
- package/dist/types/ui/enums.d.ts +88 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/ui.d.ts +58 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +7 -0
- package/package.json +99 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-HFFK6K4K.js";import"../chunk-UPOBGNJ5.js";import"../chunk-VV7CFMPZ.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as Tabs};
|
|
2
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-ZHVSHDLH.js";import"../chunk-SNTHW4K2.js";import"../chunk-OWEQT2HN.js";import"../chunk-K2DGY6MP.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as TextArea};
|
|
2
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b}from"../chunk-OW2ZSMGS.js";import"../chunk-676AKAGF.js";import"../chunk-4AA4FQEM.js";import"../chunk-2UPUC4RK.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as Toast,b as toast};
|
|
2
|
+
//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-LBCWEWPN.js";import"../chunk-666O2GKD.js";import"../chunk-UPOBGNJ5.js";import"../chunk-VV7CFMPZ.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as Toolbar};
|
|
2
|
+
//# sourceMappingURL=toolbar.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c}from"../chunk-TK2RC3T5.js";import"../chunk-5Q6Y6CM4.js";import"../chunk-PSPQH35P.js";import"../chunk-XZ5CUZZP.js";import"../chunk-LBCWEWPN.js";import"../chunk-666O2GKD.js";import"../chunk-5GNEFX6F.js";import"../chunk-ZCAAM4NH.js";import"../chunk-ARCW54L2.js";import"../chunk-SNTHW4K2.js";import"../chunk-UPOBGNJ5.js";import"../chunk-CUPAPOKC.js";import"../chunk-676AKAGF.js";import"../chunk-VV7CFMPZ.js";import"../chunk-K2DGY6MP.js";import"../chunk-XZEOSW3Q.js";import"../chunk-4AA4FQEM.js";import"../chunk-2UPUC4RK.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{c as ViewManager,a as localViewStorage,b as restViewStorage};
|
|
2
|
+
//# sourceMappingURL=viewmanager.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-CN7USUJR.js";import"../chunk-XZ5CUZZP.js";import"../chunk-LBCWEWPN.js";import"../chunk-666O2GKD.js";import"../chunk-UPOBGNJ5.js";import"../chunk-676AKAGF.js";import"../chunk-VV7CFMPZ.js";import"../chunk-XZEOSW3Q.js";import"../chunk-4AA4FQEM.js";import"../chunk-2UPUC4RK.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as Widget};
|
|
2
|
+
//# sourceMappingURL=widget.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../chunk-PSPQH35P.js";import"../chunk-XZ5CUZZP.js";import"../chunk-LBCWEWPN.js";import"../chunk-666O2GKD.js";import"../chunk-UPOBGNJ5.js";import"../chunk-676AKAGF.js";import"../chunk-VV7CFMPZ.js";import"../chunk-XZEOSW3Q.js";import"../chunk-4AA4FQEM.js";import"../chunk-2UPUC4RK.js";import"../chunk-IHAYOSBR.js";import"../chunk-IYPKPLCU.js";import"../chunk-PZSHOSOS.js";import"../chunk-MA5BJL3S.js";import"../chunk-4C666HHU.js";export{a as Window};
|
|
2
|
+
//# sourceMappingURL=window.js.map
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-IW7PK4VS.js";import{a as p,b as q,c as r}from"./chunk-UPOBGNJ5.js";import{i as E}from"./chunk-NWTTHDIM.js";import{a as C,b as D}from"./chunk-OWEQT2HN.js";import{a as x,b as y}from"./chunk-CUPAPOKC.js";import{a as u,b as v,c as w}from"./chunk-676AKAGF.js";import{a as z,b as A,c as B}from"./chunk-VV7CFMPZ.js";import{a as s}from"./chunk-K2DGY6MP.js";import{a as l,b as m,c as n,d as o}from"./chunk-IYPKPLCU.js";import{a as b,b as c,c as d,d as e,e as f,f as g}from"./chunk-PZSHOSOS.js";import{a,b as h,c as i,d as j,e as k}from"./chunk-MA5BJL3S.js";import"./chunk-4C666HHU.js";export{l as Component,r as Container,a as Emitter,s as Field,b as attr,g as clamp,o as create,q as createLayout,E as date,z as focusables,j as getLocale,n as getType,c as h,e as kebab,u as layer,h as locales,w as lockModal,D as measure,x as place,f as px,m as register,p as registerLayout,B as roving,i as setLocale,k as t,v as toLayer,y as track,A as trapFocus,d as uid,t as validators,C as virtualize};
|
|
2
|
+
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Optikos tokens. Three layers, all custom properties:
|
|
3
|
+
* 1. primitives --op-blue-500 (raw palette, never used by components)
|
|
4
|
+
* 2. semantic --op-color-primary (what themes change)
|
|
5
|
+
* 3. component --op-button-bg (declared by each component, falls back to a semantic token)
|
|
6
|
+
* Everything lives in @layer optikos so unlayered user CSS always wins without !important.
|
|
7
|
+
* Scope a theme with data-op-theme="dark" (several allowed: "dark compact") on any element.
|
|
8
|
+
*/
|
|
9
|
+
@layer optikos {
|
|
10
|
+
:root,
|
|
11
|
+
[data-op-theme~='light'] {
|
|
12
|
+
/* primitives */
|
|
13
|
+
--op-gray-0: #ffffff;
|
|
14
|
+
--op-gray-50: #f8fafc;
|
|
15
|
+
--op-gray-100: #f1f5f9;
|
|
16
|
+
--op-gray-200: #e2e8f0;
|
|
17
|
+
--op-gray-300: #cbd5e1;
|
|
18
|
+
--op-gray-400: #94a3b8;
|
|
19
|
+
--op-gray-500: #64748b;
|
|
20
|
+
--op-gray-600: #475569;
|
|
21
|
+
--op-gray-700: #334155;
|
|
22
|
+
--op-gray-800: #1e293b;
|
|
23
|
+
--op-gray-900: #0f172a;
|
|
24
|
+
--op-blue-50: #eff6ff;
|
|
25
|
+
--op-blue-100: #dbeafe;
|
|
26
|
+
--op-blue-500: #3b82f6;
|
|
27
|
+
--op-blue-600: #2563eb;
|
|
28
|
+
--op-blue-700: #1d4ed8;
|
|
29
|
+
--op-red-50: #fef2f2;
|
|
30
|
+
--op-red-500: #ef4444;
|
|
31
|
+
--op-red-600: #dc2626;
|
|
32
|
+
--op-red-700: #b91c1c;
|
|
33
|
+
--op-green-50: #f0fdf4;
|
|
34
|
+
--op-green-600: #16a34a;
|
|
35
|
+
--op-green-700: #15803d;
|
|
36
|
+
--op-amber-50: #fffbeb;
|
|
37
|
+
--op-amber-600: #d97706;
|
|
38
|
+
--op-amber-700: #b45309;
|
|
39
|
+
|
|
40
|
+
/* semantic colors */
|
|
41
|
+
--op-color-bg: var(--op-gray-50);
|
|
42
|
+
--op-color-surface: var(--op-gray-0);
|
|
43
|
+
--op-color-surface-2: var(--op-gray-100);
|
|
44
|
+
--op-color-fg: var(--op-gray-900);
|
|
45
|
+
--op-color-fg-muted: var(--op-gray-500);
|
|
46
|
+
--op-color-border: var(--op-gray-200);
|
|
47
|
+
--op-color-border-strong: var(--op-gray-300);
|
|
48
|
+
--op-color-hover: var(--op-gray-100);
|
|
49
|
+
--op-color-selected: var(--op-blue-100);
|
|
50
|
+
--op-color-primary: var(--op-blue-600);
|
|
51
|
+
--op-color-primary-hover: var(--op-blue-700);
|
|
52
|
+
--op-color-primary-fg: var(--op-gray-0);
|
|
53
|
+
--op-color-primary-soft: var(--op-blue-50);
|
|
54
|
+
--op-color-danger: var(--op-red-600);
|
|
55
|
+
--op-color-danger-hover: var(--op-red-700);
|
|
56
|
+
--op-color-danger-fg: var(--op-gray-0);
|
|
57
|
+
--op-color-danger-soft: var(--op-red-50);
|
|
58
|
+
--op-color-success: var(--op-green-600);
|
|
59
|
+
--op-color-success-soft: var(--op-green-50);
|
|
60
|
+
--op-color-warning: var(--op-amber-600);
|
|
61
|
+
--op-color-warning-soft: var(--op-amber-50);
|
|
62
|
+
--op-color-info: var(--op-blue-600);
|
|
63
|
+
--op-color-info-soft: var(--op-blue-50);
|
|
64
|
+
--op-color-focus: var(--op-blue-500);
|
|
65
|
+
--op-color-disabled-fg: var(--op-gray-400);
|
|
66
|
+
--op-color-disabled-bg: var(--op-gray-100);
|
|
67
|
+
--op-color-overlay: rgb(15 23 42 / 0.5);
|
|
68
|
+
--op-color-inverse-bg: var(--op-gray-800);
|
|
69
|
+
--op-color-inverse-fg: var(--op-gray-50);
|
|
70
|
+
|
|
71
|
+
/* typography */
|
|
72
|
+
--op-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
73
|
+
--op-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
74
|
+
--op-font-size: 0.875rem;
|
|
75
|
+
--op-font-size-sm: 0.75rem;
|
|
76
|
+
--op-font-size-lg: 1rem;
|
|
77
|
+
--op-font-size-xl: 1.25rem;
|
|
78
|
+
--op-line-height: 1.4;
|
|
79
|
+
--op-font-weight: 400;
|
|
80
|
+
--op-font-weight-medium: 500;
|
|
81
|
+
--op-font-weight-bold: 600;
|
|
82
|
+
|
|
83
|
+
/* spacing, density, shape */
|
|
84
|
+
--op-space-1: 0.25rem;
|
|
85
|
+
--op-space-2: 0.5rem;
|
|
86
|
+
--op-space-3: 0.75rem;
|
|
87
|
+
--op-space-4: 1rem;
|
|
88
|
+
--op-space-5: 1.5rem;
|
|
89
|
+
--op-space-6: 2rem;
|
|
90
|
+
--op-control-height: 2.25rem;
|
|
91
|
+
--op-control-padding-x: 0.75rem;
|
|
92
|
+
--op-row-height: 2.25rem;
|
|
93
|
+
--op-border-width: 1px;
|
|
94
|
+
--op-radius-sm: 0.25rem;
|
|
95
|
+
--op-radius: 0.375rem;
|
|
96
|
+
--op-radius-lg: 0.75rem;
|
|
97
|
+
--op-radius-pill: 62.5rem;
|
|
98
|
+
--op-focus-width: 2px;
|
|
99
|
+
--op-focus-offset: 2px;
|
|
100
|
+
--op-icon-size: 1.25em;
|
|
101
|
+
--op-icon-stroke: 2;
|
|
102
|
+
|
|
103
|
+
/* elevation and motion */
|
|
104
|
+
--op-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
|
|
105
|
+
--op-shadow: 0 4px 12px rgb(15 23 42 / 0.12);
|
|
106
|
+
--op-shadow-lg: 0 12px 32px rgb(15 23 42 / 0.2);
|
|
107
|
+
--op-duration: 120ms;
|
|
108
|
+
|
|
109
|
+
/* scrollbars follow the theme: thin, thumb from the strong border, track transparent */
|
|
110
|
+
--op-scrollbar-width: thin;
|
|
111
|
+
--op-scrollbar-size: 0.5rem;
|
|
112
|
+
--op-scrollbar-thumb: var(--op-color-border-strong);
|
|
113
|
+
--op-scrollbar-track: transparent;
|
|
114
|
+
--op-easing: ease-out;
|
|
115
|
+
--op-z-layer: 1000;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
:root,
|
|
120
|
+
[data-op-theme] {
|
|
121
|
+
--op-duration: 0.01ms;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* inherited: every scroll area below a themed element (and the global layer) picks it up */
|
|
126
|
+
:root,
|
|
127
|
+
[data-op-theme] {
|
|
128
|
+
scrollbar-width: var(--op-scrollbar-width);
|
|
129
|
+
scrollbar-color: var(--op-scrollbar-thumb) var(--op-scrollbar-track);
|
|
130
|
+
}
|
|
131
|
+
/* browsers without scrollbar-color (older Safari) */
|
|
132
|
+
@supports not (scrollbar-color: auto) {
|
|
133
|
+
:root ::-webkit-scrollbar,
|
|
134
|
+
[data-op-theme] ::-webkit-scrollbar {
|
|
135
|
+
inline-size: var(--op-scrollbar-size);
|
|
136
|
+
block-size: var(--op-scrollbar-size);
|
|
137
|
+
}
|
|
138
|
+
:root ::-webkit-scrollbar-thumb,
|
|
139
|
+
[data-op-theme] ::-webkit-scrollbar-thumb {
|
|
140
|
+
background: var(--op-scrollbar-thumb);
|
|
141
|
+
border-radius: var(--op-radius-pill);
|
|
142
|
+
}
|
|
143
|
+
:root ::-webkit-scrollbar-track,
|
|
144
|
+
[data-op-theme] ::-webkit-scrollbar-track {
|
|
145
|
+
background: var(--op-scrollbar-track);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Base look for any themed subtree, so a scoped theme repaints its background and text. */
|
|
150
|
+
[data-op-theme] {
|
|
151
|
+
color: var(--op-color-fg);
|
|
152
|
+
background: var(--op-color-bg);
|
|
153
|
+
font-family: var(--op-font-family);
|
|
154
|
+
font-size: var(--op-font-size);
|
|
155
|
+
line-height: var(--op-line-height);
|
|
156
|
+
}
|
|
157
|
+
:where(.op-layout, .op-component, .op-field, .op-panel, .op-container, .op-layer *) {
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@layer optikos {
|
|
2
|
+
:root {
|
|
3
|
+
--op-breadcrumb-separator: '›';
|
|
4
|
+
}
|
|
5
|
+
.op-breadcrumb {
|
|
6
|
+
color: var(--op-breadcrumb-fg, var(--op-color-fg-muted));
|
|
7
|
+
}
|
|
8
|
+
.op-breadcrumb__list {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--op-breadcrumb-gap, var(--op-space-1));
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
list-style: none;
|
|
16
|
+
}
|
|
17
|
+
.op-breadcrumb__list > li + li::before {
|
|
18
|
+
content: var(--op-breadcrumb-separator);
|
|
19
|
+
margin-inline-end: var(--op-breadcrumb-gap, var(--op-space-1));
|
|
20
|
+
}
|
|
21
|
+
.op-breadcrumb__item,
|
|
22
|
+
.op-breadcrumb__more,
|
|
23
|
+
.op-breadcrumb__current {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--op-space-1);
|
|
27
|
+
padding: var(--op-space-1);
|
|
28
|
+
font: inherit;
|
|
29
|
+
color: inherit;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
background: transparent;
|
|
32
|
+
border: 0;
|
|
33
|
+
border-radius: var(--op-radius-sm);
|
|
34
|
+
}
|
|
35
|
+
.op-breadcrumb__item,
|
|
36
|
+
.op-breadcrumb__more {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.op-breadcrumb__item:hover,
|
|
40
|
+
.op-breadcrumb__more:hover {
|
|
41
|
+
color: var(--op-breadcrumb-hover-fg, var(--op-color-fg));
|
|
42
|
+
background: var(--op-color-hover);
|
|
43
|
+
}
|
|
44
|
+
.op-breadcrumb__item:focus-visible,
|
|
45
|
+
.op-breadcrumb__more:focus-visible {
|
|
46
|
+
outline: var(--op-focus-width) solid var(--op-color-focus);
|
|
47
|
+
outline-offset: 0;
|
|
48
|
+
}
|
|
49
|
+
.op-breadcrumb__current {
|
|
50
|
+
color: var(--op-breadcrumb-current-fg, var(--op-color-fg));
|
|
51
|
+
font-weight: var(--op-font-weight-medium);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@layer optikos {
|
|
2
|
+
:root {
|
|
3
|
+
--op-button-spinner-size: 1em;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.op-button {
|
|
7
|
+
--_bg: var(--op-button-bg, var(--op-color-surface));
|
|
8
|
+
--_fg: var(--op-button-fg, var(--op-color-fg));
|
|
9
|
+
--_border: var(--op-button-border, var(--op-color-border-strong));
|
|
10
|
+
--_hover: var(--op-button-hover-bg, var(--op-color-hover));
|
|
11
|
+
--_active: var(--op-button-active-bg, var(--op-color-selected));
|
|
12
|
+
display: inline-grid;
|
|
13
|
+
place-items: center;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
min-block-size: var(--op-button-height, var(--op-control-height));
|
|
16
|
+
padding: var(--op-button-padding-y, 0) var(--op-button-padding-x, var(--op-control-padding-x));
|
|
17
|
+
font: inherit;
|
|
18
|
+
font-weight: var(--op-button-font-weight, var(--op-font-weight-medium));
|
|
19
|
+
color: var(--_fg);
|
|
20
|
+
background: var(--_bg);
|
|
21
|
+
border: var(--op-border-width) solid var(--_border);
|
|
22
|
+
border-radius: var(--op-button-radius, var(--op-radius));
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
user-select: none;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
transition: background var(--op-duration) var(--op-easing), border-color var(--op-duration) var(--op-easing), transform var(--op-motion-press-duration, 100ms) var(--op-motion-ease-out, ease-out);
|
|
27
|
+
}
|
|
28
|
+
.op-button:hover:not(:disabled) {
|
|
29
|
+
background: var(--_hover);
|
|
30
|
+
}
|
|
31
|
+
.op-button:active:not(:disabled),
|
|
32
|
+
.op-button.is-pressed {
|
|
33
|
+
background: var(--_active);
|
|
34
|
+
}
|
|
35
|
+
.op-button:focus-visible {
|
|
36
|
+
outline: var(--op-focus-width) solid var(--op-color-focus);
|
|
37
|
+
outline-offset: var(--op-focus-offset);
|
|
38
|
+
}
|
|
39
|
+
/* normal face and loading face occupy the same grid cell */
|
|
40
|
+
.op-button__face,
|
|
41
|
+
.op-button__busy {
|
|
42
|
+
grid-area: 1 / 1;
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
gap: var(--op-button-gap, var(--op-space-2));
|
|
47
|
+
}
|
|
48
|
+
.op-button--icon-right .op-button__face {
|
|
49
|
+
flex-direction: row-reverse;
|
|
50
|
+
}
|
|
51
|
+
.op-button__busy {
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
}
|
|
54
|
+
.op-button.is-loading .op-button__busy {
|
|
55
|
+
visibility: visible;
|
|
56
|
+
}
|
|
57
|
+
.op-button.is-loading .op-button__face {
|
|
58
|
+
visibility: hidden;
|
|
59
|
+
}
|
|
60
|
+
/* stableSize: false → only the active face takes space, the button fits its content */
|
|
61
|
+
.op-button:not(.op-stable) .op-button__busy,
|
|
62
|
+
.op-button:not(.op-stable).is-loading .op-button__face {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
.op-button:not(.op-stable).is-loading .op-button__busy {
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.op-button--primary {
|
|
70
|
+
--_bg: var(--op-button-primary-bg, var(--op-color-primary));
|
|
71
|
+
--_fg: var(--op-button-primary-fg, var(--op-color-primary-fg));
|
|
72
|
+
--_border: var(--op-button-primary-bg, var(--op-color-primary));
|
|
73
|
+
--_hover: var(--op-button-primary-hover-bg, var(--op-color-primary-hover));
|
|
74
|
+
--_active: var(--op-button-primary-hover-bg, var(--op-color-primary-hover));
|
|
75
|
+
}
|
|
76
|
+
.op-button--danger {
|
|
77
|
+
--_bg: var(--op-button-danger-bg, var(--op-color-danger));
|
|
78
|
+
--_fg: var(--op-button-danger-fg, var(--op-color-danger-fg));
|
|
79
|
+
--_border: var(--op-button-danger-bg, var(--op-color-danger));
|
|
80
|
+
--_hover: var(--op-button-danger-hover-bg, var(--op-color-danger-hover));
|
|
81
|
+
--_active: var(--op-button-danger-hover-bg, var(--op-color-danger-hover));
|
|
82
|
+
}
|
|
83
|
+
.op-button--ghost {
|
|
84
|
+
--_bg: transparent;
|
|
85
|
+
--_border: transparent;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.op-button:disabled {
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
color: var(--op-color-disabled-fg);
|
|
91
|
+
background: var(--op-color-disabled-bg);
|
|
92
|
+
border-color: var(--op-color-border);
|
|
93
|
+
}
|
|
94
|
+
.op-button.is-loading {
|
|
95
|
+
cursor: progress;
|
|
96
|
+
}
|
|
97
|
+
.op-button__spinner {
|
|
98
|
+
--op-spinner-size: var(--op-button-spinner-size);
|
|
99
|
+
--op-spinner-color: currentColor;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@layer optikos {
|
|
2
|
+
:root {
|
|
3
|
+
--op-calendar-day-size: 2.25rem;
|
|
4
|
+
}
|
|
5
|
+
.op-calendar {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: var(--op-calendar-padding, var(--op-space-2));
|
|
8
|
+
color: var(--op-color-fg);
|
|
9
|
+
background: var(--op-calendar-bg, var(--op-color-surface));
|
|
10
|
+
}
|
|
11
|
+
.op-calendar__header {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
gap: var(--op-space-1);
|
|
16
|
+
margin-block-end: var(--op-space-2);
|
|
17
|
+
}
|
|
18
|
+
.op-calendar__nav,
|
|
19
|
+
.op-calendar__title,
|
|
20
|
+
.op-calendar__month {
|
|
21
|
+
font: inherit;
|
|
22
|
+
color: inherit;
|
|
23
|
+
background: transparent;
|
|
24
|
+
border: 0;
|
|
25
|
+
border-radius: var(--op-radius);
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
.op-calendar__nav {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
padding: var(--op-space-2);
|
|
31
|
+
}
|
|
32
|
+
.op-calendar__title {
|
|
33
|
+
flex: 1;
|
|
34
|
+
padding: var(--op-space-2);
|
|
35
|
+
font-weight: var(--op-font-weight-bold);
|
|
36
|
+
text-transform: capitalize;
|
|
37
|
+
}
|
|
38
|
+
.op-calendar__nav:hover,
|
|
39
|
+
.op-calendar__title:hover,
|
|
40
|
+
.op-calendar__month:hover {
|
|
41
|
+
background: var(--op-color-hover);
|
|
42
|
+
}
|
|
43
|
+
.op-calendar__grid {
|
|
44
|
+
border-collapse: collapse;
|
|
45
|
+
}
|
|
46
|
+
.op-calendar__dow {
|
|
47
|
+
padding-block-end: var(--op-space-1);
|
|
48
|
+
font-size: var(--op-font-size-sm);
|
|
49
|
+
font-weight: var(--op-font-weight-medium);
|
|
50
|
+
color: var(--op-color-fg-muted);
|
|
51
|
+
text-transform: capitalize;
|
|
52
|
+
}
|
|
53
|
+
.op-calendar__day {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
inline-size: var(--op-calendar-day-size);
|
|
56
|
+
block-size: var(--op-calendar-day-size);
|
|
57
|
+
padding: 0;
|
|
58
|
+
text-align: center;
|
|
59
|
+
border-radius: var(--op-radius);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
.op-calendar__day:hover {
|
|
63
|
+
background: var(--op-calendar-day-hover-bg, var(--op-color-hover));
|
|
64
|
+
}
|
|
65
|
+
.op-calendar__day.is-outside {
|
|
66
|
+
color: var(--op-calendar-outside-fg, var(--op-color-fg-muted));
|
|
67
|
+
}
|
|
68
|
+
.op-calendar__day.is-today {
|
|
69
|
+
box-shadow: inset 0 0 0 var(--op-border-width) var(--op-calendar-today-border, var(--op-color-primary));
|
|
70
|
+
}
|
|
71
|
+
.op-calendar__day.is-selected,
|
|
72
|
+
.op-calendar__month.is-selected {
|
|
73
|
+
color: var(--op-calendar-day-selected-fg, var(--op-color-primary-fg));
|
|
74
|
+
background: var(--op-calendar-day-selected-bg, var(--op-color-primary));
|
|
75
|
+
}
|
|
76
|
+
.op-calendar__day.is-in-range {
|
|
77
|
+
color: var(--op-calendar-range-fg, var(--op-color-fg));
|
|
78
|
+
background: var(--op-calendar-range-bg, var(--op-color-selected));
|
|
79
|
+
border-radius: 0;
|
|
80
|
+
}
|
|
81
|
+
.op-calendar__day.is-range-start {
|
|
82
|
+
border-start-end-radius: 0;
|
|
83
|
+
border-end-end-radius: 0;
|
|
84
|
+
}
|
|
85
|
+
.op-calendar__day.is-range-end {
|
|
86
|
+
border-start-start-radius: 0;
|
|
87
|
+
border-end-start-radius: 0;
|
|
88
|
+
}
|
|
89
|
+
.op-calendar__day.is-disabled {
|
|
90
|
+
color: var(--op-color-disabled-fg);
|
|
91
|
+
background: transparent;
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
text-decoration: line-through;
|
|
94
|
+
}
|
|
95
|
+
.op-calendar__day:focus-visible {
|
|
96
|
+
outline: var(--op-focus-width) solid var(--op-color-focus);
|
|
97
|
+
outline-offset: 0;
|
|
98
|
+
}
|
|
99
|
+
.op-calendar__months {
|
|
100
|
+
display: grid;
|
|
101
|
+
grid-template-columns: repeat(3, 1fr);
|
|
102
|
+
gap: var(--op-space-1);
|
|
103
|
+
}
|
|
104
|
+
.op-calendar__month {
|
|
105
|
+
padding: var(--op-space-3) var(--op-space-2);
|
|
106
|
+
text-transform: capitalize;
|
|
107
|
+
}
|
|
108
|
+
}
|