@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
package/_dist/parts.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export { Combobox, comboboxAttrs, type Suggestion } from "./Combobox.js";
|
|
2
|
+
/**
|
|
3
|
+
* @yaks/ui/parts: every part, without the looks. A host that draws parts and
|
|
4
|
+
* serves its look from elsewhere, as a Worker rendering pages to HTML does,
|
|
5
|
+
* and every package of components built on the parts (@yaks/ux), import from
|
|
6
|
+
* here. The package's root is these and the looks. `beside` names a kit's
|
|
7
|
+
* stylesheets lazily (theme.ts `Stylesheet`).
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/ export { block, el, type Part, type Props, Surround } from "./el.js";
|
|
11
|
+
export { beside, type Stylesheet } from "./theme.js";
|
|
12
|
+
export { Surface, tagged } from "./Surface.js";
|
|
13
|
+
export { Dot, shapes, tones } from "./Dot.js";
|
|
14
|
+
export { Id } from "./Id.js";
|
|
15
|
+
export { Menu } from "./Menu.js";
|
|
16
|
+
export { Stamp } from "./Stamp.js";
|
|
17
|
+
export { State } from "./State.js";
|
|
18
|
+
export { day, pretty, relative } from "./relative.js";
|
|
19
|
+
export { half, halved } from "./halved.js";
|
|
20
|
+
export { Tabs, TabSet } from "./Tabs.js";
|
|
21
|
+
export { Tip } from "./Tip.js";
|
|
22
|
+
export { drawField, drawNativeInput, Field, type FieldProps } from "./Field.js";
|
|
23
|
+
export { Select } from "./Select.js";
|
|
24
|
+
export { At } from "./At.js";
|
|
25
|
+
export { Check } from "./Check.js";
|
|
26
|
+
export { Pills } from "./Pills.js";
|
|
27
|
+
export { Drop } from "./Drop.js";
|
|
28
|
+
export { drawFormParts, Form } from "./Form.js";
|
|
29
|
+
export { More } from "./More.js";
|
|
30
|
+
export { Notice } from "./Notice.js";
|
|
31
|
+
export { Toast } from "./Toast.js";
|
|
32
|
+
export { ErrorNotice, showError } from "./ErrorNotice.js";
|
|
33
|
+
export { Choices } from "./Choices.js";
|
|
34
|
+
export { Body, bodyClass } from "./Body.js";
|
|
35
|
+
export { Doc } from "./Doc.js";
|
|
36
|
+
export { Button, drawButton } from "./Button.js";
|
|
37
|
+
export { IconButton } from "./IconButton.js";
|
|
38
|
+
export { AppShell } from "./AppShell.js";
|
|
39
|
+
export { Card } from "./Card.js";
|
|
40
|
+
export { Plan, Plans } from "./Plan.js";
|
|
41
|
+
export { Modal } from "./Modal.js";
|
|
42
|
+
export { Catalog } from "./Catalog.js";
|
|
43
|
+
export { Chip, hues } from "./Chip.js";
|
|
44
|
+
export { Chips } from "./Chips.js";
|
|
45
|
+
export { Cards, Cards as Grid } from "./Cards.js";
|
|
46
|
+
export { Copy } from "./Copy.js";
|
|
47
|
+
export { Address } from "./Address.js";
|
|
48
|
+
export { discord, Icon, type IconProps } from "./Icon.js";
|
|
49
|
+
export { Logo, type LogoProps } from "./Logo.js";
|
|
50
|
+
export { Edit } from "./Edit.js";
|
|
51
|
+
export { Empty } from "./Empty.js";
|
|
52
|
+
export { Gallery } from "./Gallery.js";
|
|
53
|
+
export { Group } from "./Group.js";
|
|
54
|
+
export { Head } from "./Head.js";
|
|
55
|
+
export { Index } from "./Index.js";
|
|
56
|
+
export { marked, Match } from "./Match.js";
|
|
57
|
+
export { Notes } from "./Notes.js";
|
|
58
|
+
export { Layer, layer } from "./Layer.js";
|
|
59
|
+
export { Dock } from "./Dock.js";
|
|
60
|
+
export { Overlay } from "./Overlay.js";
|
|
61
|
+
export { Float, type FloatProps, place, placeAt, tips, usePlaceAt } from "./float.js";
|
|
62
|
+
export { Pager } from "./Pager.js";
|
|
63
|
+
export { Panes } from "./Panes.js";
|
|
64
|
+
export { Prop } from "./Prop.js";
|
|
65
|
+
export { Quote } from "./Quote.js";
|
|
66
|
+
export { Report } from "./Report.js";
|
|
67
|
+
export { type Col, Table, type TableProps } from "./Table.js";
|
|
68
|
+
export { Pairs } from "./Pairs.js";
|
|
69
|
+
export { Passage } from "./Passage.js";
|
|
70
|
+
export { Rows } from "./Rows.js";
|
|
71
|
+
export { Section } from "./Section.js";
|
|
72
|
+
export { Stack } from "./Stack.js";
|
|
73
|
+
export { Shell } from "./Shell.js";
|
|
74
|
+
export { SideNav } from "./SideNav.js";
|
|
75
|
+
export { Contents, contents, type Entry } from "./Contents.js";
|
|
76
|
+
export { Tile } from "./Tile.js";
|
|
77
|
+
export { Timeline } from "./Timeline.js";
|
|
78
|
+
export { Turns } from "./Turns.js";
|
|
79
|
+
export { Value } from "./Value.js";
|
|
80
|
+
export { Meter } from "./Meter.js";
|
|
81
|
+
export { Spark } from "./Spark.js";
|
|
82
|
+
export { bars } from "./chart-marks.js";
|
|
83
|
+
export { Columns, Sparkline } from "./Chart.js";
|
|
84
|
+
export { Metrics } from "./Metrics.js";
|
|
85
|
+
export { installViewport, Viewport, type ViewportProps } from "./viewport.js";
|
|
86
|
+
export { Loading } from "./Loading.js";
|
|
87
|
+
export { Palette } from "./Palette.js";
|
|
88
|
+
export { Peek } from "./Peek.js";
|
|
89
|
+
export { Save } from "./Save.js";
|
|
90
|
+
export { Time, time, type TimeProps } from "./Time.js";
|
|
91
|
+
export { menus } from "./menus.js";
|
|
92
|
+
export { Identity } from "./Identity.js";
|
|
93
|
+
export { Toolbar } from "./Toolbar.js";
|
|
94
|
+
export { ChannelBadge, type MessageApp, MessageOrigin, StepLabel, Transcript, transcriptLook } from "./Transcript.js";
|
|
95
|
+
export { Attachments, wordsPage } from "./Attachments.js";
|
|
96
|
+
export { Annotated } from "./Annotated.js";
|
|
97
|
+
export { Preview } from "./Preview.js";
|
|
98
|
+
export { Composer } from "./Composer.js";
|
|
99
|
+
export { Popover } from "./Popover.js";
|
|
100
|
+
export { Skip } from "./Skip.js";
|
|
101
|
+
export { Badge } from "./Badge.js";
|
|
102
|
+
//# sourceMappingURL=parts.d.ts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,QAAQ,wBAAuB;AACxC,SAAS,KAAK,qBAAoB;AAClC,SAAS,KAAK,qBAAoB;AAClC,SAAS,KAAK,qBAAoB;AAClC,SAAS,KAAK,qBAAoB;AAClC,SAAS,IAAI,2BAA0B;AACvC,SAAS,OAAO,EAAE,SAAS,qBAAoB;AAC/C,SAAS,OAAO,uBAAsB;AACtC,SAAS,eAAe,EAAE,QAAQ,EAAE,KAAK,aAAa,wBAAuB;AAC7E,SAAS,OAAO,uBAAsB;AACtC,SAAS,OAAO,uBAAsB;AACtC,SAAS,IAAI,oBAAmB;AAChC,SAAS,IAAI,oBAAmB;AAChC,SAAS,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,oBAAmB;AACtD,SAAS,KAAK,qBAAoB;AAClC,SAAS,QAAQ,wBAAuB;AACxC,SAAS,OAAO,uBAAsB;AACtC,SACE,YAAY,EACZ,KAAK,UAAU,EACf,aAAa,EACb,SAAS,EACT,UAAU,EACV,cAAc,0BACQ;AACxB,SAAS,WAAW,EAAE,SAAS,2BAA0B;AACzD,SAAS,SAAS,yBAAwB;AAC1C,SAAS,OAAO,uBAAsB;AACtC,SAAS,QAAQ,wBAAuB;AACxC,SAAS,OAAO,uBAAsB;AACtC,SAAS,IAAI,oBAAmB;AAChC,SAAS,KAAK,qBAAoB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Pencil, yaks.app's skin. Its Surface entry sets the shared paint: drawn
|
|
2
|
+
* edges, hatched elevation and inset wells. Those tokens reach every kit,
|
|
3
|
+
* including parts this skin does not name. Entries below supply layout and
|
|
4
|
+
* component-specific details. */ import { type Skin } from "./theme.js";
|
|
5
|
+
export declare let pencil: Skin;
|
|
6
|
+
//# sourceMappingURL=pencil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pencil.d.ts","sources":["../pencil.ts"],"names":[],"mappings":"AAAA;;;+BAG+B,GAC/B,SAAiB,KAAK,IAAI,qBAAoB;AAI9C,OAAO,YAAI,QAAQ,KAyBlB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Where a floating element lines up across its anchor: centered on it (a
|
|
2
|
+
* tooltip), or from its start edge (a field's suggestions). */ export type Align = 'center' | 'start';
|
|
3
|
+
/** Place a fixed element on the anchor rect's chosen edge, centered on it or
|
|
4
|
+
* from its start, clamped into the viewport and flipped when only the other
|
|
5
|
+
* side has room: a `Float`, and the tooltip. The overlay can cap its height
|
|
6
|
+
* using the room available below the anchor (`--float-space-below`) and size
|
|
7
|
+
* itself to the anchor (`--float-anchor-width`). */ export declare let place: (el: HTMLElement, rect: DOMRect, side: 'above' | 'below', align?: Align) => void;
|
|
8
|
+
/** Put a fixed element at a point (a context menu, a form): its left edge
|
|
9
|
+
* there, or its right edge for align 'right', its top just below; each
|
|
10
|
+
* flipped to the other side of the point when only that side has room, and
|
|
11
|
+
* clamped like `place`. */ export declare let placeAt: (el: HTMLElement, x: number, y: number, align?: 'right') => void;
|
|
12
|
+
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placement.d.ts","sources":["../placement.ts"],"names":[],"mappings":"AA0BA;6DAC6D,GAC7D,YAAY,QAAQ,WAAW;AAE/B;;;;kDAIkD,GAClD,OAAO,YAAI,QACT,IAAI,aACJ,MAAM,SACN,MAAM,UAAU,SAChB,QAAO,UACN,IAAI,CA2BN;AAED;;;yBAGyB,GACzB,OAAO,YAAI,UACT,IAAI,aACJ,GAAG,MAAM,EACT,GAAG,MAAM,EACT,QAAQ,YACP,IAAI,CAcN"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long ago (or ahead) `iso` is from `now`, in words.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* import { relative } from '@yaks/ui/relative'
|
|
6
|
+
* let now = Date.parse('2026-09-29T12:00:00Z')
|
|
7
|
+
* relative('2026-09-29T11:55:00Z', now) // '5 minutes ago'
|
|
8
|
+
* relative('2026-10-01T12:00:00Z', now) // 'in 2 days'
|
|
9
|
+
* relative('2026-09-29T11:59:30Z', now) // 'just now'
|
|
10
|
+
* ```
|
|
11
|
+
*/ export declare let relative: (iso?: string | null, now?: number) => string;
|
|
12
|
+
/**
|
|
13
|
+
* How long ago (or ahead) `iso` is from `now`, short: what a row's time says
|
|
14
|
+
* where its words need the room.
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { brief } from '@yaks/ui/relative'
|
|
18
|
+
* let now = Date.parse('2026-09-29T12:00:00Z')
|
|
19
|
+
* brief('2026-09-29T11:55:00Z', now) // '5m ago'
|
|
20
|
+
* brief('2026-09-15T12:00:00Z', now) // '2w ago'
|
|
21
|
+
* brief('2026-09-29T15:00:00Z', now) // 'in 3h'
|
|
22
|
+
* brief('2026-09-29T11:59:30Z', now) // 'now'
|
|
23
|
+
* ```
|
|
24
|
+
*/ export declare let brief: (iso?: string | null, now?: number) => string;
|
|
25
|
+
/** How long something has lasted, in its two largest units: what a `Time`
|
|
26
|
+
* says of the moment it counts from. */ export declare let lasted: (ms: number) => string;
|
|
27
|
+
/** A written date, with its month first and an ordinal day. */ export declare let day: (iso: string, timeZone?: string) => string;
|
|
28
|
+
/** A timestamp in full, for the kit tooltip. */ export declare let pretty: (iso?: string | null, timeZone?: string) => string;
|
|
29
|
+
/** How a time is said: read at when, as its day, how long since it, or its
|
|
30
|
+
* age short, in which zone. */ export type Face = {
|
|
31
|
+
now?: number;
|
|
32
|
+
written?: boolean;
|
|
33
|
+
lasting?: boolean;
|
|
34
|
+
short?: boolean;
|
|
35
|
+
timeZone?: string;
|
|
36
|
+
};
|
|
37
|
+
/** What a time says at `now`: its age, its day when written, how long since
|
|
38
|
+
* it when lasting, or its age in a letter when short (`3d ago`). */ export declare let said: (at: string, {}: Face) => string;
|
|
39
|
+
/** A time's tooltip: the moment in full, and for a duration, that it is since
|
|
40
|
+
* then; nothing for what is not a moment. */ export declare let tip: (at: string, {}: Face) => string;
|
|
41
|
+
//# sourceMappingURL=relative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative.d.ts","sources":["../relative.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;CAUC,GACD,OAAO,YAAI,WACT,MAAM,MAAM,GAAG,IAAI,EACnB,MAAK,MAAM,KACV,MAAM,CASR;AAYD;;;;;;;;;;;;CAYC,GACD,OAAO,YAAI,QACT,MAAM,MAAM,GAAG,IAAI,EACnB,MAAK,MAAM,KACV,MAAM,CAUR;AAED;sCACsC,GAMtC,OAAO,YAAI,SAAU,IAAI,MAAM,KAAG,MAAM,CAWvC;AAkCD,6DAA6D,GAE7D,OAAO,YAAI,MAAO,KAAK,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,CACxB;AAEjC,8CAA8C,GAE9C,OAAO,YAAI,SAAU,MAAM,MAAM,GAAG,IAAI,EAAE,WAAW,MAAM,KAAG,MAAM,CACzB;AAE3C;6BAC6B,GAC7B,YAAY;EACV,MAAM,MAAM;EACZ,UAAU,OAAO;EACjB,UAAU,OAAO;EACjB,QAAQ,OAAO;EACf,WAAW,MAAM;;AAGnB;kEACkE,GAIlE,OAAO,YAAI,OACT,IAAI,MAAM,EACV,IAAyD,IAAI,KAC5D,MAAM,CAOc;AAEvB;2CAC2C,GAI3C,OAAO,YAAI,MAAO,IAAI,MAAM,EAAE,IAAuB,IAAI,KAAG,MAAM,CAGjE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rosé Pine, the second theme: rosepine.css for a browser, and its dark
|
|
3
|
+
* palette (Rosé Pine main) for a terminal.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/ import { type Theme } from "./theme.js";
|
|
7
|
+
/** Rosé Pine (main). */ export declare let rosepine: Theme;
|
|
8
|
+
//# sourceMappingURL=rosepine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rosepine.d.ts","sources":["../rosepine.ts"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,SAAiB,KAAK,KAAK,qBAAoB;AAY/C,sBAAsB,GACtB,OAAO,YAAI,UAAU,MA+BpB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The static guide composes the installed ./ui facets. Query links select
|
|
2
|
+
* theme, skin and colour scheme without loading any client script. A host
|
|
3
|
+
* that reads no files (a Worker) draws the same page with sheets it built
|
|
4
|
+
* (`Dress`). */ import type { Route } from "@yaks/api";
|
|
5
|
+
import type { Composition, Contributions, Skin, Theme } from "./theme.js";
|
|
6
|
+
/** What a query names: a theme and a skin among those installed, the
|
|
7
|
+
* defaults where it names none, and every theme and skin it could name. */ export declare let dressed: (theme?: string, skin?: string, contributed?: Contributions) => {
|
|
8
|
+
c: Composition;
|
|
9
|
+
t: string;
|
|
10
|
+
k: string;
|
|
11
|
+
allThemes: Record<string, Theme>;
|
|
12
|
+
allSkins: Record<string, Skin>;
|
|
13
|
+
};
|
|
14
|
+
/** What puts composition `c`, the theme and skin named `theme` and `skin`,
|
|
15
|
+
* into the guide's head: a `<style>` or the `<link>`s of sheets built ahead. */ export type Dress = (c: Composition, theme: string, skin: string) => string | Promise<string>;
|
|
16
|
+
/** The guide's page, using contributions gathered by the page's host. */ export declare let page: (theme?: string, scheme?: string, skin?: string, contributed?: Contributions, dress?: Dress) => Promise<string>;
|
|
17
|
+
/** A host passes its gathered facets; a standalone guide shows the base. */ export declare let routes: (host?: {
|
|
18
|
+
ui: Contributions;
|
|
19
|
+
}) => Route[];
|
|
20
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sources":["../routes.ts"],"names":[],"mappings":"AAAA;;;cAGc,GACd,cAAc,KAAK,yBAA8B;AASjD,cAAc,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,qBAAoB;AAiBzE;yEACyE,GACzE,OAAO,YAAI,UACT,QAAO,MAAM,EACb,OAAM,MAAM,EACZ,cAAa;EAEb,GAAG;EACH,GAAG,MAAM;EACT,GAAG,MAAM;EACT,WAAW,OAAO,MAAM,EAAE;EAC1B,UAAU,OAAO,MAAM,EAAE;EAiB1B;AAYD;8EAC8E,GAC9E,YAAY,SACV,GAAG,aACH,OAAO,MAAM,EACb,MAAM,MAAM,KACT,MAAM,GAAG,QAAQ,MAAM;AAa5B,uEAAuE,GACvE,OAAO,YAAI,OACT,QAAQ,MAAM,EACd,iBACA,OAAO,MAAM,EACb,cAAa,eACb,QAAO,UACN,QAAQ,MAAM,EAsDhB;AAmBD,0EAA0E,GAC1E,OAAO,YAAI,SAAU;EAAS,IAAI;MAAkB,QAmBlD"}
|
package/_dist/sheet.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The class sheet maps the kit's class names to styles for terminal layout
|
|
3
|
+
* and painting. It uses the same class names as the kit's CSS.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/ /** Everything a class can set on the text under it. */ export type Style = {
|
|
7
|
+
/** Foreground colour, `#rrggbb`. */ fg?: string;
|
|
8
|
+
/** Background colour, `#rrggbb`. */ bg?: string;
|
|
9
|
+
/** Bold. */ bold?: boolean;
|
|
10
|
+
/** Dim. */ dim?: boolean;
|
|
11
|
+
/** Italic. */ italic?: boolean;
|
|
12
|
+
/** Underline. */ underline?: boolean;
|
|
13
|
+
/** Strikethrough. */ strike?: boolean;
|
|
14
|
+
/** Swap foreground and background — how a cursor and a selection show. */ inverse?: boolean;
|
|
15
|
+
/** An OSC 8 hyperlink target; set from an `<a href>`, never from the sheet. */ href?: string;
|
|
16
|
+
/** Paint this instead of the element's children. */ glyph?: string;
|
|
17
|
+
/** Shift this element's lines right by n columns. */ indent?: number;
|
|
18
|
+
/** A blank line after this element's lines. */ gap?: boolean;
|
|
19
|
+
/** Paint nothing and take no room, as CSS's `display: none` does: for a
|
|
20
|
+
* part a terminal has no use for, such as a phone's menu. */ hidden?: boolean;
|
|
21
|
+
/** Lay this element out as a block, on lines of its own, whatever its tag:
|
|
22
|
+
* CSS's `display: block` for a `button` or a `span`. */ block?: boolean;
|
|
23
|
+
/** Keep the runs on this element's lines apart with a space, as a CSS gap
|
|
24
|
+
* keeps a flex row's items apart in a browser. Not inherited, as a gap is
|
|
25
|
+
* not. */ spaced?: boolean;
|
|
26
|
+
/** Lay this element's children side by side, as a `row` attribute does. */ row?: boolean;
|
|
27
|
+
/** Stack this element's children, `grow` ones sharing the rows left, as a
|
|
28
|
+
* `col` attribute does. */ col?: boolean;
|
|
29
|
+
/** In a row, this many columns wide, as a `width` attribute says. */ width?: number;
|
|
30
|
+
/** In a row or a column, take what is left, as a `grow` attribute does. */ grow?: boolean;
|
|
31
|
+
/** Lay the rows under this element out in shared columns, as a CSS grid
|
|
32
|
+
* whose rows are subgrids: each `row` under it, through whatever holds it
|
|
33
|
+
* (a head, a body), takes its cells' widths from the grid's columns, a gap
|
|
34
|
+
* apart. */ grid?: boolean;
|
|
35
|
+
/** Fold this element's lines at its width, as a `wrap` attribute does. */ wrap?: boolean;
|
|
36
|
+
/** Where this element's line is cut to its width, end it in `…`, as CSS's
|
|
37
|
+
* `text-overflow: ellipsis` does. */ ellipsis?: boolean;
|
|
38
|
+
/** Where this element is narrower than its width, set it to this side, as
|
|
39
|
+
* CSS's `text-align` does. */ align?: 'left' | 'center' | 'right';
|
|
40
|
+
/** Frame this element in a line of the sheet's class of this name, as a
|
|
41
|
+
* `border` attribute does. */ border?: string;
|
|
42
|
+
};
|
|
43
|
+
/** A class sheet: class name to style. */ export type Sheet = Record<string, Style>;
|
|
44
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sources":["../sheet.ts"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,qDAAqD,GACrD,YAAY;EACV,kCAAkC,GAClC,KAAK,MAAM;EACX,kCAAkC,GAClC,KAAK,MAAM;EACX,UAAU,GACV,OAAO,OAAO;EACd,SAAS,GACT,MAAM,OAAO;EACb,YAAY,GACZ,SAAS,OAAO;EAChB,eAAe,GACf,YAAY,OAAO;EACnB,mBAAmB,GACnB,SAAS,OAAO;EAChB,wEAAwE,GACxE,UAAU,OAAO;EACjB,6EAA6E,GAC7E,OAAO,MAAM;EACb,kDAAkD,GAClD,QAAQ,MAAM;EACd,mDAAmD,GACnD,SAAS,MAAM;EACf,6CAA6C,GAC7C,MAAM,OAAO;EACb;6DAC2D,GAC3D,SAAS,OAAO;EAChB;wDACsD,GACtD,QAAQ,OAAO;EACf;;UAEQ,GACR,SAAS,OAAO;EAChB,yEAAyE,GACzE,MAAM,OAAO;EACb;2BACyB,GACzB,MAAM,OAAO;EACb,mEAAmE,GACnE,QAAQ,MAAM;EACd,yEAAyE,GACzE,OAAO,OAAO;EACd;;;YAGU,GACV,OAAO,OAAO;EACd,wEAAwE,GACxE,OAAO,OAAO;EACd;qCACmC,GACnC,WAAW,OAAO;EAClB;8BAC4B,GAC5B,QAAQ,SAAS,WAAW;EAC5B;8BAC4B,GAC5B,SAAS,MAAM;;AAGjB,wCAAwC,GACxC,YAAY,QAAQ,OAAO,MAAM,EAAE"}
|
package/_dist/slide.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Show a newly drawn view entering from the right. */ export declare let slideIn: (view: Element | null | undefined) => void;
|
|
2
|
+
/** Carry the entering animation across a document navigation. */ export declare let slideAddress: (to: URL) => URL;
|
|
3
|
+
/** Animate an arriving document and restore its ordinary fragment. */ export declare let slideArrival: (doc: Document, content: string) => void;
|
|
4
|
+
//# sourceMappingURL=slide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slide.d.ts","sources":["../slide.ts"],"names":[],"mappings":"AAAA,qDAAqD,GACrD,OAAO,YAAI,UAAW,MAAM,UAAU,IAAI,GAAG,SAAS,KAAG,IAAI,CAe5D;AAID,+DAA+D,GAC/D,OAAO,YAAI,eAAgB,IAAI,QAAM,IAIpC;AAED,oEAAoE,GACpE,OAAO,YAAI,eAAgB,KAAK,UAAU,SAAS,MAAM,KAAG,IAAI,CAY/D"}
|
package/_dist/stock.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stock kit, every part in Linen, for a page that asks for it: a yaks
|
|
3
|
+
* app's page imports this and awaits it before drawing, and its controls wear
|
|
4
|
+
* the kit. The page's own sheets come after it, so the page wins.
|
|
5
|
+
*
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { wearStock } from '@yaks/ui/stock'
|
|
8
|
+
* await wearStock()
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* The sheet is one file the compiler writes beside this module
|
|
12
|
+
* (wear-build.ts), so a page loads no part modules to get it. A page that
|
|
13
|
+
* composes its own kit, theme or skin uses `@yaks/ui/wear`.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/ /** The stock Linen stylesheet generated for compiled browser packages. */ export declare let linenAsset: string;
|
|
17
|
+
/** Link a sheet before `before`, settling true once it loads and false if it
|
|
18
|
+
* fails; `forget` takes a failed link back out. */ export declare let linkSheet: (doc: Document, before: Element | null, href: string, forget?: boolean) => Promise<boolean>;
|
|
19
|
+
/** Link the stock kit's sheet before the page's first stylesheet, once,
|
|
20
|
+
* settling when it has loaded or failed. */ export declare let wearStock: (doc?: Document, moduleUrl?: string) => Promise<void>;
|
|
21
|
+
//# sourceMappingURL=stock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stock.d.ts","sources":["../stock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,wEAAwE,GACxE,OAAO,YAAI,mBAA6B;AAExC;iDACiD,GACjD,OAAO,YAAI,YACT,KAAK,UACL,QAAQ,UAAU,IAAI,EACtB,MAAM,MAAM,EACZ,qBACC,QAAQ,OAAO,EAWd;AAEJ;0CAC0C,GAC1C,OAAO,YAAI,YACT,MAAK,UACL,YAAW,MAAM,KAChB,QAAQ,IAAI,EAQd"}
|
package/_dist/store.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sources":["../store.ts"],"names":[],"mappings":"AAEA,4EAA4E,GAC5E,OAAO,YAAI,WAAY,GACrB,YAAY,eAAe,IAAI,WAAW,IAAI,EAC9C,YAAY,MACX,EAOF"}
|
package/_dist/theme.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a theme is. A theme is two faces of one palette: a stylesheet of CSS
|
|
3
|
+
* custom properties (`--bg`, `--dim`, …) that every component's CSS reads
|
|
4
|
+
* through `var()`, and the same colours as values, which a terminal sheet is
|
|
5
|
+
* built from (kit.ts `stylesheet` and `sheet`).
|
|
6
|
+
*
|
|
7
|
+
* Every colour names a role, never a hue: `--number` is a number wherever
|
|
8
|
+
* one shows, whatever colour a theme gives it. A theme's stylesheet sets
|
|
9
|
+
* these names, its type and its spacing, and nothing else.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/ import type { Sheet } from "./sheet.js";
|
|
13
|
+
import type { ComponentType, JSX } from "@types/react";
|
|
14
|
+
/** A theme's colours, named as its custom properties are (`hues` are
|
|
15
|
+
* `--hue-0` to `--hue-5`). A terminal paints with one palette; where the
|
|
16
|
+
* stylesheet has a light and a dark scheme, these are the dark. */ export type Colors = {
|
|
17
|
+
/** the floor */ bg: string;
|
|
18
|
+
/** panels and chrome */ surface: string;
|
|
19
|
+
/** a raised body */ card: string;
|
|
20
|
+
border: string;
|
|
21
|
+
/** a stronger border */ border2: string;
|
|
22
|
+
/** the foreground */ text: string;
|
|
23
|
+
muted: string;
|
|
24
|
+
dim: string;
|
|
25
|
+
/** selection and the primary action */ accent: string;
|
|
26
|
+
/** a link, whatever part it is in */ link: string;
|
|
27
|
+
/** a section's title: the text's own ink in both themes, set apart by
|
|
28
|
+
* size and weight, not hue */ heading: string;
|
|
29
|
+
/** the tones a state is said in (a `Dot`'s): something to know, or still
|
|
30
|
+
* open */ info: string;
|
|
31
|
+
/** under way */ active: string;
|
|
32
|
+
/** went well: done, passed, approved */ positive: string;
|
|
33
|
+
/** went wrong, or would destroy something */ negative: string;
|
|
34
|
+
/** needs watching */ caution: string;
|
|
35
|
+
/** set apart from the rest */ special: string;
|
|
36
|
+
/** a number, stored or in code */ number: string;
|
|
37
|
+
/** true, false and null, stored or in code */ literal: string;
|
|
38
|
+
/** a moment */ time: string;
|
|
39
|
+
/** who did it: a person or a session */ who: string;
|
|
40
|
+
/** code: the language's own words */ keyword: string;
|
|
41
|
+
/** code: a string */ string: string;
|
|
42
|
+
/** code: a function's or a class's name */ fn: string;
|
|
43
|
+
/** code: a type, or what the language builds in */ type: string;
|
|
44
|
+
/** code: an attribute or a variable */ attr: string;
|
|
45
|
+
/** six colours that only tell things apart (a `Chip`'s), none of them a
|
|
46
|
+
* role */ hues: [string, string, string, string, string, string];
|
|
47
|
+
};
|
|
48
|
+
/** A stylesheet's address, resolved when the sheet is read, never when its
|
|
49
|
+
* module loads: a bundled Worker has no module address to resolve against,
|
|
50
|
+
* so `new URL('./x.css', import.meta.url)` at load throws there. */ export type Stylesheet = () => URL;
|
|
51
|
+
/** Stylesheets named beside a module: `let at = beside(import.meta.url)`,
|
|
52
|
+
* then `css: at('./x.css')`. Each also says its address as a string, as the
|
|
53
|
+
* URL it replaced did, so shipped app code linking `String(part.css)` keeps
|
|
54
|
+
* its look. */ export declare let beside: (base: string) => any;
|
|
55
|
+
/** A theme: its custom properties, and their colours. */ export type Theme = {
|
|
56
|
+
/** the stylesheet defining the custom properties */ css: Stylesheet;
|
|
57
|
+
colors: Colors;
|
|
58
|
+
};
|
|
59
|
+
/** A native style: a React Native style object's keys and values. */ export type Style = Record<string, string | number>;
|
|
60
|
+
/** A part's native entries: the style of each class it renders, beside its
|
|
61
|
+
* terminal `sheet`, which a native host draws its views with (@yaks/native). */ export type Native = Record<string, Style>;
|
|
62
|
+
/** One sample in the style guide: what it shows, and the tree. */ export type Specimen = [label: string, node: JSX.Element];
|
|
63
|
+
/** What each part of the kit brings besides its component: a line saying
|
|
64
|
+
* what it is, its terminal entries, its native ones where it has a native
|
|
65
|
+
* look, and its samples. Its CSS address travels with the part, wherever its
|
|
66
|
+
* author keeps it. */ export type Piece = {
|
|
67
|
+
Component: ComponentType<any>;
|
|
68
|
+
css: Stylesheet;
|
|
69
|
+
description: string;
|
|
70
|
+
sheet: (c: Colors) => Sheet;
|
|
71
|
+
native?: (c: Colors) => Native;
|
|
72
|
+
specimens: () => Specimen[];
|
|
73
|
+
};
|
|
74
|
+
/** A kit names a set of parts. Skin keys are bare names or kit/name. */ export type Kit = Record<string, Piece>;
|
|
75
|
+
/** Another rendering of just the parts it changes, keyed by kit/name or a bare
|
|
76
|
+
* name matching every kit. An entry's `css` replaces
|
|
77
|
+
* the part's own, and its `over` (one sheet or several, in order) is laid on
|
|
78
|
+
* top of whichever the part wears, so a skin can add to a part without
|
|
79
|
+
* copying it, and two skins can share what they lay. Missing entries fall back
|
|
80
|
+
* to the kit; a missing terminal sheet or native entry keeps the kit's. */ export type Skin = Record<string, {
|
|
81
|
+
css?: Stylesheet;
|
|
82
|
+
over?: Stylesheet | Stylesheet[];
|
|
83
|
+
sheet?: (c: Colors) => Sheet;
|
|
84
|
+
native?: (c: Colors) => Native;
|
|
85
|
+
}>;
|
|
86
|
+
/** The guide only needs UX specimens, not a dependency on their behaviour. */ export type Behaviours = Record<string, {
|
|
87
|
+
description: string;
|
|
88
|
+
components: Record<string, Pick<Piece, 'description' | 'specimens'>>;
|
|
89
|
+
}>;
|
|
90
|
+
/** Browser-safe contributions from a plugin's ./ui facet. */ export type Contributions = {
|
|
91
|
+
kits?: Record<string, Kit>;
|
|
92
|
+
ux?: Behaviours;
|
|
93
|
+
themes?: Record<string, Theme>;
|
|
94
|
+
skins?: Record<string, Skin>;
|
|
95
|
+
};
|
|
96
|
+
/** The same value dresses a page and its guide in both renderers. */ export type Composition = {
|
|
97
|
+
kits: Record<string, Kit>;
|
|
98
|
+
theme: Theme;
|
|
99
|
+
skin?: Skin;
|
|
100
|
+
ux?: Behaviours;
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sources":["../theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;CAWC,GAED,cAAc,KAAK,qBAAoB;AACG,cAAc,aAAa,EAAE,GAAG,uBAA0B;AAEpG;;iEAEiE,GACjE,YAAY;EACV,cAAc,GACd,IAAI,MAAM;EACV,sBAAsB,GACtB,SAAS,MAAM;EACf,kBAAkB,GAClB,MAAM,MAAM;EACZ,QAAQ,MAAM;EACd,sBAAsB,GACtB,SAAS,MAAM;EACf,mBAAmB,GACnB,MAAM,MAAM;EACZ,OAAO,MAAM;EACb,KAAK,MAAM;EACX,qCAAqC,GACrC,QAAQ,MAAM;EACd,mCAAmC,GACnC,MAAM,MAAM;EACZ;8BAC4B,GAC5B,SAAS,MAAM;EACf;UACQ,GACR,MAAM,MAAM;EACZ,cAAc,GACd,QAAQ,MAAM;EACd,sCAAsC,GACtC,UAAU,MAAM;EAChB,2CAA2C,GAC3C,UAAU,MAAM;EAChB,mBAAmB,GACnB,SAAS,MAAM;EACf,4BAA4B,GAC5B,SAAS,MAAM;EACf,gCAAgC,GAChC,QAAQ,MAAM;EACd,4CAA4C,GAC5C,SAAS,MAAM;EACf,aAAa,GACb,MAAM,MAAM;EACZ,sCAAsC,GACtC,KAAK,MAAM;EACX,mCAAmC,GACnC,SAAS,MAAM;EACf,mBAAmB,GACnB,QAAQ,MAAM;EACd,yCAAyC,GACzC,IAAI,MAAM;EACV,iDAAiD,GACjD,MAAM,MAAM;EACZ,qCAAqC,GACrC,MAAM,MAAM;EACZ;UACQ,GACR,OAAO,MAAM,EAAE,MAAM,E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AE,MAAM,mBAAkB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The image variant of a video address, retaining any other route arguments. */ export declare let posterUrl: (src: string, width?: number) => string;
|
|
2
|
+
/** A film's still and play mark. With controls, the cover plays inline. */ export declare let videoCover: (src: string, title: string, _dts_1: never) => HTMLSpanElement;
|
|
3
|
+
//# sourceMappingURL=video-cover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-cover.d.ts","sources":["../video-cover.ts"],"names":[],"mappings":"AAAA,+EAA+E,GAC/E,OAAO,YAAI,YACT,KAAK,MAAM,EACX,mBAEC,MAAM,CAQR;AAED,yEAAyE,GACzE,OAAO,YAAI,aACT,KAAK,MAAM,EACX,OAAO,MAAM,EACb,kBAEC,gBAkDF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** The scrolling body primitive: browser overflow or a terminal window. Each
|
|
2
|
+
* `id` starts scrolled to `start`, such as where a page was left, and
|
|
3
|
+
* `onScroll` hears where a person moves it. */ import { type FunctionComponent, type ReactNode } from "@types/react";
|
|
4
|
+
export type ViewportProps = {
|
|
5
|
+
id: string;
|
|
6
|
+
start?: number;
|
|
7
|
+
onScroll?: (top: number) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
class?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare let installViewport: (body: FunctionComponent<ViewportProps>) => void;
|
|
13
|
+
export declare let Viewport: FunctionComponent<ViewportProps>;
|
|
14
|
+
//# sourceMappingURL=viewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sources":["../viewport.ts"],"names":[],"mappings":"AAAA;;6CAE6C,GACH,SAExC,KAAK,iBAAiB,EACtB,KAAK,SAAS,uBAGS;AACzB,YAAY;EACV,IAAI,MAAM;EACV,QAAQ,MAAM;EACd,YAAY,KAAK,MAAM,KAAK,IAAI;EAChC,YAAY,MAAM;EAClB,QAAQ,MAAM;EACd,WAAW;;AAwCb,OAAO,YAAI,kBAAmB,MAAM,kBAAkB,mBAAiB,IAAI,CAE1E;AACD,OAAO,YAAI,UAAU,kBAAkB,eACvB"}
|
package/_dist/wear.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Composition } from "./theme.js";
|
|
2
|
+
/** Link the sheets `c` dresses a page in (`addresses`), before the page's
|
|
3
|
+
* first stylesheet, settling once each has loaded or failed. */ export declare let wear: (c: Composition) => Promise<void>;
|
|
4
|
+
/** {@link wear} into a given document. A sheet already linked is left. */ export declare let wearIn: (doc: Document, c: Composition, moduleUrl?: string) => Promise<void>;
|
|
5
|
+
//# sourceMappingURL=wear.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wear.d.ts","sources":["../wear.ts"],"names":[],"mappings":"AAgBA,cAAc,WAAW,qBAAoB;AAG7C;8DAC8D,GAC9D,OAAO,YAAI,OAAQ,GAAG,gBAAc,QAAQ,IAAI,EAAwB;AAoBxE,wEAAwE,GACxE,OAAO,YAAI,SACT,KAAK,UACL,GAAG,aACH,YAAW,MAAM,KAChB,QAAQ,IAAI,EAkBd"}
|
package/ahead.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asking ahead for what a press will need, before the press. A link names
|
|
3
|
+
* an address to warm in `data-warm` (`WARM`); warming it is a HEAD, which
|
|
4
|
+
* wakes what serves it and fills the edge's copy of a page kept there,
|
|
5
|
+
* marked as a look ahead (`AHEAD`), so the server counts no visit for it.
|
|
6
|
+
* The navigator (navigate.ts) warms the links of the pages it holds; a page
|
|
7
|
+
* without the navigator warms its own with `warmAhead`.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/ /** The header a page fetched ahead carries: the person has not opened it
|
|
11
|
+
* yet, so the server reads it without doing what opening it does (marking
|
|
12
|
+
* what it shows read, counting a view). Browsers' own prefetches say so in
|
|
13
|
+
* `Sec-Purpose`, which a script cannot set. */ export let AHEAD = 'purpose';
|
|
14
|
+
/** Whether a request only looks ahead at a page (`AHEAD`, or a browser's
|
|
15
|
+
* own prefetch), rather than a person opening it. */ /// lookingAhead(new Request('https://y.test/', { headers: { purpose: 'prefetch' } })) -> true
|
|
16
|
+
/// lookingAhead(new Request('https://y.test/')) -> false
|
|
17
|
+
export let lookingAhead = (req)=>/prefetch/.test(req.headers.get('sec-purpose') ?? req.headers.get(AHEAD) ?? '');
|
|
18
|
+
/** A link's lightweight warm address, asked ahead of a press on it. */ export let WARM = 'data-warm';
|
|
19
|
+
/** A function that warms one link's address (`WARM`), at most once in
|
|
20
|
+
* `fresh` milliseconds, remembering the last `most` addresses. One of the
|
|
21
|
+
* page's own origin says it looks ahead (`AHEAD`); another's can carry no
|
|
22
|
+
* such header, so it goes without. */ export let warmer = (win, now, fresh = 10_000, most = 24)=>{
|
|
23
|
+
let warmed = new Map();
|
|
24
|
+
return (link)=>{
|
|
25
|
+
let path = link.getAttribute(WARM);
|
|
26
|
+
if (!path) return;
|
|
27
|
+
let to = new URL(path, win.location.href);
|
|
28
|
+
if (to.protocol != 'https:' && to.protocol != 'http:') return;
|
|
29
|
+
if (now() - (warmed.get(to.href) ?? -Infinity) < fresh) return;
|
|
30
|
+
warmed.delete(to.href);
|
|
31
|
+
warmed.set(to.href, now());
|
|
32
|
+
if (warmed.size > most) warmed.delete(warmed.keys().next().value);
|
|
33
|
+
void win.fetch(to.href, {
|
|
34
|
+
method: 'HEAD',
|
|
35
|
+
credentials: 'include',
|
|
36
|
+
keepalive: true,
|
|
37
|
+
...to.origin == win.location.origin ? {
|
|
38
|
+
headers: {
|
|
39
|
+
[AHEAD]: 'prefetch'
|
|
40
|
+
}
|
|
41
|
+
} : {
|
|
42
|
+
mode: 'no-cors'
|
|
43
|
+
}
|
|
44
|
+
}).catch(()=>{});
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/** Warm the page's `WARM` links ahead of a press: each once it comes near
|
|
48
|
+
* the screen, and again when a pointer, a finger or the keyboard comes to
|
|
49
|
+
* it. For a page without the navigator whose links lead to pages the server
|
|
50
|
+
* is slow to draw the first time. */ export let warmAhead = (win)=>{
|
|
51
|
+
let warm = warmer(win, ()=>win.performance.now());
|
|
52
|
+
let Seen = win.IntersectionObserver;
|
|
53
|
+
if (Seen) {
|
|
54
|
+
let seen = new Seen((entries)=>{
|
|
55
|
+
for (let e of entries){
|
|
56
|
+
if (!e.isIntersecting) continue;
|
|
57
|
+
warm(e.target);
|
|
58
|
+
seen.unobserve(e.target);
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
rootMargin: '50% 0px'
|
|
62
|
+
});
|
|
63
|
+
for (let link of win.document.querySelectorAll(`a[${WARM}]`)){
|
|
64
|
+
seen.observe(link);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
let ahead = (e)=>{
|
|
68
|
+
let link = e.target?.closest?.(`a[${WARM}]`);
|
|
69
|
+
if (link) warm(link);
|
|
70
|
+
};
|
|
71
|
+
for (let type of [
|
|
72
|
+
'pointerover',
|
|
73
|
+
'focusin',
|
|
74
|
+
'touchstart'
|
|
75
|
+
]){
|
|
76
|
+
win.addEventListener(type, ahead, {
|
|
77
|
+
passive: true
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=ahead.js.map
|
package/ahead.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ahead.js","sources":["./ahead.ts"],"names":[],"mappings":"AAAA;;;;;;;;;CASC,GAED;;;6CAG6C,GAC7C,OAAO,IAAI,QAAQ,UAAS;AAE5B;mDACmD,GACnD,8FAA8F;AAC9F,yDAAyD;AACzD,OAAO,IAAI,eAAe,CAAC,MACzB,WAAW,IAAI,CACb,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,IAC7D;AAEH,qEAAqE,GACr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