@effectiveailabs/design-system 0.0.0-stage → 1.1.0
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/CHANGELOG.md +13 -0
- package/README.md +125 -2
- package/dist/components/AdaptiveGrid/AdaptiveGrid.d.ts +38 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.js +15 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.d.ts +104 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.js +62 -0
- package/dist/components/Anchor/Anchor.d.ts +29 -0
- package/dist/components/Anchor/Anchor.js +56 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.d.ts +16 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.js +45 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.d.ts +6 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.js +7 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.js +15 -0
- package/dist/components/AnnotationPin/AnnotationPin.d.ts +31 -0
- package/dist/components/AnnotationPin/AnnotationPin.js +99 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.d.ts +19 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.js +56 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.d.ts +48 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.js +39 -0
- package/dist/components/AnnotationPin/AnnotationScope.d.ts +26 -0
- package/dist/components/AnnotationPin/AnnotationScope.js +59 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.js +68 -0
- package/dist/components/AnnotationPin/useRangeAnchor.d.ts +9 -0
- package/dist/components/AnnotationPin/useRangeAnchor.js +35 -0
- package/dist/components/App/App.d.ts +85 -0
- package/dist/components/App/App.js +515 -0
- package/dist/components/App/App.layout.d.ts +25 -0
- package/dist/components/App/App.layout.js +42 -0
- package/dist/components/App/App.stylex.d.ts +373 -0
- package/dist/components/App/App.stylex.js +352 -0
- package/dist/components/App/AppNavigationHeader.context.d.ts +9 -0
- package/dist/components/App/AppNavigationHeader.context.js +13 -0
- package/dist/components/Article/Article.d.ts +16 -0
- package/dist/components/Article/Article.js +14 -0
- package/dist/components/Article/Article.stylex.d.ts +49 -0
- package/dist/components/Article/Article.stylex.js +66 -0
- package/dist/components/Article/ArticleSection.d.ts +23 -0
- package/dist/components/Article/ArticleSection.js +26 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +13 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.d.ts +9 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.js +5 -0
- package/dist/components/Autocomplete/Autocomplete.js +68 -0
- package/dist/components/Avatar/Avatar.d.ts +30 -0
- package/dist/components/Avatar/Avatar.js +14 -0
- package/dist/components/Avatar/Avatar.stylex.d.ts +74 -0
- package/dist/components/Avatar/Avatar.stylex.js +71 -0
- package/dist/components/Avatar/Avatar.view.d.ts +7 -0
- package/dist/components/Avatar/Avatar.view.js +43 -0
- package/dist/components/Avatar/AvatarName.d.ts +7 -0
- package/dist/components/Avatar/AvatarName.js +17 -0
- package/dist/components/Avatar/avatarColor.d.ts +3 -0
- package/dist/components/Avatar/avatarColor.js +28 -0
- package/dist/components/Avatar/avatarInitials.d.ts +1 -0
- package/dist/components/Avatar/avatarInitials.js +37 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.d.ts +11 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.js +52 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.d.ts +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.js +2 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +188 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.d.ts +149 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.js +132 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.d.ts +14 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.js +27 -0
- package/dist/components/Badge/Badge.d.ts +54 -0
- package/dist/components/Badge/Badge.js +149 -0
- package/dist/components/Badge/Badge.stylex.d.ts +278 -0
- package/dist/components/Badge/Badge.stylex.js +267 -0
- package/dist/components/BrandLogo/BrandLogo.d.ts +16 -0
- package/dist/components/BrandLogo/BrandLogo.js +19 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.d.ts +23 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.js +14 -0
- package/dist/components/BrandLogo/brandLogoArtwork.d.ts +10 -0
- package/dist/components/BrandLogo/brandLogoArtwork.js +30 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.d.ts +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.js +59 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.d.ts +20 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.js +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +284 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.d.ts +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.js +29 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.d.ts +200 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.js +166 -0
- package/dist/components/Button/Button.appearance.d.ts +323 -0
- package/dist/components/Button/Button.appearance.js +57 -0
- package/dist/components/Button/Button.d.ts +102 -0
- package/dist/components/Button/Button.js +176 -0
- package/dist/components/Button/Button.stylex.d.ts +577 -0
- package/dist/components/Button/Button.stylex.js +590 -0
- package/dist/components/Button/ButtonProgress.d.ts +1 -0
- package/dist/components/Button/ButtonProgress.js +8 -0
- package/dist/components/Button/ButtonProgress.stylex.d.ts +22 -0
- package/dist/components/Button/ButtonProgress.stylex.js +14 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.d.ts +74 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.js +25 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +35 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +49 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.d.ts +111 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.js +116 -0
- package/dist/components/CalculationSteps/CalculationSteps.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.js +44 -0
- package/dist/components/CalculationSteps/CalculationSteps.js +84 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.d.ts +23 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.js +22 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.d.ts +131 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.js +11 -0
- package/dist/components/Calendar/Calendar.d.ts +22 -0
- package/dist/components/Calendar/Calendar.js +119 -0
- package/dist/components/Calendar/Calendar.stylex.d.ts +196 -0
- package/dist/components/Calendar/Calendar.stylex.js +197 -0
- package/dist/components/Card/Card.context.d.ts +28 -0
- package/dist/components/Card/Card.context.js +40 -0
- package/dist/components/Card/Card.d.ts +39 -0
- package/dist/components/Card/Card.js +121 -0
- package/dist/components/Card/Card.stylex.d.ts +172 -0
- package/dist/components/Card/Card.stylex.js +185 -0
- package/dist/components/Chart/Chart.d.ts +24 -0
- package/dist/components/Chart/Chart.data.d.ts +119 -0
- package/dist/components/Chart/Chart.data.js +596 -0
- package/dist/components/Chart/Chart.describe.d.ts +46 -0
- package/dist/components/Chart/Chart.describe.js +359 -0
- package/dist/components/Chart/Chart.environment.d.ts +8 -0
- package/dist/components/Chart/Chart.environment.js +10 -0
- package/dist/components/Chart/Chart.format.d.ts +14 -0
- package/dist/components/Chart/Chart.format.js +108 -0
- package/dist/components/Chart/Chart.highcharts.d.ts +106 -0
- package/dist/components/Chart/Chart.highcharts.js +1001 -0
- package/dist/components/Chart/Chart.js +600 -0
- package/dist/components/Chart/Chart.load.d.ts +69 -0
- package/dist/components/Chart/Chart.load.js +136 -0
- package/dist/components/Chart/Chart.raw.d.ts +33 -0
- package/dist/components/Chart/Chart.raw.js +234 -0
- package/dist/components/Chart/Chart.rules.d.ts +31 -0
- package/dist/components/Chart/Chart.rules.js +72 -0
- package/dist/components/Chart/Chart.stylex.d.ts +260 -0
- package/dist/components/Chart/Chart.stylex.js +280 -0
- package/dist/components/Chart/Chart.types.d.ts +380 -0
- package/dist/components/Chart/Chart.types.js +23 -0
- package/dist/components/Chart/ChartDataTable.d.ts +9 -0
- package/dist/components/Chart/ChartDataTable.js +42 -0
- package/dist/components/Chart/ChartGhost.d.ts +17 -0
- package/dist/components/Chart/ChartGhost.js +13 -0
- package/dist/components/Chart/ChartHighcharts.d.ts +6 -0
- package/dist/components/Chart/ChartHighcharts.js +61 -0
- package/dist/components/Chart/ChartLegend.d.ts +23 -0
- package/dist/components/Chart/ChartLegend.js +111 -0
- package/dist/components/Chart/ChartMarks.d.ts +29 -0
- package/dist/components/Chart/ChartMarks.js +29 -0
- package/dist/components/Chart/ChartScrollbar.d.ts +13 -0
- package/dist/components/Chart/ChartScrollbar.js +63 -0
- package/dist/components/Chart/ChartTip.d.ts +5 -0
- package/dist/components/Chart/ChartTip.js +7 -0
- package/dist/components/Checkbox/Checkbox.d.ts +81 -0
- package/dist/components/Checkbox/Checkbox.js +52 -0
- package/dist/components/CodeBlock/CodeBlock.copy.d.ts +7 -0
- package/dist/components/CodeBlock/CodeBlock.copy.js +28 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.d.ts +20 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.js +40 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +88 -0
- package/dist/components/CodeBlock/CodeBlock.fence.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.fence.js +110 -0
- package/dist/components/CodeBlock/CodeBlock.js +148 -0
- package/dist/components/CodeBlock/CodeBlock.marks.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.marks.js +54 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.d.ts +15 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.js +30 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.d.ts +221 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.js +194 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.d.ts +47 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.js +103 -0
- package/dist/components/CodeBlock/CodeGroup.context.d.ts +5 -0
- package/dist/components/CodeBlock/CodeGroup.context.js +6 -0
- package/dist/components/CodeBlock/CodeGroup.d.ts +19 -0
- package/dist/components/CodeBlock/CodeGroup.js +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.d.ts +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.js +70 -0
- package/dist/components/CodeEntry/CodeEntry.d.ts +62 -0
- package/dist/components/CodeEntry/CodeEntry.js +86 -0
- package/dist/components/CodeField/CodeField.d.ts +32 -0
- package/dist/components/CodeField/CodeField.js +25 -0
- package/dist/components/CodeField/CodeField.stylex.d.ts +82 -0
- package/dist/components/CodeField/CodeField.stylex.js +88 -0
- package/dist/components/Collection/Collection.constants.d.ts +3 -0
- package/dist/components/Collection/Collection.constants.js +3 -0
- package/dist/components/Collection/Collection.context.d.ts +70 -0
- package/dist/components/Collection/Collection.context.js +39 -0
- package/dist/components/Collection/Collection.d.ts +119 -0
- package/dist/components/Collection/Collection.dnd.d.ts +19 -0
- package/dist/components/Collection/Collection.dnd.js +56 -0
- package/dist/components/Collection/Collection.dragScroll.d.ts +2 -0
- package/dist/components/Collection/Collection.dragScroll.js +93 -0
- package/dist/components/Collection/Collection.identity.d.ts +3 -0
- package/dist/components/Collection/Collection.identity.js +10 -0
- package/dist/components/Collection/Collection.js +479 -0
- package/dist/components/Collection/Collection.pageLoadMore.d.ts +2 -0
- package/dist/components/Collection/Collection.pageLoadMore.js +21 -0
- package/dist/components/Collection/Collection.stylex.d.ts +1033 -0
- package/dist/components/Collection/Collection.stylex.js +1095 -0
- package/dist/components/Collection/CollectionItemContent.d.ts +9 -0
- package/dist/components/Collection/CollectionItemContent.js +11 -0
- package/dist/components/Collection/CollectionVirtualizer.context.d.ts +9 -0
- package/dist/components/Collection/CollectionVirtualizer.context.js +2 -0
- package/dist/components/Collection/OutlinePreview.d.ts +12 -0
- package/dist/components/Collection/OutlinePreview.js +32 -0
- package/dist/components/CollectionViews/CollectionViews.context.d.ts +8 -0
- package/dist/components/CollectionViews/CollectionViews.context.js +9 -0
- package/dist/components/CollectionViews/CollectionViews.d.ts +42 -0
- package/dist/components/CollectionViews/CollectionViews.js +53 -0
- package/dist/components/ComboBox/ComboBox.collection.d.ts +5 -0
- package/dist/components/ComboBox/ComboBox.collection.js +40 -0
- package/dist/components/ComboBox/ComboBox.d.ts +50 -0
- package/dist/components/ComboBox/ComboBox.js +98 -0
- package/dist/components/ComboBox/ComboBox.stylex.d.ts +45 -0
- package/dist/components/ComboBox/ComboBox.stylex.js +34 -0
- package/dist/components/ContainerSize/ContainerSize.d.ts +27 -0
- package/dist/components/ContainerSize/ContainerSize.js +51 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.d.ts +13 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.js +16 -0
- package/dist/components/Content/Content.context.d.ts +3 -0
- package/dist/components/Content/Content.context.js +3 -0
- package/dist/components/Content/Content.d.ts +33 -0
- package/dist/components/Content/Content.js +36 -0
- package/dist/components/Content/Content.stylex.d.ts +65 -0
- package/dist/components/Content/Content.stylex.js +69 -0
- package/dist/components/Content/HeaderSlots.d.ts +9 -0
- package/dist/components/Content/HeaderSlots.js +22 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.d.ts +2 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.js +2 -0
- package/dist/components/ControlSize/ControlSize.context.d.ts +3 -0
- package/dist/components/ControlSize/ControlSize.context.js +6 -0
- package/dist/components/Countdown/Countdown.d.ts +16 -0
- package/dist/components/Countdown/Countdown.js +30 -0
- package/dist/components/Countdown/Countdown.stylex.d.ts +11 -0
- package/dist/components/Countdown/Countdown.stylex.js +10 -0
- package/dist/components/CoverageTower/CoverageTower.axis.d.ts +28 -0
- package/dist/components/CoverageTower/CoverageTower.axis.js +28 -0
- package/dist/components/CoverageTower/CoverageTower.block.d.ts +39 -0
- package/dist/components/CoverageTower/CoverageTower.block.js +112 -0
- package/dist/components/CoverageTower/CoverageTower.d.ts +14 -0
- package/dist/components/CoverageTower/CoverageTower.js +284 -0
- package/dist/components/CoverageTower/CoverageTower.layout.d.ts +158 -0
- package/dist/components/CoverageTower/CoverageTower.layout.js +243 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.d.ts +404 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.js +525 -0
- package/dist/components/CoverageTower/CoverageTower.types.d.ts +172 -0
- package/dist/components/CoverageTower/CoverageTower.types.js +3 -0
- package/dist/components/DateField/DateField.d.ts +61 -0
- package/dist/components/DateField/DateField.js +66 -0
- package/dist/components/DateRangeField/DateRangeField.d.ts +60 -0
- package/dist/components/DateRangeField/DateRangeField.js +68 -0
- package/dist/components/Dialog/Dialog.context.d.ts +6 -0
- package/dist/components/Dialog/Dialog.context.js +3 -0
- package/dist/components/Dialog/Dialog.d.ts +15 -0
- package/dist/components/Dialog/Dialog.js +25 -0
- package/dist/components/Dialog/Dialog.stylex.d.ts +23 -0
- package/dist/components/Dialog/Dialog.stylex.js +20 -0
- package/dist/components/Disclosure/Disclosure.d.ts +5 -0
- package/dist/components/Disclosure/Disclosure.js +119 -0
- package/dist/components/Disclosure/Disclosure.stylex.d.ts +161 -0
- package/dist/components/Disclosure/Disclosure.stylex.js +143 -0
- package/dist/components/Disclosure/Disclosure.types.d.ts +96 -0
- package/dist/components/Disclosure/Disclosure.types.js +4 -0
- package/dist/components/Disclosure/DisclosureGroup.context.d.ts +2 -0
- package/dist/components/Disclosure/DisclosureGroup.context.js +2 -0
- package/dist/components/Disclosure/DisclosureGroup.d.ts +5 -0
- package/dist/components/Disclosure/DisclosureGroup.js +10 -0
- package/dist/components/DismissButton/Dismiss.context.d.ts +3 -0
- package/dist/components/DismissButton/Dismiss.context.js +10 -0
- package/dist/components/DismissButton/DismissButton.d.ts +16 -0
- package/dist/components/DismissButton/DismissButton.js +9 -0
- package/dist/components/DropZone/DropZone.d.ts +10 -0
- package/dist/components/DropZone/DropZone.js +16 -0
- package/dist/components/DropZone/DropZone.stylex.d.ts +32 -0
- package/dist/components/DropZone/DropZone.stylex.js +27 -0
- package/dist/components/EditableText/EditableText.d.ts +21 -0
- package/dist/components/EditableText/EditableText.js +63 -0
- package/dist/components/EditableText/EditableText.stylex.d.ts +108 -0
- package/dist/components/EditableText/EditableText.stylex.js +95 -0
- package/dist/components/FieldRow/FieldRow.d.ts +20 -0
- package/dist/components/FieldRow/FieldRow.js +17 -0
- package/dist/components/FieldRow/FieldRow.stylex.d.ts +30 -0
- package/dist/components/FieldRow/FieldRow.stylex.js +52 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.d.ts +74 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.js +193 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.d.ts +47 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.js +53 -0
- package/dist/components/FileContent/FileContent.context.d.ts +51 -0
- package/dist/components/FileContent/FileContent.context.js +45 -0
- package/dist/components/FileContent/FileContent.d.ts +66 -0
- package/dist/components/FileContent/FileContent.js +80 -0
- package/dist/components/FileContent/FileContent.markers.d.ts +7 -0
- package/dist/components/FileContent/FileContent.markers.js +28 -0
- package/dist/components/FileContent/FileContent.stylex.d.ts +152 -0
- package/dist/components/FileContent/FileContent.stylex.js +155 -0
- package/dist/components/FileContent/FileContentViewport.d.ts +42 -0
- package/dist/components/FileContent/FileContentViewport.js +117 -0
- package/dist/components/FileContent/FileDetails.d.ts +11 -0
- package/dist/components/FileContent/FileDetails.js +53 -0
- package/dist/components/FileContent/FileOutline.previews.d.ts +70 -0
- package/dist/components/FileContent/FileOutline.previews.js +278 -0
- package/dist/components/FileContent/FileOutlineRows.d.ts +21 -0
- package/dist/components/FileContent/FileOutlineRows.js +166 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.d.ts +13 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.js +125 -0
- package/dist/components/FileContent/FileStructure.d.ts +51 -0
- package/dist/components/FileContent/FileStructure.js +37 -0
- package/dist/components/FileExplorer/FileExplorer.browser.d.ts +58 -0
- package/dist/components/FileExplorer/FileExplorer.browser.js +274 -0
- package/dist/components/FileExplorer/FileExplorer.columns.d.ts +37 -0
- package/dist/components/FileExplorer/FileExplorer.columns.js +144 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.d.ts +95 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.js +95 -0
- package/dist/components/FileExplorer/FileExplorer.d.ts +33 -0
- package/dist/components/FileExplorer/FileExplorer.groups.d.ts +14 -0
- package/dist/components/FileExplorer/FileExplorer.groups.js +129 -0
- package/dist/components/FileExplorer/FileExplorer.hits.d.ts +12 -0
- package/dist/components/FileExplorer/FileExplorer.hits.js +51 -0
- package/dist/components/FileExplorer/FileExplorer.js +180 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.d.ts +141 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.js +132 -0
- package/dist/components/FileField/FileField.d.ts +24 -0
- package/dist/components/FileField/FileField.js +37 -0
- package/dist/components/FileField/FileField.stylex.d.ts +17 -0
- package/dist/components/FileField/FileField.stylex.js +18 -0
- package/dist/components/FileIcon/FileIcon.d.ts +25 -0
- package/dist/components/FileIcon/FileIcon.js +33 -0
- package/dist/components/FilePicker/FilePicker.d.ts +40 -0
- package/dist/components/FilePicker/FilePicker.js +155 -0
- package/dist/components/FilePicker/MovePicker.d.ts +13 -0
- package/dist/components/FilePicker/MovePicker.js +19 -0
- package/dist/components/FileScope/FileHeader.stylex.d.ts +8 -0
- package/dist/components/FileScope/FileHeader.stylex.js +9 -0
- package/dist/components/FileScope/FileScope.actions.d.ts +45 -0
- package/dist/components/FileScope/FileScope.actions.js +240 -0
- package/dist/components/FileScope/FileScope.cache.d.ts +12 -0
- package/dist/components/FileScope/FileScope.cache.js +25 -0
- package/dist/components/FileScope/FileScope.d.ts +163 -0
- package/dist/components/FileScope/FileScope.drag.d.ts +27 -0
- package/dist/components/FileScope/FileScope.drag.js +88 -0
- package/dist/components/FileScope/FileScope.entryActions.d.ts +32 -0
- package/dist/components/FileScope/FileScope.entryActions.js +121 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.d.ts +9 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.js +24 -0
- package/dist/components/FileScope/FileScope.js +132 -0
- package/dist/components/FileScope/FileScope.match.d.ts +8 -0
- package/dist/components/FileScope/FileScope.match.js +76 -0
- package/dist/components/FileScope/FileScope.plainText.d.ts +6 -0
- package/dist/components/FileScope/FileScope.plainText.js +34 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.d.ts +14 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.js +15 -0
- package/dist/components/FileScope/FileScope.queue.d.ts +20 -0
- package/dist/components/FileScope/FileScope.queue.js +81 -0
- package/dist/components/FileScope/FileScope.relative.d.ts +7 -0
- package/dist/components/FileScope/FileScope.relative.js +32 -0
- package/dist/components/FileScope/FileScope.search.d.ts +33 -0
- package/dist/components/FileScope/FileScope.search.js +105 -0
- package/dist/components/FileScope/FileScope.search.stylex.d.ts +7 -0
- package/dist/components/FileScope/FileScope.search.stylex.js +8 -0
- package/dist/components/FileScope/FileScope.share.d.ts +13 -0
- package/dist/components/FileScope/FileScope.share.js +159 -0
- package/dist/components/FileScope/FileScope.share.stylex.d.ts +18 -0
- package/dist/components/FileScope/FileScope.share.stylex.js +21 -0
- package/dist/components/FileScope/FileScope.types.d.ts +586 -0
- package/dist/components/FileScope/FileScope.types.js +6 -0
- package/dist/components/FileScope/FileScope.utils.d.ts +20 -0
- package/dist/components/FileScope/FileScope.utils.js +157 -0
- package/dist/components/FileScope/FileSourceError.d.ts +17 -0
- package/dist/components/FileScope/FileSourceError.js +24 -0
- package/dist/components/FileScope/FileStore.d.ts +178 -0
- package/dist/components/FileScope/FileStore.js +849 -0
- package/dist/components/FileThumbnail/FileThumbnail.d.ts +25 -0
- package/dist/components/FileThumbnail/FileThumbnail.js +242 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.d.ts +38 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.js +44 -0
- package/dist/components/FileTree/FileTree.d.ts +77 -0
- package/dist/components/FileTree/FileTree.entries.d.ts +29 -0
- package/dist/components/FileTree/FileTree.entries.js +97 -0
- package/dist/components/FileTree/FileTree.js +800 -0
- package/dist/components/FileTree/FileTree.stylex.d.ts +46 -0
- package/dist/components/FileTree/FileTree.stylex.js +60 -0
- package/dist/components/FileTrigger/FileSelection.context.d.ts +2 -0
- package/dist/components/FileTrigger/FileSelection.context.js +2 -0
- package/dist/components/FileTrigger/FileSelection.d.ts +13 -0
- package/dist/components/FileTrigger/FileSelection.js +31 -0
- package/dist/components/FileTrigger/FileTrigger.d.ts +9 -0
- package/dist/components/FileTrigger/FileTrigger.js +22 -0
- package/dist/components/FileViewer/FileViewer.chrome.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.chrome.js +126 -0
- package/dist/components/FileViewer/FileViewer.compact.d.ts +90 -0
- package/dist/components/FileViewer/FileViewer.compact.js +124 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.d.ts +138 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.js +140 -0
- package/dist/components/FileViewer/FileViewer.controls.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.controls.js +27 -0
- package/dist/components/FileViewer/FileViewer.d.ts +79 -0
- package/dist/components/FileViewer/FileViewer.edit.d.ts +63 -0
- package/dist/components/FileViewer/FileViewer.edit.js +209 -0
- package/dist/components/FileViewer/FileViewer.embedded.d.ts +49 -0
- package/dist/components/FileViewer/FileViewer.embedded.js +107 -0
- package/dist/components/FileViewer/FileViewer.frame.d.ts +92 -0
- package/dist/components/FileViewer/FileViewer.frame.js +36 -0
- package/dist/components/FileViewer/FileViewer.goTo.d.ts +13 -0
- package/dist/components/FileViewer/FileViewer.goTo.js +30 -0
- package/dist/components/FileViewer/FileViewer.js +846 -0
- package/dist/components/FileViewer/FileViewer.links.d.ts +18 -0
- package/dist/components/FileViewer/FileViewer.links.js +10 -0
- package/dist/components/FileViewer/FileViewer.present.d.ts +10 -0
- package/dist/components/FileViewer/FileViewer.present.js +36 -0
- package/dist/components/FileViewer/FileViewer.selection.d.ts +15 -0
- package/dist/components/FileViewer/FileViewer.selection.js +26 -0
- package/dist/components/FileViewer/FileViewer.sidebar.d.ts +24 -0
- package/dist/components/FileViewer/FileViewer.sidebar.js +53 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.d.ts +87 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.js +95 -0
- package/dist/components/FileViewer/FileViewer.skeleton.d.ts +27 -0
- package/dist/components/FileViewer/FileViewer.skeleton.js +80 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.d.ts +86 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.js +70 -0
- package/dist/components/FileViewer/FileViewer.stylex.d.ts +309 -0
- package/dist/components/FileViewer/FileViewer.stylex.js +306 -0
- package/dist/components/FileViewer/FileViewer.view.d.ts +61 -0
- package/dist/components/FileViewer/FileViewer.view.js +205 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.d.ts +105 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.js +109 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.d.ts +12 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.js +21 -0
- package/dist/components/FilterForm/FilterForm.context.d.ts +3 -0
- package/dist/components/FilterForm/FilterForm.context.js +3 -0
- package/dist/components/FilterForm/FilterForm.d.ts +6 -0
- package/dist/components/FilterForm/FilterForm.editor.d.ts +12 -0
- package/dist/components/FilterForm/FilterForm.editor.js +119 -0
- package/dist/components/FilterForm/FilterForm.js +125 -0
- package/dist/components/FilterForm/FilterForm.model.d.ts +9 -0
- package/dist/components/FilterForm/FilterForm.model.js +84 -0
- package/dist/components/FilterForm/FilterForm.options.d.ts +19 -0
- package/dist/components/FilterForm/FilterForm.options.js +89 -0
- package/dist/components/FilterForm/FilterForm.stylex.d.ts +17 -0
- package/dist/components/FilterForm/FilterForm.stylex.js +18 -0
- package/dist/components/FilterForm/FilterForm.types.d.ts +70 -0
- package/dist/components/FilterForm/FilterForm.types.js +1 -0
- package/dist/components/FlowFrame/FlowFrame.d.ts +11 -0
- package/dist/components/FlowFrame/FlowFrame.js +26 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.d.ts +8 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.js +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.d.ts +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.js +162 -0
- package/dist/components/FolderIcon/FolderIcon.d.ts +31 -0
- package/dist/components/FolderIcon/FolderIcon.js +34 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.d.ts +9 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.js +11 -0
- package/dist/components/FolderLabel/FolderLabel.d.ts +11 -0
- package/dist/components/FolderLabel/FolderLabel.js +9 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.d.ts +19 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.js +20 -0
- package/dist/components/ForEach/ForEach.d.ts +30 -0
- package/dist/components/ForEach/ForEach.data.d.ts +17 -0
- package/dist/components/ForEach/ForEach.data.js +32 -0
- package/dist/components/ForEach/ForEach.js +26 -0
- package/dist/components/Form/Form.context.d.ts +2 -0
- package/dist/components/Form/Form.context.js +5 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.stylex.d.ts +11 -0
- package/dist/components/Form/Form.stylex.js +12 -0
- package/dist/components/FormField/FormField.d.ts +25 -0
- package/dist/components/FormField/FormField.js +27 -0
- package/dist/components/FormField/FormField.stylex.d.ts +986 -0
- package/dist/components/FormField/FormField.stylex.js +1012 -0
- package/dist/components/Grid/Grid.d.ts +44 -0
- package/dist/components/Grid/Grid.js +212 -0
- package/dist/components/Grid/Grid.sections.d.ts +16 -0
- package/dist/components/Grid/Grid.sections.js +34 -0
- package/dist/components/Grid/Grid.stylex.d.ts +231 -0
- package/dist/components/Grid/Grid.stylex.js +235 -0
- package/dist/components/Grid/Grid.template.d.ts +6 -0
- package/dist/components/Grid/Grid.template.js +6 -0
- package/dist/components/HStack/HStack.d.ts +21 -0
- package/dist/components/HStack/HStack.js +13 -0
- package/dist/components/HStack/HStack.stylex.d.ts +174 -0
- package/dist/components/HStack/HStack.stylex.js +122 -0
- package/dist/components/Heading/Heading.context.d.ts +6 -0
- package/dist/components/Heading/Heading.context.js +12 -0
- package/dist/components/Heading/Heading.d.ts +15 -0
- package/dist/components/Heading/Heading.js +70 -0
- package/dist/components/Icon/FilledIcon.d.ts +5 -0
- package/dist/components/Icon/FilledIcon.js +12 -0
- package/dist/components/Icon/FilledIcon.stylex.d.ts +6 -0
- package/dist/components/Icon/FilledIcon.stylex.js +5 -0
- package/dist/components/Icon/Icon.d.ts +50 -0
- package/dist/components/Icon/Icon.js +110 -0
- package/dist/components/Icon/Icon.registry.d.ts +147 -0
- package/dist/components/Icon/Icon.registry.js +98 -0
- package/dist/components/Icon/Icon.stylex.d.ts +74 -0
- package/dist/components/Icon/Icon.stylex.js +63 -0
- package/dist/components/Icon/IconSlot.d.ts +18 -0
- package/dist/components/Icon/IconSlot.js +84 -0
- package/dist/components/Icon/badgedGlyph.d.ts +14 -0
- package/dist/components/Icon/badgedGlyph.js +23 -0
- package/dist/components/Icon/custom/BrandMarks.d.ts +12 -0
- package/dist/components/Icon/custom/BrandMarks.js +46 -0
- package/dist/components/Icon/custom/FileIcons.d.ts +27 -0
- package/dist/components/Icon/custom/FileIcons.js +117 -0
- package/dist/components/Icon/custom/FolderSearchInput.d.ts +6 -0
- package/dist/components/Icon/custom/FolderSearchInput.js +20 -0
- package/dist/components/Icon/custom/HighlighterOff.d.ts +2 -0
- package/dist/components/Icon/custom/HighlighterOff.js +7 -0
- package/dist/components/Icon/custom/LinkMarks.d.ts +74 -0
- package/dist/components/Icon/custom/LinkMarks.js +112 -0
- package/dist/components/Icon/custom/MessageSquareSearch.d.ts +5 -0
- package/dist/components/Icon/custom/MessageSquareSearch.js +10 -0
- package/dist/components/Icon/custom/PageRegions.d.ts +2 -0
- package/dist/components/Icon/custom/PageRegions.js +12 -0
- package/dist/components/Icon/custom/PanelExpand.d.ts +5 -0
- package/dist/components/Icon/custom/PanelExpand.js +12 -0
- package/dist/components/Icon/custom/SquareDashedPlus.d.ts +2 -0
- package/dist/components/Icon/custom/SquareDashedPlus.js +6 -0
- package/dist/components/Icon/getFileIconName.d.ts +11 -0
- package/dist/components/Icon/getFileIconName.js +140 -0
- package/dist/components/Icon/getLinkIconName.d.ts +23 -0
- package/dist/components/Icon/getLinkIconName.js +142 -0
- package/dist/components/Icon/lucideIcons.d.ts +9 -0
- package/dist/components/Icon/lucideIcons.js +14 -0
- package/dist/components/Icon/lucideIconsOnDemand.d.ts +11 -0
- package/dist/components/Icon/lucideIconsOnDemand.js +48 -0
- package/dist/components/IconButton/IconButton.d.ts +53 -0
- package/dist/components/IconButton/IconButton.js +116 -0
- package/dist/components/IconButton/IconButton.stylex.d.ts +88 -0
- package/dist/components/IconButton/IconButton.stylex.js +85 -0
- package/dist/components/Image/Image.d.ts +20 -0
- package/dist/components/Image/Image.js +45 -0
- package/dist/components/Image/Image.stylex.d.ts +70 -0
- package/dist/components/Image/Image.stylex.js +71 -0
- package/dist/components/ImageRedactor/ImageRedactor.d.ts +26 -0
- package/dist/components/ImageRedactor/ImageRedactor.js +56 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.d.ts +49 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.js +51 -0
- package/dist/components/Indicator/Indicator.d.ts +23 -0
- package/dist/components/Indicator/Indicator.js +105 -0
- package/dist/components/Indicator/Indicator.stylex.d.ts +181 -0
- package/dist/components/Indicator/Indicator.stylex.js +176 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +23 -0
- package/dist/components/InlineAlert/InlineAlert.js +54 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.d.ts +105 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.js +104 -0
- package/dist/components/IntentScope/IntentScope.d.ts +17 -0
- package/dist/components/IntentScope/IntentScope.js +19 -0
- package/dist/components/IntentScope/intentCoordinator.d.ts +12 -0
- package/dist/components/IntentScope/intentCoordinator.js +64 -0
- package/dist/components/IntentScope/useIntent.d.ts +12 -0
- package/dist/components/IntentScope/useIntent.js +47 -0
- package/dist/components/JsonValueView/JsonBlock.d.ts +31 -0
- package/dist/components/JsonValueView/JsonBlock.js +25 -0
- package/dist/components/JsonValueView/JsonCopyButton.d.ts +20 -0
- package/dist/components/JsonValueView/JsonCopyButton.js +37 -0
- package/dist/components/JsonValueView/JsonValueControls.d.ts +17 -0
- package/dist/components/JsonValueView/JsonValueControls.js +16 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.d.ts +21 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.d.ts +38 -0
- package/dist/components/JsonValueView/JsonValueView.frame.d.ts +12 -0
- package/dist/components/JsonValueView/JsonValueView.frame.js +13 -0
- package/dist/components/JsonValueView/JsonValueView.js +98 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.d.ts +65 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.js +49 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.d.ts +22 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.value.d.ts +25 -0
- package/dist/components/JsonValueView/JsonValueView.value.js +107 -0
- package/dist/components/JsonValueView/useJsonValueViewState.d.ts +20 -0
- package/dist/components/JsonValueView/useJsonValueViewState.js +54 -0
- package/dist/components/Keyboard/Keyboard.d.ts +14 -0
- package/dist/components/Keyboard/Keyboard.js +72 -0
- package/dist/components/Keyboard/Keyboard.stylex.d.ts +63 -0
- package/dist/components/Keyboard/Keyboard.stylex.js +64 -0
- package/dist/components/LazyGrid/LazyGrid.d.ts +11 -0
- package/dist/components/LazyGrid/LazyGrid.js +23 -0
- package/dist/components/LazyHStack/LazyHStack.d.ts +18 -0
- package/dist/components/LazyHStack/LazyHStack.js +11 -0
- package/dist/components/LazyList/LazyList.d.ts +11 -0
- package/dist/components/LazyList/LazyList.js +10 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.d.ts +4 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.js +192 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.d.ts +28 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.js +42 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.d.ts +7 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.js +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.d.ts +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.js +64 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.d.ts +110 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.js +100 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.d.ts +38 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.js +1 -0
- package/dist/components/LazyTable/LazyTable.d.ts +11 -0
- package/dist/components/LazyTable/LazyTable.js +28 -0
- package/dist/components/LazyTable/LazyTable.layout.d.ts +43 -0
- package/dist/components/LazyTable/LazyTable.layout.js +213 -0
- package/dist/components/LazyTable/LazyTable.viewport.d.ts +5 -0
- package/dist/components/LazyTable/LazyTable.viewport.js +83 -0
- package/dist/components/LazyTree/LazyTree.d.ts +11 -0
- package/dist/components/LazyTree/LazyTree.js +10 -0
- package/dist/components/LazyVStack/LazyVStack.d.ts +18 -0
- package/dist/components/LazyVStack/LazyVStack.js +15 -0
- package/dist/components/Link/Link.adapter.d.ts +19 -0
- package/dist/components/Link/Link.adapter.js +18 -0
- package/dist/components/Link/Link.d.ts +52 -0
- package/dist/components/Link/Link.js +137 -0
- package/dist/components/Link/Link.stylex.d.ts +200 -0
- package/dist/components/Link/Link.stylex.js +206 -0
- package/dist/components/List/List.d.ts +16 -0
- package/dist/components/List/List.js +90 -0
- package/dist/components/List/List.stylex.d.ts +116 -0
- package/dist/components/List/List.stylex.js +116 -0
- package/dist/components/List/flattenHelpers.d.ts +19 -0
- package/dist/components/List/flattenHelpers.js +88 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +9 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.js +16 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.d.ts +23 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.js +25 -0
- package/dist/components/LockedPreview/LockedPreview.d.ts +19 -0
- package/dist/components/LockedPreview/LockedPreview.js +11 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.d.ts +26 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.js +27 -0
- package/dist/components/Menu/Menu.collection.d.ts +3 -0
- package/dist/components/Menu/Menu.collection.js +130 -0
- package/dist/components/Menu/Menu.context.d.ts +7 -0
- package/dist/components/Menu/Menu.context.js +16 -0
- package/dist/components/Menu/Menu.d.ts +89 -0
- package/dist/components/Menu/Menu.identity.d.ts +3 -0
- package/dist/components/Menu/Menu.identity.js +3 -0
- package/dist/components/Menu/Menu.inlineRoom.d.ts +15 -0
- package/dist/components/Menu/Menu.inlineRoom.js +64 -0
- package/dist/components/Menu/Menu.js +235 -0
- package/dist/components/Menu/Menu.popoverTrigger.d.ts +10 -0
- package/dist/components/Menu/Menu.popoverTrigger.js +103 -0
- package/dist/components/Menu/Menu.stylex.d.ts +232 -0
- package/dist/components/Menu/Menu.stylex.js +265 -0
- package/dist/components/Menu/MenuItem.children.d.ts +5 -0
- package/dist/components/Menu/MenuItem.children.js +23 -0
- package/dist/components/Meter/Meter.d.ts +25 -0
- package/dist/components/Meter/Meter.js +34 -0
- package/dist/components/Meter/Meter.stylex.d.ts +49 -0
- package/dist/components/Meter/Meter.stylex.js +47 -0
- package/dist/components/Modal/Modal.d.ts +6 -0
- package/dist/components/Modal/Modal.js +14 -0
- package/dist/components/Modal/Modal.types.d.ts +40 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/Overlay.d.ts +11 -0
- package/dist/components/Modal/Overlay.js +63 -0
- package/dist/components/Modal/Overlay.stylex.d.ts +190 -0
- package/dist/components/Modal/Overlay.stylex.js +128 -0
- package/dist/components/Modal/OverlayBoundary.d.ts +5 -0
- package/dist/components/Modal/OverlayBoundary.js +17 -0
- package/dist/components/NavigationItem/NavigationItem.d.ts +64 -0
- package/dist/components/NavigationItem/NavigationItem.js +116 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.d.ts +15 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.js +20 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.d.ts +30 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.js +37 -0
- package/dist/components/NavigationRail/NavigationRail.context.d.ts +5 -0
- package/dist/components/NavigationRail/NavigationRail.context.js +9 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +12 -0
- package/dist/components/NavigationRail/NavigationRail.js +72 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.d.ts +57 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.js +58 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.d.ts +7 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.js +75 -0
- package/dist/components/NavigationTree/NavigationTree.d.ts +21 -0
- package/dist/components/NavigationTree/NavigationTree.js +273 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.d.ts +245 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.js +262 -0
- package/dist/components/NumberField/NumberField.d.ts +73 -0
- package/dist/components/NumberField/NumberField.js +112 -0
- package/dist/components/Option/Option.d.ts +18 -0
- package/dist/components/Option/Option.js +44 -0
- package/dist/components/Option/Option.stylex.d.ts +75 -0
- package/dist/components/Option/Option.stylex.js +74 -0
- package/dist/components/Page/NestedPageAuxiliary.d.ts +3 -0
- package/dist/components/Page/NestedPageAuxiliary.js +44 -0
- package/dist/components/Page/Page.d.ts +59 -0
- package/dist/components/Page/Page.js +265 -0
- package/dist/components/Page/Page.stylex.d.ts +333 -0
- package/dist/components/Page/Page.stylex.js +310 -0
- package/dist/components/Page/PageAuxiliary.context.d.ts +7 -0
- package/dist/components/Page/PageAuxiliary.context.js +2 -0
- package/dist/components/Page/PageAuxiliaryPanel.d.ts +32 -0
- package/dist/components/Page/PageAuxiliaryPanel.js +50 -0
- package/dist/components/Page/PageLabel.d.ts +26 -0
- package/dist/components/Page/PageLabel.js +56 -0
- package/dist/components/Page/PageScrollMotion.d.ts +24 -0
- package/dist/components/Page/PageScrollMotion.js +186 -0
- package/dist/components/Page/PageTitleRow.d.ts +21 -0
- package/dist/components/Page/PageTitleRow.js +50 -0
- package/dist/components/Page/PageTitleRow.stylex.d.ts +16 -0
- package/dist/components/Page/PageTitleRow.stylex.js +17 -0
- package/dist/components/Page/PageToolbar.context.d.ts +35 -0
- package/dist/components/Page/PageToolbar.context.js +43 -0
- package/dist/components/Page/PageToolbar.d.ts +13 -0
- package/dist/components/Page/PageToolbar.js +150 -0
- package/dist/components/Page/PageToolbar.motion.d.ts +5 -0
- package/dist/components/Page/PageToolbar.motion.js +27 -0
- package/dist/components/Page/PageToolbar.stylex.d.ts +41 -0
- package/dist/components/Page/PageToolbar.stylex.js +37 -0
- package/dist/components/Page/revealAuxiliary.d.ts +2 -0
- package/dist/components/Page/revealAuxiliary.js +56 -0
- package/dist/components/PageToolbar/PageToolbar.d.ts +7 -0
- package/dist/components/PageToolbar/PageToolbar.js +12 -0
- package/dist/components/Popover/OverflowPickerSearch.d.ts +7 -0
- package/dist/components/Popover/OverflowPickerSearch.js +10 -0
- package/dist/components/Popover/Popover.anchor.d.ts +12 -0
- package/dist/components/Popover/Popover.anchor.js +87 -0
- package/dist/components/Popover/Popover.context.d.ts +11 -0
- package/dist/components/Popover/Popover.context.js +11 -0
- package/dist/components/Popover/Popover.d.ts +69 -0
- package/dist/components/Popover/Popover.js +253 -0
- package/dist/components/Popover/Popover.pressTrigger.d.ts +12 -0
- package/dist/components/Popover/Popover.pressTrigger.js +54 -0
- package/dist/components/Popover/Popover.stylex.d.ts +98 -0
- package/dist/components/Popover/Popover.stylex.js +109 -0
- package/dist/components/Popover/Popover.viewport.d.ts +10 -0
- package/dist/components/Popover/Popover.viewport.js +61 -0
- package/dist/components/Popover/useHoverOpen.d.ts +24 -0
- package/dist/components/Popover/useHoverOpen.js +132 -0
- package/dist/components/Progress/Progress.d.ts +21 -0
- package/dist/components/Progress/Progress.js +20 -0
- package/dist/components/Progress/Progress.stylex.d.ts +90 -0
- package/dist/components/Progress/Progress.stylex.js +83 -0
- package/dist/components/RadioGroup/RadioGroup.children.d.ts +8 -0
- package/dist/components/RadioGroup/RadioGroup.children.js +64 -0
- package/dist/components/RadioGroup/RadioGroup.colors.d.ts +13 -0
- package/dist/components/RadioGroup/RadioGroup.colors.js +11 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +73 -0
- package/dist/components/RadioGroup/RadioGroup.js +85 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.d.ts +87 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.js +57 -0
- package/dist/components/ReflowContainer/ReflowContainer.d.ts +30 -0
- package/dist/components/ReflowContainer/ReflowContainer.js +106 -0
- package/dist/components/Region/Region.d.ts +50 -0
- package/dist/components/Region/Region.js +29 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.d.ts +34 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.js +49 -0
- package/dist/components/ResourceList/ResourceList.d.ts +7 -0
- package/dist/components/ResourceList/ResourceList.js +89 -0
- package/dist/components/ResourceList/ResourceList.model.d.ts +65 -0
- package/dist/components/ResourceList/ResourceList.model.js +372 -0
- package/dist/components/ResourceList/ResourceList.rows.d.ts +18 -0
- package/dist/components/ResourceList/ResourceList.rows.js +86 -0
- package/dist/components/ResourceList/ResourceList.stylex.d.ts +338 -0
- package/dist/components/ResourceList/ResourceList.stylex.js +272 -0
- package/dist/components/ResourceList/ResourceList.table.d.ts +22 -0
- package/dist/components/ResourceList/ResourceList.table.js +149 -0
- package/dist/components/ResourceList/ResourceList.types.d.ts +120 -0
- package/dist/components/ResourceList/ResourceList.types.js +18 -0
- package/dist/components/Reveal/Reveal.d.ts +36 -0
- package/dist/components/Reveal/Reveal.js +18 -0
- package/dist/components/Reveal/Reveal.stylex.d.ts +125 -0
- package/dist/components/Reveal/Reveal.stylex.js +155 -0
- package/dist/components/RotatingStatus/RotatingStatus.d.ts +17 -0
- package/dist/components/RotatingStatus/RotatingStatus.js +43 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.d.ts +27 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.js +28 -0
- package/dist/components/RouterProvider/RouterProvider.d.ts +22 -0
- package/dist/components/RouterProvider/RouterProvider.js +12 -0
- package/dist/components/RowButton/RowButton.d.ts +21 -0
- package/dist/components/RowButton/RowButton.js +16 -0
- package/dist/components/RowButton/RowButton.stylex.d.ts +71 -0
- package/dist/components/RowButton/RowButton.stylex.js +80 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.d.ts +20 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.js +229 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.d.ts +10 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.d.ts +16 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.js +114 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.js +30 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.d.ts +4 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.js +44 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.d.ts +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.js +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.d.ts +71 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.js +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +73 -0
- package/dist/components/ScrollArea/ScrollArea.js +176 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.d.ts +222 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.js +253 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.d.ts +8 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.js +13 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.d.ts +60 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.js +37 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.d.ts +23 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.js +14 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.d.ts +17 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.js +206 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.d.ts +166 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.js +194 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.d.ts +20 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.js +53 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.d.ts +16 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.js +137 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.d.ts +5 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.js +17 -0
- package/dist/components/ScrollArea/scrollbarGeometry.d.ts +6 -0
- package/dist/components/ScrollArea/scrollbarGeometry.js +7 -0
- package/dist/components/ScrollArea/useHasNoTabStops.d.ts +3 -0
- package/dist/components/ScrollArea/useHasNoTabStops.js +37 -0
- package/dist/components/ScrollArea/useHorizontalWheel.d.ts +3 -0
- package/dist/components/ScrollArea/useHorizontalWheel.js +40 -0
- package/dist/components/ScrollArea/useMarkerNavigation.d.ts +7 -0
- package/dist/components/ScrollArea/useMarkerNavigation.js +41 -0
- package/dist/components/ScrollArea/useMarkerRail.d.ts +16 -0
- package/dist/components/ScrollArea/useMarkerRail.js +37 -0
- package/dist/components/ScrollArea/useScrollArea.d.ts +22 -0
- package/dist/components/ScrollArea/useScrollArea.js +103 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.d.ts +38 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.js +154 -0
- package/dist/components/SearchField/SearchField.d.ts +29 -0
- package/dist/components/SearchField/SearchField.js +51 -0
- package/dist/components/SearchField/SearchField.stylex.d.ts +82 -0
- package/dist/components/SearchField/SearchField.stylex.js +60 -0
- package/dist/components/SecretField/SecretField.d.ts +66 -0
- package/dist/components/SecretField/SecretField.js +61 -0
- package/dist/components/Section/Section.d.ts +41 -0
- package/dist/components/Section/Section.data.d.ts +12 -0
- package/dist/components/Section/Section.data.js +16 -0
- package/dist/components/Section/Section.js +45 -0
- package/dist/components/Section/Section.stylex.d.ts +24 -0
- package/dist/components/Section/Section.stylex.js +26 -0
- package/dist/components/Select/Select.body.d.ts +14 -0
- package/dist/components/Select/Select.body.js +17 -0
- package/dist/components/Select/Select.collection.d.ts +7 -0
- package/dist/components/Select/Select.collection.js +67 -0
- package/dist/components/Select/Select.context.d.ts +1 -0
- package/dist/components/Select/Select.context.js +2 -0
- package/dist/components/Select/Select.d.ts +60 -0
- package/dist/components/Select/Select.js +118 -0
- package/dist/components/Select/Select.stylex.d.ts +131 -0
- package/dist/components/Select/Select.stylex.js +132 -0
- package/dist/components/Select/useSelectFormReset.d.ts +2 -0
- package/dist/components/Select/useSelectFormReset.js +25 -0
- package/dist/components/Separator/Separator.d.ts +26 -0
- package/dist/components/Separator/Separator.js +31 -0
- package/dist/components/Separator/Separator.stylex.d.ts +33 -0
- package/dist/components/Separator/Separator.stylex.js +34 -0
- package/dist/components/Sheet/Sheet.d.ts +24 -0
- package/dist/components/Sheet/Sheet.js +17 -0
- package/dist/components/Shortcuts/ShortcutIndicator.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutIndicator.js +10 -0
- package/dist/components/Shortcuts/Shortcuts.context.d.ts +9 -0
- package/dist/components/Shortcuts/Shortcuts.context.js +8 -0
- package/dist/components/Shortcuts/Shortcuts.d.ts +14 -0
- package/dist/components/Shortcuts/Shortcuts.js +50 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.d.ts +29 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.js +28 -0
- package/dist/components/Shortcuts/Shortcuts.types.d.ts +56 -0
- package/dist/components/Shortcuts/Shortcuts.types.js +1 -0
- package/dist/components/Shortcuts/ShortcutsHelp.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutsHelp.js +70 -0
- package/dist/components/Shortcuts/shortcutKeys.d.ts +6 -0
- package/dist/components/Shortcuts/shortcutKeys.js +61 -0
- package/dist/components/Shortcuts/shortcutRegistry.d.ts +36 -0
- package/dist/components/Shortcuts/shortcutRegistry.js +153 -0
- package/dist/components/Shortcuts/useShortcut.d.ts +12 -0
- package/dist/components/Shortcuts/useShortcut.js +127 -0
- package/dist/components/ShowMore/ShowMore.d.ts +18 -0
- package/dist/components/ShowMore/ShowMore.js +44 -0
- package/dist/components/ShowMore/ShowMore.lines.d.ts +23 -0
- package/dist/components/ShowMore/ShowMore.lines.js +49 -0
- package/dist/components/ShowMore/ShowMore.stylex.d.ts +24 -0
- package/dist/components/ShowMore/ShowMore.stylex.js +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -0
- package/dist/components/Skeleton/Skeleton.js +8 -0
- package/dist/components/Skeleton/Skeleton.stylex.d.ts +68 -0
- package/dist/components/Skeleton/Skeleton.stylex.js +78 -0
- package/dist/components/Skeleton/useSkeleton.d.ts +87 -0
- package/dist/components/Skeleton/useSkeleton.js +34 -0
- package/dist/components/Slider/Slider.d.ts +44 -0
- package/dist/components/Slider/Slider.js +56 -0
- package/dist/components/Slider/Slider.stylex.d.ts +105 -0
- package/dist/components/Slider/Slider.stylex.js +70 -0
- package/dist/components/Slot/Slot.d.ts +17 -0
- package/dist/components/Slot/Slot.js +83 -0
- package/dist/components/Slot/Slot.resolve.d.ts +3 -0
- package/dist/components/Slot/Slot.resolve.js +22 -0
- package/dist/components/Slot/Slot.scope.d.ts +7 -0
- package/dist/components/Slot/Slot.scope.js +19 -0
- package/dist/components/Slot/Slot.types.d.ts +64 -0
- package/dist/components/Slot/Slot.types.js +1 -0
- package/dist/components/Spacer/Spacer.d.ts +5 -0
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/Spacer/Spacer.stylex.d.ts +10 -0
- package/dist/components/Spacer/Spacer.stylex.js +10 -0
- package/dist/components/SplitLayout/SplitLayout.d.ts +43 -0
- package/dist/components/SplitLayout/SplitLayout.js +20 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.d.ts +51 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.js +77 -0
- package/dist/components/Stack/StackInsets.context.d.ts +14 -0
- package/dist/components/Stack/StackInsets.context.js +17 -0
- package/dist/components/Stack/StackPadding.stylex.d.ts +113 -0
- package/dist/components/Stack/StackPadding.stylex.js +154 -0
- package/dist/components/Stack/StackPropTypes.d.ts +30 -0
- package/dist/components/Stack/StackPropTypes.js +14 -0
- package/dist/components/StatCard/StatCard.d.ts +32 -0
- package/dist/components/StatCard/StatCard.js +15 -0
- package/dist/components/StatCard/StatCard.stylex.d.ts +101 -0
- package/dist/components/StatCard/StatCard.stylex.js +127 -0
- package/dist/components/StatCard/StatCard.vars.stylex.d.ts +22 -0
- package/dist/components/StatCard/StatCard.vars.stylex.js +26 -0
- package/dist/components/StepList/StepList.d.ts +52 -0
- package/dist/components/StepList/StepList.js +36 -0
- package/dist/components/StepList/StepList.stylex.d.ts +139 -0
- package/dist/components/StepList/StepList.stylex.js +134 -0
- package/dist/components/Stepper/Stepper.d.ts +49 -0
- package/dist/components/Stepper/Stepper.js +59 -0
- package/dist/components/Stepper/Stepper.stylex.d.ts +131 -0
- package/dist/components/Stepper/Stepper.stylex.js +147 -0
- package/dist/components/Stepper/useStepNamesFit.d.ts +12 -0
- package/dist/components/Stepper/useStepNamesFit.js +65 -0
- package/dist/components/Surface/Surface.colors.d.ts +4 -0
- package/dist/components/Surface/Surface.colors.js +34 -0
- package/dist/components/Surface/Surface.d.ts +41 -0
- package/dist/components/Surface/Surface.js +36 -0
- package/dist/components/Surface/Surface.stylex.d.ts +139 -0
- package/dist/components/Surface/Surface.stylex.js +121 -0
- package/dist/components/Switch/Switch.d.ts +50 -0
- package/dist/components/Switch/Switch.js +28 -0
- package/dist/components/TOC/TOC.activeEntry.d.ts +14 -0
- package/dist/components/TOC/TOC.activeEntry.js +89 -0
- package/dist/components/TOC/TOC.context.d.ts +33 -0
- package/dist/components/TOC/TOC.context.js +55 -0
- package/dist/components/TOC/TOC.d.ts +8 -0
- package/dist/components/TOC/TOC.js +49 -0
- package/dist/components/TOC/TOC.stylex.d.ts +60 -0
- package/dist/components/TOC/TOC.stylex.js +59 -0
- package/dist/components/Table/Table.d.ts +6 -0
- package/dist/components/Table/Table.data.d.ts +24 -0
- package/dist/components/Table/Table.data.js +224 -0
- package/dist/components/Table/Table.js +317 -0
- package/dist/components/Table/Table.layout.d.ts +33 -0
- package/dist/components/Table/Table.layout.js +246 -0
- package/dist/components/Table/Table.parts.d.ts +13 -0
- package/dist/components/Table/Table.parts.js +17 -0
- package/dist/components/Table/Table.stylex.d.ts +504 -0
- package/dist/components/Table/Table.stylex.js +468 -0
- package/dist/components/Table/Table.types.d.ts +114 -0
- package/dist/components/Table/Table.types.js +11 -0
- package/dist/components/Table/TableRowLink.d.ts +16 -0
- package/dist/components/Table/TableRowLink.js +39 -0
- package/dist/components/Tabs/NewTabAction.d.ts +7 -0
- package/dist/components/Tabs/NewTabAction.js +25 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/Tab.js +10 -0
- package/dist/components/Tabs/TabActionButton.d.ts +14 -0
- package/dist/components/Tabs/TabActionButton.js +60 -0
- package/dist/components/Tabs/TabActions.d.ts +12 -0
- package/dist/components/Tabs/TabActions.js +119 -0
- package/dist/components/Tabs/TabOutlet.d.ts +9 -0
- package/dist/components/Tabs/TabOutlet.js +15 -0
- package/dist/components/Tabs/TabPanelTransition.d.ts +18 -0
- package/dist/components/Tabs/TabPanelTransition.js +20 -0
- package/dist/components/Tabs/Tabs.children.d.ts +16 -0
- package/dist/components/Tabs/Tabs.children.js +97 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.js +270 -0
- package/dist/components/Tabs/Tabs.state.d.ts +19 -0
- package/dist/components/Tabs/Tabs.state.js +13 -0
- package/dist/components/Tabs/Tabs.stylex.d.ts +476 -0
- package/dist/components/Tabs/Tabs.stylex.js +376 -0
- package/dist/components/Tabs/Tabs.types.d.ts +99 -0
- package/dist/components/Tabs/Tabs.types.js +6 -0
- package/dist/components/Tabs/TabsPicker.d.ts +8 -0
- package/dist/components/Tabs/TabsPicker.js +21 -0
- package/dist/components/Tabs/useTabOverflow.d.ts +9 -0
- package/dist/components/Tabs/useTabOverflow.js +55 -0
- package/dist/components/Tabs/useTabReorder.d.ts +22 -0
- package/dist/components/Tabs/useTabReorder.js +133 -0
- package/dist/components/Tabs/useTabScrollRestoration.d.ts +4 -0
- package/dist/components/Tabs/useTabScrollRestoration.js +100 -0
- package/dist/components/Tabs/useTabs.d.ts +10 -0
- package/dist/components/Tabs/useTabs.js +43 -0
- package/dist/components/Tabs/useTabsPickerMotion.d.ts +6 -0
- package/dist/components/Tabs/useTabsPickerMotion.js +64 -0
- package/dist/components/TagGroup/CollapsedTagGroup.d.ts +13 -0
- package/dist/components/TagGroup/CollapsedTagGroup.js +205 -0
- package/dist/components/TagGroup/Tag.d.ts +22 -0
- package/dist/components/TagGroup/Tag.js +5 -0
- package/dist/components/TagGroup/TagCollection.d.ts +15 -0
- package/dist/components/TagGroup/TagCollection.js +30 -0
- package/dist/components/TagGroup/TagContents.d.ts +8 -0
- package/dist/components/TagGroup/TagContents.js +109 -0
- package/dist/components/TagGroup/TagGroup.children.d.ts +11 -0
- package/dist/components/TagGroup/TagGroup.children.js +59 -0
- package/dist/components/TagGroup/TagGroup.d.ts +29 -0
- package/dist/components/TagGroup/TagGroup.js +20 -0
- package/dist/components/TagGroup/TagGroup.stylex.d.ts +226 -0
- package/dist/components/TagGroup/TagGroup.stylex.js +162 -0
- package/dist/components/TagGroup/tagGroupLayout.d.ts +5 -0
- package/dist/components/TagGroup/tagGroupLayout.js +20 -0
- package/dist/components/Text/Text.d.ts +81 -0
- package/dist/components/Text/Text.js +124 -0
- package/dist/components/Text/Text.stylex.d.ts +239 -0
- package/dist/components/Text/Text.stylex.js +231 -0
- package/dist/components/Text/Text.truncation.d.ts +44 -0
- package/dist/components/Text/Text.truncation.js +365 -0
- package/dist/components/Text/Text.truncation.stylex.d.ts +42 -0
- package/dist/components/Text/Text.truncation.stylex.js +53 -0
- package/dist/components/TextArea/TextArea.d.ts +63 -0
- package/dist/components/TextArea/TextArea.js +43 -0
- package/dist/components/TextField/TextField.d.ts +67 -0
- package/dist/components/TextField/TextField.js +46 -0
- package/dist/components/TileButton/TileButton.d.ts +37 -0
- package/dist/components/TileButton/TileButton.js +23 -0
- package/dist/components/TileButton/TileButton.stylex.d.ts +68 -0
- package/dist/components/TileButton/TileButton.stylex.js +74 -0
- package/dist/components/TileButton/TileButton.vars.stylex.d.ts +10 -0
- package/dist/components/TileButton/TileButton.vars.stylex.js +13 -0
- package/dist/components/Time/Time.d.ts +25 -0
- package/dist/components/Time/Time.format.d.ts +22 -0
- package/dist/components/Time/Time.format.js +55 -0
- package/dist/components/Time/Time.js +31 -0
- package/dist/components/Time/Time.stylex.d.ts +14 -0
- package/dist/components/Time/Time.stylex.js +15 -0
- package/dist/components/TimeField/TimeField.d.ts +52 -0
- package/dist/components/TimeField/TimeField.js +53 -0
- package/dist/components/TimelineLanes/TimelineLanes.d.ts +71 -0
- package/dist/components/TimelineLanes/TimelineLanes.js +83 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.d.ts +14 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.js +35 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.d.ts +280 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.js +329 -0
- package/dist/components/Toast/Toast.context.d.ts +3 -0
- package/dist/components/Toast/Toast.context.js +8 -0
- package/dist/components/Toast/Toast.d.ts +5 -0
- package/dist/components/Toast/Toast.js +63 -0
- package/dist/components/Toast/Toast.stylex.d.ts +173 -0
- package/dist/components/Toast/Toast.stylex.js +137 -0
- package/dist/components/Toast/Toast.types.d.ts +31 -0
- package/dist/components/Toast/Toast.types.js +9 -0
- package/dist/components/Toast/ToastCountdown.d.ts +7 -0
- package/dist/components/Toast/ToastCountdown.js +48 -0
- package/dist/components/Toast/ToastView.d.ts +6 -0
- package/dist/components/Toast/ToastView.js +39 -0
- package/dist/components/Toast/createToastEntry.d.ts +9 -0
- package/dist/components/Toast/createToastEntry.js +33 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +45 -0
- package/dist/components/ToggleButton/ToggleButton.js +97 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.d.ts +118 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.js +109 -0
- package/dist/components/Toolbar/Toolbar.children.d.ts +19 -0
- package/dist/components/Toolbar/Toolbar.children.js +83 -0
- package/dist/components/Toolbar/Toolbar.d.ts +37 -0
- package/dist/components/Toolbar/Toolbar.js +180 -0
- package/dist/components/Toolbar/Toolbar.layout.d.ts +20 -0
- package/dist/components/Toolbar/Toolbar.layout.js +104 -0
- package/dist/components/Toolbar/Toolbar.menu.d.ts +27 -0
- package/dist/components/Toolbar/Toolbar.menu.js +213 -0
- package/dist/components/Toolbar/Toolbar.stylex.d.ts +69 -0
- package/dist/components/Toolbar/Toolbar.stylex.js +48 -0
- package/dist/components/Toolbar/ToolbarControl.context.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarControl.context.js +9 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.d.ts +42 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.js +50 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.d.ts +3 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.js +22 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.js +20 -0
- package/dist/components/Toolbar/ToolbarNote.d.ts +13 -0
- package/dist/components/Toolbar/ToolbarNote.js +8 -0
- package/dist/components/Tooltip/Tooltip.d.ts +43 -0
- package/dist/components/Tooltip/Tooltip.js +139 -0
- package/dist/components/Tooltip/Tooltip.stylex.d.ts +106 -0
- package/dist/components/Tooltip/Tooltip.stylex.js +105 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.js +12 -0
- package/dist/components/TourLayer/TourLayer.d.ts +14 -0
- package/dist/components/TourLayer/TourLayer.js +17 -0
- package/dist/components/TourLayer/TourLayer.stylex.d.ts +10 -0
- package/dist/components/TourLayer/TourLayer.stylex.js +11 -0
- package/dist/components/Tree/Tree.d.ts +21 -0
- package/dist/components/Tree/Tree.js +88 -0
- package/dist/components/Tree/Tree.stylex.d.ts +101 -0
- package/dist/components/Tree/Tree.stylex.js +103 -0
- package/dist/components/Trigger/Trigger.d.ts +10 -0
- package/dist/components/Trigger/Trigger.js +23 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.d.ts +44 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.js +136 -0
- package/dist/components/VStack/VStack.d.ts +26 -0
- package/dist/components/VStack/VStack.js +11 -0
- package/dist/components/VStack/VStack.stylex.d.ts +174 -0
- package/dist/components/VStack/VStack.stylex.js +124 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +13 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.d.ts +28 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.js +45 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.d.ts +88 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.js +106 -0
- package/dist/components/WindowSplitter/WindowSplitter.d.ts +43 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.d.ts +6 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.js +7 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.d.ts +70 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.js +88 -0
- package/dist/components/WindowSplitter/WindowSplitter.js +613 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.d.ts +33 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.js +90 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.d.ts +11 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.js +50 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.d.ts +180 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.js +163 -0
- package/dist/components/ZStack/ZStack.d.ts +41 -0
- package/dist/components/ZStack/ZStack.js +43 -0
- package/dist/components/ZStack/ZStack.stylex.d.ts +78 -0
- package/dist/components/ZStack/ZStack.stylex.js +42 -0
- package/dist/experimental/index.d.ts +48 -0
- package/dist/experimental/index.js +45 -0
- package/dist/files/index.d.ts +22 -0
- package/dist/files/index.js +19 -0
- package/dist/foundations/Color.context.d.ts +29 -0
- package/dist/foundations/Color.context.js +58 -0
- package/dist/foundations/Color.core.d.ts +70 -0
- package/dist/foundations/Color.core.js +323 -0
- package/dist/foundations/Color.d.ts +1 -0
- package/dist/foundations/Color.js +1 -0
- package/dist/foundations/Color.styles.stylex.d.ts +21 -0
- package/dist/foundations/Color.styles.stylex.js +34 -0
- package/dist/foundations/constants.stylex.d.ts +18 -0
- package/dist/foundations/constants.stylex.js +20 -0
- package/dist/foundations/textStyles.stylex.d.ts +87 -0
- package/dist/foundations/textStyles.stylex.js +88 -0
- package/dist/foundations/viewport.d.ts +5 -0
- package/dist/foundations/viewport.js +17 -0
- package/dist/index.d.ts +171 -0
- package/dist/index.js +189 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +1 -0
- package/dist/theming/OverlayRegion.d.ts +15 -0
- package/dist/theming/OverlayRegion.js +36 -0
- package/dist/theming/ThemeRegion.d.ts +22 -0
- package/dist/theming/ThemeRegion.js +28 -0
- package/dist/theming/ThemeScope.context.d.ts +40 -0
- package/dist/theming/ThemeScope.context.js +76 -0
- package/dist/theming/ThemeScope.d.ts +35 -0
- package/dist/theming/ThemeScope.js +67 -0
- package/dist/theming/ThemeScope.stylex.d.ts +34 -0
- package/dist/theming/ThemeScope.stylex.js +54 -0
- package/dist/theming/color.d.ts +51 -0
- package/dist/theming/color.js +175 -0
- package/dist/theming/createTheme.d.ts +145 -0
- package/dist/theming/createTheme.js +1009 -0
- package/dist/theming/designTokens.d.ts +49 -0
- package/dist/theming/designTokens.js +138 -0
- package/dist/theming/effectiveTheme.d.ts +154 -0
- package/dist/theming/effectiveTheme.js +62 -0
- package/dist/theming/themeStylesheet.d.ts +20 -0
- package/dist/theming/themeStylesheet.js +106 -0
- package/dist/theming/tokens.d.ts +48 -0
- package/dist/theming/tokens.js +314 -0
- package/dist/theming/tokens.stylex.d.ts +592 -0
- package/dist/theming/tokens.stylex.js +1265 -0
- package/dist/utils/declarationError.d.ts +7 -0
- package/dist/utils/declarationError.js +16 -0
- package/dist/utils/deviceCache.d.ts +40 -0
- package/dist/utils/deviceCache.js +234 -0
- package/dist/utils/isSoftwareKeyboardLikely.d.ts +2 -0
- package/dist/utils/isSoftwareKeyboardLikely.js +12 -0
- package/dist/utils/performance.d.ts +3 -0
- package/dist/utils/performance.js +5 -0
- package/dist/utils/preferences.d.ts +35 -0
- package/dist/utils/preferences.js +77 -0
- package/dist/utils/preload.d.ts +10 -0
- package/dist/utils/preload.js +12 -0
- package/dist/utils/props.d.ts +5 -0
- package/dist/utils/props.js +10 -0
- package/dist/utils/resolveAutoFocus.d.ts +3 -0
- package/dist/utils/resolveAutoFocus.js +8 -0
- package/dist/utils/trackRegionActivity.d.ts +13 -0
- package/dist/utils/trackRegionActivity.js +72 -0
- package/dist/utils/useAutoFocus.d.ts +6 -0
- package/dist/utils/useAutoFocus.js +16 -0
- package/dist/utils/visuallyHidden.stylex.d.ts +15 -0
- package/dist/utils/visuallyHidden.stylex.js +15 -0
- package/dist/vite/index.d.ts +21 -0
- package/dist/vite/index.js +104 -0
- package/dist/vite/lucideIcons.d.ts +11 -0
- package/dist/vite/lucideIcons.js +53 -0
- package/package.json +159 -3
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { useContext, useRef, useState } from 'react';
|
|
4
|
+
import { DismissContext } from "../DismissButton/Dismiss.context.js";
|
|
5
|
+
import { Spacer } from "../Spacer/Spacer.js";
|
|
6
|
+
import { Text } from "../Text/Text.js";
|
|
7
|
+
import { UnsavedChangesScope, useUnsavedChanges, } from "../UnsavedChangesScope/UnsavedChangesScope.js";
|
|
8
|
+
import { LabeledIconButton } from "../FileViewer/FileViewer.chrome.js";
|
|
9
|
+
import { useIsCompact } from "../FileContent/FileContent.context.js";
|
|
10
|
+
import { SourceScope, useResolvedFileSource } from "../FileScope/FileScope.js";
|
|
11
|
+
import { useFileStore } from "../FileScope/FileStore.js";
|
|
12
|
+
import { FileViewer } from "../FileViewer/FileViewer.js";
|
|
13
|
+
import { ViewerCollectionContext } from "../FileViewer/FileViewer.frame.js";
|
|
14
|
+
import { FileTree } from "../FileTree/FileTree.js";
|
|
15
|
+
import { useTreeEntries } from "../FileTree/FileTree.entries.js";
|
|
16
|
+
import { styles } from "./FileCollectionViewer.stylex.js";
|
|
17
|
+
/**
|
|
18
|
+
* A set of files and the open one, in one frame: the files in the sidebar's Files section above
|
|
19
|
+
* the open file's Pages, Back and Forward through the files opened, and the viewer's own
|
|
20
|
+
* controls. Under 600 pixels wide, measured on its own box, the list and the file take turns,
|
|
21
|
+
* with Back to files in the header and Next file in the bottom row until the last. Opening
|
|
22
|
+
* another file while the open one has unsaved changes asks first.
|
|
23
|
+
*/
|
|
24
|
+
export function FileCollectionViewer({ source: ownSource, ...props }) {
|
|
25
|
+
const source = useResolvedFileSource(ownSource, 'FileCollectionViewer');
|
|
26
|
+
return (_jsx(SourceScope, { source: ownSource, children: _jsx(UnsavedChangesScope, { children: _jsx(CollectionFrame, { source: source, ...props }) }) }));
|
|
27
|
+
}
|
|
28
|
+
FileCollectionViewer.displayName = 'FileCollectionViewer';
|
|
29
|
+
function CollectionFrame({ source, 'aria-label': label, load = 'all', root = null, entries, selected, onSelectedChange, location, defaultLocation, onLocationChange, isSearchable = false, hasHistory = true, pinned = NO_PINS, entryStatus, leading, trailing, }) {
|
|
30
|
+
const rootRef = useRef(null);
|
|
31
|
+
const isCompact = useIsCompact(rootRef);
|
|
32
|
+
// In a Sheet or Modal, Close stays in the header whatever it shows, a file or the list.
|
|
33
|
+
const dismiss = useContext(DismissContext);
|
|
34
|
+
const store = useFileStore(source);
|
|
35
|
+
const isAll = load === 'all' || entries !== undefined;
|
|
36
|
+
// The Find field's words, kept as the list and the file take turns on a narrow viewer.
|
|
37
|
+
const [query, setQuery] = useState('');
|
|
38
|
+
// What the open file searches for, when it was opened from a text match.
|
|
39
|
+
const [fileQuery, setFileQuery] = useState('');
|
|
40
|
+
// Where a text match opened its file, until the reader opens another, and which opening it was,
|
|
41
|
+
// so a second match in the same file moves there too.
|
|
42
|
+
const [jump, setJump] = useState(null);
|
|
43
|
+
const [ownLocation, setOwnLocation] = useState(() => selected === null || defaultLocation === undefined
|
|
44
|
+
? null
|
|
45
|
+
: { key: selected, location: defaultLocation });
|
|
46
|
+
const shownLocation = location ?? (ownLocation?.key === selected ? ownLocation.location : undefined);
|
|
47
|
+
const changeLocation = (next) => {
|
|
48
|
+
if (selected !== null)
|
|
49
|
+
setOwnLocation({ key: selected, location: next });
|
|
50
|
+
onLocationChange?.(next);
|
|
51
|
+
};
|
|
52
|
+
// Every file in reading order, as the tree lists them, for Next file: loaded here too, as a
|
|
53
|
+
// narrow viewer shows the file without the tree.
|
|
54
|
+
const { fileOrder: order, loadedEntries, pinnedEntries, } = useTreeEntries(store, {
|
|
55
|
+
root: root ?? (source.keys === 'path' ? '' : null),
|
|
56
|
+
entries,
|
|
57
|
+
load: isAll ? 'all' : 'lazy',
|
|
58
|
+
pinned,
|
|
59
|
+
show: 'all',
|
|
60
|
+
});
|
|
61
|
+
// Moving to another file, or to the list, leaves the open one: unsaved changes ask first.
|
|
62
|
+
const { request } = useUnsavedChanges();
|
|
63
|
+
const leave = (proceed) => request({ intent: 'explicit', proceed });
|
|
64
|
+
const steps = useHistory(selected, onSelectedChange, store);
|
|
65
|
+
// Stepping opens a file afresh, without the search a text match opened the last one with.
|
|
66
|
+
const history = {
|
|
67
|
+
...steps,
|
|
68
|
+
back: () => leave(() => {
|
|
69
|
+
setFileQuery('');
|
|
70
|
+
steps.back();
|
|
71
|
+
}),
|
|
72
|
+
forward: () => leave(() => {
|
|
73
|
+
setFileQuery('');
|
|
74
|
+
steps.forward();
|
|
75
|
+
}),
|
|
76
|
+
};
|
|
77
|
+
// On a narrow viewer, whether the list stands in for the file. A file the app opens takes its
|
|
78
|
+
// place, except the one the app answers Back to files with, such as a filing's overview. `left`
|
|
79
|
+
// is the file Back to files left, which the list's header opens again.
|
|
80
|
+
const [list, setList] = useState({ isShown: selected === null, seen: selected, isClearing: false, left: null });
|
|
81
|
+
if (selected !== list.seen && ownLocation !== null && ownLocation.key !== selected) {
|
|
82
|
+
// Where the last file was doesn't carry to another, nor back to it later.
|
|
83
|
+
setOwnLocation(null);
|
|
84
|
+
}
|
|
85
|
+
if (selected !== list.seen)
|
|
86
|
+
setList({
|
|
87
|
+
...list,
|
|
88
|
+
isShown: list.isClearing && list.isShown,
|
|
89
|
+
seen: selected,
|
|
90
|
+
isClearing: false,
|
|
91
|
+
});
|
|
92
|
+
const isListShown = list.isShown;
|
|
93
|
+
const open = (key, options = {}) => {
|
|
94
|
+
setFileQuery(options.query ?? '');
|
|
95
|
+
setList({ ...list, isShown: false, isClearing: false });
|
|
96
|
+
if (key !== selected) {
|
|
97
|
+
// Another file opens there in one change, as `onLocationChange` is about the open file.
|
|
98
|
+
onSelectedChange(key, options.location === undefined ? undefined : { location: options.location });
|
|
99
|
+
}
|
|
100
|
+
// The viewer goes there; in the open file it reports the place through `onLocationChange`.
|
|
101
|
+
if (options.location !== undefined) {
|
|
102
|
+
setJump({ key, location: options.location, id: (jump?.id ?? 0) + 1 });
|
|
103
|
+
setOwnLocation({ key, location: options.location });
|
|
104
|
+
}
|
|
105
|
+
else
|
|
106
|
+
setJump(null);
|
|
107
|
+
};
|
|
108
|
+
const select = (key, options = {}) => key === selected ? open(key, options) : leave(() => open(key, options));
|
|
109
|
+
const index = selected === null || !isAll ? -1 : order.indexOf(selected);
|
|
110
|
+
const nextKey = index < 0 ? undefined : order[index + 1];
|
|
111
|
+
const listed = (key) => pinnedEntries.find((entry) => entry.key === key) ??
|
|
112
|
+
loadedEntries.find((entry) => entry.key === key) ??
|
|
113
|
+
store.entry(key);
|
|
114
|
+
const nextEntry = nextKey === undefined ? undefined : listed(nextKey);
|
|
115
|
+
const leftKey = list.left === null ? null : (store.movedTo(list.left) ?? list.left);
|
|
116
|
+
const leftEntry = leftKey === null ? undefined : listed(leftKey);
|
|
117
|
+
// The list stands in for the file on a narrow viewer, so it marks none: picking one opens it, the
|
|
118
|
+
// one that was open too, even when the app keeps it selected, as a filing keeps its overview.
|
|
119
|
+
const filesMarking = (marked) => (_jsx("div", { ...stylex.props(styles.files), children: _jsx(FileTree, { "aria-label": label, show: "all", load: isAll ? 'all' : 'lazy', ...(entries === undefined ? { root } : { entries }), pinned: pinned, ...(entryStatus === undefined ? {} : { entryStatus }), isSearchable: isSearchable, query: query, onQueryChange: setQuery, selected: marked, onOpen: (entry, options) => select(entry.key, options) }) }));
|
|
120
|
+
const collection = {
|
|
121
|
+
isCompact,
|
|
122
|
+
files: filesMarking(selected),
|
|
123
|
+
fileCount: isAll ? order.length : undefined,
|
|
124
|
+
next: nextEntry === undefined
|
|
125
|
+
? undefined
|
|
126
|
+
: {
|
|
127
|
+
name: nextEntry.name,
|
|
128
|
+
mediaType: nextEntry.mediaType,
|
|
129
|
+
open: () => select(nextEntry.key),
|
|
130
|
+
},
|
|
131
|
+
// The list stands in for the file, so none is open: picking one, the same one too, opens it.
|
|
132
|
+
onShowFiles: () => leave(() => {
|
|
133
|
+
setList({ ...list, isShown: true, isClearing: selected !== null, left: selected });
|
|
134
|
+
onSelectedChange(null);
|
|
135
|
+
}),
|
|
136
|
+
history: hasHistory ? history : undefined,
|
|
137
|
+
jump: jump?.key === selected ? jump : undefined,
|
|
138
|
+
};
|
|
139
|
+
return (_jsx("div", { ref: rootRef, ...stylex.props(styles.root), children: isCompact && (isListShown || selected === null) ? (
|
|
140
|
+
// On a narrow screen the list takes the file's place, under the collection's name, with
|
|
141
|
+
// the app's controls and a Sheet's or Modal's Close where the file's header has them.
|
|
142
|
+
_jsxs("div", { ...stylex.props(styles.compactList), onKeyDown: (event) => {
|
|
143
|
+
if (event.key !== 'Escape' || event.defaultPrevented || dismiss === null)
|
|
144
|
+
return;
|
|
145
|
+
event.preventDefault();
|
|
146
|
+
dismiss();
|
|
147
|
+
}, children: [_jsxs("div", { ...stylex.props(styles.compactHeader), children: [_jsx(Text, { variant: "subheadline", truncation: "ellipsis", children: label }), _jsx(Spacer, {}), leftEntry === undefined ? null : (_jsx(LabeledIconButton, { icon: "ChevronRight", label: `Back to ${leftEntry.name}`, variant: "plain", size: "small", onPress: () => select(leftEntry.key) })), trailing == null ? null : (_jsx("div", { ...stylex.props(styles.headerControls), children: trailing })), dismiss === null ? null : (_jsx(LabeledIconButton, { icon: "X", label: "Close", variant: "plain", size: "small", onPress: dismiss }))] }), filesMarking(null)] })) : (_jsx(ViewerCollectionContext, { value: collection, children: _jsx(FileViewer, { entry: selected, onEntryChange: onSelectedChange, ...(shownLocation === undefined ? {} : { location: shownLocation }), onLocationChange: changeLocation, query: fileQuery, onQueryChange: setFileQuery, leading: leading, trailing: trailing }) })) }));
|
|
148
|
+
}
|
|
149
|
+
const NO_PINS = [];
|
|
150
|
+
/**
|
|
151
|
+
* Back and Forward through the files opened, however they were opened: from the list, a link
|
|
152
|
+
* from one file to another, or the app. Stepping opens the file without adding a step, and a file
|
|
153
|
+
* renamed or moved keeps its step under its new key.
|
|
154
|
+
*/
|
|
155
|
+
function useHistory(selected, onSelectedChange, store) {
|
|
156
|
+
// `stepFrom`, while a Back or Forward waits for the app, is the file open when it asked.
|
|
157
|
+
const [steps, setSteps] = useState(() => ({ keys: selected === null ? [] : [selected], at: selected === null ? -1 : 0 }));
|
|
158
|
+
const current = steps.keys[steps.at];
|
|
159
|
+
const isStepping = steps.stepFrom !== undefined;
|
|
160
|
+
if (isStepping) {
|
|
161
|
+
// The step lands on whatever the app opens next: the file asked for, under its key now.
|
|
162
|
+
if (selected !== steps.stepFrom && selected !== null) {
|
|
163
|
+
const keys = [...steps.keys];
|
|
164
|
+
keys[steps.at] = selected;
|
|
165
|
+
setSteps({ keys, at: steps.at });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
else if (selected !== null && current !== selected) {
|
|
169
|
+
if (current !== undefined && store.movedTo(current) === selected) {
|
|
170
|
+
// The open file was renamed or moved: its step follows it.
|
|
171
|
+
const keys = [...steps.keys];
|
|
172
|
+
keys[steps.at] = selected;
|
|
173
|
+
setSteps({ keys, at: steps.at });
|
|
174
|
+
}
|
|
175
|
+
else
|
|
176
|
+
setSteps({ keys: [...steps.keys.slice(0, steps.at + 1), selected], at: steps.at + 1 });
|
|
177
|
+
}
|
|
178
|
+
const go = (offset) => {
|
|
179
|
+
const at = steps.at + offset;
|
|
180
|
+
const step = steps.keys[at];
|
|
181
|
+
if (step === undefined)
|
|
182
|
+
return;
|
|
183
|
+
const key = store.movedTo(step) ?? step;
|
|
184
|
+
setSteps({ keys: steps.keys, at, stepFrom: selected });
|
|
185
|
+
onSelectedChange(key);
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
canGoBack: steps.at > 0,
|
|
189
|
+
canGoForward: steps.at < steps.keys.length - 1,
|
|
190
|
+
back: () => go(-1),
|
|
191
|
+
forward: () => go(1),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly root: Readonly<{
|
|
4
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
5
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
6
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
7
|
+
readonly inlineSize: stylex.StyleXClassNameFor<"inlineSize", "100%">;
|
|
8
|
+
readonly blockSize: stylex.StyleXClassNameFor<"blockSize", "100%">;
|
|
9
|
+
readonly minBlockSize: stylex.StyleXClassNameFor<"minBlockSize", 0>;
|
|
10
|
+
readonly minInlineSize: stylex.StyleXClassNameFor<"minInlineSize", 0>;
|
|
11
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
12
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", "calc(var(--eds-container-corner-radius, 0px) - var(--eds-container-border-width, 0px))">;
|
|
13
|
+
readonly overflow: stylex.StyleXClassNameFor<"overflow", "clip">;
|
|
14
|
+
}>;
|
|
15
|
+
readonly files: Readonly<{
|
|
16
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
17
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
18
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
19
|
+
readonly minBlockSize: stylex.StyleXClassNameFor<"minBlockSize", 0>;
|
|
20
|
+
}>;
|
|
21
|
+
readonly compactList: Readonly<{
|
|
22
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
23
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
24
|
+
readonly flex: stylex.StyleXClassNameFor<"flex", 1>;
|
|
25
|
+
readonly minBlockSize: stylex.StyleXClassNameFor<"minBlockSize", 0>;
|
|
26
|
+
}>;
|
|
27
|
+
readonly headerControls: Readonly<{
|
|
28
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
29
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
30
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
31
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
32
|
+
}>;
|
|
33
|
+
readonly compactHeader: Readonly<{
|
|
34
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
35
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
36
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
37
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
38
|
+
readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
39
|
+
readonly minBlockSize: stylex.StyleXClassNameFor<"minBlockSize", string>;
|
|
40
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
|
|
41
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
42
|
+
readonly marginBlockEnd: stylex.StyleXClassNameFor<"marginBlockEnd", string>;
|
|
43
|
+
readonly borderBlockEndWidth: stylex.StyleXClassNameFor<"borderBlockEndWidth", 1>;
|
|
44
|
+
readonly borderBlockEndStyle: stylex.StyleXClassNameFor<"borderBlockEndStyle", "solid">;
|
|
45
|
+
readonly borderBlockEndColor: stylex.StyleXClassNameFor<"borderBlockEndColor", string>;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { fileHeader } from "../FileScope/FileHeader.stylex.js";
|
|
3
|
+
import { tokenVars } from "../../theming/tokens.stylex.js";
|
|
4
|
+
export const styles = stylex.create({
|
|
5
|
+
// Fills its container and measures itself, which picks the layout.
|
|
6
|
+
root: {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
flex: 1,
|
|
10
|
+
inlineSize: '100%',
|
|
11
|
+
blockSize: '100%',
|
|
12
|
+
minBlockSize: 0,
|
|
13
|
+
minInlineSize: 0,
|
|
14
|
+
backgroundColor: tokenVars.canvas,
|
|
15
|
+
// Fits inside the frame it fills, such as a rounded Surface, which doesn't clip, so what the
|
|
16
|
+
// viewer draws doesn't square off its corners.
|
|
17
|
+
borderRadius: 'calc(var(--eds-container-corner-radius, 0px) - var(--eds-container-border-width, 0px))',
|
|
18
|
+
overflow: 'clip',
|
|
19
|
+
},
|
|
20
|
+
files: {
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
flex: 1,
|
|
24
|
+
minBlockSize: 0,
|
|
25
|
+
},
|
|
26
|
+
compactList: {
|
|
27
|
+
display: 'flex',
|
|
28
|
+
flexDirection: 'column',
|
|
29
|
+
flex: 1,
|
|
30
|
+
minBlockSize: 0,
|
|
31
|
+
},
|
|
32
|
+
headerControls: {
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
gap: tokenVars.spaceHalf,
|
|
36
|
+
flexShrink: 0,
|
|
37
|
+
},
|
|
38
|
+
// As the file's header: the same height, insets and edge, so Close stays in its place.
|
|
39
|
+
compactHeader: {
|
|
40
|
+
display: 'flex',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
gap: tokenVars.spaceSmall,
|
|
43
|
+
flexShrink: 0,
|
|
44
|
+
boxSizing: 'border-box',
|
|
45
|
+
minBlockSize: fileHeader.minBlockSize,
|
|
46
|
+
paddingBlock: tokenVars.spaceHalf,
|
|
47
|
+
paddingInline: tokenVars.spaceMedium,
|
|
48
|
+
marginBlockEnd: tokenVars.spaceSmall,
|
|
49
|
+
borderBlockEndWidth: 1,
|
|
50
|
+
borderBlockEndStyle: 'solid',
|
|
51
|
+
borderBlockEndColor: tokenVars.borderHairline,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import type { FileStructure } from './FileStructure.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Below this width, measured on the viewer's own box, the viewer is compact: no sidebar or marker
|
|
5
|
+
* rail, Contents opens from the title and pages from a pill, and a collection's list takes turns
|
|
6
|
+
* with the file.
|
|
7
|
+
*/
|
|
8
|
+
export declare const FILE_COMPACT_WIDTH = 600;
|
|
9
|
+
/** What the viewer around a renderer's body tells its layout. */
|
|
10
|
+
export type FileFrame = {
|
|
11
|
+
/** The viewer is narrow: no marker rail beside the file. */
|
|
12
|
+
readonly isCompact: boolean;
|
|
13
|
+
/** Whether the file's outline shows as the marker rail: a standard viewer that isn't compact. */
|
|
14
|
+
readonly hasMarkers: boolean;
|
|
15
|
+
/** The open file's structure, as its body reports it with `useFileStructure`. */
|
|
16
|
+
readonly structure: FileStructure | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Room the scrolling content keeps at its end, as a CSS length, so its last line can scroll
|
|
19
|
+
* clear of what floats over the bottom of the file, such as a narrow viewer's Next file card.
|
|
20
|
+
*/
|
|
21
|
+
readonly endInset?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Room the scrolling content keeps at its start, as a CSS length, so its first line starts
|
|
24
|
+
* below what floats over the top of the file, such as an embed's name and menu; jumps land
|
|
25
|
+
* clear of it too. The content still scrolls underneath.
|
|
26
|
+
*/
|
|
27
|
+
readonly startInset?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Provided by FileViewer so renderer bodies lay out without wiring. */
|
|
30
|
+
export declare const FileFrameContext: import("react").Context<FileFrame>;
|
|
31
|
+
export declare function useFileFrame(): FileFrame;
|
|
32
|
+
/**
|
|
33
|
+
* Where the open body reports its structure. Provided by FileViewer around the body it shows;
|
|
34
|
+
* `null` elsewhere, such as around a presentation or a thumbnail's offscreen body.
|
|
35
|
+
*/
|
|
36
|
+
export declare const FileStructureReportContext: import("react").Context<((structure: FileStructure | undefined) => void) | null>;
|
|
37
|
+
/**
|
|
38
|
+
* The start of the device cache keys for the open file's outline previews: its source, entry,
|
|
39
|
+
* version and renderer. Provided by FileViewer; without it, previews are kept in memory only.
|
|
40
|
+
*/
|
|
41
|
+
export declare const FilePreviewCacheKeyContext: import("react").Context<string | undefined>;
|
|
42
|
+
/** Whether an element is narrower than the compact width, kept current as it resizes. */
|
|
43
|
+
export declare function useIsCompact(ref: RefObject<HTMLElement | null>): boolean;
|
|
44
|
+
/** The viewer's selection toolbar and where the selection is, for the layer over the file. */
|
|
45
|
+
export type FileSelectionToolbar = {
|
|
46
|
+
readonly toolbar: ReactNode;
|
|
47
|
+
/** The selection's rect in client coordinates, or `null` when it isn't on screen. */
|
|
48
|
+
readonly getRect: () => DOMRect | null;
|
|
49
|
+
};
|
|
50
|
+
/** Provided by FileViewer while the reader has a selection; `FileContent` places the toolbar. */
|
|
51
|
+
export declare const FileSelectionToolbarContext: import("react").Context<FileSelectionToolbar | null>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createContext, useContext, useLayoutEffect, useState, } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Below this width, measured on the viewer's own box, the viewer is compact: no sidebar or marker
|
|
4
|
+
* rail, Contents opens from the title and pages from a pill, and a collection's list takes turns
|
|
5
|
+
* with the file.
|
|
6
|
+
*/
|
|
7
|
+
export const FILE_COMPACT_WIDTH = 600;
|
|
8
|
+
/** Provided by FileViewer so renderer bodies lay out without wiring. */
|
|
9
|
+
export const FileFrameContext = createContext({
|
|
10
|
+
isCompact: false,
|
|
11
|
+
hasMarkers: false,
|
|
12
|
+
structure: undefined,
|
|
13
|
+
});
|
|
14
|
+
export function useFileFrame() {
|
|
15
|
+
return useContext(FileFrameContext);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Where the open body reports its structure. Provided by FileViewer around the body it shows;
|
|
19
|
+
* `null` elsewhere, such as around a presentation or a thumbnail's offscreen body.
|
|
20
|
+
*/
|
|
21
|
+
export const FileStructureReportContext = createContext(null);
|
|
22
|
+
/**
|
|
23
|
+
* The start of the device cache keys for the open file's outline previews: its source, entry,
|
|
24
|
+
* version and renderer. Provided by FileViewer; without it, previews are kept in memory only.
|
|
25
|
+
*/
|
|
26
|
+
export const FilePreviewCacheKeyContext = createContext(undefined);
|
|
27
|
+
/** Whether an element is narrower than the compact width, kept current as it resizes. */
|
|
28
|
+
export function useIsCompact(ref) {
|
|
29
|
+
const [isCompact, setCompact] = useState(false);
|
|
30
|
+
useLayoutEffect(() => {
|
|
31
|
+
const element = ref.current;
|
|
32
|
+
if (element === null)
|
|
33
|
+
return;
|
|
34
|
+
const measure = () => setCompact(element.getBoundingClientRect().width < FILE_COMPACT_WIDTH);
|
|
35
|
+
measure();
|
|
36
|
+
if (typeof ResizeObserver === 'undefined')
|
|
37
|
+
return;
|
|
38
|
+
const observer = new ResizeObserver(measure);
|
|
39
|
+
observer.observe(element);
|
|
40
|
+
return () => observer.disconnect();
|
|
41
|
+
}, [ref]);
|
|
42
|
+
return isCompact;
|
|
43
|
+
}
|
|
44
|
+
/** Provided by FileViewer while the reader has a selection; `FileContent` places the toolbar. */
|
|
45
|
+
export const FileSelectionToolbarContext = createContext(null);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import type { FileLocation } from '../FileScope/FileScope.types.ts';
|
|
3
|
+
import { FileContentViewport } from './FileContentViewport.tsx';
|
|
4
|
+
import type { FileOutlineItem } from './FileStructure.ts';
|
|
5
|
+
import type { FilePreviewDraw } from './FileOutline.previews.ts';
|
|
6
|
+
export type FileContentProps = {
|
|
7
|
+
/** `FileContent.Main` or `FileContent.Viewport`. */
|
|
8
|
+
readonly children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The layout a renderer builds its body from. The viewer draws the sidebar, the marker rail and
|
|
12
|
+
* the narrow-screen controls around it from what the body reports with `useFileStructure`.
|
|
13
|
+
*/
|
|
14
|
+
declare function FileContentRoot({ children }: FileContentProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace FileContentRoot {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
export type FileContentMainProps = {
|
|
19
|
+
readonly 'aria-label': string;
|
|
20
|
+
readonly children: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Scrolls a file whose content flows, such as a document or lines of text. Overlays positioned
|
|
24
|
+
* inside it scroll with the content. The file's outline, as its body reports it, is the marker
|
|
25
|
+
* rail at its start edge.
|
|
26
|
+
*/
|
|
27
|
+
declare function FileContentMain({ children, ...labels }: FileContentMainProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare namespace FileContentMain {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const FileContent: typeof FileContentRoot & {
|
|
32
|
+
Main: typeof FileContentMain;
|
|
33
|
+
Viewport: typeof FileContentViewport;
|
|
34
|
+
};
|
|
35
|
+
export type { FileOutlineItem } from './FileStructure.ts';
|
|
36
|
+
export type FileOutlineProps<T extends FileOutlineItem = FileOutlineItem> = {
|
|
37
|
+
readonly items: readonly T[];
|
|
38
|
+
/** The item for the current position. */
|
|
39
|
+
readonly currentId?: string;
|
|
40
|
+
readonly onSelect: (location: FileLocation) => void;
|
|
41
|
+
/**
|
|
42
|
+
* The rows, when the outline isn't a list of labels: each item as an `Item`, such as a page's
|
|
43
|
+
* `Preview` above its `Label`. Rows with a `Preview` show it at the row's width. Only rows
|
|
44
|
+
* near the visible part of the outline are rendered. Without it, each item is a row of its
|
|
45
|
+
* label, indented by its `level`.
|
|
46
|
+
*/
|
|
47
|
+
readonly children?: (item: T) => ReactElement;
|
|
48
|
+
/**
|
|
49
|
+
* Draws an item's preview as an image, for rows with a `Preview`. The outline asks for the rows
|
|
50
|
+
* in view, then a few ahead, once scrolling pauses, at a few set widths, and keeps the images
|
|
51
|
+
* for the file's version, on this device too. Each drawing covers its `Preview`'s content, which
|
|
52
|
+
* gives the row its shape until then. Resolve only once the item is fully drawn, such as after
|
|
53
|
+
* its fonts load, and pass `signal` on: it aborts when the row is no longer wanted.
|
|
54
|
+
*/
|
|
55
|
+
readonly drawPreview?: FilePreviewDraw<T>;
|
|
56
|
+
/** Rows side by side, for page previews in a grid. Defaults to one. */
|
|
57
|
+
readonly columns?: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Internal: a file's outline as a list, such as Contents on a narrow viewer; or, with rows of its
|
|
61
|
+
* own, previews of its pages, as in the viewer's Pages.
|
|
62
|
+
*/
|
|
63
|
+
export declare function FileOutline<T extends FileOutlineItem>({ items, currentId, onSelect, children, drawPreview, columns, }: FileOutlineProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export declare namespace FileOutline {
|
|
65
|
+
var displayName: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { useLayoutEffect, useRef } from 'react';
|
|
4
|
+
import { ListBox, ListBoxItem } from 'react-aria-components/ListBox';
|
|
5
|
+
import { ScrollArea } from "../ScrollArea/ScrollArea.js";
|
|
6
|
+
import { ScrollMarkerSourceContext } from "../ScrollArea/useScrollAreaMarkers.js";
|
|
7
|
+
import { useFileFrame } from "./FileContent.context.js";
|
|
8
|
+
import { useOutlineMarkerSource } from "./FileContent.markers.js";
|
|
9
|
+
import { FileContentViewport } from "./FileContentViewport.js";
|
|
10
|
+
import { FileOutlineRows, useKeepCurrentInView } from "./FileOutlineRows.js";
|
|
11
|
+
import { FileSelectionToolbarLayer } from "./FileSelectionToolbarLayer.js";
|
|
12
|
+
import { styles } from "./FileContent.stylex.js";
|
|
13
|
+
/**
|
|
14
|
+
* The layout a renderer builds its body from. The viewer draws the sidebar, the marker rail and
|
|
15
|
+
* the narrow-screen controls around it from what the body reports with `useFileStructure`.
|
|
16
|
+
*/
|
|
17
|
+
function FileContentRoot({ children }) {
|
|
18
|
+
return _jsx("div", { ...stylex.props(styles.root), children: children });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Scrolls a file whose content flows, such as a document or lines of text. Overlays positioned
|
|
22
|
+
* inside it scroll with the content. The file's outline, as its body reports it, is the marker
|
|
23
|
+
* rail at its start edge.
|
|
24
|
+
*/
|
|
25
|
+
function FileContentMain({ children, ...labels }) {
|
|
26
|
+
const frame = useRef(null);
|
|
27
|
+
const viewport = useRef(null);
|
|
28
|
+
const markers = useOutlineMarkerSource();
|
|
29
|
+
const { endInset, startInset } = useFileFrame();
|
|
30
|
+
// Jumps to a passage near either end land clear of what floats over the file, too.
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
viewport.current?.style.setProperty('scroll-padding-block-end', endInset ?? '');
|
|
33
|
+
viewport.current?.style.setProperty('scroll-padding-block-start', startInset ?? '');
|
|
34
|
+
}, [endInset, startInset]);
|
|
35
|
+
return (_jsxs("div", { ref: frame, ...stylex.props(styles.main), children: [_jsx(ScrollMarkerSourceContext, { value: markers, children: _jsx(ScrollArea, { ref: viewport, fill: true, isFocusable: true, edgeEffect: "none", ...labels, children: _jsx("div", { ...stylex.props(styles.mainContent, endInset !== undefined && styles.endInset(endInset), startInset !== undefined && styles.startInset(startInset)), children: children }) }) }), _jsx(FileSelectionToolbarLayer, { frame: frame })] }));
|
|
36
|
+
}
|
|
37
|
+
FileContentMain.displayName = 'FileContent.Main';
|
|
38
|
+
FileContentRoot.displayName = 'FileContent';
|
|
39
|
+
export const FileContent = Object.assign(FileContentRoot, {
|
|
40
|
+
Main: FileContentMain,
|
|
41
|
+
Viewport: FileContentViewport,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Internal: a file's outline as a list, such as Contents on a narrow viewer; or, with rows of its
|
|
45
|
+
* own, previews of its pages, as in the viewer's Pages.
|
|
46
|
+
*/
|
|
47
|
+
export function FileOutline({ items, currentId, onSelect, children, drawPreview, columns, }) {
|
|
48
|
+
const pick = (key) => {
|
|
49
|
+
const item = items.find((candidate) => candidate.id === key);
|
|
50
|
+
if (item !== undefined)
|
|
51
|
+
onSelect(item.location);
|
|
52
|
+
};
|
|
53
|
+
if (children !== undefined)
|
|
54
|
+
return (_jsx(FileOutlineRows, { items: items, currentId: currentId, onPick: pick, ...(drawPreview === undefined ? {} : { drawPreview }), ...(columns === undefined ? {} : { columns }), children: children }));
|
|
55
|
+
return _jsx(FileOutlineList, { items: items, currentId: currentId, onPick: pick });
|
|
56
|
+
}
|
|
57
|
+
function FileOutlineList({ items, currentId, onPick, }) {
|
|
58
|
+
const topLevel = Math.min(...items.map((item) => item.level ?? 1));
|
|
59
|
+
const list = useRef(null);
|
|
60
|
+
useKeepCurrentInView(list, items, currentId);
|
|
61
|
+
return (_jsx(ListBox, { ref: list, "aria-label": "Outline", items: items, selectionMode: "single", selectedKeys: currentId === undefined ? [] : [currentId],
|
|
62
|
+
// Picking an item, by click, tap, Enter or Space, selects it; the reader goes there and the
|
|
63
|
+
// renderer reports the new current item. Picking the current one again is a no-op.
|
|
64
|
+
disallowEmptySelection: true, onSelectionChange: (keys) => {
|
|
65
|
+
if (keys === 'all')
|
|
66
|
+
return;
|
|
67
|
+
const [key] = keys;
|
|
68
|
+
if (key !== undefined)
|
|
69
|
+
onPick(key);
|
|
70
|
+
}, ...stylex.props(styles.outline), children: (item) => (_jsx(ListBoxItem, { id: item.id, textValue: item.label, ...stylex.props(styles.outlineItem, styles.outlineIndent(Math.min((item.level ?? 1) - topLevel, 3))), children: ({ isSelected }) => (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": true, ...stylex.props(styles.outlineMark, isSelected && styles.outlineMarkCurrent) }), _jsx("span", { ...stylex.props(styles.outlineLabel), children: item.label }), pageOf(item.location) === undefined ? null : (_jsx("span", { ...stylex.props(styles.outlinePage), children: pageOf(item.location) }))] })) })) }));
|
|
71
|
+
}
|
|
72
|
+
FileOutline.displayName = 'FileOutline';
|
|
73
|
+
/** The page an item is on, shown at its row's end, as in a book's contents. */
|
|
74
|
+
function pageOf(location) {
|
|
75
|
+
if (location.kind === 'page')
|
|
76
|
+
return location.page;
|
|
77
|
+
if (location.kind === 'text' && location.within?.kind === 'page')
|
|
78
|
+
return location.within.page;
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ScrollMarkerSource } from '../ScrollArea/useScrollAreaMarkers.ts';
|
|
2
|
+
/**
|
|
3
|
+
* The open file's outline as marker data for the scroll area around its content, so the rail
|
|
4
|
+
* places headings and bookmarks the content hasn't mounted. `null` without an outline that can
|
|
5
|
+
* be placed, or where the viewer shows no rail, such as on a narrow viewer.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useOutlineMarkerSource(): ScrollMarkerSource | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { useFileFrame } from "./FileContent.context.js";
|
|
3
|
+
/**
|
|
4
|
+
* The open file's outline as marker data for the scroll area around its content, so the rail
|
|
5
|
+
* places headings and bookmarks the content hasn't mounted. `null` without an outline that can
|
|
6
|
+
* be placed, or where the viewer shows no rail, such as on a narrow viewer.
|
|
7
|
+
*/
|
|
8
|
+
export function useOutlineMarkerSource() {
|
|
9
|
+
const { hasMarkers, structure } = useFileFrame();
|
|
10
|
+
const outline = structure?.outline;
|
|
11
|
+
const locate = structure?.locateOutline;
|
|
12
|
+
return useMemo(() => {
|
|
13
|
+
if (!hasMarkers || outline === undefined || outline.length === 0 || locate === undefined)
|
|
14
|
+
return null;
|
|
15
|
+
const byId = new Map(outline.map((item) => [item.id, item]));
|
|
16
|
+
return {
|
|
17
|
+
items: outline.map(({ id, label, level }) => ({
|
|
18
|
+
id,
|
|
19
|
+
label,
|
|
20
|
+
...(level === undefined ? {} : { level }),
|
|
21
|
+
})),
|
|
22
|
+
locate: (id, viewport) => {
|
|
23
|
+
const item = byId.get(id);
|
|
24
|
+
return item === undefined ? null : locate(item, viewport);
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}, [hasMarkers, outline, locate]);
|
|
28
|
+
}
|