@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
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
.base {
|
|
74
74
|
display: flex;
|
|
75
75
|
align-self: stretch;
|
|
76
|
-
min-block-size: var(--
|
|
76
|
+
min-block-size: var(--fgd-size-hit);
|
|
77
77
|
color: var(--primary12);
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -126,15 +126,15 @@
|
|
|
126
126
|
pointer-events: none;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
/* The target: at least --
|
|
129
|
+
/* The target: at least --fgd-size-hit square, label then chevron --size-px-1 apart. */
|
|
130
130
|
.hit {
|
|
131
131
|
display: inline-flex;
|
|
132
132
|
align-items: center;
|
|
133
133
|
justify-content: center;
|
|
134
134
|
gap: var(--size-px-1);
|
|
135
135
|
box-sizing: border-box;
|
|
136
|
-
min-block-size: var(--
|
|
137
|
-
min-inline-size: var(--
|
|
136
|
+
min-block-size: var(--fgd-size-hit);
|
|
137
|
+
min-inline-size: var(--fgd-size-hit);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.label {
|
|
@@ -158,7 +158,6 @@
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.popup {
|
|
161
|
-
--navigation-menu-clip-from: inset(0 0 100% 0);
|
|
162
161
|
--navigation-menu-clip-rest: inset(calc(-1 * var(--size-px-2)));
|
|
163
162
|
|
|
164
163
|
box-sizing: border-box;
|
|
@@ -172,27 +171,27 @@
|
|
|
172
171
|
.popupOverview {
|
|
173
172
|
inline-size: var(--anchor-width, 100vw);
|
|
174
173
|
border-block-end-width: var(--border-size-2);
|
|
175
|
-
border-radius: var(--
|
|
174
|
+
border-radius: var(--radius-0);
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
/*
|
|
179
178
|
* Index and dropdown: attached under the bar but not full-bleed, so the
|
|
180
|
-
* top corners are square and the bottom ones --
|
|
179
|
+
* top corners are square and the bottom ones --radius-2-25; the edge runs
|
|
181
180
|
* down the sides and across the bottom, and the top meets the bar's rule
|
|
182
181
|
* [D182].
|
|
183
182
|
*/
|
|
184
183
|
.popupAttached {
|
|
185
184
|
min-inline-size: min(
|
|
186
|
-
max(var(--
|
|
187
|
-
calc(100vw - 2 * var(--
|
|
185
|
+
max(var(--fgd-size-menu-min), var(--anchor-width, 0px)),
|
|
186
|
+
calc(100vw - 2 * var(--fgd-space-margin))
|
|
188
187
|
);
|
|
189
|
-
max-inline-size: calc(100vw - 2 * var(--
|
|
188
|
+
max-inline-size: calc(100vw - 2 * var(--fgd-space-margin));
|
|
190
189
|
border-inline-width: var(--border-size-2);
|
|
191
190
|
border-block-end-width: var(--border-size-2);
|
|
192
|
-
border-start-start-radius: var(--
|
|
193
|
-
border-start-end-radius: var(--
|
|
194
|
-
border-end-start-radius: var(--
|
|
195
|
-
border-end-end-radius: var(--
|
|
191
|
+
border-start-start-radius: var(--radius-0);
|
|
192
|
+
border-start-end-radius: var(--radius-0);
|
|
193
|
+
border-end-start-radius: var(--radius-2-25);
|
|
194
|
+
border-end-end-radius: var(--radius-2-25);
|
|
196
195
|
overflow: hidden;
|
|
197
196
|
overflow: clip;
|
|
198
197
|
}
|
|
@@ -218,7 +217,7 @@
|
|
|
218
217
|
}
|
|
219
218
|
|
|
220
219
|
/*
|
|
221
|
-
* A panel row: a --
|
|
220
|
+
* A panel row: a --fgd-size-hit pitch in type-body-ui, no rest underline
|
|
222
221
|
* [D80]. Link's list-link build (`kind="nav"` with `list`) gives its ink
|
|
223
222
|
* and its hover, press and current states; the row's full width and
|
|
224
223
|
* underline offset are restated in the compounds layer, above Link's.
|
|
@@ -233,24 +232,24 @@
|
|
|
233
232
|
|
|
234
233
|
/* 200 px to --size-px-14 wide (§9.1). */
|
|
235
234
|
.dropdown {
|
|
236
|
-
min-inline-size: var(--
|
|
235
|
+
min-inline-size: var(--fgd-size-menu-min);
|
|
237
236
|
}
|
|
238
237
|
|
|
239
238
|
.dropdownList {
|
|
240
239
|
box-sizing: border-box;
|
|
241
|
-
min-inline-size: var(--
|
|
240
|
+
min-inline-size: var(--fgd-size-menu-min);
|
|
242
241
|
max-inline-size: var(--size-px-14);
|
|
243
242
|
padding-block: var(--size-px-2);
|
|
244
243
|
padding-inline: var(--size-px-3);
|
|
245
244
|
}
|
|
246
245
|
|
|
247
|
-
/* ── Overview
|
|
246
|
+
/* ── Overview ──────────────────────────────────────────────────────── */
|
|
248
247
|
|
|
249
|
-
/* Content on the 12-column grid of --
|
|
248
|
+
/* Content on the 12-column grid of --fgd-container-content, aligned with the bar's container. */
|
|
250
249
|
.overview {
|
|
251
250
|
--navigation-menu-overview-size: min(
|
|
252
|
-
calc(var(--anchor-width, 100vw) - 2 * var(--
|
|
253
|
-
var(--
|
|
251
|
+
calc(var(--anchor-width, 100vw) - 2 * var(--fgd-space-margin)),
|
|
252
|
+
var(--fgd-container-content)
|
|
254
253
|
);
|
|
255
254
|
|
|
256
255
|
padding-block: var(--size-px-7) var(--size-px-8);
|
|
@@ -259,7 +258,7 @@
|
|
|
259
258
|
.overviewInner {
|
|
260
259
|
display: grid;
|
|
261
260
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
262
|
-
column-gap: var(--
|
|
261
|
+
column-gap: var(--fgd-space-margin);
|
|
263
262
|
box-sizing: border-box;
|
|
264
263
|
inline-size: var(--navigation-menu-overview-size);
|
|
265
264
|
margin-inline-start: calc(
|
|
@@ -293,7 +292,7 @@
|
|
|
293
292
|
align-items: center;
|
|
294
293
|
gap: var(--size-px-1);
|
|
295
294
|
box-sizing: border-box;
|
|
296
|
-
min-block-size: var(--
|
|
295
|
+
min-block-size: var(--fgd-size-hit);
|
|
297
296
|
margin: 0;
|
|
298
297
|
text-decoration-line: none;
|
|
299
298
|
}
|
|
@@ -333,7 +332,7 @@
|
|
|
333
332
|
.groups {
|
|
334
333
|
display: grid;
|
|
335
334
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
336
|
-
column-gap: var(--
|
|
335
|
+
column-gap: var(--fgd-space-margin);
|
|
337
336
|
row-gap: var(--size-px-5);
|
|
338
337
|
margin-block-start: var(--size-px-5);
|
|
339
338
|
}
|
|
@@ -346,7 +345,7 @@
|
|
|
346
345
|
color: var(--primary12);
|
|
347
346
|
}
|
|
348
347
|
|
|
349
|
-
/* ── Index
|
|
348
|
+
/* ── Index ─────────────────────────────────────────────────────────── */
|
|
350
349
|
|
|
351
350
|
/* At most 2 × --size-px-14: the category list, then a pane of at least --size-px-14. */
|
|
352
351
|
.index {
|
|
@@ -381,7 +380,7 @@
|
|
|
381
380
|
align-items: center;
|
|
382
381
|
box-sizing: border-box;
|
|
383
382
|
inline-size: 100%;
|
|
384
|
-
min-block-size: var(--
|
|
383
|
+
min-block-size: var(--fgd-size-hit);
|
|
385
384
|
margin: 0;
|
|
386
385
|
padding-block: 0;
|
|
387
386
|
padding-inline: var(--size-px-3);
|
|
@@ -439,7 +438,7 @@
|
|
|
439
438
|
color: var(--role-glyph);
|
|
440
439
|
}
|
|
441
440
|
|
|
442
|
-
/* Hover transitions [D181]: color only, --
|
|
441
|
+
/* Hover transitions [D181]: color only, --fgd-duration-quick; nothing moves. */
|
|
443
442
|
@media (prefers-reduced-motion: no-preference) {
|
|
444
443
|
.label,
|
|
445
444
|
.featured,
|
|
@@ -447,14 +446,7 @@
|
|
|
447
446
|
.headingLabel,
|
|
448
447
|
.categoryLabel {
|
|
449
448
|
transition-property: color, text-decoration-color;
|
|
450
|
-
transition-duration: var(--
|
|
451
|
-
transition-timing-function: var(--ease-out-3);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/* First open only: the clip reveal from the top; switching and closing stay instant [D182]. */
|
|
455
|
-
.popup {
|
|
456
|
-
transition-property: clip-path;
|
|
457
|
-
transition-duration: var(--ds-duration-disclosure);
|
|
449
|
+
transition-duration: var(--fgd-duration-quick);
|
|
458
450
|
transition-timing-function: var(--ease-out-3);
|
|
459
451
|
}
|
|
460
452
|
}
|
|
@@ -492,12 +484,12 @@
|
|
|
492
484
|
text-decoration-line: underline;
|
|
493
485
|
}
|
|
494
486
|
|
|
495
|
-
/* Pressed: a --
|
|
487
|
+
/* Pressed: a --border-size-2-25 underline in --primary12 under the label (derived; flagged). */
|
|
496
488
|
.trigger:not([data-disabled]):active .label,
|
|
497
489
|
.barLink:active .label {
|
|
498
490
|
text-decoration-line: underline;
|
|
499
491
|
text-decoration-color: var(--primary12);
|
|
500
|
-
text-decoration-thickness: var(--
|
|
492
|
+
text-decoration-thickness: var(--border-size-2-25);
|
|
501
493
|
}
|
|
502
494
|
|
|
503
495
|
/* Parent of current (aria-current="true", path prefix): the bar at --border-size-2. */
|
|
@@ -506,18 +498,18 @@
|
|
|
506
498
|
border-block-end-width: var(--border-size-2);
|
|
507
499
|
}
|
|
508
500
|
|
|
509
|
-
/* Current (data-active, aria-current="page"): the --
|
|
501
|
+
/* Current (data-active, aria-current="page"): the --border-size-2-25 bar plus --font-weight-7. */
|
|
510
502
|
.barLink[data-active]::after {
|
|
511
|
-
border-block-end-width: var(--
|
|
503
|
+
border-block-end-width: var(--border-size-2-25);
|
|
512
504
|
}
|
|
513
505
|
|
|
514
506
|
.barLink[data-active] .label {
|
|
515
507
|
font-weight: var(--font-weight-7);
|
|
516
508
|
}
|
|
517
509
|
|
|
518
|
-
/* Open (data-popup-open): the --
|
|
510
|
+
/* Open (data-popup-open): the --border-size-2-25 bar flush with the bar's rule; the chevron flips. */
|
|
519
511
|
.trigger[data-popup-open]::after {
|
|
520
|
-
border-block-end-width: var(--
|
|
512
|
+
border-block-end-width: var(--border-size-2-25);
|
|
521
513
|
}
|
|
522
514
|
|
|
523
515
|
.chevron[data-popup-open] {
|
|
@@ -555,7 +547,7 @@
|
|
|
555
547
|
.heading:hover .headingLabel,
|
|
556
548
|
.featuredBar:hover .featuredLabel {
|
|
557
549
|
color: var(--role-link-hover);
|
|
558
|
-
text-decoration-line: var(--
|
|
550
|
+
text-decoration-line: var(--fgd-link-hover-line);
|
|
559
551
|
}
|
|
560
552
|
|
|
561
553
|
.featured:active .featuredLabel,
|
|
@@ -565,13 +557,13 @@
|
|
|
565
557
|
text-decoration-thickness: var(--border-size-2);
|
|
566
558
|
}
|
|
567
559
|
|
|
568
|
-
/* On the section landing page: --font-weight-7 plus a --
|
|
560
|
+
/* On the section landing page: --font-weight-7 plus a --border-size-2-25 underline. */
|
|
569
561
|
.featured[data-active] .featuredLabel,
|
|
570
562
|
.heading[data-active] .headingLabel,
|
|
571
563
|
.featuredBar[data-active] .featuredLabel {
|
|
572
564
|
font-weight: var(--font-weight-7);
|
|
573
565
|
text-decoration-line: underline;
|
|
574
|
-
text-decoration-thickness: var(--
|
|
566
|
+
text-decoration-thickness: var(--border-size-2-25);
|
|
575
567
|
}
|
|
576
568
|
|
|
577
569
|
.featured:focus-visible,
|
|
@@ -585,7 +577,7 @@
|
|
|
585
577
|
|
|
586
578
|
.categoryTrigger:hover .categoryLabel {
|
|
587
579
|
color: var(--role-link-hover);
|
|
588
|
-
text-decoration-line: var(--
|
|
580
|
+
text-decoration-line: var(--fgd-link-hover-line);
|
|
589
581
|
}
|
|
590
582
|
|
|
591
583
|
.categoryTrigger:active .categoryLabel {
|
|
@@ -593,13 +585,13 @@
|
|
|
593
585
|
text-decoration-thickness: var(--border-size-2);
|
|
594
586
|
}
|
|
595
587
|
|
|
596
|
-
/* Selected (data-popup-open): the --
|
|
588
|
+
/* Selected (data-popup-open): the --border-size-2-25 start-edge bar plus --font-weight-7. */
|
|
597
589
|
.categoryTrigger[data-popup-open] {
|
|
598
590
|
font-weight: var(--font-weight-7);
|
|
599
591
|
}
|
|
600
592
|
|
|
601
593
|
.categoryTrigger[data-popup-open]::before {
|
|
602
|
-
border-inline-start-width: var(--
|
|
594
|
+
border-inline-start-width: var(--border-size-2-25);
|
|
603
595
|
}
|
|
604
596
|
|
|
605
597
|
.categoryTrigger:focus-visible {
|
|
@@ -617,12 +609,6 @@
|
|
|
617
609
|
text-decoration-line: underline;
|
|
618
610
|
}
|
|
619
611
|
}
|
|
620
|
-
|
|
621
|
-
/* ── Motion: the first open's clip reveal from the top [D91, D182] ─── */
|
|
622
|
-
|
|
623
|
-
.popup[data-starting-style] {
|
|
624
|
-
clip-path: var(--navigation-menu-clip-from);
|
|
625
|
-
}
|
|
626
612
|
}
|
|
627
613
|
|
|
628
614
|
@layer print {
|
|
@@ -27,7 +27,7 @@ import styles from './pagination.module.css';
|
|
|
27
27
|
* offset --size-px-1), `:active` → the underline at --border-size-2
|
|
28
28
|
* [D181]. Step buttons are icon-only outline Buttons, whose hover, press
|
|
29
29
|
* and ring are Button's. aria-current="page" on `current` → the
|
|
30
|
-
* --
|
|
30
|
+
* --border-size-2-25 bar plus --font-weight-7; aria-current="true" on the
|
|
31
31
|
* current `dot` → solid and larger. Ends omit the control and keep its
|
|
32
32
|
* space; nothing is ever disabled. The list region the pager drives
|
|
33
33
|
* carries aria-busy while loading; the pager stays put.
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
|
|
52
52
|
@layer base {
|
|
53
53
|
/* Previous at the start, Next at the end, the numbers centered; an omitted
|
|
54
|
-
end keeps its column, so the row stays put. --
|
|
54
|
+
end keeps its column, so the row stays put. --size-px-7-5 above. */
|
|
55
55
|
.base {
|
|
56
56
|
container: pagination / inline-size;
|
|
57
57
|
display: grid;
|
|
58
58
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
59
59
|
align-items: center;
|
|
60
|
-
column-gap: var(--
|
|
61
|
-
margin-block-start: var(--
|
|
60
|
+
column-gap: var(--size-px-2-5);
|
|
61
|
+
margin-block-start: var(--size-px-7-5);
|
|
62
62
|
color: var(--primary12);
|
|
63
63
|
white-space: nowrap;
|
|
64
64
|
}
|
|
@@ -98,38 +98,38 @@
|
|
|
98
98
|
color: var(--primary12);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/* Current: unlinked, on the same --
|
|
101
|
+
/* Current: unlinked, on the same --fgd-size-hit cell as a page link. */
|
|
102
102
|
.current {
|
|
103
103
|
position: relative;
|
|
104
104
|
display: inline-flex;
|
|
105
105
|
align-items: center;
|
|
106
106
|
justify-content: center;
|
|
107
|
-
min-inline-size: var(--
|
|
108
|
-
min-block-size: var(--
|
|
107
|
+
min-inline-size: var(--fgd-size-hit);
|
|
108
|
+
min-block-size: var(--fgd-size-hit);
|
|
109
109
|
color: var(--primary12);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
/* The current bar: --
|
|
112
|
+
/* The current bar: --border-size-2-25, --size-px-4 wide, under the numeral. A
|
|
113
113
|
border, so it survives forced colors. Physical offsets: centering is
|
|
114
114
|
direction-agnostic with the translate. */
|
|
115
115
|
.current::after {
|
|
116
116
|
content: '';
|
|
117
117
|
position: absolute;
|
|
118
|
-
bottom: var(--
|
|
118
|
+
bottom: var(--size-px-2-5);
|
|
119
119
|
left: 50%;
|
|
120
120
|
display: none;
|
|
121
121
|
inline-size: var(--size-px-4);
|
|
122
|
-
border-block-end: var(--
|
|
122
|
+
border-block-end: var(--border-size-2-25) solid var(--primary12);
|
|
123
123
|
translate: -50% 0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
/* Gap "…": --role-muted, not focusable, on a --
|
|
126
|
+
/* Gap "…": --role-muted, not focusable, on a --fgd-size-hit cell. */
|
|
127
127
|
.gap {
|
|
128
128
|
display: inline-flex;
|
|
129
129
|
align-items: center;
|
|
130
130
|
justify-content: center;
|
|
131
|
-
min-inline-size: var(--
|
|
132
|
-
min-block-size: var(--
|
|
131
|
+
min-inline-size: var(--fgd-size-hit);
|
|
132
|
+
min-block-size: var(--fgd-size-hit);
|
|
133
133
|
color: var(--role-muted);
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
text-underline-offset: var(--size-px-1);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
/* The step pager's dots: 10 px --
|
|
150
|
+
/* The step pager's dots: 10 px --border-size-1-5 --primary12 outlines, --size-px-2 apart. */
|
|
151
151
|
.dots {
|
|
152
|
-
--pagination-dot: var(--
|
|
153
|
-
--pagination-dot-current: var(--
|
|
152
|
+
--pagination-dot: var(--fgd-size-pager-dot);
|
|
153
|
+
--pagination-dot-current: var(--fgd-size-pager-dot-current);
|
|
154
154
|
|
|
155
155
|
display: flex;
|
|
156
156
|
align-items: center;
|
|
@@ -162,14 +162,14 @@
|
|
|
162
162
|
box-sizing: border-box;
|
|
163
163
|
inline-size: var(--pagination-dot);
|
|
164
164
|
block-size: var(--pagination-dot);
|
|
165
|
-
border: var(--
|
|
165
|
+
border: var(--border-size-1-5) solid var(--primary12);
|
|
166
166
|
border-radius: var(--radius-round);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
@media (prefers-reduced-motion: no-preference) {
|
|
170
170
|
.word {
|
|
171
171
|
transition-property: text-decoration-color;
|
|
172
|
-
transition-duration: var(--
|
|
172
|
+
transition-duration: var(--fgd-duration-quick);
|
|
173
173
|
transition-timing-function: var(--ease-out-3);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
@@ -200,13 +200,13 @@
|
|
|
200
200
|
.current,
|
|
201
201
|
.gap,
|
|
202
202
|
.statusCount {
|
|
203
|
-
font-size: var(--
|
|
203
|
+
font-size: var(--fgd-font-size-label);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
/* A number: a --
|
|
206
|
+
/* A number: a --fgd-size-hit square hit area, no box, no rest underline [D80]. */
|
|
207
207
|
.page {
|
|
208
208
|
justify-content: center;
|
|
209
|
-
min-inline-size: var(--
|
|
209
|
+
min-inline-size: var(--fgd-size-hit);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/* Compact: "Page 5 of 12" between the steps at every width. */
|
|
@@ -215,12 +215,12 @@
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/*
|
|
218
|
-
* Step pager: icon-only ‹ › circles (--
|
|
218
|
+
* Step pager: icon-only ‹ › circles (--fgd-size-control-md) around the
|
|
219
219
|
* mono "3 of 12", centred; an omitted end keeps its column (§9.9).
|
|
220
220
|
*/
|
|
221
221
|
.kindStep,
|
|
222
222
|
.kindDots {
|
|
223
|
-
grid-template-columns: var(--
|
|
223
|
+
grid-template-columns: var(--fgd-size-control-md) auto var(--fgd-size-control-md);
|
|
224
224
|
justify-content: center;
|
|
225
225
|
}
|
|
226
226
|
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
/* Stack guard: below 360 px the words drop and the chevrons stand alone on
|
|
315
|
-
their --
|
|
315
|
+
their --fgd-size-hit targets, still named "Previous" and "Next" [D166].
|
|
316
316
|
The Button's gap closes with the word. */
|
|
317
317
|
@media (max-width: 359.98px) {
|
|
318
318
|
.step {
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
@layer states {
|
|
349
|
-
/* Current: the --
|
|
349
|
+
/* Current: the --border-size-2-25 bar in --primary12 plus --font-weight-7. */
|
|
350
350
|
.current[aria-current='page'] {
|
|
351
351
|
font-weight: var(--font-weight-7);
|
|
352
352
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const sidebarNav: (props?: ({
|
|
4
|
+
primary?: "ruby" | "brown" | "crimson" | "gold" | "gray" | "indigo" | "olive" | "pink" | "plum" | "purple" | "red" | "tomato" | "violet" | "bronze" | "iris" | "mauve" | "sage" | "sand" | "slate" | null | undefined;
|
|
5
|
+
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;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
type SidebarNavVariants = VariantProps<typeof sidebarNav>;
|
|
8
|
+
/** One entry of the page tree: a group (top level, with `items`), a page, or a page with subpages. */
|
|
9
|
+
export interface SidebarNavItem {
|
|
10
|
+
/** The link text, authored in sentence case; a group heading sets its own caps [D165]. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** The page. Omitted on a group, whose heading is then plain text. */
|
|
13
|
+
href?: string;
|
|
14
|
+
/**
|
|
15
|
+
* At the top level: the group's pages, under its caps heading. On a page:
|
|
16
|
+
* its subpages, one level deeper on an indented guide. Nest no deeper.
|
|
17
|
+
*/
|
|
18
|
+
items?: readonly SidebarNavItem[];
|
|
19
|
+
/** Marks the current page. Default: its path equals `currentPath`. */
|
|
20
|
+
current?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* A collapsible group's initial state. Default: open when it holds the
|
|
23
|
+
* current page.
|
|
24
|
+
*/
|
|
25
|
+
defaultOpen?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Props for SidebarNav: `nav` props, the page tree, the current path and the color axes. */
|
|
28
|
+
export type SidebarNavProps = Omit<React.ComponentPropsWithRef<'nav'>, 'children'> & {
|
|
29
|
+
/**
|
|
30
|
+
* The page tree: groups (a caps heading over its pages) and, rarely,
|
|
31
|
+
* top-level pages. Plain data, so the desktop column and the drawer
|
|
32
|
+
* render the same object.
|
|
33
|
+
*/
|
|
34
|
+
items: readonly SidebarNavItem[];
|
|
35
|
+
/** The current page's URL path; its link takes `aria-current="page"`. */
|
|
36
|
+
currentPath?: string;
|
|
37
|
+
/** The landmark's name. Default "Documentation". */
|
|
38
|
+
label?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Groups become independent Collapsibles, each heading with the D109
|
|
41
|
+
* glyph; the group holding the current page opens by default. Default
|
|
42
|
+
* `false`: every group open, no toggles.
|
|
43
|
+
*/
|
|
44
|
+
collapsible?: boolean;
|
|
45
|
+
/** The toggle's accessible name for a group. Default: "{title} pages". */
|
|
46
|
+
toggleLabel?: (title: string) => string;
|
|
47
|
+
/**
|
|
48
|
+
* Builds each anchor, e.g. `(href) => <NextLink href={href} />`.
|
|
49
|
+
* Default: a plain `<a href>`.
|
|
50
|
+
*/
|
|
51
|
+
renderLink?: (href: string) => React.ReactElement;
|
|
52
|
+
/** Override the scope's primary. Never defaulted [D133]. */
|
|
53
|
+
primary?: SidebarNavVariants['primary'];
|
|
54
|
+
/** Override the scope's secondary. Never defaulted. */
|
|
55
|
+
secondary?: SidebarNavVariants['secondary'];
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The docs page tree [D202]: a `nav` of groups, each a caps heading
|
|
59
|
+
* (`type-label`, a link to the group's index page when it has one) over its
|
|
60
|
+
* pages on a --role-hairline guide, groups split by hairline rules. The
|
|
61
|
+
* current page takes `aria-current="page"`, the --border-size-2-25
|
|
62
|
+
* start-edge bar and weight 700. The same component, from the same data,
|
|
63
|
+
* fills the docs layout's column from --fgd-nav-inline-n-above and the
|
|
64
|
+
* drawer below it. On mount, and when the current page changes, the
|
|
65
|
+
* current link is scrolled into view inside the nearest scrolling
|
|
66
|
+
* ancestor (the column or the drawer's Scroll Area), never the page, so
|
|
67
|
+
* nothing moves around it. Hidden in print.
|
|
68
|
+
*/
|
|
69
|
+
export declare function SidebarNav(props: SidebarNavProps): React.JSX.Element;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=SidebarNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarNav.d.ts","sourceRoot":"","sources":["../../src/navigation/sidebar-nav/SidebarNav.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAqCjE,eAAO,MAAM,UAAU;;;8EAMrB,CAAA;AAEF,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAA;AAEzD,sGAAsG;AACtG,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IACjC,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,6FAA6F;AAC7F,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjF;;;;OAIG;IACH,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;IAChC,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC,YAAY,CAAA;IACjD,4DAA4D;IAC5D,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAA;IACvC,uDAAuD;IACvD,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;CAC5C,CAAA;AAsCH;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAqEhD"}
|