@sdxc/ui 2026.11.26 → 2026.11.29
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/README.md +265 -162
- package/dist/app/app-shell.d.ts +85 -50
- package/dist/app/app-shell.js +419 -222
- package/dist/app/auto-refresh.d.ts +68 -51
- package/dist/app/auto-refresh.js +193 -61
- package/dist/app/board.d.ts +40 -17
- package/dist/app/board.js +173 -88
- package/dist/app/chart.d.ts +10 -63
- package/dist/app/chart.js +22 -29
- package/dist/app/code-view.d.ts +12 -11
- package/dist/app/code-view.js +83 -19
- package/dist/app/command-palette.d.ts +61 -33
- package/dist/app/command-palette.js +178 -32
- package/dist/app/contribution-graph.d.ts +30 -14
- package/dist/app/contribution-graph.js +87 -26
- package/dist/app/danger-zone.d.ts +40 -35
- package/dist/app/danger-zone.js +177 -34
- package/dist/app/detail-sheet.d.ts +42 -51
- package/dist/app/detail-sheet.js +156 -37
- package/dist/app/diff.d.ts +6 -5
- package/dist/app/diff.js +9 -6
- package/dist/app/drop-zone.d.ts +3 -13
- package/dist/app/drop-zone.js +2 -2
- package/dist/app/editor-layout.d.ts +69 -47
- package/dist/app/editor-layout.js +256 -115
- package/dist/app/empty.d.ts +16 -12
- package/dist/app/empty.js +45 -19
- package/dist/app/file-trigger.d.ts +5 -13
- package/dist/app/file-trigger.js +3 -4
- package/dist/app/filter-bar.d.ts +182 -120
- package/dist/app/filter-bar.js +509 -161
- package/dist/app/filter-menu.d.ts +51 -33
- package/dist/app/filter-menu.js +105 -40
- package/dist/app/gantt.d.ts +67 -27
- package/dist/app/gantt.js +320 -163
- package/dist/app/grid-list.d.ts +2 -15
- package/dist/app/grid-list.js +3 -3
- package/dist/app/merge-box.d.ts +58 -52
- package/dist/app/merge-box.js +107 -46
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +2 -2
- package/dist/app/mixins/optimistic-toggle-sync.js +3 -2
- package/dist/app/mixins/range-picker-keys.d.ts +1 -1
- package/dist/app/mixins/range-picker-keys.js +1 -1
- package/dist/app/mixins/save-bar-sync.d.ts +1 -1
- package/dist/app/mixins/save-bar-sync.js +3 -2
- package/dist/app/mixins/split-view.d.ts +3 -1
- package/dist/app/mixins/split-view.js +16 -8
- package/dist/app/optimistic-toggle.d.ts +65 -37
- package/dist/app/optimistic-toggle.js +38 -15
- package/dist/app/page-header.d.ts +80 -58
- package/dist/app/page-header.js +329 -154
- package/dist/app/profile-picker.d.ts +31 -24
- package/dist/app/profile-picker.js +134 -58
- package/dist/app/range-picker.d.ts +62 -59
- package/dist/app/range-picker.js +124 -37
- package/dist/app/review-thread.d.ts +69 -66
- package/dist/app/review-thread.js +203 -53
- package/dist/app/save-bar.d.ts +56 -27
- package/dist/app/save-bar.js +66 -14
- package/dist/app/selection-bar.d.ts +64 -66
- package/dist/app/selection-bar.js +157 -56
- package/dist/app/settings-layout.d.ts +65 -52
- package/dist/app/settings-layout.js +198 -71
- package/dist/app/settings-section.d.ts +86 -93
- package/dist/app/settings-section.js +297 -120
- package/dist/app/shortcut-list.d.ts +19 -8
- package/dist/app/shortcut-list.js +50 -9
- package/dist/app/sparkline.d.ts +14 -16
- package/dist/app/sparkline.js +20 -7
- package/dist/app/split-view.d.ts +66 -42
- package/dist/app/split-view.js +235 -128
- package/dist/app/stat-card.d.ts +16 -4
- package/dist/app/stat-card.js +57 -21
- package/dist/app/status-strip.d.ts +24 -25
- package/dist/app/status-strip.js +82 -25
- package/dist/app/tab-bar.d.ts +15 -7
- package/dist/app/tab-bar.js +74 -37
- package/dist/app/table.d.ts +37 -38
- package/dist/app/table.js +101 -45
- package/dist/app/view-options.d.ts +100 -76
- package/dist/app/view-options.js +263 -129
- package/dist/audio/media-tile.d.ts +33 -21
- package/dist/audio/media-tile.js +139 -79
- package/dist/audio/player-bar.d.ts +24 -43
- package/dist/audio/player-bar.js +183 -118
- package/dist/audio/queue-list.d.ts +40 -36
- package/dist/audio/queue-list.js +172 -73
- package/dist/audio/track-list.d.ts +53 -54
- package/dist/audio/track-list.js +127 -35
- package/dist/blog/archive-list.d.ts +158 -0
- package/dist/blog/archive-list.js +353 -0
- package/dist/blog/article-layout.d.ts +81 -0
- package/dist/blog/article-layout.js +211 -0
- package/dist/blog/author-card.d.ts +99 -0
- package/dist/blog/author-card.js +184 -0
- package/dist/blog/blog-masthead.d.ts +55 -0
- package/dist/blog/blog-masthead.js +143 -0
- package/dist/blog/index.d.ts +21 -0
- package/dist/blog/index.js +21 -0
- package/dist/blog/link-host.d.ts +47 -0
- package/dist/blog/link-host.js +61 -0
- package/dist/blog/newsletter-form.d.ts +66 -0
- package/dist/blog/newsletter-form.js +100 -0
- package/dist/blog/post-byline.d.ts +96 -0
- package/dist/blog/post-byline.js +180 -0
- package/dist/blog/post-entry.d.ts +153 -0
- package/dist/blog/post-entry.js +402 -0
- package/dist/blog/post-stream.d.ts +92 -0
- package/dist/blog/post-stream.js +163 -0
- package/dist/blog/series-nav.d.ts +144 -0
- package/dist/blog/series-nav.js +275 -0
- package/dist/blog/tag-cloud.d.ts +103 -0
- package/dist/blog/tag-cloud.js +138 -0
- package/dist/blog/tag-list.d.ts +91 -0
- package/dist/blog/tag-list.js +92 -0
- package/dist/blog/widget.d.ts +68 -0
- package/dist/blog/widget.js +61 -0
- package/dist/chat/activity.d.ts +47 -15
- package/dist/chat/activity.js +124 -46
- package/dist/chat/mention-menu.d.ts +6 -7
- package/dist/chat/mention-menu.js +4 -4
- package/dist/chat/message-group.d.ts +17 -4
- package/dist/chat/message-group.js +29 -6
- package/dist/color/color-field.d.ts +41 -68
- package/dist/color/color-field.js +21 -38
- package/dist/color/color-picker.d.ts +10 -61
- package/dist/color/color-picker.js +7 -15
- package/dist/color/color-swatch-picker.d.ts +0 -11
- package/dist/color/color-swatch-picker.js +2 -3
- package/dist/color/color-wheel.d.ts +3 -13
- package/dist/color/color-wheel.js +1 -2
- package/dist/commerce/cart-drawer.d.ts +41 -24
- package/dist/commerce/cart-drawer.js +129 -58
- package/dist/commerce/cart-line.d.ts +34 -19
- package/dist/commerce/cart-line.js +94 -28
- package/dist/commerce/checkout-layout.d.ts +23 -19
- package/dist/commerce/checkout-layout.js +53 -24
- package/dist/commerce/facet-filters.d.ts +57 -59
- package/dist/commerce/facet-filters.js +219 -129
- package/dist/commerce/item-options-dialog.d.ts +69 -40
- package/dist/commerce/item-options-dialog.js +231 -104
- package/dist/commerce/menu-item-card.d.ts +36 -20
- package/dist/commerce/menu-item-card.js +114 -61
- package/dist/commerce/option-group.d.ts +46 -27
- package/dist/commerce/option-group.js +123 -52
- package/dist/commerce/order-summary.d.ts +41 -26
- package/dist/commerce/order-summary.js +103 -49
- package/dist/commerce/order-tracker.d.ts +32 -16
- package/dist/commerce/order-tracker.js +91 -66
- package/dist/commerce/price.d.ts +41 -25
- package/dist/commerce/price.js +131 -68
- package/dist/commerce/product-card.d.ts +66 -36
- package/dist/commerce/product-card.js +215 -100
- package/dist/commerce/product-gallery.d.ts +72 -38
- package/dist/commerce/product-gallery.js +187 -82
- package/dist/commerce/promo-code.d.ts +73 -37
- package/dist/commerce/promo-code.js +172 -77
- package/dist/commerce/question-list.d.ts +43 -35
- package/dist/commerce/question-list.js +146 -72
- package/dist/commerce/shipping-estimate.d.ts +68 -33
- package/dist/commerce/shipping-estimate.js +149 -25
- package/dist/commerce/sort-select.d.ts +33 -22
- package/dist/commerce/sort-select.js +55 -26
- package/dist/commerce/variant-picker.d.ts +25 -23
- package/dist/commerce/variant-picker.js +103 -29
- package/dist/{docs → components}/anchor-heading.d.ts +1 -1
- package/dist/{docs → components}/anchor-heading.js +1 -1
- package/dist/components/autocomplete.d.ts +19 -21
- package/dist/components/autocomplete.js +57 -21
- package/dist/components/banner.d.ts +48 -37
- package/dist/components/banner.js +69 -27
- package/dist/components/button.d.ts +2 -18
- package/dist/components/button.js +4 -3
- package/dist/components/callout.d.ts +52 -0
- package/dist/components/callout.js +77 -0
- package/dist/components/checkbox.d.ts +3 -12
- package/dist/components/checkbox.js +1 -2
- package/dist/components/code-block.d.ts +110 -0
- package/dist/{docs → components}/code-block.js +92 -23
- package/dist/components/confirm.d.ts +63 -130
- package/dist/components/confirm.js +133 -52
- package/dist/{docs → components}/copy-button.d.ts +1 -1
- package/dist/{docs → components}/copy-button.js +3 -3
- package/dist/components/date-field.d.ts +40 -60
- package/dist/components/date-field.js +23 -36
- package/dist/components/date-picker.d.ts +11 -67
- package/dist/components/date-picker.js +4 -15
- package/dist/components/date-range-picker.d.ts +20 -91
- package/dist/components/date-range-picker.js +13 -27
- package/dist/components/dialog-dismiss.d.ts +1 -1
- package/dist/components/dialog-dismiss.js +1 -1
- package/dist/components/field-parts.d.ts +158 -0
- package/dist/components/field-parts.js +237 -0
- package/dist/components/filter-links.d.ts +107 -0
- package/dist/components/filter-links.js +120 -0
- package/dist/components/form.d.ts +3 -1
- package/dist/components/form.js +3 -1
- package/dist/components/index.d.ts +14 -7
- package/dist/components/index.js +14 -7
- package/dist/components/lightbox.js +12 -6
- package/dist/components/listbox.d.ts +0 -9
- package/dist/components/listbox.js +2 -2
- package/dist/components/media-grid.d.ts +15 -16
- package/dist/components/media-grid.js +75 -34
- package/dist/components/pager.d.ts +103 -0
- package/dist/components/pager.js +187 -0
- package/dist/components/property-list.d.ts +38 -39
- package/dist/components/property-list.js +149 -96
- package/dist/components/radio-group.d.ts +0 -11
- package/dist/components/radio-group.js +5 -6
- package/dist/components/range-calendar.d.ts +2 -14
- package/dist/components/range-calendar.js +2 -2
- package/dist/components/range-months.d.ts +12 -2
- package/dist/components/range-months.js +32 -16
- package/dist/components/rating-input.d.ts +14 -6
- package/dist/components/rating-input.js +26 -12
- package/dist/components/rating.d.ts +13 -8
- package/dist/components/rating.js +19 -5
- package/dist/components/review-card.d.ts +51 -26
- package/dist/components/review-card.js +173 -40
- package/dist/components/search-field.js +18 -8
- package/dist/components/section-bar.d.ts +23 -15
- package/dist/components/section-bar.js +59 -37
- package/dist/components/sidebar.d.ts +27 -0
- package/dist/components/sidebar.js +49 -20
- package/dist/{docs → components}/table-of-contents.d.ts +1 -1
- package/dist/{docs → components}/table-of-contents.js +3 -3
- package/dist/components/text-field.d.ts +54 -81
- package/dist/components/text-field.js +30 -44
- package/dist/components/time-field.d.ts +45 -65
- package/dist/components/time-field.js +23 -35
- package/dist/components/timeline.d.ts +80 -86
- package/dist/components/timeline.js +383 -170
- package/dist/components/typeset.d.ts +5 -0
- package/dist/components/typeset.js +17 -2
- package/dist/docs/code-tabs.d.ts +50 -24
- package/dist/docs/code-tabs.js +91 -25
- package/dist/docs/docs-feedback.d.ts +70 -27
- package/dist/docs/docs-feedback.js +156 -27
- package/dist/docs/docs-footer.d.ts +36 -22
- package/dist/docs/docs-footer.js +76 -23
- package/dist/docs/docs-hub.d.ts +103 -73
- package/dist/docs/docs-hub.js +333 -83
- package/dist/docs/docs-layout.d.ts +111 -42
- package/dist/docs/docs-layout.js +371 -97
- package/dist/docs/docs-nav-tools.d.ts +11 -7
- package/dist/docs/docs-nav-tools.js +4 -3
- package/dist/docs/docs-nav.d.ts +53 -17
- package/dist/docs/docs-nav.js +125 -14
- package/dist/docs/docs-not-found.d.ts +61 -35
- package/dist/docs/docs-not-found.js +198 -52
- package/dist/docs/docs-page-header.d.ts +47 -30
- package/dist/docs/docs-page-header.js +114 -31
- package/dist/docs/docs-pager.d.ts +43 -27
- package/dist/docs/docs-pager.js +73 -23
- package/dist/docs/file-tree.d.ts +16 -6
- package/dist/docs/file-tree.js +19 -4
- package/dist/docs/index.d.ts +0 -7
- package/dist/docs/index.js +0 -7
- package/dist/docs/install-command.d.ts +7 -6
- package/dist/docs/install-command.js +8 -10
- package/dist/docs/mixins/docs-nav-tools.js +1 -1
- package/dist/docs/next-steps.d.ts +56 -23
- package/dist/docs/next-steps.js +121 -35
- package/dist/docs/page-actions.d.ts +68 -46
- package/dist/docs/page-actions.js +129 -21
- package/dist/docs/steps.d.ts +14 -11
- package/dist/docs/steps.js +36 -18
- package/dist/docs/ui-label.d.ts +7 -6
- package/dist/docs/ui-label.js +21 -8
- package/dist/finance/ledger.d.ts +33 -29
- package/dist/finance/ledger.js +190 -43
- package/dist/finance/payment-card.d.ts +43 -31
- package/dist/finance/payment-card.js +170 -67
- package/dist/landing/author-band.d.ts +57 -54
- package/dist/landing/author-band.js +218 -64
- package/dist/landing/case-study.d.ts +57 -57
- package/dist/landing/case-study.js +148 -17
- package/dist/landing/changelog-strip.d.ts +56 -36
- package/dist/landing/changelog-strip.js +176 -68
- package/dist/landing/closing-cta.d.ts +21 -41
- package/dist/landing/closing-cta.js +13 -19
- package/dist/landing/code-stage.d.ts +55 -47
- package/dist/landing/code-stage.js +198 -67
- package/dist/landing/contributor-wall.d.ts +4 -4
- package/dist/landing/contributor-wall.js +4 -4
- package/dist/landing/curriculum.d.ts +74 -45
- package/dist/landing/curriculum.js +220 -62
- package/dist/landing/drawn-chart.d.ts +18 -10
- package/dist/landing/drawn-chart.js +57 -26
- package/dist/landing/episode-player.d.ts +69 -43
- package/dist/landing/episode-player.js +213 -48
- package/dist/landing/event-ticker.d.ts +13 -7
- package/dist/landing/event-ticker.js +67 -32
- package/dist/landing/fan-out-diagram.d.ts +19 -8
- package/dist/landing/fan-out-diagram.js +60 -19
- package/dist/landing/faq-band.d.ts +30 -48
- package/dist/landing/faq-band.js +37 -30
- package/dist/landing/feature-band.d.ts +48 -76
- package/dist/landing/feature-band.js +71 -49
- package/dist/landing/flow-diagram.d.ts +16 -8
- package/dist/landing/flow-diagram.js +50 -18
- package/dist/landing/install-tabs.d.ts +16 -14
- package/dist/landing/install-tabs.js +87 -39
- package/dist/landing/landing-header.d.ts +75 -66
- package/dist/landing/landing-header.js +284 -57
- package/dist/landing/landing-hero.d.ts +59 -87
- package/dist/landing/landing-hero.js +157 -128
- package/dist/landing/landing-section.d.ts +0 -9
- package/dist/landing/landing-section.js +1 -2
- package/dist/landing/logo-cloud.d.ts +26 -9
- package/dist/landing/logo-cloud.js +62 -18
- package/dist/landing/phone-fan.d.ts +15 -7
- package/dist/landing/phone-fan.js +60 -17
- package/dist/landing/price-list.d.ts +29 -22
- package/dist/landing/price-list.js +175 -77
- package/dist/landing/pricing-band.d.ts +46 -53
- package/dist/landing/pricing-band.js +167 -51
- package/dist/landing/product-frame.d.ts +44 -42
- package/dist/landing/product-frame.js +182 -85
- package/dist/landing/proof-strip.d.ts +7 -2
- package/dist/landing/proof-strip.js +7 -2
- package/dist/landing/rails.d.ts +1 -1
- package/dist/landing/rails.js +1 -1
- package/dist/landing/segmented-stage.d.ts +19 -8
- package/dist/landing/segmented-stage.js +60 -16
- package/dist/landing/sequence-diagram.d.ts +18 -8
- package/dist/landing/sequence-diagram.js +49 -18
- package/dist/landing/site-footer.d.ts +89 -68
- package/dist/landing/site-footer.js +344 -111
- package/dist/landing/site-header.d.ts +118 -80
- package/dist/landing/site-header.js +482 -67
- package/dist/landing/sponsor-wall.d.ts +34 -15
- package/dist/landing/sponsor-wall.js +111 -34
- package/dist/landing/stat-strip.d.ts +7 -9
- package/dist/landing/stat-strip.js +57 -22
- package/dist/landing/step-list.d.ts +18 -21
- package/dist/landing/step-list.js +132 -38
- package/dist/landing/tabbed-stage.d.ts +23 -15
- package/dist/landing/tabbed-stage.js +103 -21
- package/dist/landing/testimonial-band.d.ts +58 -61
- package/dist/landing/testimonial-band.js +209 -71
- package/dist/landing/typed-terminal.d.ts +9 -6
- package/dist/landing/typed-terminal.js +16 -5
- package/dist/landing/usage-estimate.d.ts +83 -74
- package/dist/landing/usage-estimate.js +254 -113
- package/dist/landing/utils/has-parts.d.ts +17 -0
- package/dist/landing/utils/has-parts.js +24 -0
- package/dist/map/map-canvas.d.ts +15 -16
- package/dist/map/map-canvas.js +40 -24
- package/dist/map/map.d.ts +42 -33
- package/dist/map/map.js +149 -38
- package/dist/mixins/aria-checked.d.ts +1 -4
- package/dist/mixins/aria-checked.js +1 -4
- package/dist/mixins/clear-field.d.ts +2 -4
- package/dist/mixins/clear-field.js +2 -4
- package/dist/mixins/index.d.ts +2 -0
- package/dist/mixins/index.js +2 -0
- package/dist/schedule/agenda.d.ts +69 -41
- package/dist/schedule/agenda.js +273 -134
- package/dist/schedule/day-strip.d.ts +38 -26
- package/dist/schedule/day-strip.js +119 -88
- package/dist/test/map.d.ts +1 -1
- package/dist/test/map.js +1 -6
- package/dist/test/reels.js +1 -1
- package/dist/test/stories.js +2 -2
- package/dist/travel/boarding-pass.d.ts +94 -70
- package/dist/travel/boarding-pass.js +341 -144
- package/dist/travel/car-offer.d.ts +109 -49
- package/dist/travel/car-offer.js +424 -64
- package/dist/travel/fare-options.d.ts +58 -34
- package/dist/travel/fare-options.js +210 -69
- package/dist/travel/flight-itinerary.d.ts +62 -55
- package/dist/travel/flight-itinerary.js +230 -55
- package/dist/travel/flight-option.d.ts +65 -33
- package/dist/travel/flight-option.js +250 -69
- package/dist/travel/flight-segment.d.ts +121 -70
- package/dist/travel/flight-segment.js +358 -96
- package/dist/travel/package-savings.d.ts +79 -39
- package/dist/travel/package-savings.js +309 -65
- package/dist/travel/price-breakdown.d.ts +30 -22
- package/dist/travel/price-breakdown.js +72 -17
- package/dist/travel/rating-breakdown.d.ts +25 -18
- package/dist/travel/rating-breakdown.js +60 -23
- package/dist/travel/seat-map.d.ts +29 -22
- package/dist/travel/seat-map.js +140 -78
- package/dist/travel/trip-timeline.d.ts +77 -39
- package/dist/travel/trip-timeline.js +316 -107
- package/dist/utils/eyebrow.d.ts +2 -2
- package/dist/utils/eyebrow.js +3 -3
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/video/episode-list.d.ts +22 -14
- package/dist/video/episode-list.js +89 -53
- package/dist/video/reel-feed.d.ts +21 -15
- package/dist/video/reel-feed.js +59 -24
- package/dist/video/story-viewer.d.ts +6 -5
- package/dist/video/story-viewer.js +84 -53
- package/dist/video/title-hero.d.ts +8 -8
- package/dist/video/title-hero.js +48 -34
- package/dist/video/video-card.d.ts +34 -20
- package/dist/video/video-card.js +119 -76
- package/dist/video/video-player.d.ts +17 -14
- package/dist/video/video-player.js +68 -30
- package/dist/video/video-shelf.d.ts +26 -14
- package/dist/video/video-shelf.js +88 -50
- package/package.json +4 -2
- package/dist/docs/callout.d.ts +0 -46
- package/dist/docs/callout.js +0 -61
- package/dist/docs/code-block.d.ts +0 -74
- package/dist/utils/field-parts.d.ts +0 -26
- package/dist/utils/field-parts.js +0 -12
- /package/dist/{docs/mixins → mixins}/copy-feedback.d.ts +0 -0
- /package/dist/{docs/mixins → mixins}/copy-feedback.js +0 -0
- /package/dist/{docs/mixins → mixins}/toc-spy.d.ts +0 -0
- /package/dist/{docs/mixins → mixins}/toc-spy.js +0 -0
- /package/dist/{docs/utils → utils}/reveal-in-scroller.d.ts +0 -0
- /package/dist/{docs/utils → utils}/reveal-in-scroller.js +0 -0
package/README.md
CHANGED
|
@@ -166,7 +166,8 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
166
166
|
- `Label`, `Description`, `FieldError` — a caption, supporting copy for `aria-describedby`, and a
|
|
167
167
|
validation message.
|
|
168
168
|
- `Input`, `TextArea` — native text controls; the area grows with `field-sizing: content`.
|
|
169
|
-
- `TextField`, `DateField`, `TimeField` —
|
|
169
|
+
- `TextField`, `DateField`, `TimeField` — an input from native attributes, wired to the `.Label`,
|
|
170
|
+
`.Description` and `.Error` parts you write (plus `TextField.Prefix`/`.Suffix`).
|
|
170
171
|
- `NumberField`, `OtpField` — a number input with step buttons, and a one-time-code field.
|
|
171
172
|
- `Checkbox`, `CheckboxGroup`, `RadioGroup`, `Switch` — native checked-state controls and their
|
|
172
173
|
groupings.
|
|
@@ -179,14 +180,14 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
179
180
|
- `CharacterCount` — island: a ring and the characters left for a limited field; load
|
|
180
181
|
`@sdxc/ui/character-count`, and check `countCharacters()` on the server.
|
|
181
182
|
- `Autocomplete` — a text field over a styled, filtered suggestion list (icons, descriptions, a
|
|
182
|
-
|
|
183
|
+
`.Heading`, an `.Empty`), with a native `<datalist>` without script; load `@sdxc/ui/autocomplete` for its island.
|
|
183
184
|
|
|
184
185
|
### Components: overlays and menus
|
|
185
186
|
|
|
186
187
|
- `Dialog`, `AlertDialog` — modals on `<dialog>`; the alert variant ignores light dismiss.
|
|
187
188
|
- `Modal`, `Drawer`, `Sheet` — `Dialog` presets: pop-in, edge-docked, and a fixed side column.
|
|
188
189
|
- `DialogDismiss` — island closing its dialog on a backdrop press or a followed link; load `@sdxc/ui/dialog-dismiss` in the browser entry.
|
|
189
|
-
- `Confirm` — a
|
|
190
|
+
- `Confirm` — a confirmation dialog from parts (`.Header`, `.Title`, `.Description`, `.Phrase`, `.Footer`, `.Cancel`, `.Action`); inside `.Form` its action submits a real form.
|
|
190
191
|
- `Lightbox` — a full-screen photo viewer on `<dialog>`: scroll-snap slides with id links, opened by
|
|
191
192
|
`Lightbox.Trigger` at an `index`; load `@sdxc/ui/lightbox` for arrow keys and opening at a photo.
|
|
192
193
|
- `Popover`, `Tooltip`, `HoverCard` — an anchored popover, a label shown on hover or focus of the
|
|
@@ -197,17 +198,26 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
197
198
|
|
|
198
199
|
### Components: navigation and lists
|
|
199
200
|
|
|
200
|
-
- `Button` — `color`, `variant`, `size`, and `isPending` to show a spinner at the same size.
|
|
201
|
+
- `Button` — `color`, `variant`, `size`, and `isPending` to show a rotating spinner at the same size.
|
|
201
202
|
- `CtaGroup` — a wrapping row of actions; its `size` reaches every `Button` and `LinkButton` in it,
|
|
202
203
|
and `stack="phone"` stacks them on a phone.
|
|
203
204
|
- `Link`, `NavLink`, `LinkButton` — an inline anchor, a navigation link, and a link styled as a
|
|
204
205
|
button.
|
|
205
206
|
- `Tabs` — tabs driven by routing: the `.Tab` pointing at the current page is selected.
|
|
206
|
-
- `SectionBar` — a sticky row of chips linking to a long page's sections; the
|
|
207
|
-
being read follows the scroll (island `@sdxc/ui/section-bar`).
|
|
207
|
+
- `SectionBar` — a sticky row of `.Link` chips (with a `.Count`) linking to a long page's sections; the
|
|
208
|
+
chip of the section being read follows the scroll (island `@sdxc/ui/section-bar`).
|
|
208
209
|
- `StepIndicator` — numbered steps of a flow spread over several pages; done steps link back.
|
|
209
210
|
- `Breadcrumbs`, `Pagination`, `Sidebar` — a trail of parents, a pager landmark, and an app shell
|
|
210
|
-
rail whose collapse rides a checkbox's `:checked
|
|
211
|
+
rail whose collapse rides a checkbox's `:checked`; menu rows and badges restyle through
|
|
212
|
+
`--ui-sidebar-link-*` and `--ui-sidebar-badge-*`.
|
|
213
|
+
- `FilterLinks` — a row of `.Link` filters (each with an optional `.Count`, `current` marking
|
|
214
|
+
`aria-current="page"`) narrowing one list;
|
|
215
|
+
it scrolls sideways on a narrow screen, or wraps with `wrap`, restyled through `--ui-filter-links-*`
|
|
216
|
+
(a negative `--ui-filter-links-link-overlap` joins bordered links into one line).
|
|
217
|
+
- `Pager` — `.Previous` and `.Next` links (holding text or a `.Caption` over a `.Label`) at a row's
|
|
218
|
+
two ends with arrows, and a `.Status` such as "Page 2 of 5" between them; a missing side leaves its
|
|
219
|
+
end empty. `layout` `auto` (default) stacks the links full width under 30rem of its own width,
|
|
220
|
+
`row` and `stack` fix one; restyled through `--ui-pager-*`.
|
|
211
221
|
- `Disclosure`, `Accordion` — `<details>` sections, alone or stacked.
|
|
212
222
|
- `ListBox` — selectable rows sharing one native grouping name.
|
|
213
223
|
- `SelectionIndicator`, `SentinelRow` — a selection marker, and a muted row holding a loading or
|
|
@@ -234,8 +244,8 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
234
244
|
- `Letterbox` — a frame that centres a fixed-ratio `.Surface` (16:9 unless `ratio` says otherwise)
|
|
235
245
|
in any box, barring the sides it leaves empty; the surface is a size container, so content on it
|
|
236
246
|
sized in `cqw`/`cqh` scales with it.
|
|
237
|
-
- `MediaGrid` — square photo and video tiles as links, three to a row; `.Item` can stand
|
|
238
|
-
`tall
|
|
247
|
+
- `MediaGrid` — square photo and video tiles as links, three to a row; an `.Item` can stand
|
|
248
|
+
`tall` and holds a `.Picture`, a `.Badge` and an `.Overlay` shown on hover or focus.
|
|
239
249
|
- `YouTubeEmbed` — a lazy-loaded 16:9 YouTube player (`videoId`, `start?`, `title`) served from
|
|
240
250
|
`www.youtube-nocookie.com`, which the page's `frame-src` has to allow.
|
|
241
251
|
- `Text`, `Header`, `Keyboard`, `Typeset` — muted copy, a section label, a `<kbd>`, and typography
|
|
@@ -248,7 +258,12 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
248
258
|
and popover pickers around them; `Calendar` without children renders `<input type="date">`.
|
|
249
259
|
- `RangeMonths` — consecutive month grids whose days are links the caller builds, for picking a
|
|
250
260
|
stay's range or a single date without script; booked days are struck through and a range never
|
|
251
|
-
crosses one
|
|
261
|
+
crosses one, and `dayNote` returns each day's `.Note`.
|
|
262
|
+
- `Callout` — a static aside (`kind`: `note` | `tip` | `warning` | `danger`) named by its `.Title`.
|
|
263
|
+
- `CodeBlock` — code card headed by its language, or by a `.Header` holding a `.Title` (file icon by extension or "Terminal") and a `.Copy`, `highlight`/`add`/`remove` lines, `lineNumbers`, copy without prompts. Tokens read the `--highlight-*` properties of `@sdxc/highlight/styles.css` when the page loads it, and a built-in palette in the page's `color-scheme` otherwise.
|
|
264
|
+
- `CopyButton` — copies the text of the element `target` names and announces `copiedLabel`; the island `CodeBlock` hydrates (`@sdxc/ui/copy-button`).
|
|
265
|
+
- `AnchorHeading` — heading with an `id`, a `#` link on hover and focus, `--ui-docs-scroll-margin`, a `:target` flash.
|
|
266
|
+
- `TableOfContents` — "On this page" `rail` or sticky `bar`: a marker slides over every section on screen and reaches the last; island `@sdxc/ui/table-of-contents`.
|
|
252
267
|
|
|
253
268
|
### Landing (`@sdxc/ui/landing`)
|
|
254
269
|
|
|
@@ -258,48 +273,54 @@ Landing bands, composition craft and animated visuals. Every piece imports from
|
|
|
258
273
|
**Bands and primitives**
|
|
259
274
|
|
|
260
275
|
- `LandingSection` — landing band (`tone` incl. `brand` | `gradient`, `spacing`, `align`, `ruled`, `inset`, `variant="frame"`).
|
|
261
|
-
- `LandingHeader` —
|
|
276
|
+
- `LandingHeader` — band or hero opening from parts (`.Eyebrow`, `.Title`, `.Subtitle`, `.Description`, `.Actions`, `.Release`, `.Note`, `.Proof`, `.Action`; `layout`: `stack` | `center` | `split`, `size`: `chapter` | `display`).
|
|
262
277
|
- `Split`, `Split.Copy`, `Split.Media` — two-column band content (`lean`, optional `checks`).
|
|
263
|
-
- `StatStrip
|
|
264
|
-
- `LogoCloud` — adopter marks at `--ui-landing-logo-height`
|
|
278
|
+
- `StatStrip` — numeric proof strip from parts (`.Item`, `.Figure`, `.Label`; `ruled` | `gap`).
|
|
279
|
+
- `LogoCloud` — adopter marks at `--ui-landing-logo-height` from parts (`.Label`, `.Marks`; `layout`, `muted`).
|
|
265
280
|
- `Feature`, `Feature.Grid` — claim cells in a grid of cards or a hairline mosaic (`variant`).
|
|
266
281
|
|
|
267
282
|
**Building blocks**
|
|
268
283
|
|
|
269
|
-
- `
|
|
284
|
+
- `SiteHeader` — sticky bar from parts (`.Brand`, `.Nav`, `.Link`, `.Group`, `.Panel`, `.Actions`, `.Action`, `.Tools`, `.Sheet`) written once for the bar and the phone sheet (`variant`, `collapseAt`, `prefetch`).
|
|
285
|
+
- `SiteFooter` — page footer from parts (`.Brand`, `.Columns`, `.Newsletter`, `.Bottom`, `.Wordmark`); link columns never leave a short last row.
|
|
286
|
+
- `LandingHero` — hero from parts (`.Header` taking `LandingHeader` parts, `.Media` with `variant="background"`, `.Backdrop`, `.Below`; `layout`: `stack` | `split`).
|
|
270
287
|
- `ProofStrip` — compact ruled band for `LogoCloud` and/or `StatStrip` children.
|
|
271
|
-
- `FeatureBand` —
|
|
272
|
-
- `PricingBand
|
|
273
|
-
- `TestimonialBand
|
|
274
|
-
- `FaqBand` —
|
|
275
|
-
- `ClosingCta` — inverse/tinted close
|
|
276
|
-
- `FlowDiagram` — animated run: a `trigger`, `steps` passing along a rail,
|
|
277
|
-
- `SequenceDiagram` — animated exchange: `actors` on lifelines and `messages` travelling between them in order.
|
|
278
|
-
- `FanOutDiagram` — animated one-to-many: a `source` reaching every one of its `targets` (`direction="in"` for many-to-one).
|
|
279
|
-
- `EventTicker` — animated activity log: `rows` arriving newest first, a status that can flip with `flipTo`.
|
|
280
|
-
- `TypedTerminal` — animated terminal: input `lines` typing themselves out, then their output. `variant="code"` plays on the light code card.
|
|
281
|
-
- `DrawnChart` — animated figure: a `
|
|
288
|
+
- `FeatureBand` — a `LandingHeader` over `.Body`, or `.Copy` beside `.Media` in the order written (`layout`: `split` | `grid` | `steps` | `stage` | `timeline`, `lean`).
|
|
289
|
+
- `PricingBand` — plan cards from parts (`.Plans`, `.Plan`, `.PlanHeader`, `.Name`, `.Price`, `.Period`, `.Description`, `.Action`); a `featured` plan inverts and leads on phones.
|
|
290
|
+
- `TestimonialBand` — quote cards from parts (`.Quotes`, `.Quote`, `.Logo`, `.Text`, `.Caption`, `.Avatar`, `.Name`, `.JobTitle`, `.Link`); `layout="carousel"`, `variant="featured"` quote.
|
|
291
|
+
- `FaqBand` — a `LandingHeader` over `.Questions`, one or two `Accordion` columns (`columns={1|2}`).
|
|
292
|
+
- `ClosingCta` — inverse/tinted close around a centered `LandingHeader`.
|
|
293
|
+
- `FlowDiagram` — animated run: a `trigger`, `steps` passing along a rail, then `.Outcome` and `.Footnote`.
|
|
294
|
+
- `SequenceDiagram` — animated exchange: `actors` on lifelines and `messages` travelling between them in order (`.Outcome`, `.Footnote`).
|
|
295
|
+
- `FanOutDiagram` — animated one-to-many: a `source` reaching every one of its `targets` (`direction="in"` for many-to-one; `.Outcome`, `.Footnote`).
|
|
296
|
+
- `EventTicker` — animated activity log: `rows` arriving newest first, a status that can flip with `flipTo` (`.Title`, `.Footnote`).
|
|
297
|
+
- `TypedTerminal` — animated terminal: input `lines` typing themselves out, then their output (`.Title`). `variant="code"` plays on the light code card.
|
|
298
|
+
- `DrawnChart` — animated figure: a `.Metric` counting up over a `bars` or `line` `series` that draws in (`.Footnote`).
|
|
282
299
|
- `ScrollScene`, `sceneMotion()` — a pinned stage that plays its parts' keyframes as the reader scrolls, in CSS.
|
|
283
|
-
- `CaseStudy` — one client project as a full-bleed scene
|
|
284
|
-
- `
|
|
285
|
-
- `
|
|
286
|
-
- `
|
|
300
|
+
- `CaseStudy` — one client project as a full-bleed scene from parts (`.Head`, `.Plate`, `.Title`, `.Facts`, `.Fact`, `.Figure`…).
|
|
301
|
+
- `AuthorBand` — portrait beside the author's copy from parts (`.Portrait`, `.Copy`, `.Byline`, `.Social`, `.Video`…).
|
|
302
|
+
- `ChangelogStrip` — dated releases on one hairline from parts (`.Header`, `.List`, `.Entry`, `.Link`, `.Date`…).
|
|
303
|
+
- `Curriculum` — course parts with lessons from parts (`.Parts`, `.Part`, `.Lessons`, `.Lesson expandable`, `.Row`, `.Body`…).
|
|
304
|
+
- `ContributorWall` — contributors as square tiles, ending on a `.More` tile counting the rest.
|
|
305
|
+
- `SponsorWall` — sponsor tiers in ruled grids, then backers, from parts (`.Tier`, `.Label`, `.Marks`, `.Individuals`, `.People`, `.Person`, `.Actions`).
|
|
306
|
+
- `PriceList` — a menu or price list from parts (`.Group`, `.Header`, `.Items`, `.Item`, `.Name`, `.Price`…), dotted leaders, as many columns as fit.
|
|
287
307
|
- `Countdown`, `countdownParts` — time left until a moment, server-rendered; `live` ticks it (island `@sdxc/ui/landing/countdown`).
|
|
288
|
-
- `EpisodePlayer` — native `<audio>` with chapter and transcript time links (island `@sdxc/ui/landing/episode-player`).
|
|
289
|
-
- `UsageEstimate
|
|
308
|
+
- `EpisodePlayer` — native `<audio>` with chapter and transcript time links from parts (`.Header`, `.Audio`, `.Chapters`, `.Chapter`, `.Transcript`, `.Cue`…; island `@sdxc/ui/landing/episode-player`).
|
|
309
|
+
- `UsageEstimate` — a GET-form pricing calculator from parts (`.Form`, `.Submit`, `.Sheet`, `.Bill`, `.Table`, `.Line`, `.Total`…); `live` re-prices a bill frame as the reader types (island `@sdxc/ui/landing/usage-estimate`).
|
|
290
310
|
|
|
291
311
|
**Composition craft**
|
|
292
312
|
|
|
293
|
-
- `ProductFrame` — window/device chrome (
|
|
313
|
+
- `ProductFrame` — window/device chrome from parts (`.Chrome`, `.Lights`, `.Title`, `.Url`, `.Body`, `.Footer`, `.Backdrop`; `stage`, `shadow`); `.Body` `designWidth` + `fit` crop or scale a desktop composition on phones.
|
|
294
314
|
- `PhoneFrame`, `screenCorners` — ink phone bezel around a capture or live screen (`bezel`, or `--app-bezel`).
|
|
295
|
-
- `PhoneFan` — three phones (`
|
|
296
|
-
- `CodeStage` / `TerminalPanel` —
|
|
297
|
-
- `InstallTabs
|
|
298
|
-
- `TabbedStage
|
|
315
|
+
- `PhoneFan` — three phones (`.Start` / `.Front` / `.End`) fanned on a pausable bobbing stage.
|
|
316
|
+
- `CodeStage` / `TerminalPanel` — mono panel from parts (`.Header`, `.Title`, `.Actions`, `.Body`, or `.Tabs`/`.Tab` + `.Panels`/`.Panel`; `variant`, `language`, `lineNumbers`).
|
|
317
|
+
- `InstallTabs` — radio dialect strip from parts (`.Option`, `.Label`, `.Panel`, `.Command`; no JS).
|
|
318
|
+
- `TabbedStage` — tabs or a vertical rail controlling a media panel from parts (`.Item`, `.Tab`, `.Label`, `.Description`, `.Panel`; no JS).
|
|
319
|
+
- `SegmentedStage` — a segmented control over a media stage from parts (`.Item`, `.Label`, `.Panel`; no JS).
|
|
299
320
|
- `CheckList`, `CheckRow` — checked claims (`orientation`: `stacked` | `horizontal`).
|
|
300
321
|
- `IconWell` — landing glyph tile (`tone`: `quiet` | `brand`; `sm` | `md` | `lg`).
|
|
301
322
|
- `Bento`, `Bento.Cell`, `Bento.Media` — cards or a hairline mosaic in equal columns.
|
|
302
|
-
- `StepList
|
|
323
|
+
- `StepList` — numbered steps or a `timeline` from parts (`.Item`, `.Title`, `.Body`, `.Meta`, `.Media`).
|
|
303
324
|
- `AnnouncementChip`, `AccentText` — announcement label; marked phrase inside a headline (`color` | `swash` | `highlight`).
|
|
304
325
|
|
|
305
326
|
### Docs (`@sdxc/ui/docs`)
|
|
@@ -307,37 +328,32 @@ Landing bands, composition craft and animated visuals. Every piece imports from
|
|
|
307
328
|
The docs shell, navigation and content blocks. Islands load as `@sdxc/ui/docs/<name>`; map each
|
|
308
329
|
one the page uses in the browser entry.
|
|
309
330
|
|
|
310
|
-
- `DocsLayout` — docs shell
|
|
311
|
-
- `DocsHub` — docs home
|
|
312
|
-
- `DocsNotFound` — docs 404 body:
|
|
313
|
-
- `
|
|
314
|
-
- `
|
|
315
|
-
- `
|
|
316
|
-
- `UiLabel`, `UiPath` — a product control's name as a sans chip, and a click path of chips joined by `→`.
|
|
331
|
+
- `DocsLayout` — docs shell from `toc` and `dock`: `.Header`, `.Shell` (`.Sidebar`, `.Content` with `.Bar`/`.Menu`/`.BarOutline` and `.Article`, `.Rail`/`.Outline`, `.Footer`), `.Drawer` (`.DrawerHeader`, `.DrawerTitle`, `.DrawerClose`, `.DrawerContent`).
|
|
332
|
+
- `DocsHub` — docs home: `.Header` (`.Intro`, `.Eyebrow`, `.Title`, `.Lead`, `.Search`, `.Topics`/`.Topic`), `.Block kind` (`start` | `sections` | `popular`) with `.BlockTitle`, `.List` and `.Card` parts.
|
|
333
|
+
- `DocsNotFound` — docs 404 body: `.Header` (`.Eyebrow`, `.Title`, `.Body`, `.Path`), `.Search` (pre-fill with `searchQueryFromPath`), `.Links`/`.LinksTitle`/`.List`/`.Link`.
|
|
334
|
+
- `Steps`, `Steps.Item`, `Steps.Title` — numbered procedure with CSS counters and a rail; each `.Title` is a heading with an optional `id`.
|
|
335
|
+
- `FileTree` — project layout from `nodes`: `<details>` directories, per-type file icons, `highlight` pill, `comment`, `"…"`; `.Title` captions it.
|
|
336
|
+
- `UiLabel`, `UiPath` — a product control's name as a sans chip, and a click path of `UiLabel` children joined by `→`.
|
|
317
337
|
- `PlanNotice` — the one-sentence plan or role box under a help page's title.
|
|
318
|
-
- `
|
|
319
|
-
- `
|
|
320
|
-
- `InstallCommand` — `packages` (and `dev`) spelled for npm, pnpm, yarn and bun in `CodeTabs` synced on `package-manager`.
|
|
338
|
+
- `CodeTabs` — `.List` of `.Tab`s over `.Panels` of `.Panel`s paired by `value`; `syncKey` switches every set together and `persist` (`cookie` | `local`) remembers it.
|
|
339
|
+
- `InstallCommand` — `packages` (and `dev`) spelled for npm, pnpm, yarn and bun in `CodeTabs` synced on `package-manager`; children title each block.
|
|
321
340
|
- `PropsTable` — name/type/default/required/description `rows`; `children` expand in place, rows stack below 36rem.
|
|
322
|
-
- `
|
|
323
|
-
- `DocsPageHeader` —
|
|
324
|
-
- `
|
|
325
|
-
- `
|
|
326
|
-
- `NextSteps` — hand-written "Next steps"
|
|
327
|
-
- `DocsFeedback` — "Was this helpful?" form
|
|
328
|
-
- `DocsPager` — previous/next whole-card
|
|
329
|
-
- `DocsNav` — docs sidebar from a `DocsTree`: current page marked and scrolled into view, `<details>` groups,
|
|
330
|
-
- `TableOfContents` — "On this page" `rail` or sticky `bar`: a marker slides over every section on screen and reaches the last; island `@sdxc/ui/docs/table-of-contents`.
|
|
341
|
+
- `CodeTabsSync` — the island `CodeTabs` hydrates (`@sdxc/ui/docs/code-tabs-sync`).
|
|
342
|
+
- `DocsPageHeader` — `.Crumbs`/`.Crumb`, `.Title` (`<h1>`), `.Description`, and a `.Meta` row with `.Updated` and page actions.
|
|
343
|
+
- `DocsFooter` — closing `.Content` over a `.Meta` row of `.Legal` and `.Links`/`.Link`; write it in `DocsLayout.Footer`.
|
|
344
|
+
- `PageActions` — "Copy page" split button: `.Copy` (the island `@sdxc/ui/docs/page-actions`), `.More`, `.Menu` of `.Link`s (`.LinkText`, `.LinkTitle`, `.LinkDescription`).
|
|
345
|
+
- `NextSteps` — hand-written "Next steps": `.Title`, `.List` of `.Item`/`.Link` (`.LinkTitle`, `.Description`), as `cards` or a `list`.
|
|
346
|
+
- `DocsFeedback` — "Was this helpful?" form without JavaScript: `.Thanks`, `.Form` (`.Vote`, `.Question`, `.Choices`/`.Choice`, `.Note`, `.NoteField`, `.Send`); `state="sent"` thanks.
|
|
347
|
+
- `DocsPager` — previous/next whole-card `.Link`s (`.Label`, `.Section`, `.Title`) from `findNeighbours(tree, path, { boundary })`.
|
|
348
|
+
- `DocsNav` — docs sidebar from a `DocsTree`: current page marked and scrolled into view, `<details>` groups, a `.Filter` (`.FilterLabel`, `.FilterInput`, `.FilterEmpty`) read back through `query`, `.Footer`; island `@sdxc/ui/docs/docs-nav-tools`.
|
|
331
349
|
- `DocsTree`, `flattenDocsTree(tree)`, `findNeighbours(tree, path, { boundary: "section" | "none" })` —
|
|
332
350
|
the sidebar's data, walked in reading order by the pager.
|
|
333
351
|
|
|
334
|
-
| Helper | Host | Adds
|
|
335
|
-
| ---------------------------- | ------------------------ |
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
339
|
-
| `copyFeedback(copiedLabel)` | a copy button | `data-copied` for 2s and the label announced after a copy. |
|
|
340
|
-
| `copyFromUrl(href, failed?)` | a copy button | Fetches `href` and copies its body; dispatches `ui:copy`. |
|
|
352
|
+
| Helper | Host | Adds |
|
|
353
|
+
| ---------------------------- | ------------------------ | -------------------------------------------------------------------- |
|
|
354
|
+
| `docsNavTools()` | an element in `DocsNav` | The current page scrolled into view; the title filter. |
|
|
355
|
+
| `codeTabsSync(key, persist)` | an element in `CodeTabs` | Every set sharing `key` switches together; the choice is remembered. |
|
|
356
|
+
| `copyFromUrl(href, failed?)` | a copy button | Fetches `href` and copies its body; dispatches `ui:copy`. |
|
|
341
357
|
|
|
342
358
|
### Chat (`@sdxc/ui/chat`)
|
|
343
359
|
|
|
@@ -347,8 +363,8 @@ one the page uses in the browser entry.
|
|
|
347
363
|
turns, and an attached-file card.
|
|
348
364
|
- `ScrollFollowModel({ pinned? })` — whether the log follows the live edge, visible messages, and
|
|
349
365
|
pending scroll requests.
|
|
350
|
-
- `Activity` — what an assistant did before replying: a "Thinking" disclosure with `.Summary
|
|
351
|
-
`.Note`, `.Steps` and `.Step` (
|
|
366
|
+
- `Activity` — what an assistant did before replying: a "Thinking" disclosure with `.Summary`
|
|
367
|
+
(`.Busy`, `.Done`), `.Note`, `.Steps` and `.Step` (`.StepIcon`, `.StepDetails`, `.StepSummary`).
|
|
352
368
|
- `Composer` — the message form, with `.Input` (grows to twelve lines), `.Toolbar` and `.Hint`;
|
|
353
369
|
`ComposerSubmit` is its send button, Enter to send, and Stop while a reply streams.
|
|
354
370
|
- `ComposerFormat`, `MentionMenu` — composer islands: Markdown buttons and shortcuts (`applyFormat`)
|
|
@@ -368,8 +384,8 @@ one the page uses in the browser entry.
|
|
|
368
384
|
- `ColorSwatch`, `ColorSwatchPicker` — a color preview, and preset colors as native radios.
|
|
369
385
|
- `ColorArea`, `ColorWheel`, `ColorSlider` — saturation/brightness, hue, and single-channel pickers
|
|
370
386
|
built from range inputs.
|
|
371
|
-
- `ColorField`, `ColorPicker` — a color text field with a live swatch
|
|
372
|
-
popover (`ColorPicker.Dialog`) hosting any of the pickers above.
|
|
387
|
+
- `ColorField`, `ColorPicker` — a color text field with a live swatch and the same field parts,
|
|
388
|
+
and a trigger row with a popover (`ColorPicker.Dialog`) hosting any of the pickers above.
|
|
373
389
|
- `rtlAwareGradientDirection(propertyName)` and `HUE_GRADIENT_STOPS` — the gradient direction and
|
|
374
390
|
hue stops the sliders and wheel paint.
|
|
375
391
|
|
|
@@ -388,32 +404,36 @@ Dashboard and workspace components.
|
|
|
388
404
|
`chartTooltip()` drives; every point is a labeled, focusable marker. Its scales and paths are
|
|
389
405
|
`linearScale`, `bandScale`, `ticks`, `linePath`, `areaPath`, `arcPath`, `pieAngles` and
|
|
390
406
|
`computeMarkerIndices`; `chartPalette()` and `legendToggle()` style its series.
|
|
391
|
-
- `Table` — a table whose `.Column`
|
|
407
|
+
- `Table` — a table whose sortable `.Column` holds a `.SortLink` and whose `.LoadMore` row holds a `.LoadMoreLink`.
|
|
392
408
|
- `GridList`, `Tree` — an interactive row list, and nested `<details>`. `Tree.Leaf` file rows, `Tree.Filter` (with `Tree.NoMatches`) and `Tree.Navigation` make it a file browser.
|
|
393
409
|
- `DropIndicator` — the bar marking where a dragged row will land.
|
|
394
410
|
- `Toast` — a notification stacked by `Toast.Region`, queued by a `Toaster`.
|
|
395
|
-
- `Skeleton`, `Empty` — a loading block, and an empty-state panel
|
|
396
|
-
content laid out unseen, so a placeholder wraps like its text.
|
|
397
|
-
- `TabBar` — a phone's bottom tab bar that reserves its height and hides where the sidebar shows.
|
|
398
|
-
- `Board` — kanban columns of cards, built on the `sortable()` mixin: a drag or Shift+Arrow moves a
|
|
411
|
+
- `Skeleton`, `Empty` — a loading block, and an empty-state panel whose `.Icon` replaces the
|
|
412
|
+
kind's icon; `Skeleton.Text` bars real content laid out unseen, so a placeholder wraps like its text.
|
|
413
|
+
- `TabBar` — a phone's bottom tab bar of `.Item`s (`.ItemIcon`, `.ItemLabel`) that reserves its height and hides where the sidebar shows.
|
|
414
|
+
- `Board` — kanban columns (`.Column` holding `.ColumnHeader`, `.ColumnEmpty` and `.Cards`) of cards, built on the `sortable()` mixin: a drag or Shift+Arrow moves a
|
|
399
415
|
card and posts the card's own move form, which its menu also submits without script.
|
|
400
416
|
- `Gantt` — a Gantt chart: grouped projects as bars on a month and week axis, with progress, today's line and a
|
|
401
|
-
hatched tail for a late projection
|
|
417
|
+
hatched tail for a late projection; each `.Item` holds an `.ItemLabel` (icon, name, meta) and an `.ItemBar`.
|
|
402
418
|
- `RouteDialog` — a dialog the address opens (`?edit=42`): open without script, a modal once
|
|
403
419
|
hydrated, and closing follows a link back to the address without it.
|
|
404
420
|
- `Toolbar`, `Menubar`, `ContextMenu` — a row of controls, a row of menu triggers, and a
|
|
405
421
|
pointer-positioned menu.
|
|
406
|
-
- `PageHeader` — a screen's
|
|
407
|
-
- `ProfilePicker` — a shared account's "who is using this?" grid
|
|
408
|
-
- `CommandPalette` — a ⌘K
|
|
409
|
-
- `FilterMenu` — a
|
|
410
|
-
- `CheckRuns`, `MergeBox` — a commit's checks summarised by state, and a merge box
|
|
411
|
-
|
|
412
|
-
- `
|
|
413
|
-
- `
|
|
422
|
+
- `PageHeader` — a screen's `.Crumbs`/`.Parent`, `.Title`, `.Status`, `.Description`, `.Actions` and `.Tabs`; tabs that overflow fold into a More menu.
|
|
423
|
+
- `ProfilePicker` — a shared account's "who is using this?" `.Title`, `.Profiles` grid and `.Footer`; each `.Profile` (`.Avatar`, `.Name`) is a submit button.
|
|
424
|
+
- `CommandPalette` — a ⌘K `.List` of `.Recent`, `.Group`s (`.GroupHeading`) and `.Item`s (`.ItemIcon`, `.ItemTitle`, `.ItemDescription`), then an `.Empty` quoting the `.Query`; `CommandPalette.Finder` is a fuzzy file finder page.
|
|
425
|
+
- `FilterMenu` — a `.Trigger` and a `.Popover` of `.Title`, `.List` (links, radios or checkboxes, posted as a form on close) and `.Footer`.
|
|
426
|
+
- `CheckRuns`, `MergeBox` — a commit's checks summarised by state, and a merge box of `.Row`s
|
|
427
|
+
then a `.Control` (or a settled `.Outcome`) that says why it is blocked.
|
|
428
|
+
- `ContributionGraph` — a year of daily counts as a grid of cells, with a `.Summary` and a `.Legend`.
|
|
429
|
+
- `CodeView` — a whole file with line links from `?L=`, a line menu and blame, under a `.Header` of `.Meta` and `.Actions` (island `@sdxc/ui/app/code-view`).
|
|
430
|
+
- `Diff`, `ReviewThread` — a change unified or split with comment links, and a resolvable thread anchored to its lines, built from `.Summary`, `.Excerpt`, `.Comments`, `.Suggestion` and `.Footer` (island `@sdxc/ui/app/diff`).
|
|
414
431
|
- `LogViewer` — a CI job's log by step, with search and timestamps.
|
|
415
432
|
- `Resizable` — split panes.
|
|
416
|
-
- `
|
|
433
|
+
- `SplitView` — `.Sidebar`, `.List` and `.Detail` panes, each scrolling on its own, with j/k through the list;
|
|
434
|
+
`scrollKey` keys the list's remembered scroll (default the pathname), so pages sharing one list
|
|
435
|
+
keep it in place.
|
|
436
|
+
- `ShortcutList` — a `<dl>` of `.Item`s pairing an `.Action` with its `.Keys` caps.
|
|
417
437
|
- `FileTrigger`, `DropZone` — a button opening the file picker, and a drop target, both over a
|
|
418
438
|
native file input.
|
|
419
439
|
- `DragSession<Data>()` — the dragged `source`, the `target` under the pointer with its
|
|
@@ -447,32 +467,35 @@ Dashboard and workspace components.
|
|
|
447
467
|
`layout="stage"` fills the box it is given for a film or episode: `.Overlay` floats over the top,
|
|
448
468
|
the bar and overlay fade while it plays and the pointer rests, and `.Group` (`start`, `center`,
|
|
449
469
|
`end`), `.Skip`, `.Mute` and `.Heading` arrange the bar; the page's keys play, skip, mute and
|
|
450
|
-
go full screen.
|
|
451
|
-
-
|
|
452
|
-
|
|
453
|
-
- `VideoShelf` — a
|
|
454
|
-
buttons at its edges.
|
|
455
|
-
- `EpisodeList` — a season as an `<ol>` of `.Item` links with
|
|
456
|
-
and watched bar.
|
|
457
|
-
- `TitleHero` —
|
|
458
|
-
`.
|
|
459
|
-
- `ReelFeed` — a full-height
|
|
460
|
-
`ReelFeedSync` preloads the next reel, pauses the rest, steps one reel
|
|
461
|
-
and follows each reel's address.
|
|
462
|
-
- `StoryViewer` — full-screen `.Group`s of timed `.Segment`s under progress bars, with
|
|
463
|
-
zones; `StoryViewerSync` advances, pauses on hold and
|
|
470
|
+
go full screen. `.Caption` holds `.Title` and `.Meta`; `.Chapters` and `.Transcript` take an
|
|
471
|
+
`aria-label` and a `.SideLabel`.
|
|
472
|
+
- `VideoCard` — a title as one link with a watched bar: `.Art` (with a `.Badge`), `.Title`, `.Meta`.
|
|
473
|
+
- `VideoShelf` — `.Title`, `.Action` and a `.Scroller` of `.Item`s that scrolls sideways;
|
|
474
|
+
`VideoShelfSync` reveals paging buttons at its edges.
|
|
475
|
+
- `EpisodeList` — a season as an `<ol>` of `.Item` links with `.Still`, `.Title`, `.Duration`,
|
|
476
|
+
`.Synopsis`, its number and a watched bar.
|
|
477
|
+
- `TitleHero` — `.Art` edge to edge under the top bar, faded into the page, with `.Eyebrow`,
|
|
478
|
+
`.Title`, `.Facts`, `.Rating`, `.Summary` and `.Actions`.
|
|
479
|
+
- `ReelFeed` — a full-height `.Scroller` of `.Item` videos (`.Backdrop`, `.Overlay`), one per
|
|
480
|
+
screen on scroll snap; `ReelFeedSync` preloads the next reel, pauses the rest, steps one reel
|
|
481
|
+
per key or wheel flick and follows each reel's address.
|
|
482
|
+
- `StoryViewer` — full-screen `.Group`s of timed `.Segment`s under progress bars, with a
|
|
483
|
+
`.Header`, a `.Footer` and link tap zones; `StoryViewerSync` advances, pauses on hold and
|
|
484
|
+
closes on a swipe down.
|
|
464
485
|
- `StoryRing` — a picture in a seen or unseen story ring.
|
|
465
486
|
|
|
466
487
|
### Audio (`@sdxc/ui/audio`)
|
|
467
488
|
|
|
468
|
-
- `TrackList` — a track table
|
|
469
|
-
covering the row,
|
|
470
|
-
|
|
471
|
-
- `MediaTile` — an album, playlist (square) or artist (round)
|
|
472
|
-
over the art outside the link.
|
|
473
|
-
- `PlayerBar` — the bar along a music app's foot: `.Track
|
|
474
|
-
`.Seek` and `.Range`; `.Mini` is its
|
|
475
|
-
|
|
489
|
+
- `TrackList` — a track table: `.Header` of `.Heading`s, `.Body` of `.Row`s with `.Index` (a
|
|
490
|
+
`.PlayButton` covering the row), `.Main` (`.Art`, `.Title`, `.Artists`, `.Explicit`), `.Album`,
|
|
491
|
+
`.Added`, `.Duration` and `.Trailing`; the playing row shows an `Equalizer`.
|
|
492
|
+
- `MediaTile` — an album, playlist (square) or artist (round): a `.Link` with `.Art`, `.Title`,
|
|
493
|
+
`.Subtitle`, and a `.Play` over the art outside the link.
|
|
494
|
+
- `PlayerBar` — the bar along a music app's foot: `.Track` (`.Art`, `.Title`, `.Subtitle`),
|
|
495
|
+
`.Controls`, `.Extras`, `.Button` (`pressed`, `primary`), `.Seek` and `.Range`; `.Mini` is its
|
|
496
|
+
phone form with `.Expand` and `.Actions`.
|
|
497
|
+
- `QueueList` — a `.Heading` over `.Items` of `.Item`s (`.Art`, `.Title`, `.Subtitle`,
|
|
498
|
+
`.Duration`, `.Action`) or an `.Empty` line.
|
|
476
499
|
- `Equalizer` — the playing mark, still inside any `[data-audio-paused]` ancestor.
|
|
477
500
|
- `createPlayQueue`, `nextInQueue`, `previousInQueue`, `toggleShuffle`, `cycleRepeat`,
|
|
478
501
|
`jumpTo`, `upcoming` — the play order as data; `syncMediaSession` hands a track and the
|
|
@@ -482,24 +505,32 @@ Dashboard and workspace components.
|
|
|
482
505
|
|
|
483
506
|
Ordering something to be delivered, such as food from a restaurant.
|
|
484
507
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
- `
|
|
489
|
-
|
|
490
|
-
- `
|
|
491
|
-
|
|
492
|
-
|
|
508
|
+
Every component here is a root that lays out the parts you write (`CartLine.Name`, `.Price`, `.Action`…);
|
|
509
|
+
visible words are children, and accessible names stay props.
|
|
510
|
+
|
|
511
|
+
- `MenuItemCard` — an item on a menu (`.Name`, `.Description`, `.Meta`, `.Price`, `.Media`); the whole
|
|
512
|
+
card opens its options dialog through Invoker Commands.
|
|
513
|
+
- `ItemOptionsDialog` — a native dialog (a bottom sheet on a phone): a scrolling `.Body` (`.Media`,
|
|
514
|
+
`.Content`, `.Header`, `.Title`, `.Quantity`…) over a `.Footer` whose `.Submit` carries the running `.Total`.
|
|
515
|
+
- `OptionGroup` — priced choices: `.Legend` (`.Title`, `.Hint`, `.Required`) and `.Choice` rows with a
|
|
516
|
+
`.Cost`, radios for a required pick, checkboxes up to `max` for extras. The `OptionsLive` island
|
|
517
|
+
(`@sdxc/ui/commerce/option-group`) reprices the form and enforces the limit.
|
|
518
|
+
- `CartLine`, `QuantityStepper` — a cart's line (`.Media`, `.Name`, `.Details`, `.Price`, `.Action`), and a
|
|
519
|
+
− count + control whose buttons are form posts.
|
|
520
|
+
- `OrderSteps`, `OrderLive` — an order's status timeline of `.Step`s found by id in `steps`, and an island
|
|
521
|
+
(`@sdxc/ui/commerce/order-tracker`) that follows a `step progress minutes` text stream to move the
|
|
522
|
+
steps, headline, estimate and any map marker.
|
|
493
523
|
|
|
494
524
|
### Map (`@sdxc/ui/map`)
|
|
495
525
|
|
|
496
526
|
Places on a map, with the list they belong to.
|
|
497
527
|
|
|
498
|
-
- `MapCanvas` — a drawn map in one SVG viewBox:
|
|
528
|
+
- `MapCanvas` — a drawn map in one SVG viewBox: `.Art`, `.Route` (travelled share solid, the rest
|
|
499
529
|
dashed), `.Marker` (a glyph along a path at `progress`) and `.Pin` price pills as links or buttons;
|
|
500
530
|
`MapCanvasSync` lights a pin and the list row sharing its `mapKey`.
|
|
501
531
|
- `GeoMap` — a real map by longitude and latitude: server SVG with HTML `.Marker`s (clusters, `.Popup`),
|
|
502
|
-
`.Route` and `.RouteMarker`, `.Area` for "search this area"
|
|
532
|
+
`.Route` and `.RouteMarker`, `.Area` for "search this area", `.Controls` with `.ZoomIn`, `.ZoomOut`,
|
|
533
|
+
`.Reset`, `.Locate` and `.Fullscreen`, and a `.Fallback` under a style basemap; the `@sdxc/ui/map/map` island runs it
|
|
503
534
|
on MapLibre (an optional peer) over OpenFreeMap's light and dark styles by default (allow
|
|
504
535
|
`https://tiles.openfreemap.org` in `connect-src` and `img-src`, and `blob:` in `worker-src`), or
|
|
505
536
|
your own GeoJSON basemap or style URL.
|
|
@@ -510,34 +541,43 @@ Places on a map, with the list they belong to.
|
|
|
510
541
|
|
|
511
542
|
Booking a stay or a trip.
|
|
512
543
|
|
|
513
|
-
- `RatingBreakdown` — a
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
- `
|
|
522
|
-
|
|
544
|
+
- `RatingBreakdown` — a `.Score` with its `.Count` over `.Group` lists of `.Bar` meters, per star or
|
|
545
|
+
per category.
|
|
546
|
+
- `PriceBreakdown` — a receipt: `.Lines` (a `<dl>`) of `.Line`s with a `.Detail`, `tone="discount"`
|
|
547
|
+
and a named `<output>`, a bold `.Total`, and a `.Note` under it.
|
|
548
|
+
- `FlightRoute` — times, codes and a track with a dot per stop: `.End`s (`.Time`, `.DayOffset`,
|
|
549
|
+
`.Place`, `.Code`) either side of a `.Path` (`.Duration`, `.Track`, `.Stops`).
|
|
550
|
+
- `FlightSegment` — one leg: a `.Carrier` (`.Mark`, `.Airline`, `.Number`), a `FlightRoute` and a
|
|
551
|
+
`.Meta` line of `.MetaItem`s.
|
|
552
|
+
- `FlightItinerary` — a journey: a `.Header` (`.Title`, `.Airline`, `.Totals`) and a `FlightRoute` over
|
|
553
|
+
`.Details` with a `.Toggle` and `.Legs` of `.Segment`s and `.Layover`s (`tone="warning"`, `.LayoverNote`).
|
|
554
|
+
- `FlightOption` — a flight results row: `.Badges`, `.Journeys` of `.Journey`s, a `.Price` column
|
|
555
|
+
(`.Amount`, `.PriceDetail`, `.Action`) and `.Details`.
|
|
556
|
+
- `FareOptions` — fare classes as radio cards: a `.Legend` and a `.List` of `.Option`s (`.Ribbon`,
|
|
557
|
+
`.Title`, `.Price`, `.Features` of `.Feature included`).
|
|
523
558
|
- `FareCalendar` — flexible dates: a month of day links with each day's fare, the cheapest tinted and
|
|
524
559
|
named so; `variant="strip"` is a scrolling row of `days` around `selected`.
|
|
525
560
|
- `SeatMap` — a cabin seat picker: a fuselage of native radios under one `name` (`layout="ABC DEF"`,
|
|
526
|
-
taken seats disabled, tinted kinds, exits, wing,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
- `
|
|
533
|
-
|
|
561
|
+
taken seats disabled, tinted kinds, exits, wing), `.Deck` and `.Section` titles, scrolling in its
|
|
562
|
+
box; a `.Legend` of `.LegendItem` swatches.
|
|
563
|
+
- `BoardingPass` — a wallet-style pass: a `.Main` (`.Band`, `.Route` of `.Place`s, `.Fields` of
|
|
564
|
+
`.Field`s) over a perforated `.Stub`; `PassCode` draws the deterministic code-like art it carries.
|
|
565
|
+
- `CarOffer` — a rental car result: `.Art`, `.Details` (`.Title`, `.Specs`, `.Perks`, `.Vendor`) and a
|
|
566
|
+
`.Price` column (`.Amount`, `.Total`, `.Actions`).
|
|
567
|
+
- `PackageSavings` — `.Parts` with struck-through `.Separate` prices beside a `.Bundle` with a
|
|
568
|
+
`.Savings` badge and the bundled `.Amount`.
|
|
569
|
+
- `TripTimeline` — a whole trip on a rail: `.Day`s (`.DayHeader`, `.Items`) of `.Item`s (flight, stay,
|
|
570
|
+
car, activity, note) with a `.Time` and a `.Body` (`.Title`, `.Status`, `.Details`, `.Actions`).
|
|
534
571
|
|
|
535
572
|
### Finance (`@sdxc/ui/finance`)
|
|
536
573
|
|
|
537
574
|
Banking, budgeting and wallets.
|
|
538
575
|
|
|
539
|
-
- `Ledger` — money movements grouped by day
|
|
540
|
-
|
|
576
|
+
- `Ledger` — money movements grouped by day: `.Day` with a sticky `.DayHeader` (`.DayTitle`, `.DayTotal`)
|
|
577
|
+
over `.Entries`, each `.Entry` one link laying out its `.EntryMark`, `.EntryTitle`, `.EntryMeta`,
|
|
578
|
+
`.EntryAmount` and `.EntryAmountMeta`.
|
|
579
|
+
- `PaymentCard` — a drawn card face with a chip by `kind`, and `.Brand`, `.Tag`, `.Number` (masked to
|
|
580
|
+
the last four), `.Holder`, `.Expiry`, `.Network` and a frosting `.Frozen` part.
|
|
541
581
|
|
|
542
582
|
### Schedule (`@sdxc/ui/schedule`)
|
|
543
583
|
|
|
@@ -547,14 +587,65 @@ Calendars, schedules and finding a time together.
|
|
|
547
587
|
lane, an hour column per time zone and a moving now line; with `edit`, a drag creates, moves or
|
|
548
588
|
resizes an event and Alt+arrows move the focused one, each posting a form; with `pages`, a swipe
|
|
549
589
|
on a touch screen follows the previous or next range.
|
|
550
|
-
- `MonthView`, `Agenda`, `DayStrip` — a month of day cells with bars and "+N more", an agenda
|
|
551
|
-
|
|
590
|
+
- `MonthView`, `Agenda`, `DayStrip` — a month of day cells with bars and "+N more", an agenda of
|
|
591
|
+
`.Days` and `.Day`s whose `.Event`s lay out `.Time`, `.Title`, `.Detail` and a `.Popover` (or an
|
|
592
|
+
`.Empty`), and a phone's scrolling strip of `.Day` cells with a `.Note` under each.
|
|
552
593
|
- `YearView` — twelve small months whose day dots weigh how busy each day is, every day a link.
|
|
553
594
|
- `FreeBusy` — people's busy times side by side over one day, with outside-hours hatching and the
|
|
554
595
|
free slots everyone can make.
|
|
555
596
|
- `layoutTimedItems()`, `layoutSpanItems()` — the overlap columns and all-day rows the views place
|
|
556
597
|
events with, for a custom view.
|
|
557
598
|
|
|
599
|
+
### Blog (`@sdxc/ui/blog`)
|
|
600
|
+
|
|
601
|
+
The parts of a blog, each a root and the pieces you write inside it: the root shares what its
|
|
602
|
+
parts need (a locale, an outline) and lays out whichever parts it gets, so a blog arranges, leaves
|
|
603
|
+
out or reorders pieces instead of setting props that move them. Dates are `YYYY-MM-DD` days rendered
|
|
604
|
+
as `<time>` in UTC for a `locale`, and every word a reader sees is a part's children, with an
|
|
605
|
+
English default where a part has one. Each component lists the custom properties its parts read in
|
|
606
|
+
its `CustomProperties` type; set them on the root through `mix` or `style`, and a caller's
|
|
607
|
+
`data-slot` replaces any part's.
|
|
608
|
+
|
|
609
|
+
- `PostEntry` — one post in a list, an `<article>` laid out as a `stack`, a `margin` log with the kind
|
|
610
|
+
in a gutter, or a dense `row` with the date in a column of its own; `featured` tints it. Parts:
|
|
611
|
+
`.Kind` (with `.KindLink`), `.Date` (`date`, `locale`, `format`), `.Title` (with `.TitleLink`, and
|
|
612
|
+
anything else such as a `LinkHost` beside it), `.Lead`, `.Body` and `.Meta`.
|
|
613
|
+
- `PostStream` — entries ruled apart by hairlines, grouped into `.Section`s whose `.Heading` sticks
|
|
614
|
+
while its section scrolls.
|
|
615
|
+
- `PostByline` — who wrote a post and when, standing alone wherever a byline goes: `.Portrait`
|
|
616
|
+
(`image`, `initials`, or your own children), `.Author` (`href`, linked with `rel="author"`) and
|
|
617
|
+
`.Facts`, a line of `.Date` (`date`, children before it), `.Updated`, `.Minutes` and any `.Fact`,
|
|
618
|
+
joined by middots (or any `--ui-post-byline-separator`); `locale` and `dateStyle` on the root reach
|
|
619
|
+
every date.
|
|
620
|
+
- `TagList` — a post's tags as a labelled `<ul>` of `.Tag` links, each led by a `prefix` (`#`), as
|
|
621
|
+
plain links, chips or a separated row through its properties.
|
|
622
|
+
- `TagCloud` — every tag as a `.Tag` (`href`, `count`) sized in `steps` sizes (five by default) across
|
|
623
|
+
the `range` of counts, times `scale`; `.Count` shows the number and `.CountLabel` the words a
|
|
624
|
+
screen reader hears.
|
|
625
|
+
- `LinkHost` — an outbound link's host without `www.` and an arrow out, on one line; `variant="chip"`.
|
|
626
|
+
- `SeriesNav` — a post's place in a series, a `<nav>` sharing `current` and `total`: `.Header` holding
|
|
627
|
+
`.Label` and `.Progress` ("Part n of m", or your function of both), `.Title` (`href`), `.Parts` of
|
|
628
|
+
`.Part`s (`href`, `current`, the current one unlinked, with an optional `.CurrentLabel`), then
|
|
629
|
+
`.Next` or `.Last`; `.Disclosure` with a `.Summary` folds the parts into a `<details>`.
|
|
630
|
+
- `ArchiveList` — every post one dense line each, days in its `locale`: an optional `.Jump` of
|
|
631
|
+
`.JumpLink`s, `.Group`s (`id`) with a `.Heading` and `.Count`, and `.Entries` of `.Entry` lines holding
|
|
632
|
+
`.Day` (`date`), `.Kind`, `.Main` with the `.Title` (`href`) and any `.Extra`.
|
|
633
|
+
- `Widget` — a sidebar `<section>` named by its `.Heading`, an uppercase heading under a brand rule,
|
|
634
|
+
then its content.
|
|
635
|
+
- `BlogMasthead` — the blog's `<header>`: a `.Mark` beside the `.Title` (a paragraph, with a
|
|
636
|
+
`.TitleLink` home, so each page keeps its own `h1`) and `.Tagline`, and an `.Art` band.
|
|
637
|
+
- `AuthorCard` — an `<aside>` named "About the author" (or your `aria-label`): `.Portrait` beside
|
|
638
|
+
`.Details` in a `row` or above them in a `stack`, `.Details` holding `.Name` (`href`), `.Subtitle`,
|
|
639
|
+
`.Bio` and `.Links` of `.Link`s, and a `.Footer` across the card, such as a sign-up form; `plain`
|
|
640
|
+
opens on a rule, `tinted` sits on a surface.
|
|
641
|
+
- `NewsletterForm` — a `method="post"` form to `action`: a `.Field` holding `.Label` and `.Input`
|
|
642
|
+
(a required email field named `email`), and a `.Submit` button, side by side when the form is wide
|
|
643
|
+
enough.
|
|
644
|
+
- `ArticleLayout` — a post's page around an `outline` of headings, with the reading column at a
|
|
645
|
+
`measure` holding `.Header` (`span="full"` crosses the rail), `.Bar` (the outline as a sticky bar
|
|
646
|
+
on a narrow layout), `.Body` and `.Footer` in the order written, and a sticky `.Rail` beside it on a
|
|
647
|
+
wide one holding `.Outline` and anything else; `stickyTop` clears a sticky site header.
|
|
648
|
+
|
|
558
649
|
### Component helpers
|
|
559
650
|
|
|
560
651
|
- `readFormContext(handle): Form.Context | undefined` and
|
|
@@ -580,6 +671,7 @@ Each mixin module documents why it needs JavaScript and what still works without
|
|
|
580
671
|
| `comboboxFilter()` | `ComboBox.Input` | As-you-type narrowing. |
|
|
581
672
|
| `commandFilter(model)` | `Command` | Items hidden by a `FilterModel` query. |
|
|
582
673
|
| `commandKeys(model)` | `Command` | Arrow keys over matches; Enter activates the active item's link/button. |
|
|
674
|
+
| `copyFeedback(copiedLabel)` | a copy button | `data-copied` for 2s and the label announced after a copy. |
|
|
583
675
|
| `copyToClipboard()` | a button | Copies the text of its `commandfor` target, minus `data-copy-exclude`. |
|
|
584
676
|
| `dialogDismiss()` | an element in a `<dialog>` | Closes the dialog on a backdrop press or a followed link. |
|
|
585
677
|
| `dismiss(options?)` | an alert or toast | Auto-dismiss countdown paused on hover, plus a `--ui-dismiss` command. |
|
|
@@ -604,6 +696,7 @@ Each mixin module documents why it needs JavaScript and what still works without
|
|
|
604
696
|
| `stepper(options?)` | `NumberField.Group` | Press-and-hold repeat on the step buttons. |
|
|
605
697
|
| `tabKeys(options?)` | `Tabs.List` | Arrow, Home/End tab activation. |
|
|
606
698
|
| `themeToggle(options?)` | any host | `--ui-theme-light`/`-dark`/`-system` commands saved to a cookie. |
|
|
699
|
+
| `tocSpy()` | a `TableOfContents` list | Sections on screen marked, the marker slid over them, the lead named. |
|
|
607
700
|
| `validate(schema)` | a form control | A `remix/data-schema` check through `setCustomValidity()`. |
|
|
608
701
|
| `viewTransition()` | a `SharedElement` island | A View Transition across a same-document reload. |
|
|
609
702
|
|
|
@@ -721,7 +814,9 @@ export let ContactSchema = f.object({
|
|
|
721
814
|
export function ContactPage(handle: Handle<{ issues?: ReadonlyArray<Form.Issue> }>) {
|
|
722
815
|
return () => (
|
|
723
816
|
<Form method="post" issues={handle.props.issues}>
|
|
724
|
-
<TextField
|
|
817
|
+
<TextField name="email" type="email" required>
|
|
818
|
+
<TextField.Label>Email</TextField.Label>
|
|
819
|
+
</TextField>
|
|
725
820
|
<Button type="submit">Send</Button>
|
|
726
821
|
</Form>
|
|
727
822
|
);
|
|
@@ -737,7 +832,7 @@ Pass `errorMessage` to a field for a message the schema does not produce, or app
|
|
|
737
832
|
|
|
738
833
|
## Pattern: A Confirmed Destructive Action
|
|
739
834
|
|
|
740
|
-
`Confirm`
|
|
835
|
+
`Confirm.Form` wraps the parts in a real `<form>`, so confirming is an ordinary POST and
|
|
741
836
|
cancelling only closes the dialog:
|
|
742
837
|
|
|
743
838
|
```tsx
|
|
@@ -746,23 +841,23 @@ import { Button, Confirm } from "@sdxc/ui";
|
|
|
746
841
|
<Button commandfor="revoke-session" command="show-modal" color="danger">
|
|
747
842
|
Revoke session
|
|
748
843
|
</Button>
|
|
749
|
-
<Confirm
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
844
|
+
<Confirm id="revoke-session">
|
|
845
|
+
<Confirm.Form action="/sessions/revoke">
|
|
846
|
+
<input type="hidden" name="sessionId" value="42" />
|
|
847
|
+
<Confirm.Header>
|
|
848
|
+
<Confirm.Title>Revoke this session?</Confirm.Title>
|
|
849
|
+
<Confirm.Description>The device is signed out immediately.</Confirm.Description>
|
|
850
|
+
</Confirm.Header>
|
|
851
|
+
<Confirm.Footer>
|
|
852
|
+
<Confirm.Cancel>Cancel</Confirm.Cancel>
|
|
853
|
+
<Confirm.Action>Revoke</Confirm.Action>
|
|
854
|
+
</Confirm.Footer>
|
|
855
|
+
</Confirm.Form>
|
|
856
|
+
</Confirm>;
|
|
762
857
|
```
|
|
763
858
|
|
|
764
|
-
Render it outside any other `<form>`. Without
|
|
765
|
-
page decides what confirmation means
|
|
859
|
+
Render it outside any other `<form>`. Without `.Form`, the confirm button closes the dialog and your
|
|
860
|
+
page decides what confirmation means.
|
|
766
861
|
|
|
767
862
|
## Pattern: A Toast Queue
|
|
768
863
|
|
|
@@ -878,10 +973,20 @@ export default clientEntry(
|
|
|
878
973
|
</Button>
|
|
879
974
|
<Modal id="shortcuts" aria-label="Keyboard shortcuts">
|
|
880
975
|
<ShortcutList>
|
|
881
|
-
<ShortcutList.Item
|
|
882
|
-
Save
|
|
976
|
+
<ShortcutList.Item>
|
|
977
|
+
<ShortcutList.Action>Save</ShortcutList.Action>
|
|
978
|
+
<ShortcutList.Keys>
|
|
979
|
+
{keyComboGlyphs("mod+s", handle.props.apple).map((key) => (
|
|
980
|
+
<ShortcutList.Key>{key}</ShortcutList.Key>
|
|
981
|
+
))}
|
|
982
|
+
</ShortcutList.Keys>
|
|
983
|
+
</ShortcutList.Item>
|
|
984
|
+
<ShortcutList.Item>
|
|
985
|
+
<ShortcutList.Action>Show shortcuts</ShortcutList.Action>
|
|
986
|
+
<ShortcutList.Keys>
|
|
987
|
+
<ShortcutList.Key>?</ShortcutList.Key>
|
|
988
|
+
</ShortcutList.Keys>
|
|
883
989
|
</ShortcutList.Item>
|
|
884
|
-
<ShortcutList.Item keys={["?"]}>Show shortcuts</ShortcutList.Item>
|
|
885
990
|
</ShortcutList>
|
|
886
991
|
</Modal>
|
|
887
992
|
<div role="status" aria-live="polite">
|
|
@@ -909,11 +1014,9 @@ import { zoom } from "@sdxc/ui/animations";
|
|
|
909
1014
|
import { floatingSurface } from "@sdxc/ui/styles";
|
|
910
1015
|
|
|
911
1016
|
<Card mix={css({ maxInlineSize: "32rem" })} style={{ "--ui-radius-lg": "1rem" }}>
|
|
912
|
-
<TextField
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
parts={{ input: css({ fontFamily: "var(--ui-font-mono)" }) }}
|
|
916
|
-
/>
|
|
1017
|
+
<TextField name="username" mix={css({ "& input": { fontFamily: "var(--ui-font-mono)" } })}>
|
|
1018
|
+
<TextField.Label>Username</TextField.Label>
|
|
1019
|
+
</TextField>
|
|
917
1020
|
</Card>
|
|
918
1021
|
|
|
919
1022
|
<div
|
|
@@ -963,7 +1066,7 @@ export function RevenueChart(handle: Handle<{ revenue: Point[]; refunds: Point[]
|
|
|
963
1066
|
<Chart.Line
|
|
964
1067
|
color={3}
|
|
965
1068
|
points={handle.props.refunds}
|
|
966
|
-
|
|
1069
|
+
mix={[css({ "--ui-chart-line-dash": "4 4" })]}
|
|
967
1070
|
/>
|
|
968
1071
|
</Chart>
|
|
969
1072
|
<Chart.Legend aria-label="Series">
|