@fairgarden/design 0.1.0-alpha.1 → 0.1.0-alpha.2
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/LICENSE +21 -0
- package/Readme.md +51 -27
- package/actions/button/Button.d.ts.map +1 -1
- package/actions/button/Button.js +13 -1
- package/actions/button/Button.js.map +1 -1
- package/actions/button/button.module.css +85 -25
- package/actions/chip/Chip.d.ts +2 -2
- package/actions/chip/Chip.js +2 -2
- package/actions/chip/chip.module.css +12 -18
- package/actions/link/Link.d.ts +1 -1
- package/actions/link/link.module.css +22 -19
- package/actions/toggle/Toggle.js +1 -1
- package/actions/toggle/toggle.module.css +27 -23
- package/content/card/card.module.css +27 -27
- package/content/card-grid/CardGrid.js +1 -1
- package/content/card-grid/card-grid.module.css +3 -3
- package/content/carousel/Carousel.d.ts.map +1 -1
- package/content/carousel/Carousel.js +1 -4
- package/content/carousel/Carousel.js.map +1 -1
- package/content/carousel/carousel.module.css +19 -9
- package/content/code-block/CodeActionsMenu.d.ts +34 -0
- package/content/code-block/CodeActionsMenu.d.ts.map +1 -0
- package/content/code-block/CodeActionsMenu.js +102 -0
- package/content/code-block/CodeActionsMenu.js.map +1 -0
- package/content/code-block/CodeBlock.d.ts +37 -0
- package/content/code-block/CodeBlock.d.ts.map +1 -0
- package/content/code-block/CodeBlock.js +30 -0
- package/content/code-block/CodeBlock.js.map +1 -0
- package/content/code-block/CodeBlockFrame.d.ts +54 -0
- package/content/code-block/CodeBlockFrame.d.ts.map +1 -0
- package/content/code-block/CodeBlockFrame.js +80 -0
- package/content/code-block/CodeBlockFrame.js.map +1 -0
- package/content/code-block/CodeBlockHeader.d.ts +26 -0
- package/content/code-block/CodeBlockHeader.d.ts.map +1 -0
- package/content/code-block/CodeBlockHeader.js +16 -0
- package/content/code-block/CodeBlockHeader.js.map +1 -0
- package/content/code-block/CodeBlockLazy.d.ts +11 -0
- package/content/code-block/CodeBlockLazy.d.ts.map +1 -0
- package/content/code-block/CodeBlockLazy.js +14 -0
- package/content/code-block/CodeBlockLazy.js.map +1 -0
- package/content/code-block/CodeBlockLoading.d.ts +31 -0
- package/content/code-block/CodeBlockLoading.d.ts.map +1 -0
- package/content/code-block/CodeBlockLoading.js +90 -0
- package/content/code-block/CodeBlockLoading.js.map +1 -0
- package/content/code-block/CodeBlockSection.d.ts +40 -0
- package/content/code-block/CodeBlockSection.d.ts.map +1 -0
- package/content/code-block/CodeBlockSection.js +105 -0
- package/content/code-block/CodeBlockSection.js.map +1 -0
- package/content/code-block/CodeBlockToasts.d.ts +26 -0
- package/content/code-block/CodeBlockToasts.d.ts.map +1 -0
- package/content/code-block/CodeBlockToasts.js +88 -0
- package/content/code-block/CodeBlockToasts.js.map +1 -0
- package/content/code-block/code-block.module.css +949 -0
- package/content/code-block/index.d.ts +4 -0
- package/content/code-block/index.d.ts.map +1 -0
- package/content/code-block/index.js +4 -0
- package/content/code-block/index.js.map +1 -0
- package/content/demo/DemoContent.d.ts +32 -0
- package/content/demo/DemoContent.d.ts.map +1 -0
- package/content/demo/DemoContent.js +87 -0
- package/content/demo/DemoContent.js.map +1 -0
- package/content/demo/DemoFrame.d.ts +6 -0
- package/content/demo/DemoFrame.d.ts.map +1 -0
- package/content/demo/DemoFrame.js +17 -0
- package/content/demo/DemoFrame.js.map +1 -0
- package/content/demo/DemoLazy.d.ts +11 -0
- package/content/demo/DemoLazy.d.ts.map +1 -0
- package/content/demo/DemoLazy.js +14 -0
- package/content/demo/DemoLazy.js.map +1 -0
- package/content/demo/DemoLoading.d.ts +23 -0
- package/content/demo/DemoLoading.d.ts.map +1 -0
- package/content/demo/DemoLoading.js +26 -0
- package/content/demo/DemoLoading.js.map +1 -0
- package/content/demo/demo.module.css +163 -0
- package/content/demo/index.d.ts +4 -0
- package/content/demo/index.d.ts.map +1 -0
- package/content/demo/index.js +4 -0
- package/content/demo/index.js.map +1 -0
- package/content/empty-state/EmptyState.d.ts +1 -1
- package/content/empty-state/EmptyState.js +1 -1
- package/content/empty-state/empty-state.module.css +11 -11
- package/content/feature-grid/feature-grid.module.css +22 -22
- package/content/index-rows/IndexRows.d.ts +2 -2
- package/content/index-rows/IndexRows.d.ts.map +1 -1
- package/content/index-rows/IndexRows.js +1 -1
- package/content/index-rows/index-rows.module.css +29 -29
- package/content/pricing/Pricing.d.ts +4 -4
- package/content/pricing/Pricing.d.ts.map +1 -1
- package/content/pricing/Pricing.js +4 -4
- package/content/pricing/Pricing.js.map +1 -1
- package/content/pricing/pricing.module.css +22 -22
- package/content/profile/Profile.d.ts +1 -1
- package/content/profile/Profile.js +2 -2
- package/content/profile/profile.module.css +13 -13
- package/content/quote/Quote.d.ts +1 -1
- package/content/quote/quote.module.css +9 -9
- package/content/timeline/Timeline.d.ts +1 -1
- package/content/timeline/Timeline.d.ts.map +1 -1
- package/content/timeline/Timeline.js +5 -5
- package/content/timeline/Timeline.js.map +1 -1
- package/content/timeline/timeline.module.css +12 -12
- package/content/types-table/TypePre.d.ts +11 -0
- package/content/types-table/TypePre.d.ts.map +1 -0
- package/content/types-table/TypePre.js +13 -0
- package/content/types-table/TypePre.js.map +1 -0
- package/content/types-table/TypesTable.d.ts +22 -0
- package/content/types-table/TypesTable.d.ts.map +1 -0
- package/content/types-table/TypesTable.js +124 -0
- package/content/types-table/TypesTable.js.map +1 -0
- package/content/types-table/index.d.ts +3 -0
- package/content/types-table/index.d.ts.map +1 -0
- package/content/types-table/index.js +3 -0
- package/content/types-table/index.js.map +1 -0
- package/content/types-table/types-table.module.css +160 -0
- package/data/chart/Chart.d.ts +8 -1
- package/data/chart/Chart.d.ts.map +1 -1
- package/data/chart/Chart.js +28 -15
- package/data/chart/Chart.js.map +1 -1
- package/data/chart/chart.module.css +20 -6
- package/data/figure/Figure.d.ts +1 -1
- package/data/figure/Figure.js +1 -1
- package/data/figure/figure.module.css +7 -7
- package/data/map/Map.d.ts +3 -3
- package/data/map/Map.d.ts.map +1 -1
- package/data/map/Map.js +10 -8
- package/data/map/Map.js.map +1 -1
- package/data/map/MapCanvas.d.ts.map +1 -1
- package/data/map/MapCanvas.js +5 -9
- package/data/map/MapCanvas.js.map +1 -1
- package/data/map/map.module.css +39 -14
- package/data/map/mapStyle.d.ts +2 -2
- package/data/map/mapStyle.d.ts.map +1 -1
- package/data/map/mapStyle.js +5 -5
- package/data/map/mapStyle.js.map +1 -1
- package/data/scroll-area/ScrollArea.d.ts.map +1 -1
- package/data/scroll-area/ScrollArea.js +8 -4
- package/data/scroll-area/ScrollArea.js.map +1 -1
- package/data/scroll-area/scroll-area.module.css +28 -9
- package/data/spec-grid/spec-grid.module.css +8 -8
- package/data/spec-list/spec-list.module.css +3 -3
- package/data/spec-sheet/SpecSheet.d.ts +2 -2
- package/data/spec-sheet/SpecSheet.js +1 -1
- package/data/spec-sheet/spec-sheet.module.css +9 -9
- package/data/stat/Stat.d.ts +1 -1
- package/data/stat/Stat.d.ts.map +1 -1
- package/data/stat/stat.module.css +4 -4
- package/data/table/Table.d.ts +6 -5
- package/data/table/Table.d.ts.map +1 -1
- package/data/table/Table.js.map +1 -1
- package/data/table/table.module.css +43 -46
- package/disclosure/accordion/Accordion.d.ts +1 -1
- package/disclosure/accordion/Accordion.js +1 -1
- package/disclosure/accordion/accordion.module.css +12 -12
- package/disclosure/collapsible/Collapsible.d.ts +4 -4
- package/disclosure/collapsible/Collapsible.js +4 -4
- package/disclosure/collapsible/collapsible.module.css +10 -10
- package/disclosure/faq/FAQ.d.ts +3 -3
- package/disclosure/faq/FAQ.d.ts.map +1 -1
- package/disclosure/faq/FAQ.js +3 -3
- package/disclosure/faq/FAQ.js.map +1 -1
- package/disclosure/faq/faq.module.css +20 -20
- package/feedback/alert/alert.module.css +4 -4
- package/feedback/avatar/avatar-group.module.css +2 -2
- package/feedback/avatar/avatar.module.css +9 -9
- package/feedback/badge/Badge.d.ts +1 -1
- package/feedback/badge/badge.module.css +7 -7
- package/feedback/meter/Meter.d.ts +2 -2
- package/feedback/meter/meter.module.css +14 -14
- package/feedback/progress/Progress.d.ts +1 -1
- package/feedback/progress/progress.module.css +7 -7
- package/feedback/tag/tag.module.css +7 -7
- package/feedback/toast/Toast.d.ts +3 -3
- package/feedback/toast/Toast.d.ts.map +1 -1
- package/feedback/toast/Toast.js +17 -7
- package/feedback/toast/Toast.js.map +1 -1
- package/feedback/toast/toast.module.css +31 -20
- package/forms/autocomplete/Autocomplete.d.ts +11 -0
- package/forms/autocomplete/Autocomplete.d.ts.map +1 -1
- package/forms/autocomplete/Autocomplete.js +27 -6
- package/forms/autocomplete/Autocomplete.js.map +1 -1
- package/forms/autocomplete/autocomplete.module.css +35 -41
- package/forms/checkbox/Checkbox.js +1 -1
- package/forms/checkbox/checkbox.module.css +29 -25
- package/forms/checkbox-group/checkbox-group.module.css +4 -4
- package/forms/combobox/Combobox.d.ts +10 -0
- package/forms/combobox/Combobox.d.ts.map +1 -1
- package/forms/combobox/Combobox.js +28 -7
- package/forms/combobox/Combobox.js.map +1 -1
- package/forms/combobox/combobox.module.css +34 -41
- package/forms/field/field.module.css +1 -1
- package/forms/fieldset/Fieldset.d.ts +1 -1
- package/forms/fieldset/Fieldset.js +2 -2
- package/forms/fieldset/fieldset.module.css +14 -14
- package/forms/form/form.module.css +2 -2
- package/forms/input/Input.d.ts +10 -3
- package/forms/input/Input.d.ts.map +1 -1
- package/forms/input/Input.js +10 -4
- package/forms/input/Input.js.map +1 -1
- package/forms/input/input.module.css +38 -21
- package/forms/number-field/number-field.module.css +24 -23
- package/forms/radio/Radio.d.ts +1 -1
- package/forms/radio/Radio.d.ts.map +1 -1
- package/forms/radio/Radio.js +5 -3
- package/forms/radio/Radio.js.map +1 -1
- package/forms/radio/radio.module.css +38 -30
- package/forms/radio-group/RadioGroup.d.ts +1 -1
- package/forms/radio-group/radio-group.module.css +3 -3
- package/forms/search/Search.d.ts +10 -0
- package/forms/search/Search.d.ts.map +1 -1
- package/forms/search/Search.js +25 -6
- package/forms/search/Search.js.map +1 -1
- package/forms/search/search.module.css +25 -33
- package/forms/select/Select.d.ts +10 -2
- package/forms/select/Select.d.ts.map +1 -1
- package/forms/select/Select.js +27 -12
- package/forms/select/Select.js.map +1 -1
- package/forms/select/select.module.css +42 -48
- package/forms/slider/Slider.js +2 -2
- package/forms/slider/slider.module.css +23 -23
- package/forms/switch/Switch.js +1 -1
- package/forms/switch/switch.module.css +23 -19
- package/foundations/expanding-box/ExpandingBox.d.ts +86 -0
- package/foundations/expanding-box/ExpandingBox.d.ts.map +1 -0
- package/foundations/expanding-box/ExpandingBox.js +179 -0
- package/foundations/expanding-box/ExpandingBox.js.map +1 -0
- package/foundations/expanding-box/expanding-box.module.css +415 -0
- package/foundations/expanding-box/index.d.ts +3 -0
- package/foundations/expanding-box/index.d.ts.map +1 -0
- package/foundations/expanding-box/index.js +3 -0
- package/foundations/expanding-box/index.js.map +1 -0
- package/foundations/expanding-box/startExpandingTransition.d.ts +33 -0
- package/foundations/expanding-box/startExpandingTransition.d.ts.map +1 -0
- package/foundations/expanding-box/startExpandingTransition.js +82 -0
- package/foundations/expanding-box/startExpandingTransition.js.map +1 -0
- package/foundations/ground/Ground.d.ts +1 -1
- package/foundations/ground/ground.module.css +4 -4
- package/foundations/icon/Icon.d.ts +1 -1
- package/foundations/icon/Icon.js +1 -1
- package/foundations/icon/icon.module.css +1 -1
- package/foundations/outline-morph/OutlineMorph.d.ts +112 -0
- package/foundations/outline-morph/OutlineMorph.d.ts.map +1 -0
- package/foundations/outline-morph/OutlineMorph.js +83 -0
- package/foundations/outline-morph/OutlineMorph.js.map +1 -0
- package/foundations/outline-morph/index.d.ts +3 -0
- package/foundations/outline-morph/index.d.ts.map +1 -0
- package/foundations/outline-morph/index.js +3 -0
- package/foundations/outline-morph/index.js.map +1 -0
- package/foundations/outline-morph/morphEngine.d.ts +219 -0
- package/foundations/outline-morph/morphEngine.d.ts.map +1 -0
- package/foundations/outline-morph/morphEngine.js +1331 -0
- package/foundations/outline-morph/morphEngine.js.map +1 -0
- package/foundations/outline-morph/outline-morph.module.css +113 -0
- package/foundations/outline-morph/useOutlineMorphRoot.d.ts +50 -0
- package/foundations/outline-morph/useOutlineMorphRoot.d.ts.map +1 -0
- package/foundations/outline-morph/useOutlineMorphRoot.js +55 -0
- package/foundations/outline-morph/useOutlineMorphRoot.js.map +1 -0
- package/foundations/separator/separator.module.css +10 -10
- package/foundations/sticker/Sticker.d.ts +4 -4
- package/foundations/sticker/Sticker.d.ts.map +1 -1
- package/foundations/sticker/Sticker.js +3 -3
- package/foundations/sticker/sticker.module.css +10 -10
- package/icons/paths.d.ts +1 -1
- package/icons/paths.d.ts.map +1 -1
- package/icons/paths.js +50 -0
- package/icons/paths.js.map +1 -1
- package/navigation/breadcrumb/Breadcrumb.d.ts +7 -1
- package/navigation/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/navigation/breadcrumb/Breadcrumb.js +8 -8
- package/navigation/breadcrumb/Breadcrumb.js.map +1 -1
- package/navigation/breadcrumb/breadcrumb.module.css +14 -14
- package/navigation/file-tabs/FileTabs.d.ts +169 -0
- package/navigation/file-tabs/FileTabs.d.ts.map +1 -0
- package/navigation/file-tabs/FileTabs.js +253 -0
- package/navigation/file-tabs/FileTabs.js.map +1 -0
- package/navigation/file-tabs/file-tabs.module.css +868 -0
- package/navigation/file-tabs/index.d.ts +2 -0
- package/navigation/file-tabs/index.d.ts.map +1 -0
- package/navigation/file-tabs/index.js +2 -0
- package/navigation/file-tabs/index.js.map +1 -0
- package/navigation/nav-drawer/NavDrawer.d.ts +32 -6
- package/navigation/nav-drawer/NavDrawer.d.ts.map +1 -1
- package/navigation/nav-drawer/NavDrawer.js +94 -28
- package/navigation/nav-drawer/NavDrawer.js.map +1 -1
- package/navigation/nav-drawer/nav-drawer.module.css +78 -55
- package/navigation/navigation-bar/NavigationBar.d.ts +31 -11
- package/navigation/navigation-bar/NavigationBar.d.ts.map +1 -1
- package/navigation/navigation-bar/NavigationBar.js +40 -17
- package/navigation/navigation-bar/NavigationBar.js.map +1 -1
- package/navigation/navigation-bar/navigation-bar.module.css +58 -27
- package/navigation/navigation-menu/NavigationMenu.d.ts +9 -9
- package/navigation/navigation-menu/NavigationMenu.d.ts.map +1 -1
- package/navigation/navigation-menu/NavigationMenu.js +15 -15
- package/navigation/navigation-menu/navigation-menu.module.css +39 -53
- package/navigation/pagination/Pagination.js +1 -1
- package/navigation/pagination/pagination.module.css +24 -24
- package/navigation/sidebar-nav/SidebarNav.d.ts +71 -0
- package/navigation/sidebar-nav/SidebarNav.d.ts.map +1 -0
- package/navigation/sidebar-nav/SidebarNav.js +169 -0
- package/navigation/sidebar-nav/SidebarNav.js.map +1 -0
- package/navigation/sidebar-nav/index.d.ts +2 -0
- package/navigation/sidebar-nav/index.d.ts.map +1 -0
- package/navigation/sidebar-nav/index.js +2 -0
- package/navigation/sidebar-nav/index.js.map +1 -0
- package/navigation/sidebar-nav/sidebar-nav.module.css +270 -0
- package/navigation/table-of-contents/TableOfContents.d.ts +92 -0
- package/navigation/table-of-contents/TableOfContents.d.ts.map +1 -0
- package/navigation/table-of-contents/TableOfContents.js +211 -0
- package/navigation/table-of-contents/TableOfContents.js.map +1 -0
- package/navigation/table-of-contents/index.d.ts +3 -0
- package/navigation/table-of-contents/index.d.ts.map +1 -0
- package/navigation/table-of-contents/index.js +3 -0
- package/navigation/table-of-contents/index.js.map +1 -0
- package/navigation/table-of-contents/table-of-contents.module.css +322 -0
- package/navigation/table-of-contents/useActiveHeading.d.ts +37 -0
- package/navigation/table-of-contents/useActiveHeading.d.ts.map +1 -0
- package/navigation/table-of-contents/useActiveHeading.js +111 -0
- package/navigation/table-of-contents/useActiveHeading.js.map +1 -0
- package/navigation/tabs/Tabs.d.ts +2 -2
- package/navigation/tabs/Tabs.js +3 -3
- package/navigation/tabs/tabs.module.css +22 -19
- package/navigation/toolbar/Toolbar.d.ts +7 -1
- package/navigation/toolbar/Toolbar.d.ts.map +1 -1
- package/navigation/toolbar/Toolbar.js +3 -3
- package/navigation/toolbar/Toolbar.js.map +1 -1
- package/navigation/toolbar/toolbar.module.css +6 -6
- package/overlays/alert-dialog/AlertDialog.d.ts +14 -4
- package/overlays/alert-dialog/AlertDialog.d.ts.map +1 -1
- package/overlays/alert-dialog/AlertDialog.js +15 -5
- package/overlays/alert-dialog/AlertDialog.js.map +1 -1
- package/overlays/alert-dialog/alert-dialog.module.css +4 -4
- package/overlays/context-menu/ContextMenu.d.ts +1 -1
- package/overlays/context-menu/ContextMenu.js +1 -1
- package/overlays/dialog/Dialog.d.ts +26 -11
- package/overlays/dialog/Dialog.d.ts.map +1 -1
- package/overlays/dialog/Dialog.js +36 -17
- package/overlays/dialog/Dialog.js.map +1 -1
- package/overlays/dialog/dialog.module.css +32 -31
- package/overlays/dialog/morph.d.ts +17 -0
- package/overlays/dialog/morph.d.ts.map +1 -0
- package/overlays/dialog/morph.js +44 -0
- package/overlays/dialog/morph.js.map +1 -0
- package/overlays/menu/Menu.d.ts +18 -7
- package/overlays/menu/Menu.d.ts.map +1 -1
- package/overlays/menu/Menu.js +35 -12
- package/overlays/menu/Menu.js.map +1 -1
- package/overlays/menu/menu.module.css +26 -50
- package/overlays/menu/morph.d.ts +16 -0
- package/overlays/menu/morph.d.ts.map +1 -0
- package/overlays/menu/morph.js +36 -0
- package/overlays/menu/morph.js.map +1 -0
- package/overlays/menu/popup.d.ts +2 -0
- package/overlays/menu/popup.d.ts.map +1 -1
- package/overlays/menu/popup.js +11 -3
- package/overlays/menu/popup.js.map +1 -1
- package/overlays/menubar/Menubar.d.ts +10 -1
- package/overlays/menubar/Menubar.d.ts.map +1 -1
- package/overlays/menubar/Menubar.js +22 -12
- package/overlays/menubar/Menubar.js.map +1 -1
- package/overlays/menubar/menubar.module.css +13 -13
- package/overlays/popover/Popover.d.ts +22 -8
- package/overlays/popover/Popover.d.ts.map +1 -1
- package/overlays/popover/Popover.js +51 -16
- package/overlays/popover/Popover.js.map +1 -1
- package/overlays/popover/popover.module.css +73 -47
- package/overlays/preview-card/PreviewCard.d.ts +3 -3
- package/overlays/preview-card/PreviewCard.d.ts.map +1 -1
- package/overlays/preview-card/PreviewCard.js +5 -6
- package/overlays/preview-card/PreviewCard.js.map +1 -1
- package/overlays/preview-card/preview-card.module.css +19 -54
- package/overlays/search-dialog/SearchDialog.d.ts +89 -0
- package/overlays/search-dialog/SearchDialog.d.ts.map +1 -0
- package/overlays/search-dialog/SearchDialog.js +220 -0
- package/overlays/search-dialog/SearchDialog.js.map +1 -0
- package/overlays/search-dialog/SearchDialogPopup.d.ts +39 -0
- package/overlays/search-dialog/SearchDialogPopup.d.ts.map +1 -0
- package/overlays/search-dialog/SearchDialogPopup.js +80 -0
- package/overlays/search-dialog/SearchDialogPopup.js.map +1 -0
- package/overlays/search-dialog/SearchDialogTrigger.d.ts +24 -0
- package/overlays/search-dialog/SearchDialogTrigger.d.ts.map +1 -0
- package/overlays/search-dialog/SearchDialogTrigger.js +32 -0
- package/overlays/search-dialog/SearchDialogTrigger.js.map +1 -0
- package/overlays/search-dialog/index.d.ts +3 -0
- package/overlays/search-dialog/index.d.ts.map +1 -0
- package/overlays/search-dialog/index.js +3 -0
- package/overlays/search-dialog/index.js.map +1 -0
- package/overlays/search-dialog/search-dialog.module.css +492 -0
- package/overlays/search-dialog/useShortcutLabel.d.ts +13 -0
- package/overlays/search-dialog/useShortcutLabel.d.ts.map +1 -0
- package/overlays/search-dialog/useShortcutLabel.js +19 -0
- package/overlays/search-dialog/useShortcutLabel.js.map +1 -0
- package/overlays/search-dialog/variants.d.ts +25 -0
- package/overlays/search-dialog/variants.d.ts.map +1 -0
- package/overlays/search-dialog/variants.js +31 -0
- package/overlays/search-dialog/variants.js.map +1 -0
- package/overlays/tooltip/Tooltip.d.ts +3 -3
- package/overlays/tooltip/Tooltip.d.ts.map +1 -1
- package/overlays/tooltip/Tooltip.js +3 -3
- package/overlays/tooltip/Tooltip.js.map +1 -1
- package/overlays/tooltip/tooltip.module.css +2 -2
- package/package.json +27 -19
- package/page/announcement-bar/AnnouncementBar.d.ts +1 -1
- package/page/announcement-bar/AnnouncementBar.js +4 -4
- package/page/announcement-bar/AnnouncementBar.js.map +1 -1
- package/page/announcement-bar/announcement-bar.module.css +11 -17
- package/page/cta-block/CTABlock.d.ts +5 -5
- package/page/cta-block/CTABlock.d.ts.map +1 -1
- package/page/cta-block/CTABlock.js +2 -2
- package/page/cta-block/cta-block.module.css +26 -26
- package/page/docs-layout/DocsLayout.d.ts +83 -0
- package/page/docs-layout/DocsLayout.d.ts.map +1 -0
- package/page/docs-layout/DocsLayout.js +108 -0
- package/page/docs-layout/DocsLayout.js.map +1 -0
- package/page/docs-layout/docs-layout.module.css +266 -0
- package/page/docs-layout/index.d.ts +2 -0
- package/page/docs-layout/index.d.ts.map +1 -0
- package/page/docs-layout/index.js +2 -0
- package/page/docs-layout/index.js.map +1 -0
- package/page/footer/Footer.d.ts +1 -1
- package/page/footer/Footer.js +1 -1
- package/page/footer/footer.module.css +31 -31
- package/page/hero/Hero.d.ts +3 -3
- package/page/hero/Hero.d.ts.map +1 -1
- package/page/hero/Hero.js +1 -1
- package/page/hero/hero.module.css +36 -36
- package/page/marquee/Marquee.d.ts +2 -2
- package/page/marquee/Marquee.js +1 -1
- package/page/marquee/marquee.module.css +11 -11
- package/page/newsletter/Newsletter.d.ts.map +1 -1
- package/page/newsletter/Newsletter.js +4 -59
- package/page/newsletter/Newsletter.js.map +1 -1
- package/page/newsletter/newsletter.module.css +44 -22
- package/page/section-bar/SectionBar.d.ts +10 -3
- package/page/section-bar/SectionBar.d.ts.map +1 -1
- package/page/section-bar/SectionBar.js +21 -11
- package/page/section-bar/SectionBar.js.map +1 -1
- package/page/section-bar/section-bar.module.css +43 -46
- package/page/section-divider/SectionDivider.d.ts +2 -2
- package/page/section-divider/SectionDivider.js +4 -4
- package/page/section-divider/SectionDivider.js.map +1 -1
- package/page/section-divider/section-divider.module.css +18 -18
- package/page/section-header/SectionHeader.d.ts +7 -7
- package/page/section-header/SectionHeader.d.ts.map +1 -1
- package/page/section-header/SectionHeader.js +3 -3
- package/page/section-header/SectionHeader.js.map +1 -1
- package/page/section-header/section-header.module.css +16 -16
- package/utils/Ornament.d.ts +1 -1
- package/utils/Ornament.js +2 -2
- package/utils/assignRef.d.ts +7 -1
- package/utils/assignRef.d.ts.map +1 -1
- package/utils/assignRef.js +18 -0
- package/utils/assignRef.js.map +1 -1
- package/utils/docs/DemoTitle.d.ts +12 -0
- package/utils/docs/DemoTitle.d.ts.map +1 -0
- package/utils/docs/DemoTitle.js +11 -0
- package/utils/docs/DemoTitle.js.map +1 -0
- package/utils/docs/Pre.d.ts +39 -0
- package/utils/docs/Pre.d.ts.map +1 -0
- package/utils/docs/Pre.js +26 -0
- package/utils/docs/Pre.js.map +1 -0
- package/utils/docs/createDemo.d.ts +89 -0
- package/utils/docs/createDemo.d.ts.map +1 -0
- package/utils/docs/createDemo.js +51 -0
- package/utils/docs/createDemo.js.map +1 -0
- package/utils/docs/createMdxComponents.d.ts +52 -0
- package/utils/docs/createMdxComponents.d.ts.map +1 -0
- package/utils/docs/createMdxComponents.js +59 -0
- package/utils/docs/createMdxComponents.js.map +1 -0
- package/utils/docs/createTypes.d.ts +23 -0
- package/utils/docs/createTypes.d.ts.map +1 -0
- package/utils/docs/createTypes.js +27 -0
- package/utils/docs/createTypes.js.map +1 -0
- package/utils/docs/index.d.ts +8 -0
- package/utils/docs/index.d.ts.map +1 -0
- package/utils/docs/index.js +16 -0
- package/utils/docs/index.js.map +1 -0
- package/utils/docs/mdx.module.css +201 -0
- package/utils/docs/serverSourceEnhancers.d.ts +26 -0
- package/utils/docs/serverSourceEnhancers.d.ts.map +1 -0
- package/utils/docs/serverSourceEnhancers.js +32 -0
- package/utils/docs/serverSourceEnhancers.js.map +1 -0
- package/utils/docs/toSidebarItems.d.ts +23 -0
- package/utils/docs/toSidebarItems.d.ts.map +1 -0
- package/utils/docs/toSidebarItems.js +36 -0
- package/utils/docs/toSidebarItems.js.map +1 -0
- package/utils/font-fallbacks.css +176 -0
- package/utils/fonts.d.ts +1 -0
- package/utils/fonts.d.ts.map +1 -1
- package/utils/fonts.js +12 -0
- package/utils/fonts.js.map +1 -1
- package/utils/frame.d.ts +4 -0
- package/utils/frame.d.ts.map +1 -0
- package/utils/frame.js +11 -0
- package/utils/frame.js.map +1 -0
- package/utils/global.css +480 -266
- package/utils/line.module.css +17 -17
- package/utils/media.css +1 -1
- package/utils/ornament.module.css +19 -19
- package/utils/overlay.d.ts +4 -4
- package/utils/overlay.js +4 -4
- package/utils/pattern.module.css +45 -45
- package/utils/print.css +48 -34
- package/utils/reset.css +9 -2
- package/utils/roles.css +29 -29
- package/utils/seriesPatterns.js +3 -3
- package/utils/syntax.module.css +92 -0
- package/utils/theme.css +6 -6
- package/utils/tokens.css +262 -192
- package/utils/tokens.d.ts +51 -8
- package/utils/tokens.d.ts.map +1 -1
- package/utils/tokens.js +46 -9
- package/utils/tokens.js.map +1 -1
- package/utils/type.module.css +87 -87
- package/utils/useReleaseMark.d.ts +13 -0
- package/utils/useReleaseMark.d.ts.map +1 -0
- package/utils/useReleaseMark.js +44 -0
- package/utils/useReleaseMark.js.map +1 -0
- package/utils/view-transitions.css +122 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { type NavDrawerProps } from '../../navigation/nav-drawer';
|
|
4
|
+
import { type PageGroundPreset } from '../../utils/scope';
|
|
5
|
+
export declare const docsLayout: (props?: ({
|
|
6
|
+
primary?: "ruby" | "brown" | "crimson" | "gold" | "gray" | "indigo" | "olive" | "pink" | "plum" | "purple" | "red" | "tomato" | "violet" | "bronze" | "iris" | "mauve" | "sage" | "sand" | "slate" | null | undefined;
|
|
7
|
+
secondary?: "ruby" | "blue" | "brown" | "crimson" | "cyan" | "gold" | "gray" | "green" | "indigo" | "lime" | "olive" | "orange" | "pink" | "plum" | "purple" | "red" | "teal" | "tomato" | "violet" | "yellow" | "amber" | "bronze" | "grass" | "iris" | "jade" | "mauve" | "mint" | "sage" | "sand" | "sky" | "slate" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
type DocsLayoutVariants = VariantProps<typeof docsLayout>;
|
|
10
|
+
interface DocsLayoutContextValue {
|
|
11
|
+
/** The sidebar navigation, repeated in the drawer below the threshold. */
|
|
12
|
+
sidebar: React.ReactNode;
|
|
13
|
+
/** The in-flow sidebar column. */
|
|
14
|
+
sidebarRef: React.RefObject<HTMLDivElement | null>;
|
|
15
|
+
}
|
|
16
|
+
/** Provided by DocsLayout; read by DocsLayoutDrawer. */
|
|
17
|
+
export declare const DocsLayoutContext: React.Context<DocsLayoutContextValue | null>;
|
|
18
|
+
/** Props for DocsLayout: `div` props, the frame's slots, the page ground and the color axes. */
|
|
19
|
+
export type DocsLayoutProps = Omit<React.ComponentPropsWithRef<'div'>, 'children'> & {
|
|
20
|
+
/**
|
|
21
|
+
* The site header: a `NavigationBar` with `wide` (so its content box
|
|
22
|
+
* meets the columns), whose `drawer` is a `DocsLayoutDrawer`.
|
|
23
|
+
*/
|
|
24
|
+
header?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The page tree: a `SidebarNav`. It fills the sticky start column from
|
|
27
|
+
* --fgd-nav-inline-n-above and, below it, the drawer that
|
|
28
|
+
* `DocsLayoutDrawer` opens from the header.
|
|
29
|
+
*/
|
|
30
|
+
sidebar?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The page's contents: a `TableOfContents`. It fills the sticky end
|
|
33
|
+
* column from --xl-n-above; below it, the same element draws as its
|
|
34
|
+
* compact bar (`kind="bar"`, set through `TableOfContentsContext`),
|
|
35
|
+
* pinned at the top of the page under the header. Omitted, or with no
|
|
36
|
+
* items, neither appears.
|
|
37
|
+
*/
|
|
38
|
+
toc?: React.ReactNode;
|
|
39
|
+
/** The page. */
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
/** A full-width part under the columns, such as the site `Footer`. */
|
|
42
|
+
footer?: React.ReactNode;
|
|
43
|
+
/** The page ground: `paper` (default), `white` or the page's one pastel. */
|
|
44
|
+
preset?: PageGroundPreset;
|
|
45
|
+
/** The `main` element's id, the skip link's target. Default "main". */
|
|
46
|
+
mainId?: string;
|
|
47
|
+
/** The skip link's words. Default "Skip to main content". */
|
|
48
|
+
skipLabel?: string;
|
|
49
|
+
/** Override the page ground's primary. Never defaulted [D133]. */
|
|
50
|
+
primary?: DocsLayoutVariants['primary'];
|
|
51
|
+
/** Override the page ground's secondary. Never defaulted. */
|
|
52
|
+
secondary?: DocsLayoutVariants['secondary'];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The documentation page frame [D202, D203]. A skip link first (the
|
|
56
|
+
* header's Navigation Bar then renders none), the header, then up to three
|
|
57
|
+
* columns inside `--fgd-container-wide`: the sidebar (`SidebarNav`, a
|
|
58
|
+
* sticky 240 px column with its own scroll, from --fgd-nav-inline-n-above;
|
|
59
|
+
* below it the header's menu Button opens the same navigation in the
|
|
60
|
+
* drawer), the `main` page with its end gutter for the code blocks'
|
|
61
|
+
* hanging ⋮, and the table of contents (a sticky 240 px column from
|
|
62
|
+
* --xl-n-above; below it the contents' compact bar, pinned under the
|
|
63
|
+
* header while the page scrolls, naming the section in view and opening
|
|
64
|
+
* the list in a panel). Every placement is viewport media and the bar has
|
|
65
|
+
* one fixed height, so the first paint is the final frame. Print keeps the
|
|
66
|
+
* page alone.
|
|
67
|
+
*/
|
|
68
|
+
export declare function DocsLayout(props: DocsLayoutProps): React.JSX.Element;
|
|
69
|
+
/** Props for DocsLayoutDrawer: NavDrawer's, less the list it builds itself. */
|
|
70
|
+
export type DocsLayoutDrawerProps = Omit<NavDrawerProps, 'nav' | 'sections' | 'children' | 'navLabel'>;
|
|
71
|
+
/**
|
|
72
|
+
* The docs layout's drawer [D202]: a `NavDrawer` whose sheet shows the
|
|
73
|
+
* layout's `sidebar` (the same `SidebarNav`, from the same data). Put it in
|
|
74
|
+
* the header's `drawer` slot: the Navigation Bar shows its menu Button
|
|
75
|
+
* below --fgd-nav-inline-n-above, exactly where the sidebar column is
|
|
76
|
+
* absent. Focus moves to the current page's link, is trapped, Escape
|
|
77
|
+
* closes, and focus returns to the menu Button; the page behind is inert
|
|
78
|
+
* and does not scroll. If the window widens past the threshold while it is
|
|
79
|
+
* open, it closes and focus moves to the sidebar column's current link.
|
|
80
|
+
*/
|
|
81
|
+
export declare function DocsLayoutDrawer(props: DocsLayoutDrawerProps): React.JSX.Element;
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=DocsLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocsLayout.d.ts","sourceRoot":"","sources":["../../src/page/docs-layout/DocsLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAQ5E,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AA8BvF,eAAO,MAAM,UAAU;;;8EAMrB,CAAA;AAEF,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAA;AAEzD,UAAU,sBAAsB;IAC9B,0EAA0E;IAC1E,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kCAAkC;IAClC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CACnD;AAED,wDAAwD;AACxD,eAAO,MAAM,iBAAiB,8CAA2D,CAAA;AAGzF,gGAAgG;AAChG,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjF;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sEAAsE;IACtE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAA;IACvC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;CAC5C,CAAA;AAEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBA6DhD;AAKD,+EAA+E;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,cAAc,EAAE,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC,CAAA;AAEtG;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAmB5D"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { Ground } from '../../foundations/ground';
|
|
5
|
+
import { NavDrawer } from '../../navigation/nav-drawer';
|
|
6
|
+
import { TableOfContentsContext, } from '../../navigation/table-of-contents';
|
|
7
|
+
import { cx } from '../../utils/className';
|
|
8
|
+
import { SkipLinkContext } from '../../utils/frame';
|
|
9
|
+
import { primaryScaleVariants, secondaryScaleVariants } from '../../utils/scales';
|
|
10
|
+
import { isPageGroundPreset, useScope } from '../../utils/scope';
|
|
11
|
+
import styles from './docs-layout.module.css';
|
|
12
|
+
/*
|
|
13
|
+
* Docs Layout (§11.15) [D202, D203]: the documentation page frame. A skip
|
|
14
|
+
* link, the site header, then the frame's columns: the sidebar navigation,
|
|
15
|
+
* the page, and an optional table of contents.
|
|
16
|
+
*
|
|
17
|
+
* Implementation (CSS Modules + CVA)
|
|
18
|
+
* - Module: docs-layout.module.css; CVA function `docsLayout`.
|
|
19
|
+
* - Axes: `primary`, `secondary` → scales module classes, applied through
|
|
20
|
+
* the root's Ground.
|
|
21
|
+
* - Compound variants: none. Defaults: none; color axes none.
|
|
22
|
+
* - Color fallback: the root is a `kind="band"` Ground of the page ground
|
|
23
|
+
* (`preset`, else the scope's page ground, else `paper`); every part
|
|
24
|
+
* takes its role variables.
|
|
25
|
+
* - States: none of its own. The sidebar column and the table-of-contents
|
|
26
|
+
* column are placed by viewport media only (the sidebar from
|
|
27
|
+
* --fgd-nav-inline-n-above, the contents column from --xl-n-above), so
|
|
28
|
+
* the server HTML paints the final frame: nothing is measured and
|
|
29
|
+
* nothing moves at hydration [D201].
|
|
30
|
+
* - Parts: base (the page), skipLink, frame (the columns), sidebar (its
|
|
31
|
+
* sticky column), main, tocBar (the strip below --xl-n-above that pins
|
|
32
|
+
* the Table of Contents' compact bar under the header), toc (its sticky
|
|
33
|
+
* column),
|
|
34
|
+
* drawerTrigger (the menu Button of a DocsLayoutDrawer outside a
|
|
35
|
+
* Navigation Bar).
|
|
36
|
+
* - Scope: the root re-declares the page ground as a `kind="band"` Ground.
|
|
37
|
+
* - Container: none; page frame on the viewport custom media [D163].
|
|
38
|
+
*/
|
|
39
|
+
export const docsLayout = cva(styles.base, {
|
|
40
|
+
variants: {
|
|
41
|
+
// Color axes: never defaulted [D133]; the root's Ground applies them.
|
|
42
|
+
primary: primaryScaleVariants,
|
|
43
|
+
secondary: secondaryScaleVariants,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
/** Provided by DocsLayout; read by DocsLayoutDrawer. */
|
|
47
|
+
export const DocsLayoutContext = React.createContext(null);
|
|
48
|
+
DocsLayoutContext.displayName = 'DocsLayoutContext';
|
|
49
|
+
/**
|
|
50
|
+
* The documentation page frame [D202, D203]. A skip link first (the
|
|
51
|
+
* header's Navigation Bar then renders none), the header, then up to three
|
|
52
|
+
* columns inside `--fgd-container-wide`: the sidebar (`SidebarNav`, a
|
|
53
|
+
* sticky 240 px column with its own scroll, from --fgd-nav-inline-n-above;
|
|
54
|
+
* below it the header's menu Button opens the same navigation in the
|
|
55
|
+
* drawer), the `main` page with its end gutter for the code blocks'
|
|
56
|
+
* hanging ⋮, and the table of contents (a sticky 240 px column from
|
|
57
|
+
* --xl-n-above; below it the contents' compact bar, pinned under the
|
|
58
|
+
* header while the page scrolls, naming the section in view and opening
|
|
59
|
+
* the list in a panel). Every placement is viewport media and the bar has
|
|
60
|
+
* one fixed height, so the first paint is the final frame. Print keeps the
|
|
61
|
+
* page alone.
|
|
62
|
+
*/
|
|
63
|
+
export function DocsLayout(props) {
|
|
64
|
+
const { header, sidebar, toc, children, footer, preset: presetProp, mainId = 'main', skipLabel = 'Skip to main content', primary, secondary, className, ...rest } = props;
|
|
65
|
+
const scope = useScope();
|
|
66
|
+
const preset = presetProp ?? (isPageGroundPreset(scope.ground) ? scope.ground : 'paper');
|
|
67
|
+
const sidebarRef = React.useRef(null);
|
|
68
|
+
const context = React.useMemo(() => ({ sidebar, sidebarRef }), [sidebar]);
|
|
69
|
+
const hasSidebar = sidebar != null && sidebar !== false;
|
|
70
|
+
const hasToc = toc != null && toc !== false;
|
|
71
|
+
return (React.createElement(SkipLinkContext.Provider, { value: true },
|
|
72
|
+
React.createElement(DocsLayoutContext.Provider, { value: context },
|
|
73
|
+
React.createElement(Ground, { ...rest, kind: "band", preset: preset, primary: primary ?? undefined, secondary: secondary ?? undefined, render: React.createElement("div", null), className: docsLayout({ className }) },
|
|
74
|
+
React.createElement("a", { className: styles.skipLink, href: `#${mainId}` }, skipLabel),
|
|
75
|
+
header,
|
|
76
|
+
React.createElement("div", { className: cx(styles.frame, hasSidebar && styles.withSidebar, hasToc && styles.withToc) },
|
|
77
|
+
hasSidebar ? (React.createElement("div", { ref: sidebarRef, className: styles.sidebar }, sidebar)) : null,
|
|
78
|
+
React.createElement("main", { id: mainId, className: styles.main },
|
|
79
|
+
hasToc ? (React.createElement("div", { className: styles.tocBar },
|
|
80
|
+
React.createElement(TableOfContentsContext.Provider, { value: BAR }, toc))) : null,
|
|
81
|
+
children),
|
|
82
|
+
hasToc ? React.createElement("div", { className: styles.toc }, toc) : null),
|
|
83
|
+
footer))));
|
|
84
|
+
}
|
|
85
|
+
/** Below --xl-n-above the one `toc` draws as the compact bar. */
|
|
86
|
+
const BAR = { kind: 'bar' };
|
|
87
|
+
/**
|
|
88
|
+
* The docs layout's drawer [D202]: a `NavDrawer` whose sheet shows the
|
|
89
|
+
* layout's `sidebar` (the same `SidebarNav`, from the same data). Put it in
|
|
90
|
+
* the header's `drawer` slot: the Navigation Bar shows its menu Button
|
|
91
|
+
* below --fgd-nav-inline-n-above, exactly where the sidebar column is
|
|
92
|
+
* absent. Focus moves to the current page's link, is trapped, Escape
|
|
93
|
+
* closes, and focus returns to the menu Button; the page behind is inert
|
|
94
|
+
* and does not scroll. If the window widens past the threshold while it is
|
|
95
|
+
* open, it closes and focus moves to the sidebar column's current link.
|
|
96
|
+
*/
|
|
97
|
+
export function DocsLayoutDrawer(props) {
|
|
98
|
+
const { triggerClassName, ...rest } = props;
|
|
99
|
+
const layout = React.useContext(DocsLayoutContext);
|
|
100
|
+
const inlineTarget = React.useCallback(() => {
|
|
101
|
+
const column = layout?.sidebarRef.current;
|
|
102
|
+
return (column?.querySelector('a[aria-current="page"]') ??
|
|
103
|
+
column?.querySelector('a[href]') ??
|
|
104
|
+
null);
|
|
105
|
+
}, [layout]);
|
|
106
|
+
return (React.createElement(NavDrawer, { ...rest, nav: layout?.sidebar, inlineTarget: inlineTarget, triggerClassName: cx(styles.drawerTrigger, triggerClassName)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AS,OACJ,IAAI,EACR,GAAG,EAAE,MAAM,EAAE,OAAO,EACpB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAC5D,CACH,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Docs Layout (§11.15). CVA function `docsLayout` in DocsLayout.tsx; the
|
|
3
|
+
* root (`base`) is the page's `kind="band"` Ground.
|
|
4
|
+
*
|
|
5
|
+
* Parts: base, skipLink, frame (the columns), withSidebar, withToc, sidebar
|
|
6
|
+
* (its sticky column), main, tocBar (the strip that pins the contents'
|
|
7
|
+
* compact bar), toc (its sticky column), drawerTrigger.
|
|
8
|
+
*
|
|
9
|
+
* Page frame [D163, D202]: placement answers to the viewport custom media
|
|
10
|
+
* alone, the same steps as the rest of the frame (no new breakpoint):
|
|
11
|
+
* - base: one column; the sidebar sits in the drawer (the header's menu
|
|
12
|
+
* Button), the contents in their compact bar, sticky under the header.
|
|
13
|
+
* - --fgd-nav-inline-n-above (1024 px by default): the sidebar column, the
|
|
14
|
+
* same threshold that swaps the header's drawer for inline navigation.
|
|
15
|
+
* - --xl-n-above (1440 px): the contents column; the bar goes.
|
|
16
|
+
* Nothing is measured, so the server HTML paints the final frame [D201].
|
|
17
|
+
* Colors are role variables only; one local custom property carries a
|
|
18
|
+
* dimension (--docs-layout-gutter, the page's end gutter).
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* Composition sits in top-level rules, outside the layers: Lightning CSS
|
|
22
|
+
* (Next.js with Turbopack) rejects `composes` inside @layer or any nesting.
|
|
23
|
+
* The composed classes keep their own layers. */
|
|
24
|
+
.skipLink {
|
|
25
|
+
composes: typeButtonSm from '../../utils/type.module.css';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@layer base {
|
|
29
|
+
.base {
|
|
30
|
+
position: relative;
|
|
31
|
+
min-block-size: 100dvh;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* The skip link: the first stop in the page, shown on focus (§11.5). */
|
|
35
|
+
.skipLink {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset-block-start: var(--size-px-2);
|
|
38
|
+
inset-inline-start: var(--fgd-space-margin);
|
|
39
|
+
z-index: var(--layer-3);
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
min-block-size: var(--fgd-size-hit);
|
|
44
|
+
padding-inline: var(--size-px-5);
|
|
45
|
+
border: var(--border-size-2) solid var(--primary12);
|
|
46
|
+
border-radius: var(--radius-round);
|
|
47
|
+
background-color: var(--primary12);
|
|
48
|
+
color: var(--role-inverse);
|
|
49
|
+
text-decoration-line: none;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* The columns, capped at --fgd-container-wide (reached at the 1440 px
|
|
55
|
+
* viewport, so below it they span the viewport less its margins), with
|
|
56
|
+
* the grid gutter between them. The frame clips sideways at its padding
|
|
57
|
+
* edge (`clip`, so the sticky columns still dock): a code block's hanging
|
|
58
|
+
* ⋮ runs its hit area on into the margin, and on a phone past the
|
|
59
|
+
* viewport, where it must not make the page scroll sideways.
|
|
60
|
+
*/
|
|
61
|
+
.frame {
|
|
62
|
+
display: grid;
|
|
63
|
+
grid-template-columns: minmax(0, 1fr);
|
|
64
|
+
column-gap: var(--fgd-space-margin);
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
max-inline-size: var(--fgd-container-wide);
|
|
67
|
+
margin-inline: auto;
|
|
68
|
+
padding-inline: var(--fgd-space-margin);
|
|
69
|
+
overflow-x: clip;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Below its threshold the sidebar lives in the drawer; the contents column below --xl-n-above. */
|
|
73
|
+
.sidebar,
|
|
74
|
+
.toc {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
* The page. Its end gutter is the room a code block's or demo's hanging
|
|
80
|
+
* ⋮ always takes, outside the block's frame: --fgd-size-file-tabs-control
|
|
81
|
+
* (24 px), then --fgd-size-hit from --md-n-above, so the whole 44 px hit
|
|
82
|
+
* area fits in the column [D197].
|
|
83
|
+
*/
|
|
84
|
+
.main {
|
|
85
|
+
--docs-layout-gutter: var(--fgd-size-file-tabs-control);
|
|
86
|
+
|
|
87
|
+
min-inline-size: 0;
|
|
88
|
+
padding-block: var(--size-px-7-5) var(--fgd-space-section);
|
|
89
|
+
padding-inline-end: var(--docs-layout-gutter);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
* The contents below --xl-n-above [D203]: a strip at the top of the page,
|
|
94
|
+
* straight under the header's rule, that sticks to the viewport top once
|
|
95
|
+
* the static header scrolls away, so the bar naming the section in view
|
|
96
|
+
* stays in reach; the page's one sticky bar [D89]. One fixed height (the
|
|
97
|
+
* bar's --fgd-size-control-md box in --size-px-2 of ground, the
|
|
98
|
+
* --fgd-size-control-xl header height) over a --border-size-1 hairline,
|
|
99
|
+
* opaque page ground across the column and its end gutter, so the page
|
|
100
|
+
* scrolls cleanly under it. Its panel is an overlay, so opening it moves
|
|
101
|
+
* nothing. With no items the bar renders nothing and the strip goes.
|
|
102
|
+
*/
|
|
103
|
+
.tocBar {
|
|
104
|
+
position: sticky;
|
|
105
|
+
inset-block-start: 0;
|
|
106
|
+
z-index: var(--layer-2);
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
block-size: calc(var(--fgd-size-control-xl) + var(--border-size-1));
|
|
111
|
+
margin-block: calc(-1 * var(--size-px-7-5)) var(--size-px-7-5);
|
|
112
|
+
margin-inline-end: calc(-1 * var(--docs-layout-gutter));
|
|
113
|
+
padding-inline-end: var(--docs-layout-gutter);
|
|
114
|
+
border-block-end: var(--border-size-1) solid var(--role-hairline);
|
|
115
|
+
background-color: var(--role-ground);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.tocBar:empty {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* A heading a link lands on clears the sticky bar by --size-px-3. */
|
|
123
|
+
.withToc .main [id] {
|
|
124
|
+
scroll-margin-block-start: calc(var(--fgd-size-control-xl) + var(--border-size-1) + var(--size-px-3));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (min-width: 768px) {
|
|
128
|
+
.main {
|
|
129
|
+
--docs-layout-gutter: var(--fgd-size-hit);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
* From the inline threshold: the sidebar column, 240 px, sticky at the
|
|
135
|
+
* viewport top with its own scroll (never the page's), ruled from the
|
|
136
|
+
* page by a --role-hairline. The stable gutter keeps its width whether
|
|
137
|
+
* or not it scrolls.
|
|
138
|
+
*/
|
|
139
|
+
@media (min-width: 1024px) {
|
|
140
|
+
.withSidebar {
|
|
141
|
+
grid-template-columns: var(--size-px-13) minmax(0, 1fr);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sidebar {
|
|
145
|
+
position: sticky;
|
|
146
|
+
inset-block-start: 0;
|
|
147
|
+
align-self: start;
|
|
148
|
+
display: block;
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
max-block-size: 100dvh;
|
|
151
|
+
padding-block: var(--size-px-7-5);
|
|
152
|
+
padding-inline-end: var(--size-px-3);
|
|
153
|
+
border-inline-end: var(--border-size-1) solid var(--role-hairline);
|
|
154
|
+
overflow-y: auto;
|
|
155
|
+
overscroll-behavior: contain;
|
|
156
|
+
scrollbar-gutter: stable;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
* The current page is the column's initial scroll target where
|
|
161
|
+
* supported, so the column opens scrolled to it before first paint (the
|
|
162
|
+
* Sidebar Navigation's layout effect does it elsewhere, after
|
|
163
|
+
* hydration). Scoped to the column, the scroller it names: outside a
|
|
164
|
+
* scroll container `nearest` would scroll the page. No snap type is set,
|
|
165
|
+
* so the alignment is inert otherwise.
|
|
166
|
+
*/
|
|
167
|
+
.sidebar [aria-current='page'] {
|
|
168
|
+
scroll-initial-target: nearest;
|
|
169
|
+
scroll-snap-align: center;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* From --xl-n-above: the contents column, 240 px, sticky, scrolling on its own when long. */
|
|
174
|
+
@media (min-width: 1440px) {
|
|
175
|
+
.withToc {
|
|
176
|
+
grid-template-columns: minmax(0, 1fr) var(--size-px-13);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.withSidebar.withToc {
|
|
180
|
+
grid-template-columns: var(--size-px-13) minmax(0, 1fr) var(--size-px-13);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.toc {
|
|
184
|
+
position: sticky;
|
|
185
|
+
inset-block-start: 0;
|
|
186
|
+
align-self: start;
|
|
187
|
+
display: block;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
max-block-size: 100dvh;
|
|
190
|
+
padding-block: var(--size-px-7-5);
|
|
191
|
+
overflow-y: auto;
|
|
192
|
+
overscroll-behavior: contain;
|
|
193
|
+
scrollbar-gutter: stable;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.toc:empty {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* A `toc` with no items: no column. */
|
|
201
|
+
.withToc:has(> .toc:empty) {
|
|
202
|
+
grid-template-columns: minmax(0, 1fr);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.withSidebar.withToc:has(> .toc:empty) {
|
|
206
|
+
grid-template-columns: var(--size-px-13) minmax(0, 1fr);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tocBar {
|
|
210
|
+
display: none;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.withToc .main [id] {
|
|
214
|
+
scroll-margin-block-start: 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@layer states {
|
|
220
|
+
.skipLink:not(:focus) {
|
|
221
|
+
inline-size: 1px;
|
|
222
|
+
block-size: 1px;
|
|
223
|
+
min-block-size: 0;
|
|
224
|
+
padding: 0;
|
|
225
|
+
border-width: 0;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
clip-path: inset(50%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.skipLink:focus-visible {
|
|
231
|
+
outline: var(--border-size-2) solid var(--primary12);
|
|
232
|
+
outline-offset: var(--border-size-2);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* A DocsLayoutDrawer outside a Navigation Bar: its menu Button goes where the sidebar column comes in. */
|
|
236
|
+
@media (min-width: 1024px) {
|
|
237
|
+
.drawerTrigger {
|
|
238
|
+
display: none;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@layer print {
|
|
244
|
+
@media print {
|
|
245
|
+
/* The page prints alone (§7.7): no skip link, columns or contents. */
|
|
246
|
+
.skipLink,
|
|
247
|
+
.sidebar,
|
|
248
|
+
.toc,
|
|
249
|
+
.tocBar,
|
|
250
|
+
.drawerTrigger {
|
|
251
|
+
display: none;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.frame {
|
|
255
|
+
display: block;
|
|
256
|
+
max-inline-size: none;
|
|
257
|
+
padding-inline: 0;
|
|
258
|
+
overflow: visible;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.main {
|
|
262
|
+
padding-block: 0;
|
|
263
|
+
padding-inline-end: 0;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/page/docs-layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/page/docs-layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/page/footer/Footer.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { SitemapSection } from '../../utils/navigation';
|
|
|
6
6
|
/** The shared navigation data (utils/navigation), re-exported where it first lived. */
|
|
7
7
|
export type { SitemapLink, SitemapSection } from '../../utils/navigation';
|
|
8
8
|
export declare const footer: (props?: ({
|
|
9
|
-
kind?: "
|
|
9
|
+
kind?: "minimal" | "ruled" | "guide" | null | undefined;
|
|
10
10
|
signoff?: boolean | null | undefined;
|
|
11
11
|
newsletterColumn?: boolean | null | undefined;
|
|
12
12
|
collapsed?: boolean | null | undefined;
|
package/page/footer/Footer.js
CHANGED
|
@@ -32,7 +32,7 @@ import styles from './footer.module.css';
|
|
|
32
32
|
* on that Ground. Block actions are §9.2 Buttons, whose `solid` class
|
|
33
33
|
* aliases the scope's action scale.
|
|
34
34
|
* - States: the Accordion's `data-open`, `data-panel-open` and clip reveal
|
|
35
|
-
* live in its module; `aria-current="page"` → the --
|
|
35
|
+
* live in its module; `aria-current="page"` → the --border-size-2-25
|
|
36
36
|
* start-edge bar and weight 700; `:hover` [D181] → sitemap, group,
|
|
37
37
|
* cell and back-to-top links are §9.3 list links (Link `kind="nav"`
|
|
38
38
|
* with `list`) and legal links its `muted` ancestor ink, so Link owns
|