@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/Composer.ts
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a person writes something and sends it: one row, the field and the
|
|
3
|
+
* action that sends it at the row's end. Every input with an action is one:
|
|
4
|
+
* a chat, a reply, a comment, an answer, an email to ask by. A field of
|
|
5
|
+
* several lines (`lines`) is one line tall and grows with what is typed up
|
|
6
|
+
* to a ceiling, where it scrolls.
|
|
7
|
+
*
|
|
8
|
+
* Its field (`Composer.Field`) and, after it, either `Composer.Send` alone
|
|
9
|
+
* or `Composer.Tools` holding it share the row, with a `Composer.Choice` or
|
|
10
|
+
* `Composer.Attach` before the field where one is needed: `[+] [field]
|
|
11
|
+
* [Send]`. Files held to send sit inside the field's edge, along its bottom:
|
|
12
|
+
* the field and what it holds are one `Composer.Well`, drawn as a field is,
|
|
13
|
+
* and the field in it is `Composer.Bare`, a field with no box of its own
|
|
14
|
+
* (`Field-bare`), the well being its box.
|
|
15
|
+
* Anything else before the field (who the words go to) runs the row's width
|
|
16
|
+
* above it, and anything after its action (what came of sending) below it.
|
|
17
|
+
* The field on one line, the choice and each press stand one height, so the
|
|
18
|
+
* row lines up in every skin, and its placeholder stays on one line. Presses
|
|
19
|
+
* besides Send are icons: `Composer.Attach` (a paperclip, a label around its
|
|
20
|
+
* `Composer.File`) and `Composer.Voice`, each naming itself in a
|
|
21
|
+
* `Composer.Name` that only a screen reader reads. Drawn `as='form'`, the
|
|
22
|
+
* composer is the form itself. How it behaves (Enter sends, Shift+Enter
|
|
23
|
+
* starts a line) is @yaks/ux/composer's.
|
|
24
|
+
*
|
|
25
|
+
* It is a gathering `Drop` (`Drop-gather`), lit as one while files are held
|
|
26
|
+
* `over` it (`Drop-over`).
|
|
27
|
+
*
|
|
28
|
+
* @module
|
|
29
|
+
*/
|
|
30
|
+
import { Form } from './Form.js'
|
|
31
|
+
import type { Sheet } from './sheet.ts'
|
|
32
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h, type FunctionComponent } from 'react'
|
|
33
|
+
import { block, el, type Part } from './el.js'
|
|
34
|
+
import type { Colors, Specimen } from './theme.ts'
|
|
35
|
+
import { Button } from './Button.js'
|
|
36
|
+
import { Drop } from './Drop.js'
|
|
37
|
+
import { Field, type FieldProps } from './Field.js'
|
|
38
|
+
import { Icon } from './Icon.js'
|
|
39
|
+
// @ts-types="./lucide.d.ts"
|
|
40
|
+
import paperclip from 'lucide/dist/esm/icons/paperclip.mjs'
|
|
41
|
+
// @ts-types="./lucide.d.ts"
|
|
42
|
+
import mic from 'lucide/dist/esm/icons/mic.mjs'
|
|
43
|
+
import { Notice } from './Notice.js'
|
|
44
|
+
import { Attachments } from './Attachments.js'
|
|
45
|
+
|
|
46
|
+
let Gather: Part = ({ over, ...p }) =>
|
|
47
|
+
h(Drop, { ...p, mod: ['gather', over ? 'over' : ''] })
|
|
48
|
+
let Send: Part = (p) => h(Button, { ...p, mod: p.mod ?? 'go' })
|
|
49
|
+
let Choice: Part = ({ as: _as, ...p }) => h(Field, { ...p, choose: true })
|
|
50
|
+
let Voice: Part = (p) => h(Button, { ...p, mod: 'quiet' })
|
|
51
|
+
let Bare = (p: FieldProps) => h(Field, { ...p, mod: 'bare' })
|
|
52
|
+
let Attach: Part = ({ children, ...p }) =>
|
|
53
|
+
h('label', p, h(Icon, { of: paperclip }), children)
|
|
54
|
+
|
|
55
|
+
/** A message field, attachments and controls for sending it. */
|
|
56
|
+
export let Composer:
|
|
57
|
+
& Part
|
|
58
|
+
& Record<
|
|
59
|
+
| 'Form'
|
|
60
|
+
| 'Figure'
|
|
61
|
+
| 'Tools'
|
|
62
|
+
| 'Well'
|
|
63
|
+
| 'Attach'
|
|
64
|
+
| 'File'
|
|
65
|
+
| 'Stop'
|
|
66
|
+
| 'Send'
|
|
67
|
+
| 'Voice'
|
|
68
|
+
| 'Status'
|
|
69
|
+
| 'To'
|
|
70
|
+
| 'Name'
|
|
71
|
+
| 'Choice',
|
|
72
|
+
Part
|
|
73
|
+
>
|
|
74
|
+
& {
|
|
75
|
+
Field: FunctionComponent<FieldProps>
|
|
76
|
+
Bare: FunctionComponent<FieldProps>
|
|
77
|
+
} = Object.assign(
|
|
78
|
+
block(Gather, 'Composer', {
|
|
79
|
+
Form,
|
|
80
|
+
Figure: 'img',
|
|
81
|
+
Tools: 'div',
|
|
82
|
+
Well: 'div',
|
|
83
|
+
Attach,
|
|
84
|
+
File: Drop.File,
|
|
85
|
+
Stop: Button,
|
|
86
|
+
Send: Send,
|
|
87
|
+
Voice,
|
|
88
|
+
Status: Notice,
|
|
89
|
+
To: 'p',
|
|
90
|
+
Name: 'span',
|
|
91
|
+
Choice,
|
|
92
|
+
}),
|
|
93
|
+
{
|
|
94
|
+
Field: el(Field, 'Composer_Field'),
|
|
95
|
+
Bare: el(Bare, 'Composer_Field'),
|
|
96
|
+
},
|
|
97
|
+
)
|
|
98
|
+
/** What this part presents. */
|
|
99
|
+
export let description =
|
|
100
|
+
'One row to write and send in: files added at the left, a field that grows from one line, its action at the right.'
|
|
101
|
+
/** The same parts in a terminal: one row, the field taking what the
|
|
102
|
+
* tools leave. */
|
|
103
|
+
export let sheet = (c: Colors): Sheet => ({
|
|
104
|
+
Composer: { row: true, spaced: true },
|
|
105
|
+
Composer_Field: { grow: true },
|
|
106
|
+
Composer_Tools: { row: true, spaced: true },
|
|
107
|
+
Composer_Well: { grow: true },
|
|
108
|
+
Composer_Figure: { hidden: true },
|
|
109
|
+
Composer_Status: { fg: c.muted },
|
|
110
|
+
Composer_To: { fg: c.muted },
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
let attach = (n = 'Add files') =>
|
|
114
|
+
h(
|
|
115
|
+
Composer.Attach,
|
|
116
|
+
{ title: n },
|
|
117
|
+
h(Composer.Name, {}, n),
|
|
118
|
+
h(Composer.File, { type: 'file', multiple: true }),
|
|
119
|
+
)
|
|
120
|
+
let voice = h(
|
|
121
|
+
Composer.Voice,
|
|
122
|
+
{ type: 'button', title: 'Start a voice call' },
|
|
123
|
+
h(Icon, { of: mic }),
|
|
124
|
+
h(Composer.Name, {}, 'Voice'),
|
|
125
|
+
)
|
|
126
|
+
let long =
|
|
127
|
+
'A reply that runs on: the field grows with each line typed\nlike this one,\nand this,\nuntil its ceiling, where it scrolls.'
|
|
128
|
+
|
|
129
|
+
/** A reply, a chat with its tools, one holding files, one grown, one line,
|
|
130
|
+
* one with a choice, one at work and addressed. */
|
|
131
|
+
export let specimens = (): Specimen[] => [
|
|
132
|
+
[
|
|
133
|
+
'Composer',
|
|
134
|
+
h(
|
|
135
|
+
Composer,
|
|
136
|
+
{ as: 'form' },
|
|
137
|
+
h(Composer.Field, { lines: true, placeholder: 'Reply to Graham…' }),
|
|
138
|
+
h(Composer.Send, { type: 'button' }, 'Send'),
|
|
139
|
+
),
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
'Composer, with files and voice',
|
|
143
|
+
h(
|
|
144
|
+
Composer,
|
|
145
|
+
{ as: 'form' },
|
|
146
|
+
attach(),
|
|
147
|
+
h(Composer.Field, { lines: true, placeholder: 'Message Elihu' }),
|
|
148
|
+
h(
|
|
149
|
+
Composer.Tools,
|
|
150
|
+
{},
|
|
151
|
+
voice,
|
|
152
|
+
h(Composer.Send, { type: 'button' }, 'Send'),
|
|
153
|
+
),
|
|
154
|
+
),
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
'Composer, holding files',
|
|
158
|
+
h(
|
|
159
|
+
Composer,
|
|
160
|
+
{ as: 'form' },
|
|
161
|
+
attach(),
|
|
162
|
+
h(
|
|
163
|
+
Composer.Well,
|
|
164
|
+
{},
|
|
165
|
+
h(Composer.Bare, {
|
|
166
|
+
lines: true,
|
|
167
|
+
placeholder: 'Message Elihu about Hollow Dice…',
|
|
168
|
+
}),
|
|
169
|
+
h(
|
|
170
|
+
Attachments,
|
|
171
|
+
{ mod: 'held' },
|
|
172
|
+
h(
|
|
173
|
+
Attachments.File,
|
|
174
|
+
{},
|
|
175
|
+
h(Attachments.Kind, {}, 'PDF'),
|
|
176
|
+
h(Attachments.Name, {}, 'Recipe cards.pdf'),
|
|
177
|
+
h(Attachments.Remove, { label: 'Remove Recipe cards.pdf' }),
|
|
178
|
+
),
|
|
179
|
+
),
|
|
180
|
+
),
|
|
181
|
+
h(Composer.Send, { type: 'button' }, 'Send'),
|
|
182
|
+
),
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
'Composer, grown',
|
|
186
|
+
h(
|
|
187
|
+
Composer,
|
|
188
|
+
{ as: 'form' },
|
|
189
|
+
h(Composer.Field, {
|
|
190
|
+
lines: true,
|
|
191
|
+
value: long,
|
|
192
|
+
placeholder: 'Write a message',
|
|
193
|
+
}),
|
|
194
|
+
h(Composer.Send, { type: 'button' }, 'Send'),
|
|
195
|
+
),
|
|
196
|
+
],
|
|
197
|
+
[
|
|
198
|
+
'Composer, one line',
|
|
199
|
+
h(
|
|
200
|
+
Composer,
|
|
201
|
+
{ as: 'form' },
|
|
202
|
+
h(Composer.Field, {
|
|
203
|
+
type: 'email',
|
|
204
|
+
placeholder: 'Their yaks.app email',
|
|
205
|
+
}),
|
|
206
|
+
h(Composer.Send, { type: 'button' }, 'Ask'),
|
|
207
|
+
),
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
'Composer, with a choice',
|
|
211
|
+
h(
|
|
212
|
+
Composer,
|
|
213
|
+
{ as: 'form' },
|
|
214
|
+
h(
|
|
215
|
+
Composer.Choice,
|
|
216
|
+
{ 'aria-label': 'Edge' },
|
|
217
|
+
h('option', { value: 'requires' }, 'requires'),
|
|
218
|
+
),
|
|
219
|
+
h(Composer.Field, { placeholder: 'to (an id: T-12)' }),
|
|
220
|
+
h(Composer.Send, { type: 'button', mod: 'add' }, '+ edge'),
|
|
221
|
+
),
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
'Composer, at work and addressed',
|
|
225
|
+
h(
|
|
226
|
+
Composer.Form,
|
|
227
|
+
{ mod: 'inline' },
|
|
228
|
+
h(
|
|
229
|
+
Composer,
|
|
230
|
+
{ 'data-busy': '' },
|
|
231
|
+
h(Composer.To, {}, 'To your conversation, not this one'),
|
|
232
|
+
h(Composer.Figure, {
|
|
233
|
+
alt: '',
|
|
234
|
+
src:
|
|
235
|
+
'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22/%3E',
|
|
236
|
+
}),
|
|
237
|
+
attach(),
|
|
238
|
+
h(Composer.Field, { lines: true, placeholder: 'Write a message' }),
|
|
239
|
+
h(
|
|
240
|
+
Composer.Tools,
|
|
241
|
+
{},
|
|
242
|
+
h(Composer.Stop, { type: 'button' }, 'Stop'),
|
|
243
|
+
h(Composer.Send, { type: 'button' }, 'Send'),
|
|
244
|
+
),
|
|
245
|
+
),
|
|
246
|
+
h(Composer.Status, {}, 'Your draft is kept.'),
|
|
247
|
+
),
|
|
248
|
+
],
|
|
249
|
+
]
|
package/Contents.css
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* What is on this page. Beside the page, a column that stays in sight as the
|
|
2
|
+
page scrolls under it: its label, then a link a line, quiet until it is the
|
|
3
|
+
section in view, which a bar beside it marks. On a phone, one "On this
|
|
4
|
+
page" line that opens the same list. Which of the two shows is the width
|
|
5
|
+
the contents itself has: the container it sits in is the page's to size. */
|
|
6
|
+
.Contents {
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
position: sticky;
|
|
9
|
+
top: var(--gap);
|
|
10
|
+
align-self: start;
|
|
11
|
+
font-size: var(--small);
|
|
12
|
+
}
|
|
13
|
+
.Contents[hidden] {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
.Contents_Label {
|
|
17
|
+
margin: 0 0 var(--half-gap);
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
}
|
|
20
|
+
.Contents_List {
|
|
21
|
+
display: grid;
|
|
22
|
+
gap: 2px;
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
list-style: none;
|
|
26
|
+
}
|
|
27
|
+
.Contents_Item-sub {
|
|
28
|
+
padding-inline-start: var(--gap);
|
|
29
|
+
}
|
|
30
|
+
.Contents_Link {
|
|
31
|
+
display: block;
|
|
32
|
+
padding: 3px 0 3px var(--half-gap);
|
|
33
|
+
border-inline-start: 2px solid var(--border);
|
|
34
|
+
color: var(--muted);
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
}
|
|
37
|
+
@media (hover: hover) and (pointer: fine) {
|
|
38
|
+
.Contents_Link:hover {
|
|
39
|
+
color: var(--text);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.Contents_Link-on {
|
|
43
|
+
border-color: var(--accent);
|
|
44
|
+
color: var(--text);
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
}
|
|
47
|
+
.Contents_Menu {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
.Contents_Summary {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: var(--half-gap);
|
|
54
|
+
min-height: var(--tap);
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
list-style: none;
|
|
58
|
+
}
|
|
59
|
+
.Contents_Summary::-webkit-details-marker {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
.Contents_Summary::after {
|
|
63
|
+
content: '';
|
|
64
|
+
width: .4em;
|
|
65
|
+
height: .4em;
|
|
66
|
+
border: solid currentColor;
|
|
67
|
+
border-width: 0 2px 2px 0;
|
|
68
|
+
transform: rotate(45deg);
|
|
69
|
+
transition: transform .15s;
|
|
70
|
+
}
|
|
71
|
+
.Contents_Menu[open] > .Contents_Summary::after {
|
|
72
|
+
transform: rotate(225deg);
|
|
73
|
+
}
|
|
74
|
+
.Contents_Menu > .Contents_List {
|
|
75
|
+
margin-top: var(--half-gap);
|
|
76
|
+
}
|
|
77
|
+
/* Wider than a column: the contents is across the top of the page, a phone's
|
|
78
|
+
menu. */
|
|
79
|
+
@container (min-width: 20rem) {
|
|
80
|
+
.Contents_Label,
|
|
81
|
+
.Contents > .Contents_List {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
.Contents_Menu {
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
87
|
+
}
|
package/Contents.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What is on this page, as a list of its sections: an entry each, linking to
|
|
3
|
+
* its section's anchor, the section in view wearing `Link-on` (and
|
|
4
|
+
* `aria-current="location"`). It is drawn twice from the same entries: a
|
|
5
|
+
* `List` for a column beside the page, and a `Menu`, a fold under one "On
|
|
6
|
+
* this page" line, for a phone, which shows one of the two by its width.
|
|
7
|
+
*
|
|
8
|
+
* `contents(entries)` draws it from entries the caller has. Given none and a
|
|
9
|
+
* `from` selector instead, it is an empty frame the browser fills from the
|
|
10
|
+
* headings the selector names (@yaks/ui/contents `fill`). Lighting the entry
|
|
11
|
+
* in view is the browser's too (@yaks/ui/contents `watch`).
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
|
|
15
|
+
import { block } from "./el.js";
|
|
16
|
+
/** A table of contents. */ export let Contents = block('nav', 'Contents', {
|
|
17
|
+
Label: 'p',
|
|
18
|
+
List: 'ul',
|
|
19
|
+
Item: 'li',
|
|
20
|
+
Link: 'a',
|
|
21
|
+
Menu: 'details',
|
|
22
|
+
Summary: 'summary'
|
|
23
|
+
});
|
|
24
|
+
let list = (entries, on)=>/*#__PURE__*/ h(Contents.List, {}, entries.map((e)=>/*#__PURE__*/ h(Contents.Item, {
|
|
25
|
+
key: e.id,
|
|
26
|
+
mod: e.sub && 'sub'
|
|
27
|
+
}, /*#__PURE__*/ h(Contents.Link, {
|
|
28
|
+
href: `#${e.id}`,
|
|
29
|
+
mod: e.id == on && 'on',
|
|
30
|
+
'aria-current': e.id == on ? 'location' : undefined
|
|
31
|
+
}, e.label))));
|
|
32
|
+
/** The contents of a page, drawn from its sections. */ export let contents = ({ entries = [], from, on, label = 'On this page', ...at })=>/*#__PURE__*/ h(Contents, {
|
|
33
|
+
className: at.className ?? at.class,
|
|
34
|
+
'aria-label': label,
|
|
35
|
+
'data-contents': from ?? '',
|
|
36
|
+
hidden: from && !entries.length ? true : undefined
|
|
37
|
+
}, /*#__PURE__*/ h(Contents.Label, {}, label), list(entries, on), /*#__PURE__*/ h(Contents.Menu, {}, /*#__PURE__*/ h(Contents.Summary, {}, label), list(entries, on)));
|
|
38
|
+
/** What it is, in a line. */ export let description = 'What is on this page, the section in view lit, a jump to any of it.';
|
|
39
|
+
/** A link a line, quiet until it is the section in view. */ export let sheet = (c)=>({
|
|
40
|
+
Contents_Label: {
|
|
41
|
+
bold: true
|
|
42
|
+
},
|
|
43
|
+
Contents_Link: {
|
|
44
|
+
block: true,
|
|
45
|
+
fg: c.muted
|
|
46
|
+
},
|
|
47
|
+
'Contents_Link-on': {
|
|
48
|
+
fg: c.text,
|
|
49
|
+
bold: true
|
|
50
|
+
},
|
|
51
|
+
'Contents_Item-sub': {
|
|
52
|
+
indent: 2
|
|
53
|
+
},
|
|
54
|
+
Contents_Menu: {
|
|
55
|
+
hidden: true
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
/** Parts of this guide, the second in view, and one within it. */ export let specimens = ()=>[
|
|
59
|
+
[
|
|
60
|
+
'Contents, Label, List, Item, Item-sub, Link, Link-on, Menu, Summary',
|
|
61
|
+
contents({
|
|
62
|
+
on: 'SideNav',
|
|
63
|
+
entries: [
|
|
64
|
+
{
|
|
65
|
+
id: 'Tabs',
|
|
66
|
+
label: 'Tabs'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'SideNav',
|
|
70
|
+
label: 'SideNav'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'Contents',
|
|
74
|
+
label: 'Contents',
|
|
75
|
+
sub: true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 'Card',
|
|
79
|
+
label: 'Card'
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=Contents.js.map
|
package/Contents.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Contents.js","sources":["./Contents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;CAaC,GAGD,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAA6C;AAClH,SAAS,KAAK,kBAA4B;AAG1C,yBAAyB,GACzB,OAAO,IAAI,WAKL,MAAM,OAAO,YAAY;EAC3B,OAAO;EACP,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACN,SAAS;AACX,GAAE;AAiBJ,IAAI,OAAO,CAAC,SAAkB,mBAC5B,EACE,SAAS,IAAI,EACb,CAAC,GACD,QAAQ,GAAG,CAAC,CAAC,kBACX,EACE,SAAS,IAAI,EACb;MAAE,KAAK,EAAE,EAAE;MAAE,KAAK,EAAE,GAAG,IAAI;IAAM,iBACjC,EAAE,SAAS,IAAI,EAAE;MACf,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE;MAChB,KAAK,EAAE,EAAE,IAAI,MAAM;MACnB,gBAAgB,EAAE,EAAE,IAAI,KAAK,aAAa;IAC5C,GAAG,EAAE,KAAK;AAKlB,qDAAqD,GACrD,OAAO,IAAI,WAAW,CACpB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,cAAc,EAAE,GAAG,IAAW,iBAEhE,EACE,UACA;IACE,WAAW,GAAG,SAAS,IAAI,GAAG,KAAK;IACnC,cAAc;IACd,iBAAiB,QAAQ;IACzB,QAAQ,QAAQ,CAAC,QAAQ,MAAM,GAAG,OAAO;EAC3C,iBACA,EAAE,SAAS,KAAK,EAAE,CAAC,GAAG,QACtB,KAAK,SAAS,mBACd,EACE,SAAS,IAAI,EACb,CAAC,iBACD,EAAE,SAAS,OAAO,EAAE,CAAC,GAAG,QACxB,KAAK,SAAS,MAEjB;AAEH,2BAA2B,GAC3B,OAAO,IAAI,cACT,sEAAqE;AAEvE,0DAA0D,GAC1D,OAAO,IAAI,QAAQ,CAAC,IAAqB,CAAC;IACxC,gBAAgB;MAAE,MAAM;IAAK;IAC7B,eAAe;MAAE,OAAO;MAAM,IAAI,EAAE,KAAK;IAAC;IAC1C,oBAAoB;MAAE,IAAI,EAAE,IAAI;MAAE,MAAM;IAAK;IAC7C,qBAAqB;MAAE,QAAQ;IAAE;IACjC,eAAe;MAAE,QAAQ;IAAK;EAChC,CAAC,EAAC;AAEF,gEAAgE,GAChE,OAAO,IAAI,YAAY,IAAkB;IACvC;MACE;MACA,SAAS;QACP,IAAI;QACJ,SAAS;UACP;YAAE,IAAI;YAAQ,OAAO;UAAO;UAC5B;YAAE,IAAI;YAAW,OAAO;UAAU;UAClC;YAAE,IAAI;YAAY,OAAO;YAAY,KAAK;UAAK;UAC/C;YAAE,IAAI;YAAQ,OAAO;UAAO;SAC7B;MACH;KACD;GACF,CAAA"}
|
package/Contents.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What is on this page, as a list of its sections: an entry each, linking to
|
|
3
|
+
* its section's anchor, the section in view wearing `Link-on` (and
|
|
4
|
+
* `aria-current="location"`). It is drawn twice from the same entries: a
|
|
5
|
+
* `List` for a column beside the page, and a `Menu`, a fold under one "On
|
|
6
|
+
* this page" line, for a phone, which shows one of the two by its width.
|
|
7
|
+
*
|
|
8
|
+
* `contents(entries)` draws it from entries the caller has. Given none and a
|
|
9
|
+
* `from` selector instead, it is an empty frame the browser fills from the
|
|
10
|
+
* headings the selector names (@yaks/ui/contents `fill`). Lighting the entry
|
|
11
|
+
* in view is the browser's too (@yaks/ui/contents `watch`).
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import type { Sheet } from './sheet.ts'
|
|
17
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h, type ReactElement } from 'react'
|
|
18
|
+
import { block, type Part } from './el.js'
|
|
19
|
+
import type { Colors, Specimen } from './theme.ts'
|
|
20
|
+
|
|
21
|
+
/** A table of contents. */
|
|
22
|
+
export let Contents:
|
|
23
|
+
& Part
|
|
24
|
+
& Record<
|
|
25
|
+
'Label' | 'List' | 'Item' | 'Link' | 'Menu' | 'Summary',
|
|
26
|
+
Part
|
|
27
|
+
> = block('nav', 'Contents', {
|
|
28
|
+
Label: 'p',
|
|
29
|
+
List: 'ul',
|
|
30
|
+
Item: 'li',
|
|
31
|
+
Link: 'a',
|
|
32
|
+
Menu: 'details',
|
|
33
|
+
Summary: 'summary',
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
/** One section: the anchor it is at, and its heading's words. A `sub` one
|
|
37
|
+
* is a section within the one before it. */
|
|
38
|
+
export type Entry = { id: string; label: string; sub?: boolean }
|
|
39
|
+
|
|
40
|
+
/** What a contents list is drawn from: its entries, or the selector of the
|
|
41
|
+
* headings the browser makes them from; `on` is the entry lit. */
|
|
42
|
+
export type Drawn = {
|
|
43
|
+
entries?: Entry[]
|
|
44
|
+
from?: string
|
|
45
|
+
on?: string
|
|
46
|
+
label?: string
|
|
47
|
+
className?: string
|
|
48
|
+
class?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let list = (entries: Entry[], on?: string) =>
|
|
52
|
+
h(
|
|
53
|
+
Contents.List,
|
|
54
|
+
{},
|
|
55
|
+
entries.map((e) =>
|
|
56
|
+
h(
|
|
57
|
+
Contents.Item,
|
|
58
|
+
{ key: e.id, mod: e.sub && 'sub' },
|
|
59
|
+
h(Contents.Link, {
|
|
60
|
+
href: `#${e.id}`,
|
|
61
|
+
mod: e.id == on && 'on',
|
|
62
|
+
'aria-current': e.id == on ? 'location' : undefined,
|
|
63
|
+
}, e.label),
|
|
64
|
+
)
|
|
65
|
+
),
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
/** The contents of a page, drawn from its sections. */
|
|
69
|
+
export let contents = (
|
|
70
|
+
{ entries = [], from, on, label = 'On this page', ...at }: Drawn,
|
|
71
|
+
): ReactElement =>
|
|
72
|
+
h(
|
|
73
|
+
Contents,
|
|
74
|
+
{
|
|
75
|
+
className: at.className ?? at.class,
|
|
76
|
+
'aria-label': label,
|
|
77
|
+
'data-contents': from ?? '',
|
|
78
|
+
hidden: from && !entries.length ? true : undefined,
|
|
79
|
+
},
|
|
80
|
+
h(Contents.Label, {}, label),
|
|
81
|
+
list(entries, on),
|
|
82
|
+
h(
|
|
83
|
+
Contents.Menu,
|
|
84
|
+
{},
|
|
85
|
+
h(Contents.Summary, {}, label),
|
|
86
|
+
list(entries, on),
|
|
87
|
+
),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
/** What it is, in a line. */
|
|
91
|
+
export let description =
|
|
92
|
+
'What is on this page, the section in view lit, a jump to any of it.'
|
|
93
|
+
|
|
94
|
+
/** A link a line, quiet until it is the section in view. */
|
|
95
|
+
export let sheet = (c: Colors): Sheet => ({
|
|
96
|
+
Contents_Label: { bold: true },
|
|
97
|
+
Contents_Link: { block: true, fg: c.muted },
|
|
98
|
+
'Contents_Link-on': { fg: c.text, bold: true },
|
|
99
|
+
'Contents_Item-sub': { indent: 2 },
|
|
100
|
+
Contents_Menu: { hidden: true },
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
/** Parts of this guide, the second in view, and one within it. */
|
|
104
|
+
export let specimens = (): Specimen[] => [
|
|
105
|
+
[
|
|
106
|
+
'Contents, Label, List, Item, Item-sub, Link, Link-on, Menu, Summary',
|
|
107
|
+
contents({
|
|
108
|
+
on: 'SideNav',
|
|
109
|
+
entries: [
|
|
110
|
+
{ id: 'Tabs', label: 'Tabs' },
|
|
111
|
+
{ id: 'SideNav', label: 'SideNav' },
|
|
112
|
+
{ id: 'Contents', label: 'Contents', sub: true },
|
|
113
|
+
{ id: 'Card', label: 'Card' },
|
|
114
|
+
],
|
|
115
|
+
}),
|
|
116
|
+
],
|
|
117
|
+
]
|
package/Copy.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* Words to copy, in the mono face on a faint wash, selected whole at a
|
|
2
|
+
press, and the button beside them, its own width, drawn as a copy glyph
|
|
3
|
+
that turns to a check once they are copied. */
|
|
4
|
+
.Copy {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--half-gap);
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
.Copy_Text {
|
|
11
|
+
flex: 1;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
padding: 2px var(--half-gap);
|
|
14
|
+
border-radius: var(--radius);
|
|
15
|
+
background: var(--soft);
|
|
16
|
+
color: var(--text);
|
|
17
|
+
font-family: var(--mono);
|
|
18
|
+
font-size: var(--small);
|
|
19
|
+
overflow-wrap: anywhere;
|
|
20
|
+
user-select: all;
|
|
21
|
+
}
|
|
22
|
+
.Copy_Go {
|
|
23
|
+
flex: none;
|
|
24
|
+
}
|
|
25
|
+
.Copy:not(.Copy-copied) .Copy_Icon-done,
|
|
26
|
+
.Copy-copied .Copy_Icon:not(.Copy_Icon-done) {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
package/Copy.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Words to paste somewhere else (an address, a command, a key), in the mono
|
|
3
|
+
* face, and the button that copies them beside it:
|
|
4
|
+
* `<Copy what='the link'>https://yaks.app/agent</Copy>`. The button is a
|
|
5
|
+
* `Button` wearing `Copy_Go`, drawn as Lucide's copy glyph, and its label is
|
|
6
|
+
* `Copy` and `what`. `Copy-copied` draws a check in its place, for the moment
|
|
7
|
+
* after a copy. The words select whole at a press. What the button does is
|
|
8
|
+
* the caller's; `go` is anything more it takes (`hidden`, a handler).
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
|
|
12
|
+
// @ts-types="./lucide.d.ts"
|
|
13
|
+
import copy from "lucide/dist/esm/icons/copy.mjs";
|
|
14
|
+
// @ts-types="./lucide.d.ts"
|
|
15
|
+
import check from "lucide/dist/esm/icons/check.mjs";
|
|
16
|
+
import { block } from "./el.js";
|
|
17
|
+
import { Button } from "./Button.js";
|
|
18
|
+
import { Icon } from "./Icon.js";
|
|
19
|
+
let Box = block('span', 'Copy', {
|
|
20
|
+
Text: 'span',
|
|
21
|
+
Go: Button
|
|
22
|
+
});
|
|
23
|
+
/** Words to copy, and the button that copies them. */ export let Copy = ({ what, go, children, ...props })=>/*#__PURE__*/ h(Box, props, /*#__PURE__*/ h(Box.Text, null, children), /*#__PURE__*/ h(Box.Go, {
|
|
24
|
+
type: 'button',
|
|
25
|
+
'aria-label': what ? `Copy ${what}` : 'Copy',
|
|
26
|
+
title: 'Copy',
|
|
27
|
+
...go
|
|
28
|
+
}, /*#__PURE__*/ h(Icon, {
|
|
29
|
+
of: copy,
|
|
30
|
+
className: 'Copy_Icon'
|
|
31
|
+
}), /*#__PURE__*/ h(Icon, {
|
|
32
|
+
of: check,
|
|
33
|
+
className: 'Copy_Icon Copy_Icon-done'
|
|
34
|
+
})));
|
|
35
|
+
/** What it is, in a line. */ export let description = 'Words to paste elsewhere, in the mono face, and the button that copies them.';
|
|
36
|
+
/** The words; a terminal has no button to click, so it shows only them. */ export let sheet = (c)=>({
|
|
37
|
+
Copy: {
|
|
38
|
+
spaced: true
|
|
39
|
+
},
|
|
40
|
+
Copy_Text: {
|
|
41
|
+
fg: c.text
|
|
42
|
+
},
|
|
43
|
+
Copy_Go: {
|
|
44
|
+
hidden: true
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
/** A command to paste, and the moment after it is copied. */ export let specimens = ()=>[
|
|
48
|
+
[
|
|
49
|
+
'Copy',
|
|
50
|
+
/*#__PURE__*/ h(Copy, {
|
|
51
|
+
what: 'the command'
|
|
52
|
+
}, 'claude mcp add --transport http yaks https://yaks.app/mcp')
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
'Copy-copied',
|
|
56
|
+
/*#__PURE__*/ h(Copy, {
|
|
57
|
+
mod: 'copied',
|
|
58
|
+
what: 'the link'
|
|
59
|
+
}, 'https://yaks.app/agent')
|
|
60
|
+
]
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=Copy.js.map
|
package/Copy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Copy.js","sources":["./Copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;CAUC,GAGD,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAAkD;AACvH,4BAA4B;AAC5B,OAAO,2CAAqD;AAC5D,4BAA4B;AAC5B,OAAO,6CAAuD;AAC9D,SAAS,KAAK,kBAA6B;AAC3C,SAAS,MAAM,sBAAqB;AACpC,SAAS,IAAI,oBAAmB;AAGhC,IAAI,MAAM,MAAM,QAAQ,QAAQ;EAAE,MAAM;EAAQ,IAAI;AAAO;AAM3D,oDAAoD,GACpD,OAAO,IAAI,OAAqC,CAC9C,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,OAAO,iBAEhC,EACE,KACA,qBACA,EAAE,IAAI,IAAI,EAAE,MAAM,yBAClB,EACE,IAAI,EAAE,EACN;IACE,MAAM;IACN,cAAc,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG;IACtC,OAAO;IACP,GAAG,EAAE;EACP,iBACA,EAAE,MAAM;IAAE,IAAI;IAAM,WAAW;EAAY,kBAC3C,EAAE,MAAM;IAAE,IAAI;IAAO,WAAW;EAA2B,KAE9D;AAEH,2BAA2B,GAC3B,OAAO,IAAI,cACT,+EAA8E;AAEhF,yEAAyE,GACzE,OAAO,IAAI,QAAQ,CAAC,IAAqB,CAAC;IACxC,MAAM;MAAE,QAAQ;IAAK;IACrB,WAAW;MAAE,IAAI,EAAE,IAAI;IAAC;IACxB,SAAS;MAAE,QAAQ;IAAK;EAC1B,CAAC,EAAC;AAEF,2DAA2D,GAC3D,OAAO,IAAI,YAAY,IAAkB;IACvC;MACE;oBACA,EACE,MACA;QAAE,MAAM;MAAc,GACtB;KAEH;IACD;MACE;oBACA,EAAE,MAAM;QAAE,KAAK;QAAU,MAAM;MAAW,GAAG;KAC9C;GACF,CAAA"}
|