@yaks/ui 0.0.0-stage → 0.2.36
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/Address.css +9 -0
- package/Address.js +32 -0
- package/Address.js.map +1 -0
- package/Address.ts +35 -0
- package/Annotated.css +17 -0
- package/Annotated.js +27 -0
- package/Annotated.js.map +1 -0
- package/Annotated.ts +32 -0
- package/AppShell.css +133 -0
- package/AppShell.js +90 -0
- package/AppShell.js.map +1 -0
- package/AppShell.ts +75 -0
- package/At.css +16 -0
- package/At.js +28 -0
- package/At.js.map +1 -0
- package/At.ts +37 -0
- package/Attachments.css +110 -0
- package/Attachments.js +119 -0
- package/Attachments.js.map +1 -0
- package/Attachments.ts +158 -0
- package/Badge.css +41 -0
- package/Badge.js +49 -0
- package/Badge.js.map +1 -0
- package/Badge.ts +38 -0
- package/Body.css +61 -0
- package/Body.js +103 -0
- package/Body.js.map +1 -0
- package/Body.ts +144 -0
- package/Button.css +121 -0
- package/Button.js +161 -0
- package/Button.js.map +1 -0
- package/Button.ts +92 -0
- package/Card.css +173 -0
- package/Card.js +165 -0
- package/Card.js.map +1 -0
- package/Card.ts +185 -0
- package/Cards.css +16 -0
- package/Cards.js +36 -0
- package/Cards.js.map +1 -0
- package/Cards.ts +64 -0
- package/Catalog.css +53 -0
- package/Catalog.js +55 -0
- package/Catalog.js.map +1 -0
- package/Catalog.ts +77 -0
- package/Chart.css +55 -0
- package/Chart.js +54 -0
- package/Chart.js.map +1 -0
- package/Chart.ts +62 -0
- package/Check.css +27 -0
- package/Check.js +77 -0
- package/Check.js.map +1 -0
- package/Check.ts +109 -0
- package/Chip.css +64 -0
- package/Chip.js +100 -0
- package/Chip.js.map +1 -0
- package/Chip.ts +66 -0
- package/Chips.css +10 -0
- package/Chips.js +41 -0
- package/Chips.js.map +1 -0
- package/Chips.ts +49 -0
- package/Choices.css +59 -0
- package/Choices.js +56 -0
- package/Choices.js.map +1 -0
- package/Choices.ts +73 -0
- package/Combobox.js +115 -0
- package/Combobox.js.map +1 -0
- package/Combobox.ts +230 -0
- package/Composer.css +247 -0
- package/Composer.js +222 -0
- package/Composer.js.map +1 -0
- package/Composer.ts +249 -0
- package/Contents.css +87 -0
- package/Contents.js +85 -0
- package/Contents.js.map +1 -0
- package/Contents.ts +117 -0
- package/Copy.css +28 -0
- package/Copy.js +62 -0
- package/Copy.js.map +1 -0
- package/Copy.ts +76 -0
- package/Doc.css +29 -0
- package/Doc.js +46 -0
- package/Doc.js.map +1 -0
- package/Doc.ts +64 -0
- package/Dock.css +157 -0
- package/Dock.js +229 -0
- package/Dock.js.map +1 -0
- package/Dock.ts +234 -0
- package/Dot.css +132 -0
- package/Dot.js +91 -0
- package/Dot.js.map +1 -0
- package/Dot.ts +72 -0
- package/Drop.css +133 -0
- package/Drop.js +148 -0
- package/Drop.js.map +1 -0
- package/Drop.ts +162 -0
- package/Edit.css +32 -0
- package/Edit.js +77 -0
- package/Edit.js.map +1 -0
- package/Edit.ts +72 -0
- package/Empty.css +32 -0
- package/Empty.js +45 -0
- package/Empty.js.map +1 -0
- package/Empty.ts +61 -0
- package/ErrorNotice.css +107 -0
- package/ErrorNotice.js +127 -0
- package/ErrorNotice.js.map +1 -0
- package/ErrorNotice.ts +133 -0
- package/Field.css +42 -0
- package/Field.js +186 -0
- package/Field.js.map +1 -0
- package/Field.ts +251 -0
- package/Form.css +95 -0
- package/Form.js +158 -0
- package/Form.js.map +1 -0
- package/Form.ts +212 -0
- package/Gallery.css +42 -0
- package/Gallery.js +57 -0
- package/Gallery.js.map +1 -0
- package/Gallery.ts +89 -0
- package/Group.css +8 -0
- package/Group.js +25 -0
- package/Group.js.map +1 -0
- package/Group.ts +40 -0
- package/Head.css +108 -0
- package/Head.js +124 -0
- package/Head.js.map +1 -0
- package/Head.ts +161 -0
- package/Icon.css +14 -0
- package/Icon.js +79 -0
- package/Icon.js.map +1 -0
- package/Icon.ts +78 -0
- package/IconButton.css +32 -0
- package/IconButton.js +74 -0
- package/IconButton.js.map +1 -0
- package/IconButton.ts +55 -0
- package/Id.css +29 -0
- package/Id.js +42 -0
- package/Id.js.map +1 -0
- package/Id.ts +31 -0
- package/Identity.css +122 -0
- package/Identity.js +88 -0
- package/Identity.js.map +1 -0
- package/Identity.ts +100 -0
- package/Index.css +68 -0
- package/Index.js +66 -0
- package/Index.js.map +1 -0
- package/Index.ts +63 -0
- package/LICENSE +202 -0
- package/Layer.css +82 -0
- package/Layer.js +86 -0
- package/Layer.js.map +1 -0
- package/Layer.ts +85 -0
- package/Lightbox.css +86 -0
- package/Lightbox.js +69 -0
- package/Lightbox.js.map +1 -0
- package/Lightbox.ts +79 -0
- package/Loading.css +22 -0
- package/Loading.js +75 -0
- package/Loading.js.map +1 -0
- package/Loading.ts +87 -0
- package/Logo.css +32 -0
- package/Logo.js +69 -0
- package/Logo.js.map +1 -0
- package/Logo.ts +81 -0
- package/Match.css +7 -0
- package/Match.js +51 -0
- package/Match.js.map +1 -0
- package/Match.ts +53 -0
- package/Menu.css +202 -0
- package/Menu.js +197 -0
- package/Menu.js.map +1 -0
- package/Menu.ts +233 -0
- package/Meter.css +49 -0
- package/Meter.js +149 -0
- package/Meter.js.map +1 -0
- package/Meter.ts +126 -0
- package/Metrics.css +43 -0
- package/Metrics.js +72 -0
- package/Metrics.js.map +1 -0
- package/Metrics.ts +66 -0
- package/Modal.css +94 -0
- package/Modal.js +114 -0
- package/Modal.js.map +1 -0
- package/Modal.ts +149 -0
- package/ModalDOM.css +23 -0
- package/More.css +135 -0
- package/More.js +135 -0
- package/More.js.map +1 -0
- package/More.ts +157 -0
- package/Notes.css +51 -0
- package/Notes.js +64 -0
- package/Notes.js.map +1 -0
- package/Notes.ts +95 -0
- package/Notice.css +30 -0
- package/Notice.js +50 -0
- package/Notice.js.map +1 -0
- package/Notice.ts +40 -0
- package/Overlay.css +8 -0
- package/Overlay.js +25 -0
- package/Overlay.js.map +1 -0
- package/Overlay.ts +33 -0
- package/Pager.css +33 -0
- package/Pager.js +44 -0
- package/Pager.js.map +1 -0
- package/Pager.ts +56 -0
- package/Pairs.css +50 -0
- package/Pairs.js +45 -0
- package/Pairs.js.map +1 -0
- package/Pairs.ts +88 -0
- package/Palette.css +77 -0
- package/Palette.js +41 -0
- package/Palette.js.map +1 -0
- package/Palette.ts +44 -0
- package/Panes.css +68 -0
- package/Panes.js +100 -0
- package/Panes.js.map +1 -0
- package/Panes.ts +97 -0
- package/Passage.css +58 -0
- package/Passage.js +80 -0
- package/Passage.js.map +1 -0
- package/Passage.ts +112 -0
- package/Peek.css +75 -0
- package/Peek.js +51 -0
- package/Peek.js.map +1 -0
- package/Peek.ts +74 -0
- package/Pills.css +127 -0
- package/Pills.js +119 -0
- package/Pills.js.map +1 -0
- package/Pills.ts +131 -0
- package/Plan.css +73 -0
- package/Plan.js +62 -0
- package/Plan.js.map +1 -0
- package/Plan.ts +80 -0
- package/Popover.css +47 -0
- package/Popover.js +62 -0
- package/Popover.js.map +1 -0
- package/Popover.ts +80 -0
- package/Preview.css +89 -0
- package/Preview.js +84 -0
- package/Preview.js.map +1 -0
- package/Preview.ts +98 -0
- package/Prop.css +117 -0
- package/Prop.js +94 -0
- package/Prop.js.map +1 -0
- package/Prop.ts +91 -0
- package/Quote.css +55 -0
- package/Quote.js +79 -0
- package/Quote.js.map +1 -0
- package/Quote.ts +85 -0
- package/README.md +596 -2
- package/Report.css +76 -0
- package/Report.js +105 -0
- package/Report.js.map +1 -0
- package/Report.ts +118 -0
- package/Rows.css +289 -0
- package/Rows.js +265 -0
- package/Rows.js.map +1 -0
- package/Rows.ts +337 -0
- package/Save.css +112 -0
- package/Save.js +100 -0
- package/Save.js.map +1 -0
- package/Save.ts +102 -0
- package/Section.css +52 -0
- package/Section.js +73 -0
- package/Section.js.map +1 -0
- package/Section.ts +86 -0
- package/Select.css +140 -0
- package/Select.js +208 -0
- package/Select.js.map +1 -0
- package/Select.ts +238 -0
- package/Shell.css +292 -0
- package/Shell.js +197 -0
- package/Shell.js.map +1 -0
- package/Shell.ts +193 -0
- package/SideNav.css +105 -0
- package/SideNav.js +197 -0
- package/SideNav.js.map +1 -0
- package/SideNav.ts +189 -0
- package/Skip.css +11 -0
- package/Skip.js +18 -0
- package/Skip.js.map +1 -0
- package/Skip.ts +16 -0
- package/Spark.css +14 -0
- package/Spark.js +84 -0
- package/Spark.js.map +1 -0
- package/Spark.ts +67 -0
- package/Stack.css +13 -0
- package/Stack.js +20 -0
- package/Stack.js.map +1 -0
- package/Stack.ts +31 -0
- package/Stamp.css +11 -0
- package/Stamp.js +40 -0
- package/Stamp.js.map +1 -0
- package/Stamp.ts +62 -0
- package/State.css +10 -0
- package/State.js +38 -0
- package/State.js.map +1 -0
- package/State.ts +38 -0
- package/Surface.css +139 -0
- package/Surface.js +79 -0
- package/Surface.js.map +1 -0
- package/Surface.ts +55 -0
- package/Table.css +147 -0
- package/Table.js +289 -0
- package/Table.js.map +1 -0
- package/Table.ts +343 -0
- package/Tabs.css +100 -0
- package/Tabs.js +108 -0
- package/Tabs.js.map +1 -0
- package/Tabs.ts +111 -0
- package/Tile.css +164 -0
- package/Tile.js +211 -0
- package/Tile.js.map +1 -0
- package/Tile.ts +174 -0
- package/Time.css +5 -0
- package/Time.js +80 -0
- package/Time.js.map +1 -0
- package/Time.ts +105 -0
- package/Timeline.css +35 -0
- package/Timeline.js +55 -0
- package/Timeline.js.map +1 -0
- package/Timeline.ts +84 -0
- package/Tip.css +18 -0
- package/Tip.js +24 -0
- package/Tip.js.map +1 -0
- package/Tip.ts +29 -0
- package/Toast.css +25 -0
- package/Toast.js +32 -0
- package/Toast.js.map +1 -0
- package/Toast.ts +34 -0
- package/Toolbar.css +66 -0
- package/Toolbar.js +58 -0
- package/Toolbar.js.map +1 -0
- package/Toolbar.ts +68 -0
- package/Transcript.css +221 -0
- package/Transcript.js +254 -0
- package/Transcript.js.map +1 -0
- package/Transcript.ts +296 -0
- package/Turns.css +49 -0
- package/Turns.js +58 -0
- package/Turns.js.map +1 -0
- package/Turns.ts +67 -0
- package/Value.css +33 -0
- package/Value.js +60 -0
- package/Value.js.map +1 -0
- package/Value.ts +48 -0
- package/_dist/Address.d.ts +3 -0
- package/_dist/Address.d.ts.map +1 -0
- package/_dist/Annotated.d.ts +3 -0
- package/_dist/Annotated.d.ts.map +1 -0
- package/_dist/AppShell.d.ts +3 -0
- package/_dist/AppShell.d.ts.map +1 -0
- package/_dist/At.d.ts +14 -0
- package/_dist/At.d.ts.map +1 -0
- package/_dist/Attachments.d.ts +6 -0
- package/_dist/Attachments.d.ts.map +1 -0
- package/_dist/Badge.d.ts +19 -0
- package/_dist/Badge.d.ts.map +1 -0
- package/_dist/Body.d.ts +5 -0
- package/_dist/Body.d.ts.map +1 -0
- package/_dist/Button.d.ts +18 -0
- package/_dist/Button.d.ts.map +1 -0
- package/_dist/Card.d.ts +28 -0
- package/_dist/Card.d.ts.map +1 -0
- package/_dist/Cards.d.ts +15 -0
- package/_dist/Cards.d.ts.map +1 -0
- package/_dist/Catalog.d.ts +3 -0
- package/_dist/Catalog.d.ts.map +1 -0
- package/_dist/Chart.d.ts +5 -0
- package/_dist/Chart.d.ts.map +1 -0
- package/_dist/Check.d.ts +17 -0
- package/_dist/Check.d.ts.map +1 -0
- package/_dist/Chip.d.ts +22 -0
- package/_dist/Chip.d.ts.map +1 -0
- package/_dist/Chips.d.ts +15 -0
- package/_dist/Chips.d.ts.map +1 -0
- package/_dist/Choices.d.ts +3 -0
- package/_dist/Choices.d.ts.map +1 -0
- package/_dist/Combobox.d.ts +55 -0
- package/_dist/Combobox.d.ts.map +1 -0
- package/_dist/Composer.d.ts +15 -0
- package/_dist/Composer.d.ts.map +1 -0
- package/_dist/Contents.d.ts +20 -0
- package/_dist/Contents.d.ts.map +1 -0
- package/_dist/Copy.d.ts +24 -0
- package/_dist/Copy.d.ts.map +1 -0
- package/_dist/Doc.d.ts +3 -0
- package/_dist/Doc.d.ts.map +1 -0
- package/_dist/Dock.d.ts +29 -0
- package/_dist/Dock.d.ts.map +1 -0
- package/_dist/Dot.d.ts +16 -0
- package/_dist/Dot.d.ts.map +1 -0
- package/_dist/Drop.d.ts +27 -0
- package/_dist/Drop.d.ts.map +1 -0
- package/_dist/Edit.d.ts +3 -0
- package/_dist/Edit.d.ts.map +1 -0
- package/_dist/Empty.d.ts +16 -0
- package/_dist/Empty.d.ts.map +1 -0
- package/_dist/ErrorNotice.d.ts +16 -0
- package/_dist/ErrorNotice.d.ts.map +1 -0
- package/_dist/Field.d.ts +53 -0
- package/_dist/Field.d.ts.map +1 -0
- package/_dist/Form.d.ts +44 -0
- package/_dist/Form.d.ts.map +1 -0
- package/_dist/Gallery.d.ts +3 -0
- package/_dist/Gallery.d.ts.map +1 -0
- package/_dist/Group.d.ts +14 -0
- package/_dist/Group.d.ts.map +1 -0
- package/_dist/Head.d.ts +13 -0
- package/_dist/Head.d.ts.map +1 -0
- package/_dist/Icon.d.ts +23 -0
- package/_dist/Icon.d.ts.map +1 -0
- package/_dist/IconButton.d.ts +8 -0
- package/_dist/IconButton.d.ts.map +1 -0
- package/_dist/Id.d.ts +3 -0
- package/_dist/Id.d.ts.map +1 -0
- package/_dist/Identity.d.ts +15 -0
- package/_dist/Identity.d.ts.map +1 -0
- package/_dist/Index.d.ts +3 -0
- package/_dist/Index.d.ts.map +1 -0
- package/_dist/Layer.d.ts +8 -0
- package/_dist/Layer.d.ts.map +1 -0
- package/_dist/Lightbox.d.ts +27 -0
- package/_dist/Lightbox.d.ts.map +1 -0
- package/_dist/Loading.d.ts +24 -0
- package/_dist/Loading.d.ts.map +1 -0
- package/_dist/Logo.d.ts +26 -0
- package/_dist/Logo.d.ts.map +1 -0
- package/_dist/Match.d.ts +5 -0
- package/_dist/Match.d.ts.map +1 -0
- package/_dist/Menu.d.ts +23 -0
- package/_dist/Menu.d.ts.map +1 -0
- package/_dist/Meter.d.ts +10 -0
- package/_dist/Meter.d.ts.map +1 -0
- package/_dist/Metrics.d.ts +3 -0
- package/_dist/Metrics.d.ts.map +1 -0
- package/_dist/Modal.d.ts +32 -0
- package/_dist/Modal.d.ts.map +1 -0
- package/_dist/More.d.ts +29 -0
- package/_dist/More.d.ts.map +1 -0
- package/_dist/Notes.d.ts +3 -0
- package/_dist/Notes.d.ts.map +1 -0
- package/_dist/Notice.d.ts +15 -0
- package/_dist/Notice.d.ts.map +1 -0
- package/_dist/Overlay.d.ts +3 -0
- package/_dist/Overlay.d.ts.map +1 -0
- package/_dist/Pager.d.ts +3 -0
- package/_dist/Pager.d.ts.map +1 -0
- package/_dist/Pairs.d.ts +3 -0
- package/_dist/Pairs.d.ts.map +1 -0
- package/_dist/Palette.d.ts +3 -0
- package/_dist/Palette.d.ts.map +1 -0
- package/_dist/Panes.d.ts +3 -0
- package/_dist/Panes.d.ts.map +1 -0
- package/_dist/Passage.d.ts +3 -0
- package/_dist/Passage.d.ts.map +1 -0
- package/_dist/Peek.d.ts +3 -0
- package/_dist/Peek.d.ts.map +1 -0
- package/_dist/Pills.d.ts +3 -0
- package/_dist/Pills.d.ts.map +1 -0
- package/_dist/Plan.d.ts +4 -0
- package/_dist/Plan.d.ts.map +1 -0
- package/_dist/Popover.d.ts +3 -0
- package/_dist/Popover.d.ts.map +1 -0
- package/_dist/Preview.d.ts +8 -0
- package/_dist/Preview.d.ts.map +1 -0
- package/_dist/Prop.d.ts +7 -0
- package/_dist/Prop.d.ts.map +1 -0
- package/_dist/Quote.d.ts +3 -0
- package/_dist/Quote.d.ts.map +1 -0
- package/_dist/Report.d.ts +8 -0
- package/_dist/Report.d.ts.map +1 -0
- package/_dist/Rows.d.ts +36 -0
- package/_dist/Rows.d.ts.map +1 -0
- package/_dist/Save.d.ts +4 -0
- package/_dist/Save.d.ts.map +1 -0
- package/_dist/Section.d.ts +3 -0
- package/_dist/Section.d.ts.map +1 -0
- package/_dist/Select.d.ts +29 -0
- package/_dist/Select.d.ts.map +1 -0
- package/_dist/Shell.d.ts +3 -0
- package/_dist/Shell.d.ts.map +1 -0
- package/_dist/SideNav.d.ts +31 -0
- package/_dist/SideNav.d.ts.map +1 -0
- package/_dist/Skip.d.ts +3 -0
- package/_dist/Skip.d.ts.map +1 -0
- package/_dist/Spark.d.ts +9 -0
- package/_dist/Spark.d.ts.map +1 -0
- package/_dist/Stack.d.ts +11 -0
- package/_dist/Stack.d.ts.map +1 -0
- package/_dist/Stamp.d.ts +3 -0
- package/_dist/Stamp.d.ts.map +1 -0
- package/_dist/State.d.ts +16 -0
- package/_dist/State.d.ts.map +1 -0
- package/_dist/Surface.d.ts +7 -0
- package/_dist/Surface.d.ts.map +1 -0
- package/_dist/Table.d.ts +10 -0
- package/_dist/Table.d.ts.map +1 -0
- package/_dist/Tabs.d.ts +30 -0
- package/_dist/Tabs.d.ts.map +1 -0
- package/_dist/Tile.d.ts +3 -0
- package/_dist/Tile.d.ts.map +1 -0
- package/_dist/Time.d.ts +24 -0
- package/_dist/Time.d.ts.map +1 -0
- package/_dist/Timeline.d.ts +3 -0
- package/_dist/Timeline.d.ts.map +1 -0
- package/_dist/Tip.d.ts +3 -0
- package/_dist/Tip.d.ts.map +1 -0
- package/_dist/Toast.d.ts +5 -0
- package/_dist/Toast.d.ts.map +1 -0
- package/_dist/Toolbar.d.ts +3 -0
- package/_dist/Toolbar.d.ts.map +1 -0
- package/_dist/Transcript.d.ts +35 -0
- package/_dist/Transcript.d.ts.map +1 -0
- package/_dist/Turns.d.ts +3 -0
- package/_dist/Turns.d.ts.map +1 -0
- package/_dist/Value.d.ts +3 -0
- package/_dist/Value.d.ts.map +1 -0
- package/_dist/ahead.d.ts +41 -0
- package/_dist/ahead.d.ts.map +1 -0
- package/_dist/chart-marks.d.ts +75 -0
- package/_dist/chart-marks.d.ts.map +1 -0
- package/_dist/clock.d.ts +4 -0
- package/_dist/clock.d.ts.map +1 -0
- package/_dist/contents-browser.d.ts +29 -0
- package/_dist/contents-browser.d.ts.map +1 -0
- package/_dist/contributions.d.ts +5 -0
- package/_dist/contributions.d.ts.map +1 -0
- package/_dist/copy-browser.d.ts +4 -0
- package/_dist/copy-browser.d.ts.map +1 -0
- package/_dist/el.d.ts +58 -0
- package/_dist/el.d.ts.map +1 -0
- package/_dist/everforest.d.ts +8 -0
- package/_dist/everforest.d.ts.map +1 -0
- package/_dist/float.d.ts +55 -0
- package/_dist/float.d.ts.map +1 -0
- package/_dist/gouache.d.ts +9 -0
- package/_dist/gouache.d.ts.map +1 -0
- package/_dist/guide.d.ts +38 -0
- package/_dist/guide.d.ts.map +1 -0
- package/_dist/halved.d.ts +3 -0
- package/_dist/halved.d.ts.map +1 -0
- package/_dist/history.d.ts +15 -0
- package/_dist/history.d.ts.map +1 -0
- package/_dist/interaction.d.ts +15 -0
- package/_dist/interaction.d.ts.map +1 -0
- package/_dist/kit.d.ts +30 -0
- package/_dist/kit.d.ts.map +1 -0
- package/_dist/ledger.d.ts +3 -0
- package/_dist/ledger.d.ts.map +1 -0
- package/_dist/linen.d.ts +8 -0
- package/_dist/linen.d.ts.map +1 -0
- package/_dist/menus-browser.d.ts +2 -0
- package/_dist/menus-browser.d.ts.map +1 -0
- package/_dist/menus.d.ts +6 -0
- package/_dist/menus.d.ts.map +1 -0
- package/_dist/mod.d.ts +47 -0
- package/_dist/mod.d.ts.map +1 -0
- package/_dist/modal-browser.d.ts +2 -0
- package/_dist/modal-browser.d.ts.map +1 -0
- package/_dist/modal-head.d.ts +43 -0
- package/_dist/modal-head.d.ts.map +1 -0
- package/_dist/navigate.d.ts +170 -0
- package/_dist/navigate.d.ts.map +1 -0
- package/_dist/overlays.d.ts +16 -0
- package/_dist/overlays.d.ts.map +1 -0
- package/_dist/palette-browser.d.ts +3 -0
- package/_dist/palette-browser.d.ts.map +1 -0
- package/_dist/panes-browser.d.ts +4 -0
- package/_dist/panes-browser.d.ts.map +1 -0
- package/_dist/paper.d.ts +6 -0
- package/_dist/paper.d.ts.map +1 -0
- package/_dist/parts.d.ts +102 -0
- package/_dist/parts.d.ts.map +1 -0
- package/_dist/pencil.d.ts +6 -0
- package/_dist/pencil.d.ts.map +1 -0
- package/_dist/placement.d.ts +12 -0
- package/_dist/placement.d.ts.map +1 -0
- package/_dist/relative.d.ts +41 -0
- package/_dist/relative.d.ts.map +1 -0
- package/_dist/rosepine.d.ts +8 -0
- package/_dist/rosepine.d.ts.map +1 -0
- package/_dist/routes.d.ts +20 -0
- package/_dist/routes.d.ts.map +1 -0
- package/_dist/sheet.d.ts +44 -0
- package/_dist/sheet.d.ts.map +1 -0
- package/_dist/slide.d.ts +4 -0
- package/_dist/slide.d.ts.map +1 -0
- package/_dist/stock.d.ts +21 -0
- package/_dist/stock.d.ts.map +1 -0
- package/_dist/store.d.ts +2 -0
- package/_dist/store.d.ts.map +1 -0
- package/_dist/theme.d.ts +102 -0
- package/_dist/theme.d.ts.map +1 -0
- package/_dist/ui.d.ts +2 -0
- package/_dist/ui.d.ts.map +1 -0
- package/_dist/video-cover.d.ts +3 -0
- package/_dist/video-cover.d.ts.map +1 -0
- package/_dist/viewport.d.ts +14 -0
- package/_dist/viewport.d.ts.map +1 -0
- package/_dist/wear.d.ts +5 -0
- package/_dist/wear.d.ts.map +1 -0
- package/ahead.js +81 -0
- package/ahead.js.map +1 -0
- package/ahead.ts +102 -0
- package/base.css +220 -0
- package/base.js +129 -0
- package/base.js.map +1 -0
- package/base.ts +127 -0
- package/chart-marks.js +156 -0
- package/chart-marks.js.map +1 -0
- package/chart-marks.ts +221 -0
- package/clock.js +41 -0
- package/clock.js.map +1 -0
- package/clock.ts +39 -0
- package/contents-browser.js +122 -0
- package/contents-browser.js.map +1 -0
- package/contents-browser.ts +135 -0
- package/contributions.js +28 -0
- package/contributions.js.map +1 -0
- package/contributions.ts +21 -0
- package/copy-browser.js +39 -0
- package/copy-browser.js.map +1 -0
- package/copy-browser.ts +44 -0
- package/deno.json +1 -0
- package/derived.css +64 -0
- package/el.js +176 -0
- package/el.js.map +1 -0
- package/el.ts +240 -0
- package/everforest.css +65 -0
- package/everforest.js +54 -0
- package/everforest.js.map +1 -0
- package/everforest.ts +52 -0
- package/float.js +182 -0
- package/float.js.map +1 -0
- package/float.ts +222 -0
- package/gouache.css +62 -0
- package/gouache.js +54 -0
- package/gouache.js.map +1 -0
- package/gouache.ts +52 -0
- package/guide.js +124 -0
- package/guide.js.map +1 -0
- package/guide.ts +222 -0
- package/halved.js +88 -0
- package/halved.js.map +1 -0
- package/halved.ts +102 -0
- package/history.js +11 -0
- package/history.js.map +1 -0
- package/history.ts +22 -0
- package/interaction.js +23 -0
- package/interaction.js.map +1 -0
- package/interaction.ts +43 -0
- package/kit.js +345 -0
- package/kit.js.map +1 -0
- package/kit.ts +408 -0
- package/ledger/Button.css +22 -0
- package/ledger/Head.css +72 -0
- package/ledger/Tabs.css +19 -0
- package/ledger/Tile.css +12 -0
- package/ledger.js +52 -0
- package/ledger.js.map +1 -0
- package/ledger.ts +34 -0
- package/linen.css +71 -0
- package/linen.js +54 -0
- package/linen.js.map +1 -0
- package/linen.ts +52 -0
- package/lucide.d.ts +4 -0
- package/menus-browser.js +72 -0
- package/menus-browser.js.map +1 -0
- package/menus-browser.ts +75 -0
- package/menus.js +84 -0
- package/menus.js.map +1 -0
- package/menus.ts +90 -0
- package/mod.js +46 -0
- package/mod.js.map +1 -0
- package/mod.ts +78 -0
- package/modal-browser.js +29 -0
- package/modal-browser.js.map +1 -0
- package/modal-browser.ts +31 -0
- package/modal-head.js +75 -0
- package/modal-head.js.map +1 -0
- package/modal-head.ts +81 -0
- package/navigate.js +934 -0
- package/navigate.js.map +1 -0
- package/navigate.ts +1177 -0
- package/overlays.js +177 -0
- package/overlays.js.map +1 -0
- package/overlays.ts +257 -0
- package/package.json +280 -4
- package/palette-browser.js +52 -0
- package/palette-browser.js.map +1 -0
- package/palette-browser.ts +54 -0
- package/panes-browser.js +40 -0
- package/panes-browser.js.map +1 -0
- package/panes-browser.ts +59 -0
- package/paper/base.css +28 -0
- package/paper/grain.css +18 -0
- package/paper.js +14 -0
- package/paper.js.map +1 -0
- package/paper.ts +16 -0
- package/parts.js +102 -0
- package/parts.js.map +1 -0
- package/parts.ts +117 -0
- package/pencil/Address.css +5 -0
- package/pencil/At.css +14 -0
- package/pencil/Body.css +10 -0
- package/pencil/Button.css +81 -0
- package/pencil/Card.css +175 -0
- package/pencil/Chart.css +31 -0
- package/pencil/Check.css +66 -0
- package/pencil/Chip.css +100 -0
- package/pencil/Chips.css +6 -0
- package/pencil/Copy.css +33 -0
- package/pencil/Drop.css +145 -0
- package/pencil/Empty.css +48 -0
- package/pencil/Field.css +42 -0
- package/pencil/Form.css +88 -0
- package/pencil/Loading.css +14 -0
- package/pencil/Menu.css +26 -0
- package/pencil/More.css +41 -0
- package/pencil/Report.css +11 -0
- package/pencil/Rows.css +48 -0
- package/pencil/SideNav.css +173 -0
- package/pencil/State.css +28 -0
- package/pencil/Surface.css +69 -0
- package/pencil/Tabs.css +137 -0
- package/pencil/base.css +19 -0
- package/pencil/paper.webp +0 -0
- package/pencil/pencil.svg +181 -0
- package/pencil.js +81 -0
- package/pencil.js.map +1 -0
- package/pencil.ts +34 -0
- package/placement.js +62 -0
- package/placement.js.map +1 -0
- package/placement.ts +93 -0
- package/relative.js +150 -0
- package/relative.js.map +1 -0
- package/relative.ts +186 -0
- package/resizes.js +23 -0
- package/resizes.js.map +1 -0
- package/resizes.ts +37 -0
- package/rosepine.css +59 -0
- package/rosepine.js +54 -0
- package/rosepine.js.map +1 -0
- package/rosepine.ts +52 -0
- package/routes.js +136 -0
- package/routes.js.map +1 -0
- package/routes.ts +190 -0
- package/sheet.js +7 -0
- package/sheet.js.map +1 -0
- package/sheet.ts +72 -0
- package/slide.js +37 -0
- package/slide.js.map +1 -0
- package/slide.ts +41 -0
- package/stock.js +38 -0
- package/stock.js.map +1 -0
- package/stock.ts +54 -0
- package/store.js +6 -0
- package/store.js.map +1 -0
- package/store.ts +14 -0
- package/theme.js +21 -0
- package/theme.js.map +1 -0
- package/theme.ts +159 -0
- package/ui.js +2 -0
- package/ui.js.map +1 -0
- package/ui.ts +2 -0
- package/video-cover.js +55 -0
- package/video-cover.js.map +1 -0
- package/video-cover.ts +72 -0
- package/viewport.js +56 -0
- package/viewport.js.map +1 -0
- package/viewport.ts +61 -0
- package/wear-build.ts +12 -0
- package/wear.js +40 -0
- package/wear.js.map +1 -0
- package/wear.ts +65 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Everforest, the first theme: everforest.css for a browser, and its dark
|
|
3
|
+
* palette for a terminal.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/ import { type Theme } from "./theme.js";
|
|
7
|
+
/** Everforest dark (medium). */ export declare let everforest: Theme;
|
|
8
|
+
//# sourceMappingURL=everforest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"everforest.d.ts","sources":["../everforest.ts"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,SAAiB,KAAK,KAAK,qBAAoB;AAY/C,8BAA8B,GAC9B,OAAO,YAAI,YAAY,MA+BtB"}
|
package/_dist/float.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What floats, in a browser: the popover primitive (D-58967), whose terminal
|
|
3
|
+
* form is the flow itself. A card on web's canvas lives in a scaled and
|
|
4
|
+
* scrolled plane, and a position:absolute popover is clipped by any overflow
|
|
5
|
+
* ancestor, so tooltips and pickers get cut off. Two escapes are both shut:
|
|
6
|
+
* CSS anchor() won't resolve inside a transformed ancestor (the plane), and
|
|
7
|
+
* position:fixed takes the transformed plane as its containing block, not the
|
|
8
|
+
* viewport.
|
|
9
|
+
*
|
|
10
|
+
* The one door out: getBoundingClientRect() already returns post-transform
|
|
11
|
+
* viewport coordinates, so a node portaled into document.body and fixed at
|
|
12
|
+
* that rect lands on the trigger from anywhere in the plane, and renders at
|
|
13
|
+
* 1:1 whatever the zoom, which is the feature (a picker at zoom 0.4 stays
|
|
14
|
+
* readable). We portal into an `Overlay` within the anchor's native layer
|
|
15
|
+
* or the body. What floats reads the same
|
|
16
|
+
* providers as what stayed.
|
|
17
|
+
*
|
|
18
|
+
* - `Float`: children floated beside an anchor.
|
|
19
|
+
* - `place`, `placeAt`, `usePlaceAt`: a fixed element put on a rect or a
|
|
20
|
+
* point, clamped to the viewport.
|
|
21
|
+
* - `tips`: the house tooltip, for every `[data-tip]`.
|
|
22
|
+
*
|
|
23
|
+
* @module
|
|
24
|
+
*/ import { type FunctionComponent, type ReactNode } from "@types/react";
|
|
25
|
+
import { type Clock } from "@yaks/fp";
|
|
26
|
+
import { type Align } from "./placement.js";
|
|
27
|
+
export { place, placeAt } from "./placement.js";
|
|
28
|
+
/** `placeAt` as a hook: placed after mount, and again whenever the box
|
|
29
|
+
* resizes, since a popover's height is not known until it renders. */ export declare let usePlaceAt: (ref: {
|
|
30
|
+
current: HTMLElement | null;
|
|
31
|
+
}, at: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
align?: 'right';
|
|
35
|
+
} | null) => void;
|
|
36
|
+
/** What a `Float` is drawn with: the element it springs from, as a ref,
|
|
37
|
+
* which side of it to float on first, and how it lines up across it. */ export type FloatProps = {
|
|
38
|
+
anchor: {
|
|
39
|
+
current: HTMLElement | null;
|
|
40
|
+
};
|
|
41
|
+
side?: 'above' | 'below';
|
|
42
|
+
align?: Align;
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* `<Float anchor={ref} side>{…}</Float>` positions a fixed `Overlay` on the
|
|
47
|
+
* anchor's live rect. The
|
|
48
|
+
* anchor is a ref, not an element: the child that owns it may mount in the
|
|
49
|
+
* same commit as this Float, so `.current` is read in the layout effect,
|
|
50
|
+
* after the DOM exists. The children keep their own focus, keys and state,
|
|
51
|
+
* as any children do.
|
|
52
|
+
*/ export declare let Float: FunctionComponent<FloatProps>;
|
|
53
|
+
/** One delegated kit tooltip per document, shown on hover or keyboard focus,
|
|
54
|
+
* above its anchor and outside clipping ancestors. */ export declare let tips: (doc?: Document, clock?: Clock) => void;
|
|
55
|
+
//# sourceMappingURL=float.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"float.d.ts","sources":["../float.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBC,GAEyC,SAGxC,KAAK,iBAAiB,EACtB,KAAK,SAAS,uBAGS;AAEzB,SAAS,KAAK,KAAK,wBAAqC;AAGxD,SAAS,KAAK,KAAK,yBAAwC;AAE3D,SAAqB,KAAK,EAAE,OAAO,yBAAwB;AAI3D;oEACoE,GACpE,OAAO,YAAI,aACT;EAAO,SAAS,cAAc,IAAI;GAClC;EAAM,GAAG,MAAM;EAAE,GAAG,MAAM;EAAE,QAAQ;IAAY,IAAI,KACnD,IAAI,CASG;AAEV;sEACsE,GACtE,YAAY;EACV;IAAU,SAAS,cAAc,IAAI;;EACrC,OAAO,UAAU;EACjB,QAAQ;EACR,WAAW;;AAGb;;;;;;;CAOC,GACD,OAAO,YAAI,OAAO,kBAAkB,YAkEnC;AAID;oDACoD,GACpD,OAAO,YAAI,OACT,MAAK,UACL,QAAO,UACN,IAAI,CAsEN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gouache, the default theme: the colours of yak.sh's painted yak,
|
|
3
|
+
* gouache.css for a browser, and its dark scheme (yak.sh's terminal
|
|
4
|
+
* windows) for a terminal.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/ import { type Theme } from "./theme.js";
|
|
8
|
+
/** Gouache: yak.sh's sheet in light, its terminal windows in dark. */ export declare let gouache: Theme;
|
|
9
|
+
//# sourceMappingURL=gouache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gouache.d.ts","sources":["../gouache.ts"],"names":[],"mappings":"AAAA;;;;;;CAMC,GAED,SAAiB,KAAK,KAAK,qBAAoB;AAW/C,oEAAoE,GACpE,OAAO,YAAI,SAAS,MA+BnB"}
|
package/_dist/guide.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** The guide uses the page's composition: installed kits, UX specimens and
|
|
2
|
+
* skin coverage, rather than an inventory private to the base package. */ import { type FunctionComponent, type ReactElement } from "@types/react";
|
|
3
|
+
import type { Props } from "./el.js";
|
|
4
|
+
import type { Composition, Piece } from "./theme.js";
|
|
5
|
+
export declare let title: string;
|
|
6
|
+
type Entry = Pick<Piece, 'description' | 'specimens'> & {
|
|
7
|
+
title?: string;
|
|
8
|
+
part?: string;
|
|
9
|
+
kit?: string;
|
|
10
|
+
};
|
|
11
|
+
type Entries = Record<string, Entry>;
|
|
12
|
+
/** The base retains its familiar groups; other kits carry their own names. */ export declare let sections: (c: Composition) => Record<string, Entries>;
|
|
13
|
+
export declare let stopsOf: (c: Composition) => string[];
|
|
14
|
+
export declare let stops: string[];
|
|
15
|
+
type Dressed = {
|
|
16
|
+
composition?: Composition;
|
|
17
|
+
};
|
|
18
|
+
/** Draw examples declared beside a component, in the kit or in an app. */ export declare let SpecimenGallery: ({}: {
|
|
19
|
+
entries: Record<string, Pick<Piece, 'description' | 'specimens'>>;
|
|
20
|
+
}) => ReactElement;
|
|
21
|
+
/** One entry, including whether the skin names this part. */ export declare let Specimens: ({}: Dressed & {
|
|
22
|
+
name: string;
|
|
23
|
+
}) => ReactElement;
|
|
24
|
+
/** The parts a host wears, under the groups the guide shows them in, as its
|
|
25
|
+
* composition draws them: a site's own style guide shows these beside what
|
|
26
|
+
* it says of itself, so its examples are the kit's and cannot drift. */ export declare let Worn: ({}: Dressed & {
|
|
27
|
+
parts: string[];
|
|
28
|
+
}) => ReactElement;
|
|
29
|
+
/** The same composition as the page being checked. */ export declare let Guide: FunctionComponent<Dressed>;
|
|
30
|
+
export declare let Page: ({}: Dressed & {
|
|
31
|
+
stop: string;
|
|
32
|
+
}) => ReactElement<{
|
|
33
|
+
composition: Composition;
|
|
34
|
+
}> | ReactElement;
|
|
35
|
+
export declare let Contents: ({}: Dressed & {
|
|
36
|
+
entry: (stop: string) => Props;
|
|
37
|
+
}) => ReactElement;
|
|
38
|
+
//# sourceMappingURL=guide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guide.d.ts","sources":["../guide.ts"],"names":[],"mappings":"AAAA;wEACwE,GAC9B,SAExC,KAAK,iBAAiB,EACtB,KAAK,YAAY,uBACM;AAEzB,cAAc,KAAK,kBAAiB;AAKpC,cAAc,WAAW,EAAE,KAAK,qBAAoB;AAEpD,OAAO,YAAI,cAAkB;KACxB,QAAQ,KAAK,OAAO,gBAAgB;EACvC,QAAQ,MAAM;EACd,OAAO,MAAM;EACb,MAAM,MAAM;;KAET,UAAU,OAAO,MAAM,EAAE;AAU9B,4EAA4E,GAC5E,OAAO,YAAI,WAAY,GAAG,gBAAc,OAAO,MAAM,EAAE,SAiBtD;AACD,OAAO,YAAI,UAAW,GAAG,gBAAc,MAAM,GAK5C;AACD,OAAO,YAAI,OAAO,MAAM,GAAyB;KAqB5C;EAAY,cAAc;;AAG/B,wEAAwE,GACxE,OAAO,YAAI,kBACT;EACE,SAAS,OAAO,MAAM,EAAE,KAAK,OAAO,gBAAgB;CACrD,KACA,aAOA;AA0BH,2DAA2D,GAC3D,OAAO,YAAI,YACT,IAAwC;EAAY,MAAM,MAAM;CAAE,KACjE,aAYF;AAsBD;;sEAEsE,GACtE,OAAO,YAAI,OACT,IAA+C;EAC7C,OAAO,MAAM;CACd,KACA,aAOA;AAEH,oDAAoD,GACpD,OAAO,YAAI,OAAO,kBAAkB,SAmBjC;AACH,OAAO,YAAI,OACT,IAAwC;EAAY,MAAM,MAAM;CAAE,KACjE;EAAe,aAAa;KAAiB,aAO7C;AACH,OAAO,YAAI,WACT,IAAyC;EACvC,QAAQ,MAAM,MAAM,KAAK;CAC1B,KACA,aAeA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** A value with each pair in it taken at its light (0) or dark (1) half. */ export declare let half: (value: string, side: 0 | 1) => string;
|
|
2
|
+
/** The sheet, each rule that pairs a value followed by its halves, once. */ export declare let halved: (css: string) => string;
|
|
3
|
+
//# sourceMappingURL=halved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"halved.d.ts","sources":["../halved.ts"],"names":[],"mappings":"AA6BA,0EAA0E,GAK1E,OAAO,YAAI,OAAQ,OAAO,MAAM,EAAE,MAAM,IAAI,MAAI,MAAM,CAUrD;AAqBD,0EAA0E,GAM1E,OAAO,YAAI,SAAU,KAAK,MAAM,KAAG,MAAM,CA8BxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type HistoryEntry = {
|
|
2
|
+
path: string;
|
|
3
|
+
state: unknown;
|
|
4
|
+
};
|
|
5
|
+
export interface HistoryPort {
|
|
6
|
+
read(): HistoryEntry;
|
|
7
|
+
write(entry: HistoryEntry, replace?: boolean): void;
|
|
8
|
+
listen(fn: (entry: HistoryEntry) => void): () => void;
|
|
9
|
+
back(): void;
|
|
10
|
+
forward(): void;
|
|
11
|
+
}
|
|
12
|
+
/** A door installs its history before mounting an app; return the prior door
|
|
13
|
+
* so a temporary host can put it back when it leaves. */ export declare let installHistory: (history?: HistoryPort) => HistoryPort | undefined;
|
|
14
|
+
export declare let historyPort: () => HistoryPort | undefined;
|
|
15
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.d.ts","sources":["../history.ts"],"names":[],"mappings":"AAEA,YAAY;EAAiB,MAAM,MAAM;EAAE,OAAO,OAAO;;AACzD,iBAAiB;EACf,QAAQ;EACR,MAAM,OAAO,cAAc,UAAU,OAAO,GAAG,IAAI;EACnD,OAAO,KAAK,OAAO,iBAAiB,IAAI,SAAS,IAAI;EACrD,QAAQ,IAAI;EACZ,WAAW,IAAI;;AAIjB;uDACuD,GACvD,OAAO,YAAI,iBACT,UAAU,gBACT,cAAc,SAAS,CAIzB;AACD,OAAO,YAAI,mBAAkB,cAAc,SAAS,CAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** A visible result that arrives after the event's own frame. Works across
|
|
2
|
+
* independently bundled page scripts through the document's event channel. */ export declare let RESULT: string;
|
|
3
|
+
export type Result = {
|
|
4
|
+
/** Milliseconds spent waiting for a response, exclusive of drawing it. */ drawn: (server?: number, ray?: string) => void;
|
|
5
|
+
/** The result will be drawn by the next document. */ leaving: () => void;
|
|
6
|
+
/** A newer action took its place, or there will be no visible result. */ cancel: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type ResultEvent = {
|
|
9
|
+
input?: Event;
|
|
10
|
+
take: (result: Result) => void;
|
|
11
|
+
};
|
|
12
|
+
/** Take responsibility for marking the result of an input, before awaiting
|
|
13
|
+
* anything. With no observer, the page carries on without a measurement. */ export declare let result: (doc: Document, input?: Event) => Result | undefined;
|
|
14
|
+
/** Handle a stalled loading state's retry in place. By default it reloads. */ export declare let retryLoading: (at: Element, retry: () => void, signal?: AbortSignal) => void;
|
|
15
|
+
//# sourceMappingURL=interaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction.d.ts","sources":["../interaction.ts"],"names":[],"mappings":"AAAA;4EAC4E,GAC5E,OAAO,YAAI,eAAiC;AAE5C,YAAY;EACV,wEAAwE,GACxE,QAAQ,SAAS,MAAM,EAAE,MAAM,MAAM,KAAK,IAAI;EAC9C,mDAAmD,GACnD,eAAe,IAAI;EACnB,uEAAuE,GACvE,cAAc,IAAI;;AAGpB,YAAY;EACV,QAAQ;EACR,OAAO,QAAQ,WAAW,IAAI;;AAGhC;0EAC0E,GAC1E,OAAO,YAAI,SAAU,KAAK,UAAU,QAAQ,UAAQ,SAAS,SAAS,CAUrE;AAED,4EAA4E,GAC5E,OAAO,YAAI,eACT,IAAI,SACJ,aAAa,IAAI,EACjB,SAAS,gBACR,IAAI,CAKS"}
|
package/_dist/kit.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kit: every part, by the name of the file its CSS is in, in the groups
|
|
3
|
+
* the style guide shows them in; every theme; and what a theme becomes for
|
|
4
|
+
* each place that paints. A new component is its module and its CSS file,
|
|
5
|
+
* and one line here, in its group.
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/ import type { Sheet } from "./sheet.js";
|
|
9
|
+
import { type Composition, type Contributions, type Kit, type Native, type Theme } from "./theme.js";
|
|
10
|
+
/** The base parts, with their component and CSS address carried by the part,
|
|
11
|
+
* so another package's kit need not live beside this module. */ export declare let groups: Record<string, Kit>;
|
|
12
|
+
/** Every base part, document defaults first. */ export declare let kit: Kit;
|
|
13
|
+
export declare let kits: Record<string, Kit>;
|
|
14
|
+
/** Gouache and paper, yak.sh's design, are the default: the first of each. */ export declare let themes: Record<string, Theme>;
|
|
15
|
+
export declare let skins: NonNullable<Contributions['skins']>;
|
|
16
|
+
export declare let composition: Composition;
|
|
17
|
+
export { gather } from "./contributions.js";
|
|
18
|
+
/** Unique names retain their spelling; shared names are qualified by kit. */ export declare let parts: (c: Composition) => Kit;
|
|
19
|
+
/** Theme colours, each kit's entries, and the skin's replacement entries. */ export declare let sheet: (c: Composition) => Sheet;
|
|
20
|
+
/** Each part's native entries, the skin's where it replaces one, over the
|
|
21
|
+
* theme's colours: a native host's look of every class (@yaks/native). */ export declare let native: (c: Composition) => Native;
|
|
22
|
+
/** Each sheet a browser gets, by what it dresses (see `addresses` for the
|
|
23
|
+
* order). A host that layers its own CSS reads them apart. */ export declare let sheets: (c: Composition) => Promise<[string, string][]>;
|
|
24
|
+
/** The address of every sheet a browser gets, in the order `stylesheet`
|
|
25
|
+
* reads them: the theme and what every theme derives, then each part's. */ export declare let addresses: (c: Composition) => string[];
|
|
26
|
+
/** Every sheet a browser gets, in order, as one. */ export declare let stylesheet: (c: Composition) => Promise<string>;
|
|
27
|
+
/** Dress native action controls in a plain HTML page. */ export declare let buttonStylesheet: () => Promise<string>;
|
|
28
|
+
/** The controls shown in every yaks app's style guide. */ export declare let appGuideParts: string[];
|
|
29
|
+
export declare let appGuide: Composition;
|
|
30
|
+
//# sourceMappingURL=kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kit.d.ts","sources":["../kit.ts"],"names":[],"mappings":"AAWA;;;;;;;CAOC,GAED,cAAc,KAAK,qBAAoB;AAsFvC,SAEE,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,KAAK,MAAM,EAIX,KAAK,KAAK,qBACO;AAwGnB;8DAC8D,GAC9D,OAAO,YAAI,QAAQ,OAAO,MAAM,EAAE,KAWjC;AAKD,8CAA8C,GAC9C,OAAO,YAAI,KAAK,IAAiD;AACjE,OAAO,YAAI,MAAM,OAAO,MAAM,EAAE,KAAoB;AAEpD,4EAA4E,GAC5E,OAAO,YAAI,QAAQ,OAAO,MAAM,EAAE,OAKjC;AACD,OAAO,YAAI,OAAO,YAAY,cAAc,UAI3C;AACD,OAAO,YAAI,aAAa,YAAmD;AAE3E,SAAS,MAAM,6BAA4B;AA0C3C,2EAA2E,GAC3E,OAAO,YAAI,QAAS,GAAG,gBAAc,IACgC;AAErE,2EAA2E,GAC3E,OAAO,YAAI,QAAS,GAAG,gBAAc,MAQlC;AAEH;wEACwE,GACxE,OAAO,YAAI,SAAU,GAAG,gBAAc,OAQnC;AAoCH;4DAC4D,GAC5D,OAAO,YAAI,SAAU,GAAG,gBAAc,SAAS,MAAM,EAAE,MAAM,KAM1D;AAOH;yEACyE,GACzE,OAAO,YAAI,YAAa,GAAG,gBAAc,MAAM,GAAsB;AAMrE,kDAAkD,GAClD,OAAO,YAAI,aAAoB,GAAG,gBAAc,QAAQ,MAAM,EACV;AAEpD,uDAAuD,GACvD,OAAO,YAAI,wBAAuB,QAAQ,MAAM,EAU5C;AAEJ,wDAAwD,GACxD,OAAO,YAAI,eAAe,MAAM,GAK/B;AAED,OAAO,YAAI,UAAU,YAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sources":["../ledger.ts"],"names":[],"mappings":"AAMA,SAAiB,KAAK,IAAI,qBAAoB;AAI9C,OAAO,YAAI,QAAQ,KAuBlB"}
|
package/_dist/linen.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Linen, yaks.app's theme: linen.css for a browser, and its dark scheme (the
|
|
3
|
+
* same room at night) for a terminal.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/ import { type Theme } from "./theme.js";
|
|
7
|
+
/** Linen: yaks.app's warm sheet in light, the same room at night in dark. */ export declare let linen: Theme;
|
|
8
|
+
//# sourceMappingURL=linen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linen.d.ts","sources":["../linen.ts"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,SAAiB,KAAK,KAAK,qBAAoB;AAY/C,2EAA2E,GAC3E,OAAO,YAAI,OAAO,MA+BjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menus-browser.d.ts","sources":["../menus-browser.ts"],"names":[],"mappings":"AAKA,qEAAqE,GACrE,OAAO,YAAI,YAAa,KAAK,aAAW,IAAI,CAoE3C"}
|
package/_dist/menus.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Connect `[data-menu-trigger="panel-id"]` buttons to hidden kit menus.
|
|
2
|
+
* Menus escape clipping, close after actions, outside clicks or Escape, and
|
|
3
|
+
* return keyboard focus to their trigger. Native buttons handle Enter/Space.
|
|
4
|
+
* A panel hears `menu-open`, its `detail` the trigger, as it opens, so one
|
|
5
|
+
* panel can serve many triggers. */ export declare let menus: (doc?: Document, signal?: AbortSignal) => void;
|
|
6
|
+
//# sourceMappingURL=menus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menus.d.ts","sources":["../menus.ts"],"names":[],"mappings":"AAMA;;;;kCAIkC,GAClC,OAAO,YAAI,QAAS,MAAK,UAAqB,SAAS,gBAAc,IAAI,CA8ExE"}
|
package/_dist/mod.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @yaks/ui: the UI components. Each is a named part with semantic variants
|
|
3
|
+
* (`Block_Element-modifier`), display only: no state, no graph, no outer
|
|
4
|
+
* layout, and the same look wherever it sits. Each is a Preact component, a
|
|
5
|
+
* CSS file and its terminal sheet entries, so it paints in a browser and in
|
|
6
|
+
* @yaks/tui alike.
|
|
7
|
+
*
|
|
8
|
+
* - `el`, `block`: the builders every part is made from (el.ts).
|
|
9
|
+
* - `Dot`, `Id`, `Stamp`, `Time`, `Tabs`, `Menu`, `Tip`, `Field`, `Select`, `At`, `Check`,
|
|
10
|
+
* `Form`, `Drop`, `Notice`, `More`, `Choices`, `Button`, `IconButton`,
|
|
11
|
+
* `Chip`, `Match`, `Value`, `Pairs`, `Tile`, `Rows`, `Section`, `Timeline`,
|
|
12
|
+
* `Turns`, `Passage`, `Body`, `Doc`, `Quote`, `Edit`, `Prop`, `Overlay`, `Layer`, `Dock`, `Peek`, `Table`, `Pager`, `Shell`,
|
|
13
|
+
* `AppShell`, `Panes`, `Head`, `Metrics`, `Spark`, `Notes`,
|
|
14
|
+
* `Chips`, `Address`, `Icon`, `Logo`, `Copy`, `Card`, `Report`, `Group`, `Empty`,
|
|
15
|
+
* `State`, `Loading`, `Sparkline`, `Columns`,
|
|
16
|
+
* `Composer`, `Index`, `SideNav`, `Contents`, `Catalog`, `Gallery`, `Cards`: the parts (`TabSet`
|
|
17
|
+
* is `Tabs` holding their panels); `groups`, the parts by
|
|
18
|
+
* what they are for, and `kit`, all of them (kit.ts).
|
|
19
|
+
* - `Float`, `place`, `placeAt`, `usePlaceAt`, `tips`: what floats above a
|
|
20
|
+
* browser's page, clear of every clipping container (float.ts), the
|
|
21
|
+
* browser's form of the popover primitive a UX component (@yaks/ux) is
|
|
22
|
+
* handed.
|
|
23
|
+
* - `relative`: a moment in words, what a `Stamp` says.
|
|
24
|
+
* - `themes`: every theme by name, `gouache` (the default), `everforest`,
|
|
25
|
+
* `rosepine` and `linen`, yaks.app's; `skins`, `paper` (the default),
|
|
26
|
+
* `ledger` and `pencil`, yaks.app's; `composition`, the kits in the
|
|
27
|
+
* defaults; `stylesheet(composition)` dresses a browser (`sheets`, the
|
|
28
|
+
* same sheet by what each piece dresses), `sheet(composition)` a terminal
|
|
29
|
+
* and `native(composition)` a native host (kit.ts).
|
|
30
|
+
* - `Guide`: every part in every variant, the guide `./routes` serves at `/ui`
|
|
31
|
+
* and @yaks/tui paints as `yak ui`; `Specimens`, one part's entry in it;
|
|
32
|
+
* `Worn`, the entries of the parts a host wears, for a guide of its own.
|
|
33
|
+
*
|
|
34
|
+
* @module
|
|
35
|
+
*/ export * from "./parts.js";
|
|
36
|
+
export { everforest } from "./everforest.js";
|
|
37
|
+
export { gouache } from "./gouache.js";
|
|
38
|
+
export { linen } from "./linen.js";
|
|
39
|
+
export { rosepine } from "./rosepine.js";
|
|
40
|
+
export { addresses, appGuide, appGuideParts, buttonStylesheet, composition, gather, groups, kit, kits, native, parts, sheet, sheets, skins, stylesheet, themes } from "./kit.js";
|
|
41
|
+
export { Guide, Specimens, Worn } from "./guide.js";
|
|
42
|
+
export type { Behaviours, Colors, Composition, Contributions, Kit, Native, Piece, Skin, Specimen, Style, Stylesheet, Theme } from "./theme.js";
|
|
43
|
+
export { beside } from "./theme.js";
|
|
44
|
+
export { ledger } from "./ledger.js";
|
|
45
|
+
export { paper } from "./paper.js";
|
|
46
|
+
export { pencil } from "./pencil.js";
|
|
47
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sources":["../mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCC,GAED,2BAA0B;AAC1B,SAAS,UAAU,0BAAyB;AAC5C,SAAS,OAAO,uBAAsB;AACtC,SAAS,KAAK,qBAAoB;AAClC,SAAS,QAAQ,wBAAuB;AACxC,SACE,SAAS,EACT,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,MAAM,EACN,GAAG,EACH,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,MAAM,mBACS;AACjB,SAAS,KAAK,EAAE,SAAS,EAAE,IAAI,qBAAoB;AACnD,cACE,UAAU,EACV,MAAM,EACN,WAAW,EACX,aAAa,EACb,GAAG,EACH,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,qBACY;AACnB,SAAS,MAAM,qBAAoB;AACnC,SAAS,MAAM,sBAAqB;AACpC,SAAS,KAAK,qBAAoB;AAClC,SAAS,MAAM,sBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-browser.d.ts","sources":["../modal-browser.ts"],"names":[],"mappings":"AAKA,8EAA8E,GAC9E,OAAO,YAAI,YACT,QAAQ,mBACR,OAAO,aACP,cAAa,IAAI,KAChB,YAoBF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// @ts-types="./lucide.d.ts"
|
|
2
|
+
import X from "../lucide.js";
|
|
3
|
+
export declare let closeIcon: any;
|
|
4
|
+
export declare let closeLabel: {
|
|
5
|
+
readonly 'aria-label': string;
|
|
6
|
+
readonly 'data-tip': string;
|
|
7
|
+
};
|
|
8
|
+
export declare let headStyle: {
|
|
9
|
+
readonly display: string;
|
|
10
|
+
readonly gridTemplateColumns: string;
|
|
11
|
+
readonly alignItems: string;
|
|
12
|
+
readonly gap: string;
|
|
13
|
+
};
|
|
14
|
+
export declare let titleStyle: {
|
|
15
|
+
readonly minWidth: string;
|
|
16
|
+
readonly margin: string;
|
|
17
|
+
readonly whiteSpace: string;
|
|
18
|
+
readonly overflowWrap: string;
|
|
19
|
+
};
|
|
20
|
+
export declare let closeStyle: {
|
|
21
|
+
readonly display: string;
|
|
22
|
+
readonly placeItems: string;
|
|
23
|
+
readonly boxSizing: string;
|
|
24
|
+
readonly width: string;
|
|
25
|
+
readonly height: string;
|
|
26
|
+
readonly minWidth: string;
|
|
27
|
+
readonly minHeight: string;
|
|
28
|
+
readonly padding: string;
|
|
29
|
+
};
|
|
30
|
+
/** An icon button's glyph: the kit's small words' height and a little more,
|
|
31
|
+
* whatever size the words around the button are drawn at. IconButton.css
|
|
32
|
+
* draws its glyph at this size too. */ export declare let glyphSize: string;
|
|
33
|
+
export declare let iconStyle: {
|
|
34
|
+
readonly width: any;
|
|
35
|
+
readonly height: any;
|
|
36
|
+
readonly fill: string;
|
|
37
|
+
readonly stroke: string;
|
|
38
|
+
readonly strokeWidth: string;
|
|
39
|
+
readonly strokeLinecap: string;
|
|
40
|
+
readonly strokeLinejoin: string;
|
|
41
|
+
};
|
|
42
|
+
/** Wrap a heading in the shared dialog header on a page drawn without React. */ export declare let modalHead: (title: HTMLElement, close: () => void) => HTMLElement;
|
|
43
|
+
//# sourceMappingURL=modal-head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-head.d.ts","sources":["../modal-head.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,sBAA+C;AAEtD,OAAO,YAAI,eAAa;AACxB,OAAO,YAAI;WAAe;WAAuB;EAAqB;AACtE,OAAO,YAAI;WACT;WACA;WACA;WACA;EACD;AACD,OAAO,YAAI;WACT;WACA;WACA;WACA;EACD;AACD,OAAO,YAAI;WACT;WACA;WACA;WACA;WACA;WACA;WACA;WACA;EACD;AACD;;qCAEqC,GACrC,OAAO,YAAI,kBAA2C;AACtD,OAAO,YAAI;WACT;WACA;WACA;WACA;WACA;WACA;WACA;EACD;AAED,8EAA8E,GAC9E,OAAO,YAAI,YACT,OAAO,aACP,aAAa,IAAI,KAChB,YAmCF"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { type Clock } from "@yaks/fp";
|
|
2
|
+
import type { HistoryPort } from "./history.js";
|
|
3
|
+
import { type Result } from "./interaction.js";
|
|
4
|
+
import { AHEAD, lookingAhead, WARM } from "./ahead.js";
|
|
5
|
+
export { AHEAD, lookingAhead, WARM };
|
|
6
|
+
/** What a swap did to the nodes on screen: those kept in place, those made
|
|
7
|
+
* from the new page, those taken away. */ export type Tally = {
|
|
8
|
+
kept: number;
|
|
9
|
+
made: number;
|
|
10
|
+
dropped: number;
|
|
11
|
+
};
|
|
12
|
+
/** The mark on the script that loads the navigator: a page wearing it
|
|
13
|
+
* takes part. */ export declare let TAKES: string;
|
|
14
|
+
/** The mark on a region a script draws across pages, which a swap leaves
|
|
15
|
+
* as it is where the next page has it too. */ export declare let KEPT: string;
|
|
16
|
+
/** Heard on the document before a swap, by the page it takes away. */ export declare let LEAVE: string;
|
|
17
|
+
/** Heard on the document after a swap, by the page it brought. */ export declare let PAGE: string;
|
|
18
|
+
/** Options for `morph`: `leave` names a node of the old page that stays where
|
|
19
|
+
* the new page has nothing for it (a stylesheet a script put in the head), and
|
|
20
|
+
* `keeps` an attribute of one that stays where the new page has no word on it
|
|
21
|
+
* (a fold the person opened, redrawn from rows). */ export type Morphing = {
|
|
22
|
+
leave?: (n: Node) => boolean;
|
|
23
|
+
keeps?: (e: Element, name: string) => boolean;
|
|
24
|
+
};
|
|
25
|
+
/** Make `was` the same as `next` in place, keeping every node of `was` that
|
|
26
|
+
* stands in `next` (by `keyOf`, else by its kind at its place), and answer
|
|
27
|
+
* what was kept, made and dropped. Nodes are made in `was`'s document. */ export declare let morph: (was: Node, next: Node, o?: Morphing, tally?: Tally) => Tally;
|
|
28
|
+
/** A script that runs: a new element in place of one the parser wrote,
|
|
29
|
+
* which a document never runs once it was parsed elsewhere. */ export declare let rerun: (s: Element) => void;
|
|
30
|
+
/** A page's scripts that hold it (`data-stays`): one standing means the
|
|
31
|
+
* page is left by loading the next. */ export declare let stays: (doc: Document) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Lay the page `next` over `doc`: its head and its body changed in place
|
|
34
|
+
* (`morph`), the scripts it names for the first time run, and every script
|
|
35
|
+
* written into it run again. `ran` holds the addresses of the scripts that
|
|
36
|
+
* have run in `doc`, and gains those run now; `run` runs one; `base` is the
|
|
37
|
+
* address relative ones are read against.
|
|
38
|
+
*/ export declare let swap: (doc: Document, next: Document, ran: Set<string>, run?: (s: Element) => void, base?: string) => Tally;
|
|
39
|
+
/** The scripts with a `src` a document has run, read against `base`. */ export declare let sources: (doc: Document, base?: string) => Set<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Bind `e` as `name` once, across every copy of a script its document runs.
|
|
42
|
+
* A script's file is named by its content, so a swap to a page a newer
|
|
43
|
+
* release drew runs that release's copy of it beside the one already
|
|
44
|
+
* running, over the elements the swap left in place: two bindings of one
|
|
45
|
+
* element answer each event twice and draw over each other. The newer copy
|
|
46
|
+
* takes the element over where the older answered how to let go (`bind`'s
|
|
47
|
+
* answer), and otherwise leaves it to the older. Answers whether `bind` ran.
|
|
48
|
+
*/ export declare let hold: (e: Element, name: string, bind: () => (() => void) | void) => boolean;
|
|
49
|
+
/** Run `bind` over the document now and over every page a swap brings,
|
|
50
|
+
* each element once, across every copy of the script (`hold`): `of`
|
|
51
|
+
* selects them. For a script with a `src`, which runs once. */ export declare let arrived: <E extends Element>(of: string, bind: (e: E) => void, doc?: Document) => void;
|
|
52
|
+
/** A signal aborted when the page leaves (`yak-leave`), for a script written
|
|
53
|
+
* into a page to add its listeners with. */ export declare let leaving: (doc?: Document) => AbortSignal;
|
|
54
|
+
/** What `start` needs of the window around it: the idle callback where the
|
|
55
|
+
* browser has one, else a timer stands for it. */ export type Browsing = Pick<Window, 'document' | 'location' | 'addEventListener' | 'fetch' | 'scrollTo'> & Partial<Pick<Window, 'requestIdleCallback'>> & {
|
|
56
|
+
DOMParser: typeof DOMParser;
|
|
57
|
+
/** Whether a link belongs to this navigator. */ follows?: (link: HTMLAnchorElement) => boolean;
|
|
58
|
+
/** Prepare the files of a held document while its link is on screen. */ prepare?: (page: Document, at: URL) => void;
|
|
59
|
+
/** Open a READY page as a document when the current page has its own
|
|
60
|
+
* scripts and styles. The address has already moved to the answer. */ enter?: (html: string, opening: Entering) => void;
|
|
61
|
+
};
|
|
62
|
+
/** What a ready document knows about the press that opens it. */ export type Entering = {
|
|
63
|
+
url: string;
|
|
64
|
+
from: 'held' | 'fetch';
|
|
65
|
+
began: number;
|
|
66
|
+
wait: number;
|
|
67
|
+
drawn?: () => void;
|
|
68
|
+
};
|
|
69
|
+
/** Where a click's time went, in milliseconds: waiting for the page whole
|
|
70
|
+
* and parsed (nothing, for one already held), and laying it over the page. */ export type Phases = {
|
|
71
|
+
wait: number;
|
|
72
|
+
swap: number;
|
|
73
|
+
};
|
|
74
|
+
/** Where the page a swap drew came from: fetched on the click (`fetch`),
|
|
75
|
+
* held already, fetched ahead or opened before (`held`), the answer
|
|
76
|
+
* asked for after drawing a held one or a frame, laid over it (`fresh`),
|
|
77
|
+
* its frame, until it comes (`framed`, `FRAME`), or drawn in place by the
|
|
78
|
+
* page on screen from what the tab holds (`drawn`, `DRAW`). */ export type From = 'fetch' | 'held' | 'fresh' | 'framed' | 'drawn';
|
|
79
|
+
/** Heard on the document before a press or Back fetches anything, its detail
|
|
80
|
+
* a `Drawing`: a page that can show `to` itself, from what the tab holds,
|
|
81
|
+
* sets `draw` to do so. The navigator then moves the address and the focus
|
|
82
|
+
* as it would for a page it fetched, and fetches nothing. The page stays the
|
|
83
|
+
* page: nothing leaves, no script runs again, and it keeps where it was
|
|
84
|
+
* scrolled; the document hears `SHOWN` in place of `PAGE`. */ export declare let DRAW: string;
|
|
85
|
+
/** Heard on the document once a press or Back was drawn in place (`DRAW`),
|
|
86
|
+
* its detail a `Swapped`. */ export declare let SHOWN: string;
|
|
87
|
+
/** The detail of `DRAW`: where the press leads, and how the page on screen
|
|
88
|
+
* draws it, where it can. `draw` changes the document in place, at once.
|
|
89
|
+
* A view can put the content's focus after paint when it keeps its layout. */ export type Drawing = {
|
|
90
|
+
to: URL;
|
|
91
|
+
/** The destination's fetched frame, when it supplies data for an in-place draw. */ from?: Document;
|
|
92
|
+
draw?: () => void;
|
|
93
|
+
focusAfterPaint?: boolean;
|
|
94
|
+
};
|
|
95
|
+
/** What a swap said once done: when the click was (`began`, on the clock
|
|
96
|
+
* `start` was given), how long it took to the new page, in milliseconds,
|
|
97
|
+
* where that time went, where the page came from, and what changed. The
|
|
98
|
+
* detail of `yak-page`. */ export type Swapped = {
|
|
99
|
+
ms: number;
|
|
100
|
+
began: number;
|
|
101
|
+
phases: Phases;
|
|
102
|
+
from: From;
|
|
103
|
+
tally: Tally;
|
|
104
|
+
url: string;
|
|
105
|
+
};
|
|
106
|
+
/** A client that can put an HTML answer at its Content-Location. */ export declare let NAVIGATE: string;
|
|
107
|
+
/** How long a page held stays good enough to draw without asking for it
|
|
108
|
+
* again, in milliseconds, and how many pages are held. */ export declare let FRESH: number;
|
|
109
|
+
export declare let HELD: number;
|
|
110
|
+
/** How long a pointer stays over a link before its page is asked for. */ export declare let INTENT: number;
|
|
111
|
+
/** The mark on a link whose page is kept ready: asked for ahead (`AHEAD`) as
|
|
112
|
+
* soon as the page holding the link is drawn and the browser is idle, and
|
|
113
|
+
* held, so a press on it draws at once and asks for it again after. For a
|
|
114
|
+
* page its server is slow to answer, where a finger's touch gives too little
|
|
115
|
+
* head start. */ export declare let READY: string;
|
|
116
|
+
/** A menu link whose page is held while the browser is idle, after READY
|
|
117
|
+
* links. */ export declare let HOLD: string;
|
|
118
|
+
/** The header on an answer to a look ahead (`AHEAD`) that left out what
|
|
119
|
+
* opening the page does (marking what it shows read): the page is asked for
|
|
120
|
+
* again once it is opened. */ export declare let AGAIN: string;
|
|
121
|
+
type Visit = {
|
|
122
|
+
to: URL;
|
|
123
|
+
allowed: () => boolean;
|
|
124
|
+
view: () => Element | null;
|
|
125
|
+
accepts?: (page: Document) => boolean;
|
|
126
|
+
result?: Promise<VisitResult>;
|
|
127
|
+
};
|
|
128
|
+
export type VisitResult = 'opened' | 'deferred' | 'superseded' | 'navigator unavailable' | 'different origin' | 'no page response' | 'page cannot be opened in place' | 'destination absent from page' | 'page could not be drawn' | `HTTP ${number}`;
|
|
129
|
+
/** Open a proposed page with the document's navigator. Check that the person
|
|
130
|
+
* is still ready for it when the destination is drawn. */ export declare let visit: (doc: Document, to: URL, allowed: Visit['allowed'], view: Visit['view'], accepts?: Visit['accepts']) => Promise<VisitResult>;
|
|
131
|
+
/** Heard on the document as a click sets out for a page it does not hold,
|
|
132
|
+
* its detail when (`{ began }`): the frame drawn then is the click's first. */ export declare let GOING: string;
|
|
133
|
+
/** The mark on a link saying what the page it opens is called, and on a
|
|
134
|
+
* page the title that says what the page is: a click waiting for its page
|
|
135
|
+
* writes the one into the other at once (`going`). */ export declare let NAMES: string;
|
|
136
|
+
export declare let TITLE: string;
|
|
137
|
+
/** The mark on a template holding the frame the pages under a path share,
|
|
138
|
+
* its value the path (`/admin`), or several space-separated paths. The
|
|
139
|
+
* template holds what those pages show before their own content, such as a
|
|
140
|
+
* heading over an empty body. A press on a link
|
|
141
|
+
* to one of them whose page has not come yet, held or not, puts the frame
|
|
142
|
+
* in place of what stands beside the template, in the press's own frame,
|
|
143
|
+
* its titles (`TITLE`) saying what the link names its page (`NAMES`), and
|
|
144
|
+
* lays the page over it when it comes. */ export declare let FRAME: string;
|
|
145
|
+
/**
|
|
146
|
+
* Follow the links of `win`'s pages in place: a click on a link to another
|
|
147
|
+
* page of the same origin, and Back and Forward between such pages, `swap`
|
|
148
|
+
* it in. The new page's content (`content`) starts at its top and takes the
|
|
149
|
+
* focus, as a new document would. Answers `go`, which visits an address the
|
|
150
|
+
* same way.
|
|
151
|
+
*
|
|
152
|
+
* A page is drawn in the frame of the click when it is held: opened before
|
|
153
|
+
* (the `HELD` opened last), or fetched ahead, one at a time, as a pointer
|
|
154
|
+
* rests on its link, presses it, a finger touches it or the keyboard comes
|
|
155
|
+
* to it (`AHEAD`), and let go of if the pointer moves on before it arrives.
|
|
156
|
+
* A held page older than `FRESH`, or one whose answer asked (`AGAIN`), is
|
|
157
|
+
* asked for again once drawn, and laid over what was drawn where it
|
|
158
|
+
* changed. A click on a page not held draws what it can of that page at
|
|
159
|
+
* once, from what the page holds (`going`), and its frame where the page
|
|
160
|
+
* holds one (`FRAME`), and the rest when it comes.
|
|
161
|
+
* Links marked `READY` or `HOLD` are asked for as the browser idles.
|
|
162
|
+
* A page with its own document scripts can supply `enter` to open only its
|
|
163
|
+
* READY links this way, keeping that document's ordinary links with the
|
|
164
|
+
* browser. Each usable answer stands until a refresh replaces it or the
|
|
165
|
+
* server no longer serves the page.
|
|
166
|
+
* A page that draws the address itself (`DRAW`) is drawn in place, with no
|
|
167
|
+
* fetch. Sending a form makes every held page old: still drawn at once, and
|
|
168
|
+
* asked for again.
|
|
169
|
+
*/ export declare let start: (win: Browsing, history: HistoryPort, now?: Clock['now'], after?: Clock['after']) => (to: URL, pop?: boolean, pressed?: Result, began?: number) => Promise<void>;
|
|
170
|
+
//# sourceMappingURL=navigate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigate.d.ts","sources":["../navigate.ts"],"names":[],"mappings":"AAsCA,SAAS,KAAK,KAAK,wBAAqC;AAExD,cAAc,WAAW,uBAAsB;AAC/C,SAAS,KAAK,MAAM,2BAAkC;AACtD,SAAS,KAAK,EAAE,YAAY,EAAE,IAAI,qBAA4B;AAE9D,SAAS,KAAK,EAAE,YAAY,EAAE,IAAI,GAAE;AAEpC;wCACwC,GACxC,YAAY;EAAU,MAAM,MAAM;EAAE,MAAM,MAAM;EAAE,SAAS,MAAM;;AAEjE;eACe,GACf,OAAO,YAAI,cAAuB;AAClC;4CAC4C,GAC5C,OAAO,YAAI,aAAkB;AAC7B,oEAAoE,GACpE,OAAO,YAAI,cAAmB;AAC9B,gEAAgE,GAChE,OAAO,YAAI,aAAiB;AAuE5B;;;kDAGkD,GAClD,YAAY;EACV,SAAS,GAAG,SAAS,OAAO;EAC5B,SAAS,GAAG,SAAS,MAAM,MAAM,KAAK,OAAO;;AAG/C;;wEAEwE,GAQxE,OAAO,YAAI,QACT,KAAK,MACL,MAAM,MACN,IAAG,UACH,QAAO,UACN,MA2BF;AA8ED;6DAC6D,GAC7D,OAAO,YAAI,QAAS,GAAG,YAAU,IAAI,CAOpC;AAED;qCACqC,GACrC,OAAO,YAAI,QAAS,KAAK,aAAW,OAAO,CACA;AAE3C;;;;;;CAMC,GACD,OAAO,YAAI,OACT,KAAK,UACL,MAAM,UACN,KAAK,IAAI,MAAM,GACf,OAAM,GAAG,YAAY,IAAI,EACzB,OAAM,MAAM,KACX,MAYF;AAED,sEAAsE,GACtE,OAAO,YAAI,UACT,KAAK,UACL,OAAM,MAAM,KACX,IAAI,MAAM,EAGV;AAOH;;;;;;;;CAQC,GACD,OAAO,YAAI,OACT,GAAG,SACH,MAAM,MAAM,EACZ,mBAAmB,IAAI,IAAI,IAAI,KAC9B,OAAO,CAST;AAED;;6DAE6D,GAC7D,OAAO,YAAI,UAAW,UAAU,SAC9B,IAAI,MAAM,EACV,OAAO,GAAG,MAAM,IAAI,EACpB,MAAK,aACJ,IAAI,CAMN;AAED;0CAC0C,GAC1C,OAAO,YAAI,UAAW,MAAK,aAAsB,YAIhD;AAED;gDACgD,GAChD,YAAY,WACR,KACA,QACA,aAAa,aAAa,qBAAqB,UAAU,cAEzD,QAAQ,KAAK,QAAQ;EAErB,kBAAkB;EAClB,8CAA8C,GAC9C,WAAW,MAAM,sBAAsB,OAAO;EAC9C,sEAAsE,GACtE,WAAW,MAAM,UAAU,IAAI,QAAQ,IAAI;EAC3C;wEACoE,GACpE,SAAS,MAAM,MAAM,EAAE,SAAS,aAAa,IAAI;;AAGrD,+DAA+D,GAC/D,YAAY;EACV,KAAK,MAAM;EACX,MAAM,SAAS;EACf,OAAO,MAAM;EACb,MAAM,MAAM;EACZ,cAAc,IAAI;;AAGpB;4EAC4E,GAC5E,YAAY;EAAW,MAAM,MAAM;EAAE,MAAM,MAAM;;AAEjD;;;;6DAI6D,GAC7D,YAAY,OAAO,UAAU,SAAS,UAAU,WAAW;AAE3D;;;;;4DAK4D,GAC5D,OAAO,YAAI,aAAiB;AAE5B;2BAC2B,GAC3B,OAAO,YAAI,cAAmB;AAE9B;;4EAE4E,GAC5E,YAAY;EACV,IAAI;EACJ,iFAAiF,GACjF,OAAO;EACP,aAAa,IAAI;EACjB,kBAAkB,OAAO;;AAG3B;;;yBAGyB,GACzB,YAAY;EACV,IAAI,MAAM;EACV,OAAO,MAAM;EACb,QAAQ;EACR,MAAM;EACN,OAAO;EACP,KAAK,MAAM;;AAGb,kEAAkE,GAClE,OAAO,YAAI,iBAA2B;AAEtC;wDACwD,GACxD,OAAO,YAAI,cAAc;AACzB,OAAO,YAAI,aAAS;AACpB,uEAAuE,GACvE,OAAO,YAAI,eAAW;AACtB;;;;eAIe,GACf,OAAO,YAAI,cAAoB;AAC/B;UACU,GACV,OAAO,YAAI,aAAkB;AAG7B;;4BAE4B,GAC5B,OAAO,YAAI,cAAqB;KAC3B;EACH,IAAI;EACJ,eAAe,OAAO;EACtB,YAAY,UAAU,IAAI;EAC1B,WAAW,MAAM,aAAa,OAAO;EACrC,SAAS,QAAQ;;AAEnB,YAAY,cACR,WACA,aACA,eACA,0BACA,qBACA,qBACA,mCACA,iCACA,6BACC,KAAK,EAAE,MAAM;AAGlB;wDACwD,GACxD,OAAO,YAAI,QACT,KAAK,UACL,IAAI,KACJ,SAAS,MAAM,YACf,MAAM,MAAM,SACZ,UAAU,MAAM,eACf,QAAQ,aAIV;AAED;6EAC6E,GAC7E,OAAO,YAAI,cAAmB;AAwF9B;;oDAEoD,GACpD,OAAO,YAAI,cAAoB;AAC/B,OAAO,YAAI,cAAoB;AAyB/B;;;;;;;wCAOwC,GACxC,OAAO,YAAI,cAAoB;AAiC/B;;;;;;;;;;;;;;;;;;;;;;;;CAwBC,GACD,OAAO,YAAI,QACT,KAAK,UACL,SAAS,aACT,MAAK,MAAM,QACX,QAAO,MAAM,cAEb,IAAI,KACJ,MAAM,OAAO,EACb,UAAU,QACV,QAAQ,MAAM,KACX,QAAQ,IAAI,EAqehB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Escape dismissal shared by browser and terminal overlays. @module */ type Close = () => boolean | void;
|
|
2
|
+
/** An overlay's focus return and visibility while it is on the stack. */ export type OverlayOptions = {
|
|
3
|
+
opener?: HTMLElement | null;
|
|
4
|
+
shown?: () => boolean;
|
|
5
|
+
blur?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** The last overlay opened and still shown. A caller can restrict its scope. */ export declare let frontOverlay: (doc: Document, within?: (node: HTMLElement) => boolean) => HTMLElement | undefined;
|
|
8
|
+
/** Consume Escape once, including the browser's own close request. Returns
|
|
9
|
+
* the overlay dismissed by this event for hosts that also keep a cursor. */ export declare let escapeOverlay: (doc: Document, e: KeyboardEvent) => Element | undefined;
|
|
10
|
+
/** Close the front overlay, also used by the browser's vim key bindings. */ export declare let dismissOverlay: (doc: Document) => Element | undefined;
|
|
11
|
+
/** Request a dialog close through its cancel event. */ export declare let requestCancel: (node: HTMLElement) => boolean;
|
|
12
|
+
/** Observe native dialog, popover and menu openings. Call once when binding a
|
|
13
|
+
* server-rendered page, or with a kit part that has just mounted. */ export declare let overlays: (doc?: Document, node?: HTMLElement) => void;
|
|
14
|
+
/** Put an open overlay on its document's stack. Call the returned function
|
|
15
|
+
* when it closes or unmounts. */ export declare let openOverlay: (node: HTMLElement, close: Close, _dts_1: never) => () => void;
|
|
16
|
+
//# sourceMappingURL=overlays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlays.d.ts","sources":["../overlays.ts"],"names":[],"mappings":"AAAA,sEAAsE,QAEjE,cAAc,OAAO,GAAG,IAAI;AAEjC,uEAAuE,GACvE,YAAY;EACV,SAAS,cAAc,IAAI;EAC3B,cAAc,OAAO;EACrB,OAAO,OAAO;;AAwBhB,8EAA8E,GAC9E,OAAO,YAAI,eACT,KAAK,UACL,UAAS,MAAM,gBAAgB,OAAO,KACrC,cAAc,SAAS,CAEhB;AA2BV;0EAC0E,GAC1E,OAAO,YAAI,gBACT,KAAK,UACL,GAAG,kBACF,UAAU,SAAS,CAiBrB;AAQD,0EAA0E,GAC1E,OAAO,YAAI,iBAAkB,KAAK,aAAW,UAAU,SAAS,CAG/D;AAmBD,qDAAqD,GACrD,OAAO,YAAI,gBAAiB,MAAM,gBAAc,OAAO,CAOtD;AA+CD;mEACmE,GACnE,OAAO,YAAI,WAAY,MAAK,UAAqB,OAAO,gBAAc,IAAI,CAgDzE;AAED;+BAC+B,GAC/B,OAAO,YAAI,cACT,MAAM,aACN,OAAO,OACP,wBAKO,IAAI,CAqBZ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Open a palette below its trigger, with native light dismissal and a
|
|
2
|
+
* single Escape even while the search field has focus. */ export declare let openPalette: (panel: HTMLElement, anchor: HTMLElement, dismissed: () => void) => () => void;
|
|
3
|
+
//# sourceMappingURL=palette-browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette-browser.d.ts","sources":["../palette-browser.ts"],"names":[],"mappings":"AAMA;wDACwD,GACxD,OAAO,YAAI,cACT,OAAO,aACP,QAAQ,aACR,iBAAiB,IAAI,WACd,IAAI,CAyCZ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
type Window = Pick<globalThis.Window, 'location' | 'performance' | 'addEventListener'>;
|
|
2
|
+
/** Replace the fragment in place and dismiss a sheet through the same
|
|
3
|
+
* stack as dialogs and menus. Back never opens a sheet. */ export declare let panes: (doc: Document, win: Window) => void;
|
|
4
|
+
//# sourceMappingURL=panes-browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panes-browser.d.ts","sources":["../panes-browser.ts"],"names":[],"mappings":"KAGK,SAAS,KACZ,WAAW,QACX,aAAa,gBAAgB;AAG/B;yDACyD,GACzD,OAAO,YAAI,QAAS,KAAK,UAAU,KAAK,WAAS,IAAI,CAgDpD"}
|
package/_dist/paper.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Paper, the default skin: yak.sh's sheet besides its colours, its grain
|
|
2
|
+
* (paper/grain.css, which pencil shares) and its links and headings laid
|
|
3
|
+
* over the kit's document defaults. Every part keeps the kit's rendering;
|
|
4
|
+
* the skin only adds to the document's. */ import { type Skin } from "./theme.js";
|
|
5
|
+
export declare let paper: Skin;
|
|
6
|
+
//# sourceMappingURL=paper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paper.d.ts","sources":["../paper.ts"],"names":[],"mappings":"AAAA;;;yCAGyC,GACzC,SAAiB,KAAK,IAAI,qBAAoB;AAI9C,OAAO,YAAI,OAAO,KAOjB"}
|