@effectiveailabs/design-system 0.0.0-placeholder → 1.0.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 +7 -0
- package/README.md +120 -3
- 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 +47 -0
- package/dist/components/Icon/Icon.js +101 -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/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/package.json +139 -7
|
@@ -0,0 +1,46 @@
|
|
|
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 inlineSize: stylex.StyleXClassNameFor<"inlineSize", "100%">;
|
|
7
|
+
readonly blockSize: stylex.StyleXClassNameFor<"blockSize", "100%">;
|
|
8
|
+
readonly minInlineSize: stylex.StyleXClassNameFor<"minInlineSize", 0>;
|
|
9
|
+
readonly minBlockSize: stylex.StyleXClassNameFor<"minBlockSize", 0>;
|
|
10
|
+
}>;
|
|
11
|
+
readonly find: Readonly<{
|
|
12
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
13
|
+
readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
|
|
14
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", string>;
|
|
15
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
16
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
|
|
17
|
+
readonly paddingBlockEnd: stylex.StyleXClassNameFor<"paddingBlockEnd", string>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly expandButton: Readonly<{
|
|
20
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
21
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
22
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
23
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
24
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 4>;
|
|
25
|
+
readonly margin: stylex.StyleXClassNameFor<"margin", -4>;
|
|
26
|
+
readonly borderWidth: stylex.StyleXClassNameFor<"borderWidth", 0>;
|
|
27
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
28
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
29
|
+
readonly color: stylex.StyleXClassNameFor<"color", "inherit">;
|
|
30
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
31
|
+
readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
|
|
32
|
+
}>;
|
|
33
|
+
readonly dropActive: Readonly<{
|
|
34
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 2>;
|
|
35
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "dashed">;
|
|
36
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", string>;
|
|
37
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", -4>;
|
|
38
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
|
|
39
|
+
}>;
|
|
40
|
+
readonly delayedAppear: Readonly<{
|
|
41
|
+
readonly animationName: stylex.StyleXClassNameFor<"animationName", string>;
|
|
42
|
+
readonly animationDelay: stylex.StyleXClassNameFor<"animationDelay", "200ms">;
|
|
43
|
+
readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", "150ms" | "1ms">;
|
|
44
|
+
readonly animationFillMode: stylex.StyleXClassNameFor<"animationFillMode", "both">;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as stylex from '@stylexjs/stylex';
|
|
2
|
+
import { tokenVars } from "../../theming/tokens.stylex.js";
|
|
3
|
+
const appear = stylex.keyframes({
|
|
4
|
+
from: { opacity: 0 },
|
|
5
|
+
to: { opacity: 1 },
|
|
6
|
+
});
|
|
7
|
+
export const styles = stylex.create({
|
|
8
|
+
root: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
inlineSize: '100%',
|
|
12
|
+
blockSize: '100%',
|
|
13
|
+
minInlineSize: 0,
|
|
14
|
+
minBlockSize: 0,
|
|
15
|
+
},
|
|
16
|
+
// The Find field and what it found, above the tree.
|
|
17
|
+
find: {
|
|
18
|
+
display: 'flex',
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
gap: tokenVars.spaceHalf,
|
|
21
|
+
flexShrink: 0,
|
|
22
|
+
paddingInline: tokenVars.spaceSmall,
|
|
23
|
+
paddingBlockEnd: tokenVars.spaceSmall,
|
|
24
|
+
},
|
|
25
|
+
// A bare folder icon that expands and collapses its row.
|
|
26
|
+
expandButton: {
|
|
27
|
+
display: 'inline-flex',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
flexShrink: 0,
|
|
31
|
+
// A larger target than the icon, without moving it.
|
|
32
|
+
padding: 4,
|
|
33
|
+
margin: -4,
|
|
34
|
+
borderWidth: 0,
|
|
35
|
+
borderRadius: tokenVars.radiusItem,
|
|
36
|
+
backgroundColor: {
|
|
37
|
+
default: 'transparent',
|
|
38
|
+
':hover': tokenVars.hoverFill,
|
|
39
|
+
},
|
|
40
|
+
color: 'inherit',
|
|
41
|
+
cursor: 'pointer',
|
|
42
|
+
outline: 'none',
|
|
43
|
+
},
|
|
44
|
+
// Entries dragged over the tree's empty space land at the root.
|
|
45
|
+
dropActive: {
|
|
46
|
+
outlineWidth: 2,
|
|
47
|
+
outlineStyle: 'dashed',
|
|
48
|
+
outlineColor: tokenVars.focus,
|
|
49
|
+
outlineOffset: -4,
|
|
50
|
+
borderRadius: tokenVars.radiusControl,
|
|
51
|
+
},
|
|
52
|
+
// The Loading row's text stays invisible for the first 200ms, so a fast load swaps in real rows
|
|
53
|
+
// without a flash.
|
|
54
|
+
delayedAppear: {
|
|
55
|
+
animationName: appear,
|
|
56
|
+
animationDelay: '200ms',
|
|
57
|
+
animationDuration: { default: '150ms', '@media (prefers-reduced-motion: reduce)': '1ms' },
|
|
58
|
+
animationFillMode: 'both',
|
|
59
|
+
},
|
|
60
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type FileRejection = {
|
|
2
|
+
readonly file: File;
|
|
3
|
+
readonly reason: 'unsupported-type' | 'too-many-files';
|
|
4
|
+
};
|
|
5
|
+
export type FileSelectionProps = {
|
|
6
|
+
/** MIME types, wildcards such as image/*, or extensions such as .pdf. */
|
|
7
|
+
readonly acceptedFileTypes?: readonly string[];
|
|
8
|
+
readonly allowsMultiple?: boolean;
|
|
9
|
+
readonly isDisabled?: boolean;
|
|
10
|
+
readonly onSelect?: (files: File[]) => void;
|
|
11
|
+
readonly onReject?: (rejections: FileRejection[]) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function selectFiles(files: readonly File[], props: FileSelectionProps): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function selectFiles(files, props) {
|
|
2
|
+
if (props.isDisabled || files.length === 0)
|
|
3
|
+
return;
|
|
4
|
+
if (!props.allowsMultiple && files.length > 1) {
|
|
5
|
+
props.onReject?.(files.map((file) => ({ file, reason: 'too-many-files' })));
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const accepted = [];
|
|
9
|
+
const rejected = [];
|
|
10
|
+
for (const file of files) {
|
|
11
|
+
const matches = !props.acceptedFileTypes?.length ||
|
|
12
|
+
props.acceptedFileTypes.some((type) => {
|
|
13
|
+
const pattern = type.trim().toLowerCase();
|
|
14
|
+
if (pattern === '*/*')
|
|
15
|
+
return true;
|
|
16
|
+
if (pattern.startsWith('.'))
|
|
17
|
+
return file.name.toLowerCase().endsWith(pattern);
|
|
18
|
+
if (pattern.endsWith('/*'))
|
|
19
|
+
return file.type.toLowerCase().startsWith(pattern.slice(0, -1));
|
|
20
|
+
return file.type.toLowerCase() === pattern;
|
|
21
|
+
});
|
|
22
|
+
if (matches)
|
|
23
|
+
accepted.push(file);
|
|
24
|
+
else
|
|
25
|
+
rejected.push({ file, reason: 'unsupported-type' });
|
|
26
|
+
}
|
|
27
|
+
if (rejected.length)
|
|
28
|
+
props.onReject?.(rejected);
|
|
29
|
+
if (accepted.length)
|
|
30
|
+
props.onSelect?.(accepted);
|
|
31
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode, type ReactElement } from 'react';
|
|
2
|
+
import { type FileSelectionProps } from './FileSelection.ts';
|
|
3
|
+
export type FileTriggerProps = FileSelectionProps & {
|
|
4
|
+
/** One Button or IconButton. */
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const FileTrigger: ((props: FileTriggerProps) => ReactElement) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cloneElement, isValidElement, useContext } from 'react';
|
|
3
|
+
import { FileTrigger as AriaFileTrigger } from 'react-aria-components/FileTrigger';
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import { IconButton } from "../IconButton/IconButton.js";
|
|
6
|
+
import { createTriggerComponent } from "../Trigger/Trigger.js";
|
|
7
|
+
import { omitUndefinedProps } from "../../utils/props.js";
|
|
8
|
+
import { FileSelectionContext } from "./FileSelection.context.js";
|
|
9
|
+
import { selectFiles } from "./FileSelection.js";
|
|
10
|
+
export const FileTrigger = Object.assign(createTriggerComponent(function FileTrigger({ children, ...props }) {
|
|
11
|
+
const parent = useContext(FileSelectionContext);
|
|
12
|
+
const selection = parent ?? props;
|
|
13
|
+
if (!isValidElement(children) ||
|
|
14
|
+
(children.type !== Button && children.type !== IconButton)) {
|
|
15
|
+
throw new Error('FileTrigger requires one Button or IconButton.');
|
|
16
|
+
}
|
|
17
|
+
const isDisabled = selection.isDisabled || props.isDisabled || children.props.isDisabled || false;
|
|
18
|
+
return (_jsx(AriaFileTrigger, { ...omitUndefinedProps({
|
|
19
|
+
acceptedFileTypes: selection.acceptedFileTypes,
|
|
20
|
+
allowsMultiple: selection.allowsMultiple,
|
|
21
|
+
}), onSelect: (files) => selectFiles(Array.from(files ?? []), { ...selection, isDisabled }), children: cloneElement(children, { isDisabled }) }));
|
|
22
|
+
}), { displayName: 'FileTrigger' });
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import { type IconName } from '../Icon/Icon.tsx';
|
|
3
|
+
import { type IconButtonProps } from '../IconButton/IconButton.tsx';
|
|
4
|
+
import type { FileEntry } from '../FileScope/FileScope.types.ts';
|
|
5
|
+
import { type ChromeControls } from './FileViewer.controls.tsx';
|
|
6
|
+
/**
|
|
7
|
+
* The sidebar button, or the way back to a collection's list, at the header's start; the file's
|
|
8
|
+
* name and the section being read; capability controls, file actions and the app's trailing
|
|
9
|
+
* controls on the right. The file's size and when it was edited close More actions, so the header
|
|
10
|
+
* keeps to one line.
|
|
11
|
+
*/
|
|
12
|
+
export declare function FileChrome({ entry, controls, leading, trailing, section, onOpenContents, contentsTriggerRef, onOpenView, }: {
|
|
13
|
+
readonly entry: FileEntry;
|
|
14
|
+
readonly controls: ChromeControls;
|
|
15
|
+
readonly leading: ReactNode;
|
|
16
|
+
readonly trailing: ReactNode;
|
|
17
|
+
/** The outline item being read, after the name. */
|
|
18
|
+
readonly section: string | undefined;
|
|
19
|
+
/** On a narrow viewer, opens Contents from the title; `undefined` for a file without one. */
|
|
20
|
+
readonly onOpenContents: (() => void) | undefined;
|
|
21
|
+
/** The title button that opens Contents, where Contents opens as a popover. */
|
|
22
|
+
readonly contentsTriggerRef?: RefObject<HTMLButtonElement | null>;
|
|
23
|
+
/** On a narrow viewer, opens the View sheet; `undefined` on a wide one, whose toolbar has it. */
|
|
24
|
+
readonly onOpenView: (() => void) | undefined;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* The frame's own controls, at the header's start whatever is open: on a narrow viewer in a
|
|
28
|
+
* collection, the way back to its list; otherwise the one sidebar button, above the sidebar it
|
|
29
|
+
* opens and pressed while it shows, then Back and Forward through the files opened once there is
|
|
30
|
+
* somewhere to go.
|
|
31
|
+
*/
|
|
32
|
+
export declare function FrameControls(): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
/**
|
|
34
|
+
* The header while no file is open, or while it loads or can't open: only the app's controls and
|
|
35
|
+
* the overlay's Close, so a Sheet or Modal always has a way out and the app a way to another file.
|
|
36
|
+
* Nothing when there is none of them.
|
|
37
|
+
*/
|
|
38
|
+
export declare function StateChrome({ leading, trailing, }: {
|
|
39
|
+
readonly leading: ReactNode;
|
|
40
|
+
readonly trailing: ReactNode;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
+
/**
|
|
43
|
+
* An icon button outside the toolbar, named in a tooltip as the toolbar names its own. The app's
|
|
44
|
+
* leading and trailing controls name theirs.
|
|
45
|
+
*/
|
|
46
|
+
/** An icon toggle in the header, named by a tooltip, and selected while what it shows does. */
|
|
47
|
+
export declare function LabeledToggle({ icon, label, isSelected, onChange, }: {
|
|
48
|
+
readonly icon: IconName;
|
|
49
|
+
readonly label: string;
|
|
50
|
+
readonly isSelected: boolean;
|
|
51
|
+
readonly onChange: (isSelected: boolean) => void;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function LabeledIconButton(props: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export type SearchControlsProps = {
|
|
55
|
+
readonly query: string;
|
|
56
|
+
readonly matchCount: number | undefined;
|
|
57
|
+
readonly activeMatch: number;
|
|
58
|
+
readonly onQueryChange: (query: string) => void;
|
|
59
|
+
readonly onStep: (direction: -1 | 1) => void;
|
|
60
|
+
/** Closes search; without it, as under a header whose Search toggle closes it, there's no Done. */
|
|
61
|
+
readonly onDone?: (() => void) | undefined;
|
|
62
|
+
/** Before the field, such as the disclosure that opens Replace while editing. */
|
|
63
|
+
readonly leading?: ReactNode;
|
|
64
|
+
};
|
|
65
|
+
/** The search bar's parts, laid out in a row by the chrome around them. */
|
|
66
|
+
export declare function SearchControls({ query, matchCount, activeMatch, onQueryChange, onStep, onDone, leading, }: SearchControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { Button as AriaButton } from 'react-aria-components/Button';
|
|
5
|
+
import { Icon } from "../Icon/Icon.js";
|
|
6
|
+
import { Button } from "../Button/Button.js";
|
|
7
|
+
import { ButtonGroup } from "../ButtonGroup/ButtonGroup.js";
|
|
8
|
+
import { DismissContext } from "../DismissButton/Dismiss.context.js";
|
|
9
|
+
import { IconButton } from "../IconButton/IconButton.js";
|
|
10
|
+
import { Radio, RadioGroup } from "../RadioGroup/RadioGroup.js";
|
|
11
|
+
import { SearchField } from "../SearchField/SearchField.js";
|
|
12
|
+
import { Spacer } from "../Spacer/Spacer.js";
|
|
13
|
+
import { Separator } from "../Separator/Separator.js";
|
|
14
|
+
import { Text } from "../Text/Text.js";
|
|
15
|
+
import { ToggleButton } from "../ToggleButton/ToggleButton.js";
|
|
16
|
+
import { useFileScope } from "../FileScope/FileScope.js";
|
|
17
|
+
import { Toolbar, ToolbarItem } from "../Toolbar/Toolbar.js";
|
|
18
|
+
import { ToolbarNote } from "../Toolbar/ToolbarNote.js";
|
|
19
|
+
import { NAME_TOOLTIP_DELAY, Tooltip } from "../Tooltip/Tooltip.js";
|
|
20
|
+
import { FileIcon } from "../FileIcon/FileIcon.js";
|
|
21
|
+
import { describeEntry } from "../FileScope/FileScope.utils.js";
|
|
22
|
+
import { presentControl, viewActions } from "./FileViewer.controls.js";
|
|
23
|
+
import { ViewerHeader, pageUnit, useViewerFrame } from "./FileViewer.frame.js";
|
|
24
|
+
import { compactViewControl, hasViewControl, viewControl } from "./FileViewer.view.js";
|
|
25
|
+
import { styles } from "./FileViewer.stylex.js";
|
|
26
|
+
/**
|
|
27
|
+
* The sidebar button, or the way back to a collection's list, at the header's start; the file's
|
|
28
|
+
* name and the section being read; capability controls, file actions and the app's trailing
|
|
29
|
+
* controls on the right. The file's size and when it was edited close More actions, so the header
|
|
30
|
+
* keeps to one line.
|
|
31
|
+
*/
|
|
32
|
+
export function FileChrome({ entry, controls, leading, trailing, section, onOpenContents, contentsTriggerRef, onOpenView, }) {
|
|
33
|
+
const capabilities = controls.renderer?.capabilities ?? {};
|
|
34
|
+
const facts = describeEntry(entry);
|
|
35
|
+
const dismiss = useContext(DismissContext);
|
|
36
|
+
const { viewerActions } = useFileScope();
|
|
37
|
+
const frame = useViewerFrame();
|
|
38
|
+
const icon = (_jsx("span", { ...stylex.props(styles.icon), children: _jsx(FileIcon, { filename: entry.name, mimeType: entry.mediaType ?? null, webUrl: entry.webUrl ?? null, size: "large" }) }));
|
|
39
|
+
return (_jsx(ViewerHeader, { children: _jsxs("div", { ...stylex.props(styles.chrome, frame?.isHeaderHosted === true && styles.chromeHosted), children: [_jsx(FrameControls, {}), leading == null ? null : _jsx("div", { ...stylex.props(styles.appControls), children: leading }), onOpenContents === undefined ? (_jsxs("div", { ...stylex.props(styles.identity), children: [icon, _jsx("span", { ...stylex.props(styles.identityName), children: _jsx(Text, { variant: "subheadline", truncation: "ellipsis", children: entry.name }) }), section === undefined ? null : (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": true, ...stylex.props(styles.identitySeparator), children: "\u203A" }), _jsx("span", { ...stylex.props(styles.identitySection), children: _jsx(Text, { variant: "subheadline", tone: "secondary", truncation: "ellipsis", children: section }) })] }))] })) : (
|
|
40
|
+
// On a narrow viewer the title opens Contents, the section being read below the name.
|
|
41
|
+
_jsxs(AriaButton, { "aria-haspopup": "dialog", "aria-label": section === undefined
|
|
42
|
+
? `${entry.name}, contents`
|
|
43
|
+
: `${entry.name}, ${section}, contents`, ref: contentsTriggerRef, onPress: onOpenContents, ...stylex.props(styles.identity, styles.titleButton), children: [icon, _jsxs("span", { ...stylex.props(styles.titleText), children: [_jsxs("span", { ...stylex.props(styles.titleLine), children: [_jsx(Text, { variant: "subheadline", truncation: "ellipsis", children: entry.name }), _jsx(Icon, { name: "ChevronDown", size: "small" })] }), section === undefined ? null : (_jsx(Text, { variant: "footnote", tone: "secondary", truncation: "ellipsis", children: section }))] })] })), _jsx("div", { ...stylex.props(styles.toolbar, capabilities.search === true && styles.toolbarWithSearch), children: _jsxs(Toolbar, { "aria-label": "File", size: "small", overflowButtonVariant: "plain", children: [_jsx(Spacer, {}), onOpenView === undefined && hasViewControl(controls) ? (_jsx(ToolbarItem, { priority: "primary", children: viewControl(controls) })) : null, capabilities.search === true ? (
|
|
44
|
+
// A toggle: selected while the search bar shows below. It stays in the header,
|
|
45
|
+
// where it shows that search is open, rather than in More actions.
|
|
46
|
+
_jsx(ToolbarItem, { priority: "primary", children: _jsx(ToggleButton, { variant: "plain", leadingIcon: "Search", "aria-label": "Search in file", isSelected: controls.isSearching, onChange: controls.onSearch }) })) : null, controls.hasAnnotations ? (_jsx(IconButton, { icon: controls.areAnnotationsShown ? 'Highlighter' : 'HighlighterOff', label: "Annotations", "aria-pressed": controls.areAnnotationsShown, variant: "plain", onPress: () => controls.onAnnotationsShownChange(!controls.areAnnotationsShown) })) : null, presentControl(controls), controls.onEdit === undefined ? null : (_jsx(IconButton, { icon: "Pencil", label: "Edit", variant: "plain", onPress: controls.onEdit })), controls.onDownload === undefined ? null : (_jsx(IconButton, { icon: "Download", label: "Download", variant: "plain", onPress: controls.onDownload })), controls.onCopyLink === undefined ? null : (_jsx(IconButton, { icon: "Link", label: "Copy link", variant: "plain", onPress: controls.onCopyLink })), viewerActions.map((action, index) => action.isPrimary === true ? (_jsx(IconButton, { icon: action.icon, label: action.label, variant: "plain", onPress: () => action.onAction(controls.file) }, `primary-${index}`)) : null), onOpenView === undefined || !hasViewControl(controls) ? null : (_jsx(ToolbarItem, { priority: "primary", children: compactViewControl(controls.zoom, onOpenView) })), overflowActions(controls, viewerActions), facts === '' ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarNote, { children: facts })] }))] }) }), trailing == null ? null : (_jsx("div", { ...stylex.props(styles.appControls, styles.trailing), children: trailing })), dismiss === null ? null : (_jsx(LabeledIconButton, { icon: "X", label: "Close", variant: "plain", size: "small", onPress: dismiss }))] }) }));
|
|
47
|
+
}
|
|
48
|
+
/** What the sidebar holds, as its button names it: "files", "pages", or "files and pages". */
|
|
49
|
+
function sidebarContents(frame) {
|
|
50
|
+
const sections = [
|
|
51
|
+
...(frame.collection === null ? [] : ['files']),
|
|
52
|
+
...(frame.pagesKind === undefined ? [] : [pageUnit(frame.pagesKind).label.toLowerCase()]),
|
|
53
|
+
];
|
|
54
|
+
return sections.join(' and ');
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The frame's own controls, at the header's start whatever is open: on a narrow viewer in a
|
|
58
|
+
* collection, the way back to its list; otherwise the one sidebar button, above the sidebar it
|
|
59
|
+
* opens and pressed while it shows, then Back and Forward through the files opened once there is
|
|
60
|
+
* somewhere to go.
|
|
61
|
+
*/
|
|
62
|
+
export function FrameControls() {
|
|
63
|
+
const frame = useViewerFrame();
|
|
64
|
+
if (frame === null)
|
|
65
|
+
return null;
|
|
66
|
+
const collection = frame.collection;
|
|
67
|
+
const history = collection?.history;
|
|
68
|
+
return (_jsxs(_Fragment, { children: [collection !== null && frame.isCompact ? (_jsx(LabeledIconButton
|
|
69
|
+
// The same folder tree as the wide viewer's sidebar button, which holds these files.
|
|
70
|
+
, {
|
|
71
|
+
// The same folder tree as the wide viewer's sidebar button, which holds these files.
|
|
72
|
+
icon: "FolderTree", label: "Back to files", variant: "plain", size: "small", onPress: collection.onShowFiles })) : null, frame.hasSidebar && !frame.isSidebarEmpty ? (
|
|
73
|
+
// Selected while the sidebar shows. Not a panel icon, so it isn't taken for the app's own
|
|
74
|
+
// navigation beside it.
|
|
75
|
+
_jsx(LabeledToggle, { icon: "FolderTree", label: `${frame.isSidebarOpen ? 'Hide' : 'Show'} ${sidebarContents(frame)}`, isSelected: frame.isSidebarOpen, onChange: frame.onSidebarOpenChange })) : null, history === undefined ||
|
|
76
|
+
frame.isCompact ||
|
|
77
|
+
!(history.canGoBack || history.canGoForward) ? null : (_jsxs(ButtonGroup, { "aria-label": "History", variant: "plain", size: "small", children: [_jsx(LabeledIconButton, { icon: "ArrowLeft", label: "Back", isDisabled: !history.canGoBack, onPress: history.back }), _jsx(LabeledIconButton, { icon: "ArrowRight", label: "Forward", isDisabled: !history.canGoForward, onPress: history.forward })] }))] }));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The header while no file is open, or while it loads or can't open: only the app's controls and
|
|
81
|
+
* the overlay's Close, so a Sheet or Modal always has a way out and the app a way to another file.
|
|
82
|
+
* Nothing when there is none of them.
|
|
83
|
+
*/
|
|
84
|
+
export function StateChrome({ leading, trailing, }) {
|
|
85
|
+
const dismiss = useContext(DismissContext);
|
|
86
|
+
const frame = useViewerFrame();
|
|
87
|
+
const hasFrameControls = frame !== null && (frame.hasSidebar || frame.collection !== null);
|
|
88
|
+
if (leading == null && trailing == null && dismiss === null && !hasFrameControls)
|
|
89
|
+
return null;
|
|
90
|
+
return (_jsx(ViewerHeader, { children: _jsxs("div", { ...stylex.props(styles.chrome, frame?.isHeaderHosted === true && styles.chromeHosted), children: [_jsx(FrameControls, {}), leading == null ? null : _jsx("div", { ...stylex.props(styles.appControls), children: leading }), _jsx(Spacer, {}), trailing == null ? null : _jsx("div", { ...stylex.props(styles.appControls), children: trailing }), dismiss === null ? null : (_jsx(LabeledIconButton, { icon: "X", label: "Close", variant: "plain", size: "small", onPress: dismiss }))] }) }));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* An icon button outside the toolbar, named in a tooltip as the toolbar names its own. The app's
|
|
94
|
+
* leading and trailing controls name theirs.
|
|
95
|
+
*/
|
|
96
|
+
/** An icon toggle in the header, named by a tooltip, and selected while what it shows does. */
|
|
97
|
+
export function LabeledToggle({ icon, label, isSelected, onChange, }) {
|
|
98
|
+
return (_jsxs(Tooltip.Trigger, { delay: NAME_TOOLTIP_DELAY, children: [_jsx(ToggleButton, { variant: "plain", size: "small", leadingIcon: icon, "aria-label": label, isSelected: isSelected, onChange: onChange }), _jsx(Tooltip, { children: label })] }));
|
|
99
|
+
}
|
|
100
|
+
export function LabeledIconButton(props) {
|
|
101
|
+
return (_jsxs(Tooltip.Trigger, { delay: NAME_TOOLTIP_DELAY, children: [_jsx(IconButton, { ...props }), _jsx(Tooltip, { children: props.label })] }));
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* More actions, which Toolbar flattens into its overflow menu, in unlabeled sections: Go to, the
|
|
105
|
+
* view controls (Open with, rotate, page layout), the app's `viewerActions` that aren't primary,
|
|
106
|
+
* then the file actions as the tree's row menu groups them: Rename, then Share, then Delete. Each
|
|
107
|
+
* section opens with a separator; Toolbar drops the leading one and any it would double.
|
|
108
|
+
*/
|
|
109
|
+
function overflowActions(controls, viewerActions) {
|
|
110
|
+
const appActions = viewerActions.filter((action) => action.isPrimary !== true);
|
|
111
|
+
return (_jsxs(_Fragment, { children: [controls.onGoTo === undefined ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: "ArrowDownToLine", onPress: controls.onGoTo, children: controls.goToUnit === 'page' ? 'Go to page…' : 'Go to line…' }) })] })), controls.openWith.length < 2 ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarItem, { priority: "overflow", children: _jsx(RadioGroup, { "aria-label": "Open with", value: controls.renderer?.id ?? '', onChange: (id) => {
|
|
112
|
+
const renderer = controls.openWith.find((candidate) => candidate.id === id);
|
|
113
|
+
if (renderer !== undefined)
|
|
114
|
+
controls.onOpenWith(renderer);
|
|
115
|
+
}, children: controls.openWith.map((renderer) => (_jsx(Radio, { value: renderer.id, children: renderer.label }, renderer.id))) }) })] })), viewActions(controls), controls.exports.length === 0 ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), controls.exports.map((item) => (_jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: item.icon, onPress: item.onExport, children: item.label }) }, `export-${item.label}`)))] })), appActions.length === 0 ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), appActions.map((action, index) => (_jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: action.icon, onPress: () => action.onAction(controls.file), children: action.label }) }, `app-${index}`)))] })), controls.onRename === undefined ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: "Pencil", onPress: controls.onRename, children: "Rename" }) })] })), controls.onShare === undefined ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: "Share2", onPress: controls.onShare, children: "Share\u2026" }) })] })), controls.onDelete === undefined ? null : (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx(ToolbarItem, { priority: "overflow", children: _jsx(Button, { leadingIcon: "Trash2", tone: "danger", onPress: controls.onDelete, children: "Delete" }) })] }))] }));
|
|
116
|
+
}
|
|
117
|
+
/** The search bar's parts, laid out in a row by the chrome around them. */
|
|
118
|
+
export function SearchControls({ query, matchCount, activeMatch, onQueryChange, onStep, onDone, leading, }) {
|
|
119
|
+
const hasQuery = query.trim() !== '';
|
|
120
|
+
const count = !hasQuery || matchCount === undefined
|
|
121
|
+
? ''
|
|
122
|
+
: matchCount === 0
|
|
123
|
+
? 'No matches'
|
|
124
|
+
: `${activeMatch + 1} of ${matchCount}`;
|
|
125
|
+
return (_jsxs(_Fragment, { children: [leading, _jsx("div", { ...stylex.props(styles.search), children: _jsx(SearchField, { "aria-label": "Search in file", autoFocus: true, size: "small", value: query, onChange: onQueryChange, onSubmit: () => onStep(1), onClear: () => onQueryChange('') }) }), _jsx(Text, { variant: "footnote", tone: "secondary", children: count }), _jsx("div", { ...stylex.props(styles.searchActions), children: _jsxs(Toolbar, { "aria-label": "Search results", size: "small", children: [_jsx(IconButton, { icon: "ChevronUp", label: "Previous match", variant: "plain", isDisabled: !hasQuery || (matchCount ?? 0) === 0, onPress: () => onStep(-1) }), _jsx(IconButton, { icon: "ChevronDown", label: "Next match", variant: "plain", isDisabled: !hasQuery || (matchCount ?? 0) === 0, onPress: () => onStep(1) }), onDone === undefined ? null : (_jsx(Button, { variant: "plain", size: "small", onPress: onDone, children: "Done" }))] }) })] }));
|
|
126
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import { type PopoverPlacement } from '../Popover/Popover.tsx';
|
|
3
|
+
import { type SheetHeight } from '../Sheet/Sheet.tsx';
|
|
4
|
+
import type { Anchor } from '../Anchor/Anchor.ts';
|
|
5
|
+
import type { FileOutlineItem, FilePageStructure } from '../FileContent/FileStructure.ts';
|
|
6
|
+
import type { FileLocation, FilePagesKind } from '../FileScope/FileScope.types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* On a narrow viewer, the paged file's place: Previous and Next around "n / N", which opens the
|
|
9
|
+
* pages as a grid. It leads the bottom row.
|
|
10
|
+
*/
|
|
11
|
+
export declare function PagePill({ pages, kind, onGo, onOpenPages, pagesTriggerRef, }: {
|
|
12
|
+
readonly pages: FilePageStructure;
|
|
13
|
+
readonly kind: FilePagesKind | undefined;
|
|
14
|
+
readonly onGo: (page: number) => void;
|
|
15
|
+
readonly onOpenPages: () => void;
|
|
16
|
+
/** The "n / N" button, where Pages opens as a popover. */
|
|
17
|
+
readonly pagesTriggerRef?: RefObject<HTMLButtonElement | null>;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* While the sidebar is hidden, "n / N" over the paged file as the reader moves through it,
|
|
21
|
+
* fading once they stop.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PageBadge({ pages }: {
|
|
24
|
+
readonly pages: FilePageStructure;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* What a narrow viewer opens from its controls, such as Contents, View and Pages: a popover at
|
|
28
|
+
* the control, or a sheet on a phone. A viewer is narrow in a desktop side panel too, where a
|
|
29
|
+
* sheet over the whole page would be out of proportion.
|
|
30
|
+
*/
|
|
31
|
+
export declare function NarrowOverlay({ isOpen, onOpenChange, anchor, placement, sheetHeight, children, }: {
|
|
32
|
+
readonly isOpen: boolean;
|
|
33
|
+
readonly onOpenChange: (isOpen: boolean) => void;
|
|
34
|
+
/** Where the popover opens: the control, or the part of the viewer it belongs to. */
|
|
35
|
+
readonly anchor: Anchor;
|
|
36
|
+
readonly placement: PopoverPlacement;
|
|
37
|
+
readonly sheetHeight?: SheetHeight;
|
|
38
|
+
/** The overlay's `Dialog`; `sheet` says which it's drawn in. */
|
|
39
|
+
readonly children: (sheet: boolean) => ReactNode;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
/** The file's outline from its title on a narrow viewer: the section being read is marked. */
|
|
42
|
+
export declare function ContentsOverlay({ isOpen, onOpenChange, anchor, outline, currentId, onSelect, }: {
|
|
43
|
+
readonly isOpen: boolean;
|
|
44
|
+
readonly onOpenChange: (isOpen: boolean) => void;
|
|
45
|
+
/** The title that opens it. */
|
|
46
|
+
readonly anchor: Anchor;
|
|
47
|
+
readonly outline: readonly FileOutlineItem[];
|
|
48
|
+
readonly currentId: string | undefined;
|
|
49
|
+
readonly onSelect: (location: FileLocation) => void;
|
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
/** The paged file's pages as a grid of thumbnails, from the page pill. */
|
|
52
|
+
export declare function PagesOverlay({ isOpen, onOpenChange, anchor, pages, kind, previewCacheKey, onSelect, }: {
|
|
53
|
+
readonly isOpen: boolean;
|
|
54
|
+
readonly onOpenChange: (isOpen: boolean) => void;
|
|
55
|
+
/** The page pill that opens it. */
|
|
56
|
+
readonly anchor: Anchor;
|
|
57
|
+
readonly pages: FilePageStructure;
|
|
58
|
+
readonly kind: FilePagesKind | undefined;
|
|
59
|
+
readonly previewCacheKey: string | undefined;
|
|
60
|
+
readonly onSelect: (location: FileLocation) => void;
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
/**
|
|
63
|
+
* The bottom edge the viewer keeps clear: the screen's safe area and any fixed chrome the app
|
|
64
|
+
* registers with `SafeInsetArea`, such as a composer. The bottom row stacks above it, and a file's
|
|
65
|
+
* scrolling content keeps it as room at its end.
|
|
66
|
+
*/
|
|
67
|
+
export declare function useSafeEndInset(): string;
|
|
68
|
+
/**
|
|
69
|
+
* The room a file's scrolling content keeps at its end, so the last line scrolls clear of what
|
|
70
|
+
* floats over the bottom: the safe end and a gap, and while the bottom row is there, the row and
|
|
71
|
+
* its inset too.
|
|
72
|
+
*/
|
|
73
|
+
export declare function fileEndInset(safeEnd: string, hasBottomRow: boolean): string;
|
|
74
|
+
/**
|
|
75
|
+
* A narrow viewer's controls over the bottom of the file, in one row: the page pill at the start,
|
|
76
|
+
* where it stays whatever else shows, and Next file at the end while a file follows the open one.
|
|
77
|
+
* The row steps back while the reader reads and comes forward, as one, when `activity` changes,
|
|
78
|
+
* such as the page in view, or when the reader reaches for it.
|
|
79
|
+
*/
|
|
80
|
+
export declare function BottomRow({ pill, next, activity, }: {
|
|
81
|
+
readonly pill: ReactNode;
|
|
82
|
+
readonly next: ReactNode;
|
|
83
|
+
readonly activity: unknown;
|
|
84
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
/** In a collection on a narrow viewer, the way on to the file after the open one. */
|
|
86
|
+
export declare function NextFileChip({ name, mediaType, onOpen, }: {
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly mediaType: string | undefined;
|
|
89
|
+
readonly onOpen: () => void;
|
|
90
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { createContext, useContext, useEffect, useRef, useState, } from 'react';
|
|
4
|
+
import { Button as AriaButton } from 'react-aria-components/Button';
|
|
5
|
+
import { Content } from "../Content/Content.js";
|
|
6
|
+
import { Dialog } from "../Dialog/Dialog.js";
|
|
7
|
+
import { FileIcon } from "../FileIcon/FileIcon.js";
|
|
8
|
+
import { Icon } from "../Icon/Icon.js";
|
|
9
|
+
import { useSafeInsetAreaContext } from "../SafeInsetArea/SafeInsetArea.context.js";
|
|
10
|
+
import { withFallback } from "../SafeInsetArea/SafeInsetArea.edges.js";
|
|
11
|
+
import { Popover } from "../Popover/Popover.js";
|
|
12
|
+
import { Sheet } from "../Sheet/Sheet.js";
|
|
13
|
+
import { useViewportMatch } from "../../foundations/viewport.js";
|
|
14
|
+
import { FileOutline } from "../FileContent/FileContent.js";
|
|
15
|
+
import { pageUnit } from "./FileViewer.frame.js";
|
|
16
|
+
import { PageThumbnails } from "./FileViewer.sidebar.js";
|
|
17
|
+
import { styles } from "./FileViewer.compact.stylex.js";
|
|
18
|
+
/**
|
|
19
|
+
* On a narrow viewer, the paged file's place: Previous and Next around "n / N", which opens the
|
|
20
|
+
* pages as a grid. It leads the bottom row.
|
|
21
|
+
*/
|
|
22
|
+
export function PagePill({ pages, kind, onGo, onOpenPages, pagesTriggerRef, }) {
|
|
23
|
+
const unit = pageUnit(kind);
|
|
24
|
+
return (_jsxs("div", { ...stylex.props(styles.rowSurface, styles.rowHeight(ROW_HEIGHT), styles.pill, useContext(RowRestingContext) && styles.rowSurfaceResting), children: [_jsx(AriaButton, { "aria-label": `Previous ${unit.one.toLowerCase()}`, isDisabled: pages.current <= 1, onPress: () => onGo(pages.current - 1), ...stylex.props(styles.rowButton, styles.pillStep, styles.innerHitArea), children: _jsx(Icon, { name: "ChevronLeft", size: "small" }) }), _jsx(AriaButton, { "aria-haspopup": "dialog", "aria-label": `${unit.one} ${pages.current} of ${pages.count}, show ${unit.label.toLowerCase()}`, ref: pagesTriggerRef, onPress: onOpenPages, ...stylex.props(styles.rowButton, styles.pillCount, styles.innerHitArea), children: `${pages.current} / ${pages.count}` }), _jsx(AriaButton, { "aria-label": `Next ${unit.one.toLowerCase()}`, isDisabled: pages.current >= pages.count, onPress: () => onGo(pages.current + 1), ...stylex.props(styles.rowButton, styles.pillStep, styles.innerHitArea), children: _jsx(Icon, { name: "ChevronRight", size: "small" }) })] }));
|
|
25
|
+
}
|
|
26
|
+
/** Whether `value` has stayed the same for a while. */
|
|
27
|
+
function useIsResting(value) {
|
|
28
|
+
const [isResting, setResting] = useState(false);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setResting(false);
|
|
31
|
+
const timer = setTimeout(() => setResting(true), ROW_LINGER);
|
|
32
|
+
return () => clearTimeout(timer);
|
|
33
|
+
}, [value]);
|
|
34
|
+
return isResting;
|
|
35
|
+
}
|
|
36
|
+
/** How long the bottom row stays at full strength after the reader moves. */
|
|
37
|
+
const ROW_LINGER = 2500;
|
|
38
|
+
/**
|
|
39
|
+
* While the sidebar is hidden, "n / N" over the paged file as the reader moves through it,
|
|
40
|
+
* fading once they stop.
|
|
41
|
+
*/
|
|
42
|
+
export function PageBadge({ pages }) {
|
|
43
|
+
const [isShown, setShown] = useState(false);
|
|
44
|
+
const first = useRef(true);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
// Opening a file isn't moving through it.
|
|
47
|
+
if (first.current) {
|
|
48
|
+
first.current = false;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
setShown(true);
|
|
52
|
+
const timer = setTimeout(() => setShown(false), BADGE_LINGER);
|
|
53
|
+
return () => clearTimeout(timer);
|
|
54
|
+
}, [pages.current]);
|
|
55
|
+
return (_jsx("div", { "aria-hidden": true, ...stylex.props(styles.badge, !isShown && styles.badgeHidden), children: `${pages.current} / ${pages.count}` }));
|
|
56
|
+
}
|
|
57
|
+
const BADGE_LINGER = 1200;
|
|
58
|
+
/**
|
|
59
|
+
* What a narrow viewer opens from its controls, such as Contents, View and Pages: a popover at
|
|
60
|
+
* the control, or a sheet on a phone. A viewer is narrow in a desktop side panel too, where a
|
|
61
|
+
* sheet over the whole page would be out of proportion.
|
|
62
|
+
*/
|
|
63
|
+
export function NarrowOverlay({ isOpen, onOpenChange, anchor, placement, sheetHeight, children, }) {
|
|
64
|
+
const isPhone = useViewportMatch('phone');
|
|
65
|
+
return isPhone ? (_jsx(Sheet, { isOpen: isOpen, onOpenChange: onOpenChange, width: "small", ...(sheetHeight === undefined ? {} : { height: sheetHeight }), children: children(true) })) : (_jsx(Popover, { anchor: anchor, isOpen: isOpen, onOpenChange: onOpenChange, placement: placement, children: children(false) }));
|
|
66
|
+
}
|
|
67
|
+
/** The file's outline from its title on a narrow viewer: the section being read is marked. */
|
|
68
|
+
export function ContentsOverlay({ isOpen, onOpenChange, anchor, outline, currentId, onSelect, }) {
|
|
69
|
+
return (_jsx(NarrowOverlay, { isOpen: isOpen, onOpenChange: onOpenChange, anchor: anchor, placement: "bottom start", sheetHeight: "content", children: () => (_jsx(Dialog, { title: "Contents", children: _jsx(Content, { children: _jsx(FileOutline, { items: outline, ...(currentId === undefined ? {} : { currentId }), onSelect: (location) => {
|
|
70
|
+
onSelect(location);
|
|
71
|
+
onOpenChange(false);
|
|
72
|
+
} }) }) })) }));
|
|
73
|
+
}
|
|
74
|
+
/** The paged file's pages as a grid of thumbnails, from the page pill. */
|
|
75
|
+
export function PagesOverlay({ isOpen, onOpenChange, anchor, pages, kind, previewCacheKey, onSelect, }) {
|
|
76
|
+
return (_jsx(NarrowOverlay, { isOpen: isOpen, onOpenChange: onOpenChange, anchor: anchor, placement: "top", children: (sheet) => (_jsx(Dialog, { title: pageUnit(kind).label, children: _jsx(Content, { children: _jsx("div", { ...stylex.props(!sheet && styles.pagesPopover), children: _jsx(PageThumbnails, { pages: pages, kind: kind, columns: 3, previewCacheKey: previewCacheKey, onSelect: (location) => {
|
|
77
|
+
onSelect(location);
|
|
78
|
+
onOpenChange(false);
|
|
79
|
+
} }) }) }) })) }));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The bottom row's controls' height, the pill's and Next file's alike, and the row's offset from
|
|
83
|
+
* the bottom of the file. Their hit areas reach 44px without changing how they look.
|
|
84
|
+
*/
|
|
85
|
+
const ROW_HEIGHT = 36;
|
|
86
|
+
const BOTTOM_ROW_INSET = 12;
|
|
87
|
+
/**
|
|
88
|
+
* The bottom edge the viewer keeps clear: the screen's safe area and any fixed chrome the app
|
|
89
|
+
* registers with `SafeInsetArea`, such as a composer. The bottom row stacks above it, and a file's
|
|
90
|
+
* scrolling content keeps it as room at its end.
|
|
91
|
+
*/
|
|
92
|
+
export function useSafeEndInset() {
|
|
93
|
+
const insets = useSafeInsetAreaContext().avoidanceVar;
|
|
94
|
+
return withFallback(insets.blockEnd, 'env(safe-area-inset-bottom, 0px)');
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The room a file's scrolling content keeps at its end, so the last line scrolls clear of what
|
|
98
|
+
* floats over the bottom: the safe end and a gap, and while the bottom row is there, the row and
|
|
99
|
+
* its inset too.
|
|
100
|
+
*/
|
|
101
|
+
export function fileEndInset(safeEnd, hasBottomRow) {
|
|
102
|
+
const room = hasBottomRow ? ROW_HEIGHT + BOTTOM_ROW_INSET * 2 : BOTTOM_ROW_INSET;
|
|
103
|
+
return `calc(${room}px + ${safeEnd})`;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A narrow viewer's controls over the bottom of the file, in one row: the page pill at the start,
|
|
107
|
+
* where it stays whatever else shows, and Next file at the end while a file follows the open one.
|
|
108
|
+
* The row steps back while the reader reads and comes forward, as one, when `activity` changes,
|
|
109
|
+
* such as the page in view, or when the reader reaches for it.
|
|
110
|
+
*/
|
|
111
|
+
export function BottomRow({ pill, next, activity, }) {
|
|
112
|
+
const isResting = useIsResting(activity);
|
|
113
|
+
const safeEnd = useSafeEndInset();
|
|
114
|
+
return (_jsx("div", { ...stylex.props(styles.bottomRow, styles.bottomRowInset(BOTTOM_ROW_INSET, safeEnd)), children: _jsxs(RowRestingContext, { value: isResting, children: [pill, next] }) }));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Whether the bottom row is resting: its controls' surfaces fade, together and on one timer,
|
|
118
|
+
* while their labels keep their contrast.
|
|
119
|
+
*/
|
|
120
|
+
const RowRestingContext = createContext(false);
|
|
121
|
+
/** In a collection on a narrow viewer, the way on to the file after the open one. */
|
|
122
|
+
export function NextFileChip({ name, mediaType, onOpen, }) {
|
|
123
|
+
return (_jsxs(AriaButton, { "aria-label": `Next file, ${name}`, onPress: onOpen, ...stylex.props(styles.rowSurface, styles.rowHeight(ROW_HEIGHT), styles.rowButton, styles.nextFile, styles.surfaceHitArea, useContext(RowRestingContext) && styles.rowSurfaceResting), children: [_jsx("span", { "aria-hidden": true, ...stylex.props(styles.nextFileIcon), children: _jsx(FileIcon, { filename: name, mimeType: mediaType ?? null, size: "small" }) }), _jsx("span", { ...stylex.props(styles.nextFileName), children: name }), _jsx(Icon, { name: "ChevronRight", size: "small" })] }));
|
|
124
|
+
}
|