@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
package/utils/tokens.d.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
/** The anchored-panel offset from its trigger: `--
|
|
1
|
+
/** The anchored-panel offset from its trigger: `--fgd-popup-offset` (8 px, §9.1, §10.1). */
|
|
2
2
|
export declare const POPUP_OFFSET_PX = 8;
|
|
3
3
|
/**
|
|
4
|
-
* Viewport clearance before a panel flips or shifts: `--
|
|
5
|
-
* (16 px, the base `--
|
|
4
|
+
* Viewport clearance before a panel flips or shifts: `--fgd-popup-clearance`
|
|
5
|
+
* (16 px, the base `--fgd-space-margin`, §10.1).
|
|
6
6
|
*/
|
|
7
7
|
export declare const POPUP_CLEARANCE_PX = 16;
|
|
8
|
-
/** The tooltip open delay: `--
|
|
8
|
+
/** The tooltip open delay: `--fgd-delay-tooltip` (500 ms, §1.5.15) [D175]. */
|
|
9
9
|
export declare const TOOLTIP_DELAY_MS = 500;
|
|
10
|
+
/**
|
|
11
|
+
* `--fgd-duration-disclosure` (200 ms, §1.5.15), for motion JavaScript runs:
|
|
12
|
+
* a chart's opt-in entry animation [D167]. Recharts takes a number, and the
|
|
13
|
+
* chart passes it only when `animate` is set and motion is allowed.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DISCLOSURE_DURATION_MS = 200;
|
|
10
16
|
/**
|
|
11
17
|
* Desktop Navigation Menu hover intent [D182], for Base UI's Root `delay`
|
|
12
|
-
* and `closeDelay`: `--
|
|
18
|
+
* and `closeDelay`: `--fgd-delay-nav-open` (150 ms) and `--fgd-delay-nav-close`
|
|
13
19
|
* (300 ms). Every input still opens a panel by click, Enter, Space or
|
|
14
20
|
* ArrowDown; the delays apply to a fine pointer only.
|
|
15
21
|
*/
|
|
@@ -17,11 +23,48 @@ export declare const NAV_DELAY_MS: {
|
|
|
17
23
|
readonly open: 150;
|
|
18
24
|
readonly close: 300;
|
|
19
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* The expanding box's View Transitions morph, and the outline morph's Web
|
|
28
|
+
* Animations (foundations/outline-morph): open `--fgd-duration-expand`
|
|
29
|
+
* (333 ms), close `--fgd-duration-collapse` (200 ms, an alias of
|
|
30
|
+
* `--fgd-duration-disclosure`). Both are instant under reduced motion, where
|
|
31
|
+
* neither morph runs at all. The outline morph reads the CSS tokens at each
|
|
32
|
+
* open and close; these are its fallback when a value can't be parsed.
|
|
33
|
+
*/
|
|
34
|
+
export declare const EXPAND_DURATION_MS: {
|
|
35
|
+
readonly open: 333;
|
|
36
|
+
readonly close: 200;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The outline morph on modal surfaces (Dialog, Alert Dialog, the drawer's
|
|
40
|
+
* side and full sheets) [D206]: open `--fgd-duration-expand-surface`
|
|
41
|
+
* (400 ms), close `--fgd-duration-collapse-surface` (240 ms), on the same
|
|
42
|
+
* `--fgd-ease-expand`. Instant under reduced motion. The engine reads the
|
|
43
|
+
* CSS tokens at each open and close; these are its fallback.
|
|
44
|
+
*/
|
|
45
|
+
export declare const SURFACE_DURATION_MS: {
|
|
46
|
+
readonly open: 400;
|
|
47
|
+
readonly close: 240;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The open easing, `--fgd-ease-expand`: a critically damped spring sampled
|
|
51
|
+
* as `linear()` stops, its undershoot clipped to 0, so it never leaves
|
|
52
|
+
* [0, 1] (for Web Animations: the outline morph runs both ways on it).
|
|
53
|
+
*/
|
|
54
|
+
export declare const EXPAND_EASE = "linear(0, 0, 0.294, 0.401, 0.58, 0.706, 0.75, 0.825, 0.878, 0.896, 0.927, 0.949, 0.957, 0.97, 0.979, 0.982, 0.987, 0.991, 0.992, 0.995, 0.996, 0.998, 0.999, 0.999, 1)";
|
|
55
|
+
/**
|
|
56
|
+
* The code block's variant and JS/TS swap, `--fgd-duration-swap` (350 ms):
|
|
57
|
+
* useCode's `transformDelay` and `variantSwapDelay`, which must equal the CSS
|
|
58
|
+
* duration of the line grow and shrink. Pass 0 for both under reduced motion,
|
|
59
|
+
* where the CSS duration is instant too. The swap's scroll-anchor window is
|
|
60
|
+
* twice this.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SWAP_DURATION_MS = 350;
|
|
20
63
|
/**
|
|
21
64
|
* The marker and trail geometry (§1.5.16, §4.7), for SVG viewBoxes, which
|
|
22
|
-
* take numbers: `--
|
|
23
|
-
* `--
|
|
24
|
-
* `--
|
|
65
|
+
* take numbers: `--fgd-marker-trail` (5 px), `--fgd-marker-timeline` (8 px),
|
|
66
|
+
* `--fgd-marker-waypoint` (9 px), `--fgd-marker-current` (10 px),
|
|
67
|
+
* `--fgd-arrow-head` (6 px), the markers' `--border-size-1-5` stroke, and the
|
|
25
68
|
* `--size-px-1` (4 px) gap where a dash stops short of a marker.
|
|
26
69
|
*/
|
|
27
70
|
export declare const MARKER_PX: {
|
package/utils/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/utils/tokens.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/utils/tokens.ts"],"names":[],"mappings":"AAMA,4FAA4F;AAC5F,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAA;AAEpC,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;CAAqC,CAAA;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;CAAqC,CAAA;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;CAAqC,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,WAAW,2KACkJ,CAAA;AAE1K;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAEnC;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;CAQZ,CAAA"}
|
package/utils/tokens.js
CHANGED
|
@@ -1,29 +1,66 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* JavaScript mirrors of the
|
|
2
|
+
* JavaScript mirrors of the tokens that Base UI takes as numbers
|
|
3
3
|
* (positioner offsets, open and close delays). Each value restates one token
|
|
4
4
|
* in tokens.css; change both together.
|
|
5
5
|
*/
|
|
6
|
-
/** The anchored-panel offset from its trigger: `--
|
|
6
|
+
/** The anchored-panel offset from its trigger: `--fgd-popup-offset` (8 px, §9.1, §10.1). */
|
|
7
7
|
export const POPUP_OFFSET_PX = 8;
|
|
8
8
|
/**
|
|
9
|
-
* Viewport clearance before a panel flips or shifts: `--
|
|
10
|
-
* (16 px, the base `--
|
|
9
|
+
* Viewport clearance before a panel flips or shifts: `--fgd-popup-clearance`
|
|
10
|
+
* (16 px, the base `--fgd-space-margin`, §10.1).
|
|
11
11
|
*/
|
|
12
12
|
export const POPUP_CLEARANCE_PX = 16;
|
|
13
|
-
/** The tooltip open delay: `--
|
|
13
|
+
/** The tooltip open delay: `--fgd-delay-tooltip` (500 ms, §1.5.15) [D175]. */
|
|
14
14
|
export const TOOLTIP_DELAY_MS = 500;
|
|
15
|
+
/**
|
|
16
|
+
* `--fgd-duration-disclosure` (200 ms, §1.5.15), for motion JavaScript runs:
|
|
17
|
+
* a chart's opt-in entry animation [D167]. Recharts takes a number, and the
|
|
18
|
+
* chart passes it only when `animate` is set and motion is allowed.
|
|
19
|
+
*/
|
|
20
|
+
export const DISCLOSURE_DURATION_MS = 200;
|
|
15
21
|
/**
|
|
16
22
|
* Desktop Navigation Menu hover intent [D182], for Base UI's Root `delay`
|
|
17
|
-
* and `closeDelay`: `--
|
|
23
|
+
* and `closeDelay`: `--fgd-delay-nav-open` (150 ms) and `--fgd-delay-nav-close`
|
|
18
24
|
* (300 ms). Every input still opens a panel by click, Enter, Space or
|
|
19
25
|
* ArrowDown; the delays apply to a fine pointer only.
|
|
20
26
|
*/
|
|
21
27
|
export const NAV_DELAY_MS = { open: 150, close: 300 };
|
|
28
|
+
/**
|
|
29
|
+
* The expanding box's View Transitions morph, and the outline morph's Web
|
|
30
|
+
* Animations (foundations/outline-morph): open `--fgd-duration-expand`
|
|
31
|
+
* (333 ms), close `--fgd-duration-collapse` (200 ms, an alias of
|
|
32
|
+
* `--fgd-duration-disclosure`). Both are instant under reduced motion, where
|
|
33
|
+
* neither morph runs at all. The outline morph reads the CSS tokens at each
|
|
34
|
+
* open and close; these are its fallback when a value can't be parsed.
|
|
35
|
+
*/
|
|
36
|
+
export const EXPAND_DURATION_MS = { open: 333, close: 200 };
|
|
37
|
+
/**
|
|
38
|
+
* The outline morph on modal surfaces (Dialog, Alert Dialog, the drawer's
|
|
39
|
+
* side and full sheets) [D206]: open `--fgd-duration-expand-surface`
|
|
40
|
+
* (400 ms), close `--fgd-duration-collapse-surface` (240 ms), on the same
|
|
41
|
+
* `--fgd-ease-expand`. Instant under reduced motion. The engine reads the
|
|
42
|
+
* CSS tokens at each open and close; these are its fallback.
|
|
43
|
+
*/
|
|
44
|
+
export const SURFACE_DURATION_MS = { open: 400, close: 240 };
|
|
45
|
+
/**
|
|
46
|
+
* The open easing, `--fgd-ease-expand`: a critically damped spring sampled
|
|
47
|
+
* as `linear()` stops, its undershoot clipped to 0, so it never leaves
|
|
48
|
+
* [0, 1] (for Web Animations: the outline morph runs both ways on it).
|
|
49
|
+
*/
|
|
50
|
+
export const EXPAND_EASE = 'linear(0, 0, 0.294, 0.401, 0.58, 0.706, 0.75, 0.825, 0.878, 0.896, 0.927, 0.949, 0.957, 0.97, 0.979, 0.982, 0.987, 0.991, 0.992, 0.995, 0.996, 0.998, 0.999, 0.999, 1)';
|
|
51
|
+
/**
|
|
52
|
+
* The code block's variant and JS/TS swap, `--fgd-duration-swap` (350 ms):
|
|
53
|
+
* useCode's `transformDelay` and `variantSwapDelay`, which must equal the CSS
|
|
54
|
+
* duration of the line grow and shrink. Pass 0 for both under reduced motion,
|
|
55
|
+
* where the CSS duration is instant too. The swap's scroll-anchor window is
|
|
56
|
+
* twice this.
|
|
57
|
+
*/
|
|
58
|
+
export const SWAP_DURATION_MS = 350;
|
|
22
59
|
/**
|
|
23
60
|
* The marker and trail geometry (§1.5.16, §4.7), for SVG viewBoxes, which
|
|
24
|
-
* take numbers: `--
|
|
25
|
-
* `--
|
|
26
|
-
* `--
|
|
61
|
+
* take numbers: `--fgd-marker-trail` (5 px), `--fgd-marker-timeline` (8 px),
|
|
62
|
+
* `--fgd-marker-waypoint` (9 px), `--fgd-marker-current` (10 px),
|
|
63
|
+
* `--fgd-arrow-head` (6 px), the markers' `--border-size-1-5` stroke, and the
|
|
27
64
|
* `--size-px-1` (4 px) gap where a dash stops short of a marker.
|
|
28
65
|
*/
|
|
29
66
|
export const MARKER_PX = {
|
package/utils/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/utils/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/utils/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEpC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;AAEzC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAW,CAAA;AAE9D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAW,CAAA;AAEpE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAW,CAAA;AAErE;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GACtB,wKAAwK,CAAA;AAE1K;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAEnC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,GAAG;IACX,GAAG,EAAE,CAAC;CACE,CAAA"}
|
package/utils/type.module.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* .label { composes: typeButton from '../../utils/type.module.css'; }
|
|
5
5
|
* Sizes are rem tokens (fluid 360 → 1024 px); leading unitless; tracking em.
|
|
6
6
|
* Every role publishes --type-weight and --type-weight-floor so typeMuted
|
|
7
|
-
* can step muted text down by --
|
|
7
|
+
* can step muted text down by --fgd-muted-weight-step on dark scopes without
|
|
8
8
|
* the component knowing the mode [D170, D175].
|
|
9
9
|
* Print sizes come from the print remap of the size tokens (print.css).
|
|
10
10
|
*/
|
|
@@ -12,32 +12,32 @@
|
|
|
12
12
|
.typeDisplayXl {
|
|
13
13
|
--type-weight: var(--font-weight-7);
|
|
14
14
|
--type-weight-floor: 100;
|
|
15
|
-
font-family: var(--
|
|
16
|
-
font-variation-settings: var(--
|
|
15
|
+
font-family: var(--fgd-font-display);
|
|
16
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
17
17
|
font-weight: var(--type-weight);
|
|
18
|
-
font-size: var(--
|
|
19
|
-
line-height: var(--
|
|
20
|
-
letter-spacing: var(--
|
|
18
|
+
font-size: var(--fgd-font-size-display-xl);
|
|
19
|
+
line-height: var(--fgd-leading-display);
|
|
20
|
+
letter-spacing: var(--font-letterspacing-0-5);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.typeDisplay {
|
|
24
24
|
--type-weight: var(--font-weight-7);
|
|
25
25
|
--type-weight-floor: 100;
|
|
26
|
-
font-family: var(--
|
|
27
|
-
font-variation-settings: var(--
|
|
26
|
+
font-family: var(--fgd-font-display);
|
|
27
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
28
28
|
font-weight: var(--type-weight);
|
|
29
|
-
font-size: var(--
|
|
29
|
+
font-size: var(--fgd-font-size-display);
|
|
30
30
|
line-height: var(--font-lineheight-0);
|
|
31
|
-
letter-spacing: var(--
|
|
31
|
+
letter-spacing: var(--font-letterspacing-0-5);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.typeH2 {
|
|
35
35
|
--type-weight: var(--font-weight-7);
|
|
36
36
|
--type-weight-floor: 100;
|
|
37
|
-
font-family: var(--
|
|
38
|
-
font-variation-settings: var(--
|
|
37
|
+
font-family: var(--fgd-font-display);
|
|
38
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
39
39
|
font-weight: var(--type-weight);
|
|
40
|
-
font-size: var(--
|
|
40
|
+
font-size: var(--fgd-font-size-h2);
|
|
41
41
|
line-height: var(--font-lineheight-0);
|
|
42
42
|
letter-spacing: 0;
|
|
43
43
|
}
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
.typeItemhead {
|
|
46
46
|
--type-weight: var(--font-weight-7);
|
|
47
47
|
--type-weight-floor: 100;
|
|
48
|
-
font-family: var(--
|
|
49
|
-
font-variation-settings: var(--
|
|
48
|
+
font-family: var(--fgd-font-display);
|
|
49
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
50
50
|
font-weight: var(--type-weight);
|
|
51
|
-
font-size: var(--
|
|
51
|
+
font-size: var(--fgd-font-size-itemhead);
|
|
52
52
|
line-height: var(--font-lineheight-0);
|
|
53
53
|
letter-spacing: 0;
|
|
54
54
|
}
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
.typeKicker {
|
|
57
57
|
--type-weight: var(--font-weight-7);
|
|
58
58
|
--type-weight-floor: 100;
|
|
59
|
-
font-family: var(--
|
|
60
|
-
font-variation-settings: var(--
|
|
59
|
+
font-family: var(--fgd-font-display);
|
|
60
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
61
61
|
font-weight: var(--type-weight);
|
|
62
|
-
font-size: var(--
|
|
62
|
+
font-size: var(--fgd-font-size-kicker);
|
|
63
63
|
line-height: var(--font-lineheight-0);
|
|
64
64
|
letter-spacing: 0;
|
|
65
65
|
}
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
.typeSubhead {
|
|
68
68
|
--type-weight: var(--font-weight-6);
|
|
69
69
|
--type-weight-floor: 100;
|
|
70
|
-
font-family: var(--
|
|
70
|
+
font-family: var(--fgd-font-ui);
|
|
71
71
|
font-weight: var(--type-weight);
|
|
72
|
-
font-size: var(--
|
|
72
|
+
font-size: var(--fgd-font-size-subhead);
|
|
73
73
|
line-height: var(--font-lineheight-1);
|
|
74
74
|
letter-spacing: 0;
|
|
75
75
|
}
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
.typeLead {
|
|
78
78
|
--type-weight: var(--font-weight-4);
|
|
79
79
|
--type-weight-floor: 100;
|
|
80
|
-
font-family: var(--
|
|
80
|
+
font-family: var(--fgd-font-ui);
|
|
81
81
|
font-weight: var(--type-weight);
|
|
82
|
-
font-size: var(--
|
|
82
|
+
font-size: var(--fgd-font-size-lead);
|
|
83
83
|
line-height: var(--font-lineheight-3);
|
|
84
84
|
letter-spacing: 0;
|
|
85
85
|
}
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
.typeQuote {
|
|
88
88
|
--type-weight: var(--font-weight-5);
|
|
89
89
|
--type-weight-floor: 100;
|
|
90
|
-
font-family: var(--
|
|
90
|
+
font-family: var(--fgd-font-display);
|
|
91
91
|
font-style: italic;
|
|
92
92
|
font-weight: var(--type-weight);
|
|
93
|
-
font-size: var(--
|
|
93
|
+
font-size: var(--fgd-font-size-quote);
|
|
94
94
|
line-height: var(--font-lineheight-1);
|
|
95
95
|
letter-spacing: 0;
|
|
96
96
|
}
|
|
@@ -98,32 +98,32 @@
|
|
|
98
98
|
.typeBody {
|
|
99
99
|
--type-weight: var(--font-weight-4);
|
|
100
100
|
--type-weight-floor: 100;
|
|
101
|
-
font-family: var(--
|
|
101
|
+
font-family: var(--fgd-font-text);
|
|
102
102
|
font-weight: var(--type-weight);
|
|
103
|
-
font-size: var(--
|
|
104
|
-
line-height: var(--
|
|
103
|
+
font-size: var(--fgd-font-size-body);
|
|
104
|
+
line-height: var(--fgd-leading-reading);
|
|
105
105
|
letter-spacing: 0;
|
|
106
|
-
font-variant-numeric: var(--
|
|
106
|
+
font-variant-numeric: var(--fgd-numerals-prose);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.typeBodyUi {
|
|
110
110
|
--type-weight: var(--font-weight-4);
|
|
111
111
|
--type-weight-floor: 100;
|
|
112
|
-
font-family: var(--
|
|
112
|
+
font-family: var(--fgd-font-ui);
|
|
113
113
|
font-weight: var(--type-weight);
|
|
114
|
-
font-size: var(--
|
|
114
|
+
font-size: var(--fgd-font-size-body-ui);
|
|
115
115
|
line-height: var(--font-lineheight-3);
|
|
116
116
|
letter-spacing: 0;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
/* Serif in light scopes, UI sans in dark scopes via --
|
|
119
|
+
/* Serif in light scopes, UI sans in dark scopes via --fgd-font-fine [D152]. */
|
|
120
120
|
.typeSecondaryName {
|
|
121
121
|
--type-weight: var(--font-weight-4);
|
|
122
122
|
--type-weight-floor: 100;
|
|
123
|
-
font-family: var(--
|
|
123
|
+
font-family: var(--fgd-font-fine);
|
|
124
124
|
font-style: italic;
|
|
125
125
|
font-weight: var(--type-weight);
|
|
126
|
-
font-size: var(--
|
|
126
|
+
font-size: var(--fgd-font-size-body-ui);
|
|
127
127
|
line-height: var(--font-lineheight-2);
|
|
128
128
|
letter-spacing: 0;
|
|
129
129
|
}
|
|
@@ -131,22 +131,22 @@
|
|
|
131
131
|
.typeFootnote {
|
|
132
132
|
--type-weight: var(--font-weight-4);
|
|
133
133
|
--type-weight-floor: 400;
|
|
134
|
-
font-family: var(--
|
|
134
|
+
font-family: var(--fgd-font-fine);
|
|
135
135
|
font-weight: var(--type-weight);
|
|
136
|
-
font-size: var(--
|
|
136
|
+
font-size: var(--fgd-font-size-footnote);
|
|
137
137
|
line-height: var(--font-lineheight-3);
|
|
138
138
|
letter-spacing: 0;
|
|
139
|
-
font-variant-numeric: var(--
|
|
139
|
+
font-variant-numeric: var(--fgd-numerals-prose);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* Button labels: title case, authored; no tracking, no caps [D160]. */
|
|
143
143
|
.typeButtonLg {
|
|
144
144
|
--type-weight: var(--font-weight-7);
|
|
145
145
|
--type-weight-floor: 400;
|
|
146
|
-
font-family: var(--
|
|
146
|
+
font-family: var(--fgd-font-ui);
|
|
147
147
|
font-weight: var(--type-weight);
|
|
148
|
-
font-size: var(--
|
|
149
|
-
line-height: var(--
|
|
148
|
+
font-size: var(--fgd-font-size-button-lg);
|
|
149
|
+
line-height: var(--fgd-leading-display);
|
|
150
150
|
letter-spacing: 0;
|
|
151
151
|
text-transform: none;
|
|
152
152
|
}
|
|
@@ -154,10 +154,10 @@
|
|
|
154
154
|
.typeButton {
|
|
155
155
|
--type-weight: var(--font-weight-7);
|
|
156
156
|
--type-weight-floor: 400;
|
|
157
|
-
font-family: var(--
|
|
157
|
+
font-family: var(--fgd-font-ui);
|
|
158
158
|
font-weight: var(--type-weight);
|
|
159
|
-
font-size: var(--
|
|
160
|
-
line-height: var(--
|
|
159
|
+
font-size: var(--fgd-font-size-button);
|
|
160
|
+
line-height: var(--fgd-leading-display);
|
|
161
161
|
letter-spacing: 0;
|
|
162
162
|
text-transform: none;
|
|
163
163
|
}
|
|
@@ -165,10 +165,10 @@
|
|
|
165
165
|
.typeButtonSm {
|
|
166
166
|
--type-weight: var(--font-weight-7);
|
|
167
167
|
--type-weight-floor: 400;
|
|
168
|
-
font-family: var(--
|
|
168
|
+
font-family: var(--fgd-font-ui);
|
|
169
169
|
font-weight: var(--type-weight);
|
|
170
|
-
font-size: var(--
|
|
171
|
-
line-height: var(--
|
|
170
|
+
font-size: var(--fgd-font-size-label);
|
|
171
|
+
line-height: var(--fgd-leading-display);
|
|
172
172
|
letter-spacing: 0;
|
|
173
173
|
text-transform: none;
|
|
174
174
|
}
|
|
@@ -176,9 +176,9 @@
|
|
|
176
176
|
.typeFieldLabel {
|
|
177
177
|
--type-weight: var(--font-weight-6);
|
|
178
178
|
--type-weight-floor: 400;
|
|
179
|
-
font-family: var(--
|
|
179
|
+
font-family: var(--fgd-font-ui);
|
|
180
180
|
font-weight: var(--type-weight);
|
|
181
|
-
font-size: var(--
|
|
181
|
+
font-size: var(--fgd-font-size-button);
|
|
182
182
|
line-height: var(--font-lineheight-1);
|
|
183
183
|
letter-spacing: 0;
|
|
184
184
|
text-transform: none;
|
|
@@ -188,9 +188,9 @@
|
|
|
188
188
|
.typeLabel {
|
|
189
189
|
--type-weight: var(--font-weight-6);
|
|
190
190
|
--type-weight-floor: 400;
|
|
191
|
-
font-family: var(--
|
|
191
|
+
font-family: var(--fgd-font-ui);
|
|
192
192
|
font-weight: var(--type-weight);
|
|
193
|
-
font-size: var(--
|
|
193
|
+
font-size: var(--fgd-font-size-label);
|
|
194
194
|
line-height: var(--font-lineheight-1);
|
|
195
195
|
letter-spacing: var(--font-letterspacing-3);
|
|
196
196
|
text-transform: uppercase;
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
.typeEyebrow {
|
|
200
200
|
--type-weight: var(--font-weight-6);
|
|
201
201
|
--type-weight-floor: 400;
|
|
202
|
-
font-family: var(--
|
|
202
|
+
font-family: var(--fgd-font-ui);
|
|
203
203
|
font-weight: var(--type-weight);
|
|
204
|
-
font-size: var(--
|
|
204
|
+
font-size: var(--fgd-font-size-eyebrow);
|
|
205
205
|
line-height: var(--font-lineheight-1);
|
|
206
206
|
letter-spacing: var(--font-letterspacing-4);
|
|
207
207
|
text-transform: uppercase;
|
|
@@ -210,9 +210,9 @@
|
|
|
210
210
|
.typeCaption {
|
|
211
211
|
--type-weight: var(--font-weight-4);
|
|
212
212
|
--type-weight-floor: 400;
|
|
213
|
-
font-family: var(--
|
|
213
|
+
font-family: var(--fgd-font-ui);
|
|
214
214
|
font-weight: var(--type-weight);
|
|
215
|
-
font-size: var(--
|
|
215
|
+
font-size: var(--fgd-font-size-caption);
|
|
216
216
|
line-height: var(--font-lineheight-2);
|
|
217
217
|
letter-spacing: 0;
|
|
218
218
|
}
|
|
@@ -220,9 +220,9 @@
|
|
|
220
220
|
.typeSmall {
|
|
221
221
|
--type-weight: var(--font-weight-4);
|
|
222
222
|
--type-weight-floor: 400;
|
|
223
|
-
font-family: var(--
|
|
223
|
+
font-family: var(--fgd-font-ui);
|
|
224
224
|
font-weight: var(--type-weight);
|
|
225
|
-
font-size: var(--
|
|
225
|
+
font-size: var(--fgd-font-size-label);
|
|
226
226
|
line-height: var(--font-lineheight-2);
|
|
227
227
|
letter-spacing: 0;
|
|
228
228
|
}
|
|
@@ -230,32 +230,32 @@
|
|
|
230
230
|
.typeData {
|
|
231
231
|
--type-weight: var(--font-weight-4);
|
|
232
232
|
--type-weight-floor: 400;
|
|
233
|
-
font-family: var(--
|
|
233
|
+
font-family: var(--fgd-font-mono);
|
|
234
234
|
font-weight: var(--type-weight);
|
|
235
|
-
font-size: var(--
|
|
236
|
-
line-height: var(--
|
|
235
|
+
font-size: var(--fgd-font-size-caption);
|
|
236
|
+
line-height: var(--fgd-leading-compact);
|
|
237
237
|
letter-spacing: 0;
|
|
238
|
-
font-variant-numeric: var(--
|
|
238
|
+
font-variant-numeric: var(--fgd-numerals-data);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
/* Large mono readout: the Number Field `readout` kind (§10.4), tabular so digits never shift. */
|
|
242
242
|
.typeReadout {
|
|
243
243
|
--type-weight: var(--font-weight-4);
|
|
244
244
|
--type-weight-floor: 400;
|
|
245
|
-
font-family: var(--
|
|
245
|
+
font-family: var(--fgd-font-mono);
|
|
246
246
|
font-weight: var(--type-weight);
|
|
247
|
-
font-size: var(--
|
|
248
|
-
line-height: var(--
|
|
247
|
+
font-size: var(--fgd-font-size-h2);
|
|
248
|
+
line-height: var(--fgd-leading-display);
|
|
249
249
|
letter-spacing: 0;
|
|
250
|
-
font-variant-numeric: var(--
|
|
250
|
+
font-variant-numeric: var(--fgd-numerals-data);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
.typeUrl {
|
|
254
254
|
--type-weight: var(--font-weight-4);
|
|
255
255
|
--type-weight-floor: 400;
|
|
256
|
-
font-family: var(--
|
|
256
|
+
font-family: var(--fgd-font-mono);
|
|
257
257
|
font-weight: var(--type-weight);
|
|
258
|
-
font-size: var(--
|
|
258
|
+
font-size: var(--fgd-font-size-url);
|
|
259
259
|
line-height: var(--font-lineheight-1);
|
|
260
260
|
letter-spacing: 0;
|
|
261
261
|
overflow-wrap: anywhere;
|
|
@@ -265,42 +265,42 @@
|
|
|
265
265
|
.typeStat {
|
|
266
266
|
--type-weight: var(--font-weight-7);
|
|
267
267
|
--type-weight-floor: 100;
|
|
268
|
-
font-family: var(--
|
|
269
|
-
font-variation-settings: var(--
|
|
268
|
+
font-family: var(--fgd-font-display);
|
|
269
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
270
270
|
font-weight: var(--type-weight);
|
|
271
|
-
font-size: var(--
|
|
272
|
-
line-height: var(--
|
|
273
|
-
letter-spacing: var(--
|
|
274
|
-
font-variant-numeric: var(--
|
|
271
|
+
font-size: var(--fgd-font-size-stat);
|
|
272
|
+
line-height: var(--fgd-leading-display);
|
|
273
|
+
letter-spacing: var(--font-letterspacing-0-5);
|
|
274
|
+
font-variant-numeric: var(--fgd-numerals-data);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
.typeStatCompact {
|
|
278
278
|
--type-weight: var(--font-weight-7);
|
|
279
279
|
--type-weight-floor: 100;
|
|
280
|
-
font-family: var(--
|
|
281
|
-
font-variation-settings: var(--
|
|
280
|
+
font-family: var(--fgd-font-display);
|
|
281
|
+
font-variation-settings: var(--fgd-font-display-settings);
|
|
282
282
|
font-weight: var(--type-weight);
|
|
283
|
-
font-size: var(--
|
|
284
|
-
line-height: var(--
|
|
283
|
+
font-size: var(--fgd-font-size-h2);
|
|
284
|
+
line-height: var(--fgd-leading-display);
|
|
285
285
|
letter-spacing: 0;
|
|
286
|
-
font-variant-numeric: var(--
|
|
286
|
+
font-variant-numeric: var(--fgd-numerals-data);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/* Bold lead that opens a paragraph; keeps its paragraph's size. */
|
|
290
290
|
.typeRunin {
|
|
291
291
|
--type-weight: var(--font-weight-7);
|
|
292
292
|
--type-weight-floor: 400;
|
|
293
|
-
font-family: var(--
|
|
293
|
+
font-family: var(--fgd-font-ui);
|
|
294
294
|
font-weight: var(--type-weight);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.typeMarquee {
|
|
298
298
|
--type-weight: var(--font-weight-8);
|
|
299
299
|
--type-weight-floor: 100;
|
|
300
|
-
font-family: var(--
|
|
300
|
+
font-family: var(--fgd-font-ui);
|
|
301
301
|
font-weight: var(--type-weight);
|
|
302
|
-
font-size: var(--
|
|
303
|
-
line-height: var(--
|
|
302
|
+
font-size: var(--fgd-font-size-marquee);
|
|
303
|
+
line-height: var(--fgd-leading-display);
|
|
304
304
|
letter-spacing: var(--font-letterspacing-2);
|
|
305
305
|
text-transform: uppercase;
|
|
306
306
|
}
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
.typeLockupCaps {
|
|
309
309
|
--type-weight: var(--font-weight-9);
|
|
310
310
|
--type-weight-floor: 100;
|
|
311
|
-
font-family: var(--
|
|
311
|
+
font-family: var(--fgd-font-ui);
|
|
312
312
|
font-weight: var(--type-weight);
|
|
313
|
-
font-size: var(--
|
|
313
|
+
font-size: var(--fgd-font-size-display);
|
|
314
314
|
line-height: var(--font-lineheight-00);
|
|
315
315
|
letter-spacing: 0;
|
|
316
316
|
text-transform: uppercase;
|
|
@@ -319,11 +319,11 @@
|
|
|
319
319
|
.typeLockupAccent {
|
|
320
320
|
--type-weight: var(--font-weight-8);
|
|
321
321
|
--type-weight-floor: 100;
|
|
322
|
-
font-family: var(--
|
|
323
|
-
font-variation-settings: var(--
|
|
322
|
+
font-family: var(--fgd-font-display);
|
|
323
|
+
font-variation-settings: var(--fgd-font-accent-settings);
|
|
324
324
|
font-style: italic;
|
|
325
325
|
font-weight: var(--type-weight);
|
|
326
|
-
font-size: calc(var(--
|
|
326
|
+
font-size: calc(var(--fgd-font-size-display) * var(--fgd-lockup-accent-factor));
|
|
327
327
|
line-height: var(--font-lineheight-00);
|
|
328
328
|
letter-spacing: 0;
|
|
329
329
|
}
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
color: var(--role-muted);
|
|
337
337
|
font-weight: max(
|
|
338
338
|
var(--type-weight-floor, 400),
|
|
339
|
-
calc(var(--type-weight, 400) - var(--
|
|
339
|
+
calc(var(--type-weight, 400) - var(--fgd-muted-weight-step))
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** The attribute the element carries for two frames after a press ends. */
|
|
3
|
+
export declare const RELEASED_ATTRIBUTE = "data-released";
|
|
4
|
+
/** Handlers to merge into the control's own `onPointerDown` and `onKeyUp`. */
|
|
5
|
+
export type ReleaseMarkHandlers = {
|
|
6
|
+
onPointerDown: () => void;
|
|
7
|
+
onKeyUp: (event: {
|
|
8
|
+
key: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
};
|
|
11
|
+
/** Marks `element` `data-released` for two frames whenever a press on it ends. */
|
|
12
|
+
export declare function useReleaseMark(element: React.RefObject<HTMLElement | null>): ReleaseMarkHandlers;
|
|
13
|
+
//# sourceMappingURL=useReleaseMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReleaseMark.d.ts","sourceRoot":"","sources":["../src/utils/useReleaseMark.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAa9B,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD,8EAA8E;AAC9E,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC1C,CAAA;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,mBAAmB,CAyBhG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/*
|
|
4
|
+
* Internal: the release mark for controls whose press swaps fill and ink as
|
|
5
|
+
* a pair (the inverse pair) [D205]. A press is `:active`, so its module can
|
|
6
|
+
* step it; a release lands on `:hover` like a hover-in, which should fade,
|
|
7
|
+
* so CSS alone can't tell the two apart. The mark can: the element carries
|
|
8
|
+
* `data-released` for two frames after the press ends (the pointer lifting
|
|
9
|
+
* anywhere, or Space or Enter coming up), and its module drops the fill and
|
|
10
|
+
* ink transitions while it's there, so no frame shows the ink over a fill
|
|
11
|
+
* of its own tone. Not exported from any index.
|
|
12
|
+
*/
|
|
13
|
+
/** The attribute the element carries for two frames after a press ends. */
|
|
14
|
+
export const RELEASED_ATTRIBUTE = 'data-released';
|
|
15
|
+
/** Marks `element` `data-released` for two frames whenever a press on it ends. */
|
|
16
|
+
export function useReleaseMark(element) {
|
|
17
|
+
return React.useMemo(() => {
|
|
18
|
+
const mark = () => {
|
|
19
|
+
const node = element.current;
|
|
20
|
+
if (!node)
|
|
21
|
+
return;
|
|
22
|
+
node.setAttribute(RELEASED_ATTRIBUTE, '');
|
|
23
|
+
requestAnimationFrame(() => {
|
|
24
|
+
requestAnimationFrame(() => node.removeAttribute(RELEASED_ATTRIBUTE));
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
// The pointer may lift outside the control, which still ends `:active`.
|
|
28
|
+
const onPointerDown = () => {
|
|
29
|
+
const release = () => {
|
|
30
|
+
window.removeEventListener('pointerup', release, true);
|
|
31
|
+
window.removeEventListener('pointercancel', release, true);
|
|
32
|
+
mark();
|
|
33
|
+
};
|
|
34
|
+
window.addEventListener('pointerup', release, true);
|
|
35
|
+
window.addEventListener('pointercancel', release, true);
|
|
36
|
+
};
|
|
37
|
+
const onKeyUp = (event) => {
|
|
38
|
+
if (event.key === ' ' || event.key === 'Enter')
|
|
39
|
+
mark();
|
|
40
|
+
};
|
|
41
|
+
return { onPointerDown, onKeyUp };
|
|
42
|
+
}, [element]);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=useReleaseMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReleaseMark.js","sourceRoot":"","sources":["../src/utils/useReleaseMark.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;;;;;;GASG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAA;AAQjD,kFAAkF;AAClF,MAAM,UAAU,cAAc,CAAC,OAA4C;IACzE,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACxB,MAAM,IAAI,GAAG,GAAG,EAAE;YAChB,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAA;YAC5B,IAAI,CAAC,IAAI;gBAAE,OAAM;YACjB,IAAI,CAAC,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAA;YACzC,qBAAqB,CAAC,GAAG,EAAE;gBACzB,qBAAqB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAA;YACvE,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;QACD,wEAAwE;QACxE,MAAM,aAAa,GAAG,GAAG,EAAE;YACzB,MAAM,OAAO,GAAG,GAAG,EAAE;gBACnB,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;gBACtD,MAAM,CAAC,mBAAmB,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;gBAC1D,IAAI,EAAE,CAAA;YACR,CAAC,CAAA;YACD,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YACnD,MAAM,CAAC,gBAAgB,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;QACzD,CAAC,CAAA;QACD,MAAM,OAAO,GAAG,CAAC,KAAsB,EAAE,EAAE;YACzC,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO;gBAAE,IAAI,EAAE,CAAA;QACxD,CAAC,CAAA;QACD,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAA;IACnC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;AACf,CAAC"}
|