@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/Form.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A form: each `Form.Field` its `Label` over its control over its `Hint`, on
|
|
3
|
+
* one left edge and one width, and what sends it at the end, in
|
|
4
|
+
* `Form.Actions`. A field never trails a sentence: what explains it is its
|
|
5
|
+
* hint, under it. A label says a field may be left empty in a
|
|
6
|
+
* `Form.Optional` beside its words. `Form.Line` keeps one field and the
|
|
7
|
+
* button that sends it on one line while they fit. A value nobody may change
|
|
8
|
+
* here (JSON Schema's `readOnly`) is `Form.Value`, its words where a control
|
|
9
|
+
* would be, under a label that is no `label` for: `Form.Value-none` says
|
|
10
|
+
* there is none. `Form.Trap` holds a field people never see, which only a
|
|
11
|
+
* bot fills in. A few choices are `Pills` in a `Form.Field as='fieldset'`
|
|
12
|
+
* under a `Form.Label as='legend'`. A `More` in `Form.Actions` (a note to
|
|
13
|
+
* add) takes the row beside the button that sends, and the whole row once
|
|
14
|
+
* opened. What sending does is the caller's.
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { Sheet } from './sheet.ts'
|
|
20
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h, type FunctionComponent } from 'react'
|
|
21
|
+
import { block, type Part, type Props } from './el.js'
|
|
22
|
+
import type { Colors, Specimen } from './theme.ts'
|
|
23
|
+
import { Button } from './Button.js'
|
|
24
|
+
import { drawNativeInput, Field } from './Field.js'
|
|
25
|
+
import { More } from './More.js'
|
|
26
|
+
import { Pills } from './Pills.js'
|
|
27
|
+
|
|
28
|
+
let tags = {
|
|
29
|
+
Field: 'div',
|
|
30
|
+
Label: 'label',
|
|
31
|
+
Optional: 'span',
|
|
32
|
+
Hint: 'p',
|
|
33
|
+
Value: 'p',
|
|
34
|
+
Line: 'div',
|
|
35
|
+
Actions: 'div',
|
|
36
|
+
Trap: 'div',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** A form. */
|
|
40
|
+
export let Form:
|
|
41
|
+
& Part
|
|
42
|
+
& Record<keyof typeof tags, Part>
|
|
43
|
+
& { Hidden: FunctionComponent<Props & { name: string }> } = Object.assign(
|
|
44
|
+
block('form', 'Form', tags),
|
|
45
|
+
{
|
|
46
|
+
Hidden: ({ type: _, ...p }: Props & { name: string }) =>
|
|
47
|
+
drawNativeInput(h, { type: 'hidden', ...p }),
|
|
48
|
+
},
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
type FormDraw<Node, Child> = (
|
|
52
|
+
props: Record<string, unknown> | null,
|
|
53
|
+
...children: Child[]
|
|
54
|
+
) => Node
|
|
55
|
+
|
|
56
|
+
/** The same form parts for a host that builds DOM nodes directly. */
|
|
57
|
+
export let drawFormParts = <Node, Child>(
|
|
58
|
+
draw: (
|
|
59
|
+
tag: string,
|
|
60
|
+
props: Record<string, unknown>,
|
|
61
|
+
...children: Child[]
|
|
62
|
+
) => Node,
|
|
63
|
+
): FormDraw<Node, Child> & Record<keyof typeof tags, FormDraw<Node, Child>> => {
|
|
64
|
+
let part =
|
|
65
|
+
(tag: string, name: string): FormDraw<Node, Child> =>
|
|
66
|
+
(attrs, ...children) => {
|
|
67
|
+
let { as = tag, class: extra, ...props } = attrs ?? {}
|
|
68
|
+
return draw(String(as), {
|
|
69
|
+
...props,
|
|
70
|
+
class: extra ? `${name} ${extra}` : name,
|
|
71
|
+
}, ...children)
|
|
72
|
+
}
|
|
73
|
+
let members = Object.fromEntries(
|
|
74
|
+
Object.entries(tags).map(([key, tag]) => [key, part(tag, `Form_${key}`)]),
|
|
75
|
+
) as Record<keyof typeof tags, FormDraw<Node, Child>>
|
|
76
|
+
return Object.assign(part('form', 'Form'), members)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** What it is, in a line. */
|
|
80
|
+
export let description =
|
|
81
|
+
'A form: each field its label over it and its hint under it, then its send.'
|
|
82
|
+
|
|
83
|
+
/** Each field is lines of its own, a blank line after it; what describes it
|
|
84
|
+
* is muted. */
|
|
85
|
+
export let sheet = (c: Colors): Sheet => ({
|
|
86
|
+
Form_Field: { block: true, gap: true },
|
|
87
|
+
Form_Label: { fg: c.text, bold: true, block: true },
|
|
88
|
+
Form_Optional: { fg: c.muted },
|
|
89
|
+
Form_Hint: { fg: c.muted },
|
|
90
|
+
Form_Value: { fg: c.text, wrap: true },
|
|
91
|
+
'Form_Value-none': { fg: c.dim },
|
|
92
|
+
Form_Line: { spaced: true },
|
|
93
|
+
Form_Actions: { spaced: true },
|
|
94
|
+
Form_Trap: { hidden: true },
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
let { Label, Optional, Hint, Value, Line, Actions } = Form
|
|
98
|
+
|
|
99
|
+
/** A form of two fields, one optional and one on a line with its button, and
|
|
100
|
+
* a value the form shows but does not change; and a choice of pills with a
|
|
101
|
+
* note folded beside its send. */
|
|
102
|
+
export let specimens = (): Specimen[] => [
|
|
103
|
+
[
|
|
104
|
+
'Form, Field, Label, Optional, Hint, Line, Actions',
|
|
105
|
+
h(
|
|
106
|
+
Form,
|
|
107
|
+
{ onSubmit: (e: Event) => e.preventDefault() },
|
|
108
|
+
h(
|
|
109
|
+
Form.Field,
|
|
110
|
+
{},
|
|
111
|
+
h(Label, { for: 'form-service' }, 'Service'),
|
|
112
|
+
h(Field, { id: 'form-service', value: '', placeholder: 'Weather API' }),
|
|
113
|
+
h(Hint, {}, 'The name the key is kept under.'),
|
|
114
|
+
),
|
|
115
|
+
h(
|
|
116
|
+
Form.Field,
|
|
117
|
+
{},
|
|
118
|
+
h(
|
|
119
|
+
Label,
|
|
120
|
+
{ for: 'form-note' },
|
|
121
|
+
'How to get the key ',
|
|
122
|
+
h(Optional, {}, '(optional)'),
|
|
123
|
+
),
|
|
124
|
+
h(Field, {
|
|
125
|
+
id: 'form-note',
|
|
126
|
+
placeholder: 'Describe what this key is used for…',
|
|
127
|
+
lines: true,
|
|
128
|
+
value: '',
|
|
129
|
+
}),
|
|
130
|
+
),
|
|
131
|
+
h(
|
|
132
|
+
Form.Field,
|
|
133
|
+
{},
|
|
134
|
+
h(Label, { as: 'span' }, 'Slug'),
|
|
135
|
+
h(Value, {}, 'weather-api'),
|
|
136
|
+
h(Hint, {}, 'Made from the service, so it is not typed here.'),
|
|
137
|
+
),
|
|
138
|
+
h(
|
|
139
|
+
Form.Field,
|
|
140
|
+
{},
|
|
141
|
+
h(Label, { as: 'span' }, 'Last used'),
|
|
142
|
+
h(Value, { mod: 'none' }, 'None'),
|
|
143
|
+
),
|
|
144
|
+
h(
|
|
145
|
+
Form.Field,
|
|
146
|
+
{},
|
|
147
|
+
h(Label, { for: 'form-tag' }, 'Tag'),
|
|
148
|
+
h(
|
|
149
|
+
Line,
|
|
150
|
+
{},
|
|
151
|
+
h(Field, {
|
|
152
|
+
id: 'form-tag',
|
|
153
|
+
placeholder: 'e.g. weather',
|
|
154
|
+
value: 'weather',
|
|
155
|
+
}),
|
|
156
|
+
h(Button, { type: 'button' }, 'add'),
|
|
157
|
+
),
|
|
158
|
+
),
|
|
159
|
+
h(Actions, {}, h(Button, { type: 'submit', mod: 'go' }, 'Save key')),
|
|
160
|
+
),
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
'Form, Field as fieldset, Pills, Actions holding More',
|
|
164
|
+
h(
|
|
165
|
+
Form,
|
|
166
|
+
{ onSubmit: (e: Event) => e.preventDefault() },
|
|
167
|
+
h(
|
|
168
|
+
Form.Field,
|
|
169
|
+
{ as: 'fieldset' },
|
|
170
|
+
h(Label, { as: 'legend' }, 'Role'),
|
|
171
|
+
h(
|
|
172
|
+
Pills,
|
|
173
|
+
{},
|
|
174
|
+
['Editor', 'Viewer', 'Owner'].map((role, i) =>
|
|
175
|
+
h(
|
|
176
|
+
Pills.Item,
|
|
177
|
+
{ key: role },
|
|
178
|
+
h(Pills.Input, {
|
|
179
|
+
type: 'radio',
|
|
180
|
+
name: 'form-role',
|
|
181
|
+
value: role,
|
|
182
|
+
defaultChecked: !i,
|
|
183
|
+
}),
|
|
184
|
+
role,
|
|
185
|
+
)
|
|
186
|
+
),
|
|
187
|
+
),
|
|
188
|
+
h(Hint, {}, 'Uses and changes every app.'),
|
|
189
|
+
),
|
|
190
|
+
h(
|
|
191
|
+
Actions,
|
|
192
|
+
{},
|
|
193
|
+
h(
|
|
194
|
+
More,
|
|
195
|
+
{},
|
|
196
|
+
h(More.Summary, {}, 'Add a note'),
|
|
197
|
+
h(
|
|
198
|
+
More.Body,
|
|
199
|
+
{},
|
|
200
|
+
h(Field, {
|
|
201
|
+
lines: true,
|
|
202
|
+
'aria-label': 'A note',
|
|
203
|
+
placeholder: 'Tell them why…',
|
|
204
|
+
value: '',
|
|
205
|
+
}),
|
|
206
|
+
),
|
|
207
|
+
),
|
|
208
|
+
h(Button, { type: 'submit', mod: 'go' }, 'Send invitation'),
|
|
209
|
+
),
|
|
210
|
+
),
|
|
211
|
+
],
|
|
212
|
+
]
|
package/Gallery.css
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Things side by side: as many figures to a line as fit, each as wide as
|
|
2
|
+
what it shows asks, and no wider than the line. A figure is its caption,
|
|
3
|
+
small and mono, over a stage: a raised panel with room all round, where
|
|
4
|
+
what is shown sits as it would anywhere else. */
|
|
5
|
+
.Gallery {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
gap: var(--gap);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
}
|
|
11
|
+
.Gallery_Figure {
|
|
12
|
+
flex: 0 1 max-content;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 6px;
|
|
18
|
+
}
|
|
19
|
+
.Gallery_Caption {
|
|
20
|
+
padding: 0 2px;
|
|
21
|
+
font-family: var(--mono);
|
|
22
|
+
font-size: var(--small);
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
color: var(--muted);
|
|
25
|
+
overflow-wrap: anywhere;
|
|
26
|
+
}
|
|
27
|
+
.Gallery_Stage {
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
/* Roomy, and less so on a phone, where the room is the line's. */
|
|
31
|
+
padding: clamp(var(--gap), 4vw, calc(var(--gap) * 1.75));
|
|
32
|
+
background: var(--surface);
|
|
33
|
+
border: 1px solid var(--border);
|
|
34
|
+
border-radius: var(--radius);
|
|
35
|
+
overflow-x: auto; /* what is wider than the line scrolls within its stage */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Even: figures share the line alike, as many as fit at 16rem or more, so
|
|
39
|
+
two to four choices sit side by side and a phone stacks them. */
|
|
40
|
+
.Gallery-even > .Gallery_Figure {
|
|
41
|
+
flex: 1 1 16rem;
|
|
42
|
+
}
|
package/Gallery.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Things side by side, each shown on a `Gallery.Stage` of its own under a
|
|
3
|
+
* `Gallery.Caption` naming it, the two a `Gallery.Figure`. What is shown is
|
|
4
|
+
* the caller's: a part in one of its variants, a picture, a page in small.
|
|
5
|
+
*
|
|
6
|
+
* A browser sets as many figures to a line as fit, each as wide as what it
|
|
7
|
+
* shows asks and growing to fill the line; `even` gives each figure a like
|
|
8
|
+
* share of the line, at least 16rem, whatever it shows. A terminal stacks
|
|
9
|
+
* them, each caption over its stage, the stage indented under it.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
|
|
13
|
+
import { block } from "./el.js";
|
|
14
|
+
import { Button } from "./Button.js";
|
|
15
|
+
import { Chip } from "./Chip.js";
|
|
16
|
+
import { Dot } from "./Dot.js";
|
|
17
|
+
/** A gallery. */ export let Gallery = block('div', 'Gallery', {
|
|
18
|
+
Figure: 'figure',
|
|
19
|
+
Caption: 'figcaption',
|
|
20
|
+
Stage: 'div'
|
|
21
|
+
});
|
|
22
|
+
/** What it is, in a line. */ export let description = 'Things side by side, each on a stage of its own under a caption naming it.';
|
|
23
|
+
/** Each figure its caption, muted, over its stage, indented, then a blank
|
|
24
|
+
* line. */ export let sheet = (c)=>({
|
|
25
|
+
Gallery_Figure: {
|
|
26
|
+
gap: true
|
|
27
|
+
},
|
|
28
|
+
Gallery_Caption: {
|
|
29
|
+
fg: c.muted
|
|
30
|
+
},
|
|
31
|
+
Gallery_Stage: {
|
|
32
|
+
indent: 2
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
let { Figure, Caption, Stage } = Gallery;
|
|
36
|
+
/** Three figures, one wider than the others; and two sharing the line. */ export let specimens = ()=>[
|
|
37
|
+
[
|
|
38
|
+
'Gallery-even',
|
|
39
|
+
/*#__PURE__*/ h(Gallery, {
|
|
40
|
+
mod: 'even'
|
|
41
|
+
}, [
|
|
42
|
+
'First',
|
|
43
|
+
'Second'
|
|
44
|
+
].map((title)=>/*#__PURE__*/ h(Figure, {}, /*#__PURE__*/ h(Stage, {}, /*#__PURE__*/ h(Chip, {}, title.toLowerCase())), /*#__PURE__*/ h(Button, {
|
|
45
|
+
type: 'button'
|
|
46
|
+
}, title))))
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
'Gallery, Figure, Caption, Stage',
|
|
50
|
+
/*#__PURE__*/ h(Gallery, {}, /*#__PURE__*/ h(Figure, {}, /*#__PURE__*/ h(Caption, {}, 'a pip'), /*#__PURE__*/ h(Stage, {}, /*#__PURE__*/ h(Dot, {}))), /*#__PURE__*/ h(Figure, {}, /*#__PURE__*/ h(Caption, {}, 'a name'), /*#__PURE__*/ h(Stage, {}, /*#__PURE__*/ h(Chip, {
|
|
51
|
+
mod: '2'
|
|
52
|
+
}, 'task'))), /*#__PURE__*/ h(Figure, {}, /*#__PURE__*/ h(Caption, {}, 'a press, and a line of words beside it'), /*#__PURE__*/ h(Stage, {}, /*#__PURE__*/ h(Button, {
|
|
53
|
+
type: 'button'
|
|
54
|
+
}, 'save'), ' Keep what was typed.')))
|
|
55
|
+
]
|
|
56
|
+
];
|
|
57
|
+
//# sourceMappingURL=Gallery.js.map
|
package/Gallery.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.js","sources":["./Gallery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;CAWC,GAGD,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAA0B;AAC/F,SAAS,KAAK,kBAA4B;AAE1C,SAAS,MAAM,sBAAqB;AACpC,SAAS,IAAI,oBAAmB;AAChC,SAAS,GAAG,mBAAkB;AAE9B,eAAe,GACf,OAAO,IAAI,UAA+D,MACxE,OACA,WACA;EACE,QAAQ;EACR,SAAS;EACT,OAAO;AACT,GACD;AAED,2BAA2B,GAC3B,OAAO,IAAI,cACT,6EAA4E;AAE9E;SACS,GACT,OAAO,IAAI,QAAQ,CAAC,IAAqB,CAAC;IACxC,gBAAgB;MAAE,KAAK;IAAK;IAC5B,iBAAiB;MAAE,IAAI,EAAE,KAAK;IAAC;IAC/B,eAAe;MAAE,QAAQ;IAAE;EAC7B,CAAC,EAAC;AAEF,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG;AAEjC,wEAAwE,GACxE,OAAO,IAAI,YAAY,IAAkB;IACvC;MACE;oBACA,EACE,SACA;QAAE,KAAK;MAAO,GACd;QAAC;QAAS;OAAS,CAAC,GAAG,CAAC,CAAC,sBACvB,EACE,QACA,CAAC,iBACD,EAAE,OAAO,CAAC,iBAAG,EAAE,MAAM,CAAC,GAAG,MAAM,WAAW,oBAC1C,EAAE,QAAQ;UAAE,MAAM;QAAS,GAAG;KAIrC;IACD;MACE;oBACA,EACE,SACA,CAAC,iBACD,EAAE,QAAQ,CAAC,iBAAG,EAAE,SAAS,CAAC,GAAG,wBAAU,EAAE,OAAO,CAAC,iBAAG,EAAE,KAAK,CAAC,oBAC5D,EACE,QACA,CAAC,iBACD,EAAE,SAAS,CAAC,GAAG,yBACf,EAAE,OAAO,CAAC,iBAAG,EAAE,MAAM;QAAE,KAAK;MAAI,GAAG,yBAErC,EACE,QACA,CAAC,iBACD,EAAE,SAAS,CAAC,GAAG,yDACf,EACE,OACA,CAAC,iBACD,EAAE,QAAQ;QAAE,MAAM;MAAS,GAAG,SAC9B;KAIP;GACF,CAAA"}
|
package/Gallery.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Things side by side, each shown on a `Gallery.Stage` of its own under a
|
|
3
|
+
* `Gallery.Caption` naming it, the two a `Gallery.Figure`. What is shown is
|
|
4
|
+
* the caller's: a part in one of its variants, a picture, a page in small.
|
|
5
|
+
*
|
|
6
|
+
* A browser sets as many figures to a line as fit, each as wide as what it
|
|
7
|
+
* shows asks and growing to fill the line; `even` gives each figure a like
|
|
8
|
+
* share of the line, at least 16rem, whatever it shows. A terminal stacks
|
|
9
|
+
* them, each caption over its stage, the stage indented under it.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type { Sheet } from './sheet.ts'
|
|
15
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from 'react'
|
|
16
|
+
import { block, type Part } from './el.js'
|
|
17
|
+
import type { Colors, Specimen } from './theme.ts'
|
|
18
|
+
import { Button } from './Button.js'
|
|
19
|
+
import { Chip } from './Chip.js'
|
|
20
|
+
import { Dot } from './Dot.js'
|
|
21
|
+
|
|
22
|
+
/** A gallery. */
|
|
23
|
+
export let Gallery: Part & Record<'Figure' | 'Caption' | 'Stage', Part> = block(
|
|
24
|
+
'div',
|
|
25
|
+
'Gallery',
|
|
26
|
+
{
|
|
27
|
+
Figure: 'figure',
|
|
28
|
+
Caption: 'figcaption',
|
|
29
|
+
Stage: 'div',
|
|
30
|
+
},
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
/** What it is, in a line. */
|
|
34
|
+
export let description =
|
|
35
|
+
'Things side by side, each on a stage of its own under a caption naming it.'
|
|
36
|
+
|
|
37
|
+
/** Each figure its caption, muted, over its stage, indented, then a blank
|
|
38
|
+
* line. */
|
|
39
|
+
export let sheet = (c: Colors): Sheet => ({
|
|
40
|
+
Gallery_Figure: { gap: true },
|
|
41
|
+
Gallery_Caption: { fg: c.muted },
|
|
42
|
+
Gallery_Stage: { indent: 2 },
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
let { Figure, Caption, Stage } = Gallery
|
|
46
|
+
|
|
47
|
+
/** Three figures, one wider than the others; and two sharing the line. */
|
|
48
|
+
export let specimens = (): Specimen[] => [
|
|
49
|
+
[
|
|
50
|
+
'Gallery-even',
|
|
51
|
+
h(
|
|
52
|
+
Gallery,
|
|
53
|
+
{ mod: 'even' },
|
|
54
|
+
['First', 'Second'].map((title) =>
|
|
55
|
+
h(
|
|
56
|
+
Figure,
|
|
57
|
+
{},
|
|
58
|
+
h(Stage, {}, h(Chip, {}, title.toLowerCase())),
|
|
59
|
+
h(Button, { type: 'button' }, title),
|
|
60
|
+
)
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
'Gallery, Figure, Caption, Stage',
|
|
66
|
+
h(
|
|
67
|
+
Gallery,
|
|
68
|
+
{},
|
|
69
|
+
h(Figure, {}, h(Caption, {}, 'a pip'), h(Stage, {}, h(Dot, {}))),
|
|
70
|
+
h(
|
|
71
|
+
Figure,
|
|
72
|
+
{},
|
|
73
|
+
h(Caption, {}, 'a name'),
|
|
74
|
+
h(Stage, {}, h(Chip, { mod: '2' }, 'task')),
|
|
75
|
+
),
|
|
76
|
+
h(
|
|
77
|
+
Figure,
|
|
78
|
+
{},
|
|
79
|
+
h(Caption, {}, 'a press, and a line of words beside it'),
|
|
80
|
+
h(
|
|
81
|
+
Stage,
|
|
82
|
+
{},
|
|
83
|
+
h(Button, { type: 'button' }, 'save'),
|
|
84
|
+
' Keep what was typed.',
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
],
|
|
89
|
+
]
|
package/Group.css
ADDED
package/Group.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A heading over a run of cards that belong together: `<Group>
|
|
3
|
+
* yourname.yaks.app</Group>`, then the cards. It names what they share and
|
|
4
|
+
* steps back from what they say.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/ /* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from "react";
|
|
8
|
+
import { Card } from "./Card.js";
|
|
9
|
+
import { el } from "./el.js";
|
|
10
|
+
import { Stack } from "./Stack.js";
|
|
11
|
+
/** A heading over cards. */ export let Group = el('h2', 'Group');
|
|
12
|
+
/** What it is, in a line. */ export let description = 'A heading over a run of cards that belong together.';
|
|
13
|
+
/** A muted line of its own. */ export let sheet = (c)=>({
|
|
14
|
+
Group: {
|
|
15
|
+
fg: c.muted
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
let card = (title)=>/*#__PURE__*/ h(Card, {}, /*#__PURE__*/ h(Card.Head, {}, /*#__PURE__*/ h(Card.Title, {}, title)));
|
|
19
|
+
/** A heading over the two cards it names. */ export let specimens = ()=>[
|
|
20
|
+
[
|
|
21
|
+
'Group',
|
|
22
|
+
/*#__PURE__*/ h(Stack, null, /*#__PURE__*/ h(Group, {}, 'yourname.yaks.app'), card('Recipe Box'), card('Shop'))
|
|
23
|
+
]
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=Group.js.map
|
package/Group.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Group.js","sources":["./Group.ts"],"names":[],"mappings":"AAAA;;;;;;CAMC,GAGD,uCAAuC,GAAG,SAAS,iBAAiB,CAAC,gBAA0B;AAC/F,SAAS,IAAI,oBAAmB;AAChC,SAAS,EAAE,kBAA4B;AACvC,SAAS,KAAK,qBAAoB;AAGlC,0BAA0B,GAC1B,OAAO,IAAI,QAAc,GAAG,MAAM,SAAQ;AAE1C,2BAA2B,GAC3B,OAAO,IAAI,cAAc,sDAAqD;AAE9E,6BAA6B,GAC7B,OAAO,IAAI,QAAQ,CAAC,IAAqB,CAAC;IAAE,OAAO;MAAE,IAAI,EAAE,KAAK;IAAC;EAAE,CAAC,EAAC;AAErE,IAAI,OAAO,CAAC,sBACV,EAAE,MAAM,CAAC,iBAAG,EAAE,KAAK,IAAI,EAAE,CAAC,iBAAG,EAAE,KAAK,KAAK,EAAE,CAAC,GAAG;AAEjD,2CAA2C,GAC3C,OAAO,IAAI,YAAY,IAAkB;IACvC;MACE;oBACA,EACE,OACA,oBACA,EAAE,OAAO,CAAC,GAAG,sBACb,KAAK,eACL,KAAK;KAER;GACF,CAAA"}
|
package/Group.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A heading over a run of cards that belong together: `<Group>
|
|
3
|
+
* yourname.yaks.app</Group>`, then the cards. It names what they share and
|
|
4
|
+
* steps back from what they say.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { Sheet } from './sheet.ts'
|
|
10
|
+
/* @ts-types="npm:@types/react@19.3.0" */ import { createElement as h } from 'react'
|
|
11
|
+
import { Card } from './Card.js'
|
|
12
|
+
import { el, type Part } from './el.js'
|
|
13
|
+
import { Stack } from './Stack.js'
|
|
14
|
+
import type { Colors, Specimen } from './theme.ts'
|
|
15
|
+
|
|
16
|
+
/** A heading over cards. */
|
|
17
|
+
export let Group: Part = el('h2', 'Group')
|
|
18
|
+
|
|
19
|
+
/** What it is, in a line. */
|
|
20
|
+
export let description = 'A heading over a run of cards that belong together.'
|
|
21
|
+
|
|
22
|
+
/** A muted line of its own. */
|
|
23
|
+
export let sheet = (c: Colors): Sheet => ({ Group: { fg: c.muted } })
|
|
24
|
+
|
|
25
|
+
let card = (title: string) =>
|
|
26
|
+
h(Card, {}, h(Card.Head, {}, h(Card.Title, {}, title)))
|
|
27
|
+
|
|
28
|
+
/** A heading over the two cards it names. */
|
|
29
|
+
export let specimens = (): Specimen[] => [
|
|
30
|
+
[
|
|
31
|
+
'Group',
|
|
32
|
+
h(
|
|
33
|
+
Stack,
|
|
34
|
+
null,
|
|
35
|
+
h(Group, {}, 'yourname.yaks.app'),
|
|
36
|
+
card('Recipe Box'),
|
|
37
|
+
card('Shop'),
|
|
38
|
+
),
|
|
39
|
+
],
|
|
40
|
+
]
|
package/Head.css
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* The top of a page: the title large and ink, with its id and kind small
|
|
2
|
+
beside it; what it is under it, muted; then the facts, small and muted,
|
|
3
|
+
dotted apart. Whatever follows it starts a gap below. */
|
|
4
|
+
.Head {
|
|
5
|
+
display: grid;
|
|
6
|
+
gap: 4px;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
.Head + * {
|
|
10
|
+
margin-top: var(--gap);
|
|
11
|
+
}
|
|
12
|
+
.Head_Title {
|
|
13
|
+
margin: 0;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: baseline;
|
|
17
|
+
gap: 0 var(--half-gap);
|
|
18
|
+
min-width: 0;
|
|
19
|
+
font-size: var(--h1);
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
line-height: 1.3;
|
|
22
|
+
color: var(--heading);
|
|
23
|
+
overflow-wrap: anywhere;
|
|
24
|
+
}
|
|
25
|
+
a.Head_Title {
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
}
|
|
28
|
+
.Head_Link {
|
|
29
|
+
color: inherit;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
}
|
|
32
|
+
@media (hover: hover) and (pointer: fine) {
|
|
33
|
+
a.Head_Title:hover,
|
|
34
|
+
.Head_Link:hover {
|
|
35
|
+
text-decoration: underline;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.Head_Id,
|
|
39
|
+
.Head_Kind {
|
|
40
|
+
font-size: var(--small);
|
|
41
|
+
font-weight: normal;
|
|
42
|
+
color: var(--muted);
|
|
43
|
+
}
|
|
44
|
+
.Head_Id {
|
|
45
|
+
font-family: var(--mono);
|
|
46
|
+
}
|
|
47
|
+
.Head_Sub {
|
|
48
|
+
margin: 0;
|
|
49
|
+
color: var(--muted);
|
|
50
|
+
max-width: var(--measure);
|
|
51
|
+
}
|
|
52
|
+
.Head_Sub-refused {
|
|
53
|
+
color: var(--negative);
|
|
54
|
+
}
|
|
55
|
+
.Head_Facts {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
align-items: baseline;
|
|
59
|
+
gap: 2px var(--half-gap);
|
|
60
|
+
font-size: var(--small);
|
|
61
|
+
color: var(--muted);
|
|
62
|
+
}
|
|
63
|
+
.Head_Sep {
|
|
64
|
+
color: var(--dim);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.Head_Eyebrow {
|
|
68
|
+
margin: 0;
|
|
69
|
+
color: var(--muted);
|
|
70
|
+
font-size: var(--fine, var(--small));
|
|
71
|
+
}
|
|
72
|
+
.Head_Row {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
gap: var(--half-gap);
|
|
77
|
+
min-width: 0;
|
|
78
|
+
}
|
|
79
|
+
.Head_Actions {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: flex-end;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
gap: var(--half-gap);
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
}
|
|
86
|
+
.Head_Title-page {
|
|
87
|
+
font-size: 1.75rem;
|
|
88
|
+
line-height: 1.2;
|
|
89
|
+
margin: .15rem 0 0;
|
|
90
|
+
}
|
|
91
|
+
.Head_Period {
|
|
92
|
+
margin: .25rem 0 0;
|
|
93
|
+
font-size: var(--small);
|
|
94
|
+
}
|
|
95
|
+
.Head_Address {
|
|
96
|
+
font-size: var(--fine, var(--small));
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
color: var(--muted);
|
|
99
|
+
}
|
|
100
|
+
@media (max-width: 700px) {
|
|
101
|
+
.Head_Title-page {
|
|
102
|
+
font-size: 1.5rem;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Head_Title-page {
|
|
107
|
+
font-weight: 800;
|
|
108
|
+
}
|