@effectiveailabs/design-system 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +125 -2
- package/dist/components/AdaptiveGrid/AdaptiveGrid.d.ts +38 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.js +15 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.d.ts +104 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.js +62 -0
- package/dist/components/Anchor/Anchor.d.ts +29 -0
- package/dist/components/Anchor/Anchor.js +56 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.d.ts +16 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.js +45 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.d.ts +6 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.js +7 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.js +15 -0
- package/dist/components/AnnotationPin/AnnotationPin.d.ts +31 -0
- package/dist/components/AnnotationPin/AnnotationPin.js +99 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.d.ts +19 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.js +56 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.d.ts +48 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.js +39 -0
- package/dist/components/AnnotationPin/AnnotationScope.d.ts +26 -0
- package/dist/components/AnnotationPin/AnnotationScope.js +59 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.js +68 -0
- package/dist/components/AnnotationPin/useRangeAnchor.d.ts +9 -0
- package/dist/components/AnnotationPin/useRangeAnchor.js +35 -0
- package/dist/components/App/App.d.ts +85 -0
- package/dist/components/App/App.js +515 -0
- package/dist/components/App/App.layout.d.ts +25 -0
- package/dist/components/App/App.layout.js +42 -0
- package/dist/components/App/App.stylex.d.ts +373 -0
- package/dist/components/App/App.stylex.js +352 -0
- package/dist/components/App/AppNavigationHeader.context.d.ts +9 -0
- package/dist/components/App/AppNavigationHeader.context.js +13 -0
- package/dist/components/Article/Article.d.ts +16 -0
- package/dist/components/Article/Article.js +14 -0
- package/dist/components/Article/Article.stylex.d.ts +49 -0
- package/dist/components/Article/Article.stylex.js +66 -0
- package/dist/components/Article/ArticleSection.d.ts +23 -0
- package/dist/components/Article/ArticleSection.js +26 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +13 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.d.ts +9 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.js +5 -0
- package/dist/components/Autocomplete/Autocomplete.js +68 -0
- package/dist/components/Avatar/Avatar.d.ts +30 -0
- package/dist/components/Avatar/Avatar.js +14 -0
- package/dist/components/Avatar/Avatar.stylex.d.ts +74 -0
- package/dist/components/Avatar/Avatar.stylex.js +71 -0
- package/dist/components/Avatar/Avatar.view.d.ts +7 -0
- package/dist/components/Avatar/Avatar.view.js +43 -0
- package/dist/components/Avatar/AvatarName.d.ts +7 -0
- package/dist/components/Avatar/AvatarName.js +17 -0
- package/dist/components/Avatar/avatarColor.d.ts +3 -0
- package/dist/components/Avatar/avatarColor.js +28 -0
- package/dist/components/Avatar/avatarInitials.d.ts +1 -0
- package/dist/components/Avatar/avatarInitials.js +37 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.d.ts +11 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.js +52 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.d.ts +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.js +2 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +188 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.d.ts +149 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.js +132 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.d.ts +14 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.js +27 -0
- package/dist/components/Badge/Badge.d.ts +54 -0
- package/dist/components/Badge/Badge.js +149 -0
- package/dist/components/Badge/Badge.stylex.d.ts +278 -0
- package/dist/components/Badge/Badge.stylex.js +267 -0
- package/dist/components/BrandLogo/BrandLogo.d.ts +16 -0
- package/dist/components/BrandLogo/BrandLogo.js +19 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.d.ts +23 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.js +14 -0
- package/dist/components/BrandLogo/brandLogoArtwork.d.ts +10 -0
- package/dist/components/BrandLogo/brandLogoArtwork.js +30 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.d.ts +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.js +59 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.d.ts +20 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.js +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +284 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.d.ts +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.js +29 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.d.ts +200 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.js +166 -0
- package/dist/components/Button/Button.appearance.d.ts +323 -0
- package/dist/components/Button/Button.appearance.js +57 -0
- package/dist/components/Button/Button.d.ts +102 -0
- package/dist/components/Button/Button.js +176 -0
- package/dist/components/Button/Button.stylex.d.ts +577 -0
- package/dist/components/Button/Button.stylex.js +590 -0
- package/dist/components/Button/ButtonProgress.d.ts +1 -0
- package/dist/components/Button/ButtonProgress.js +8 -0
- package/dist/components/Button/ButtonProgress.stylex.d.ts +22 -0
- package/dist/components/Button/ButtonProgress.stylex.js +14 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.d.ts +74 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.js +25 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +35 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +49 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.d.ts +111 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.js +116 -0
- package/dist/components/CalculationSteps/CalculationSteps.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.js +44 -0
- package/dist/components/CalculationSteps/CalculationSteps.js +84 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.d.ts +23 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.js +22 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.d.ts +131 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.js +11 -0
- package/dist/components/Calendar/Calendar.d.ts +22 -0
- package/dist/components/Calendar/Calendar.js +119 -0
- package/dist/components/Calendar/Calendar.stylex.d.ts +196 -0
- package/dist/components/Calendar/Calendar.stylex.js +197 -0
- package/dist/components/Card/Card.context.d.ts +28 -0
- package/dist/components/Card/Card.context.js +40 -0
- package/dist/components/Card/Card.d.ts +39 -0
- package/dist/components/Card/Card.js +121 -0
- package/dist/components/Card/Card.stylex.d.ts +172 -0
- package/dist/components/Card/Card.stylex.js +185 -0
- package/dist/components/Chart/Chart.d.ts +24 -0
- package/dist/components/Chart/Chart.data.d.ts +119 -0
- package/dist/components/Chart/Chart.data.js +596 -0
- package/dist/components/Chart/Chart.describe.d.ts +46 -0
- package/dist/components/Chart/Chart.describe.js +359 -0
- package/dist/components/Chart/Chart.environment.d.ts +8 -0
- package/dist/components/Chart/Chart.environment.js +10 -0
- package/dist/components/Chart/Chart.format.d.ts +14 -0
- package/dist/components/Chart/Chart.format.js +108 -0
- package/dist/components/Chart/Chart.highcharts.d.ts +106 -0
- package/dist/components/Chart/Chart.highcharts.js +1001 -0
- package/dist/components/Chart/Chart.js +600 -0
- package/dist/components/Chart/Chart.load.d.ts +69 -0
- package/dist/components/Chart/Chart.load.js +136 -0
- package/dist/components/Chart/Chart.raw.d.ts +33 -0
- package/dist/components/Chart/Chart.raw.js +234 -0
- package/dist/components/Chart/Chart.rules.d.ts +31 -0
- package/dist/components/Chart/Chart.rules.js +72 -0
- package/dist/components/Chart/Chart.stylex.d.ts +260 -0
- package/dist/components/Chart/Chart.stylex.js +280 -0
- package/dist/components/Chart/Chart.types.d.ts +380 -0
- package/dist/components/Chart/Chart.types.js +23 -0
- package/dist/components/Chart/ChartDataTable.d.ts +9 -0
- package/dist/components/Chart/ChartDataTable.js +42 -0
- package/dist/components/Chart/ChartGhost.d.ts +17 -0
- package/dist/components/Chart/ChartGhost.js +13 -0
- package/dist/components/Chart/ChartHighcharts.d.ts +6 -0
- package/dist/components/Chart/ChartHighcharts.js +61 -0
- package/dist/components/Chart/ChartLegend.d.ts +23 -0
- package/dist/components/Chart/ChartLegend.js +111 -0
- package/dist/components/Chart/ChartMarks.d.ts +29 -0
- package/dist/components/Chart/ChartMarks.js +29 -0
- package/dist/components/Chart/ChartScrollbar.d.ts +13 -0
- package/dist/components/Chart/ChartScrollbar.js +63 -0
- package/dist/components/Chart/ChartTip.d.ts +5 -0
- package/dist/components/Chart/ChartTip.js +7 -0
- package/dist/components/Checkbox/Checkbox.d.ts +81 -0
- package/dist/components/Checkbox/Checkbox.js +52 -0
- package/dist/components/CodeBlock/CodeBlock.copy.d.ts +7 -0
- package/dist/components/CodeBlock/CodeBlock.copy.js +28 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.d.ts +20 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.js +40 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +88 -0
- package/dist/components/CodeBlock/CodeBlock.fence.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.fence.js +110 -0
- package/dist/components/CodeBlock/CodeBlock.js +148 -0
- package/dist/components/CodeBlock/CodeBlock.marks.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.marks.js +54 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.d.ts +15 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.js +30 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.d.ts +221 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.js +194 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.d.ts +47 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.js +103 -0
- package/dist/components/CodeBlock/CodeGroup.context.d.ts +5 -0
- package/dist/components/CodeBlock/CodeGroup.context.js +6 -0
- package/dist/components/CodeBlock/CodeGroup.d.ts +19 -0
- package/dist/components/CodeBlock/CodeGroup.js +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.d.ts +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.js +70 -0
- package/dist/components/CodeEntry/CodeEntry.d.ts +62 -0
- package/dist/components/CodeEntry/CodeEntry.js +86 -0
- package/dist/components/CodeField/CodeField.d.ts +32 -0
- package/dist/components/CodeField/CodeField.js +25 -0
- package/dist/components/CodeField/CodeField.stylex.d.ts +82 -0
- package/dist/components/CodeField/CodeField.stylex.js +88 -0
- package/dist/components/Collection/Collection.constants.d.ts +3 -0
- package/dist/components/Collection/Collection.constants.js +3 -0
- package/dist/components/Collection/Collection.context.d.ts +70 -0
- package/dist/components/Collection/Collection.context.js +39 -0
- package/dist/components/Collection/Collection.d.ts +119 -0
- package/dist/components/Collection/Collection.dnd.d.ts +19 -0
- package/dist/components/Collection/Collection.dnd.js +56 -0
- package/dist/components/Collection/Collection.dragScroll.d.ts +2 -0
- package/dist/components/Collection/Collection.dragScroll.js +93 -0
- package/dist/components/Collection/Collection.identity.d.ts +3 -0
- package/dist/components/Collection/Collection.identity.js +10 -0
- package/dist/components/Collection/Collection.js +479 -0
- package/dist/components/Collection/Collection.pageLoadMore.d.ts +2 -0
- package/dist/components/Collection/Collection.pageLoadMore.js +21 -0
- package/dist/components/Collection/Collection.stylex.d.ts +1033 -0
- package/dist/components/Collection/Collection.stylex.js +1095 -0
- package/dist/components/Collection/CollectionItemContent.d.ts +9 -0
- package/dist/components/Collection/CollectionItemContent.js +11 -0
- package/dist/components/Collection/CollectionVirtualizer.context.d.ts +9 -0
- package/dist/components/Collection/CollectionVirtualizer.context.js +2 -0
- package/dist/components/Collection/OutlinePreview.d.ts +12 -0
- package/dist/components/Collection/OutlinePreview.js +32 -0
- package/dist/components/CollectionViews/CollectionViews.context.d.ts +8 -0
- package/dist/components/CollectionViews/CollectionViews.context.js +9 -0
- package/dist/components/CollectionViews/CollectionViews.d.ts +42 -0
- package/dist/components/CollectionViews/CollectionViews.js +53 -0
- package/dist/components/ComboBox/ComboBox.collection.d.ts +5 -0
- package/dist/components/ComboBox/ComboBox.collection.js +40 -0
- package/dist/components/ComboBox/ComboBox.d.ts +50 -0
- package/dist/components/ComboBox/ComboBox.js +98 -0
- package/dist/components/ComboBox/ComboBox.stylex.d.ts +45 -0
- package/dist/components/ComboBox/ComboBox.stylex.js +34 -0
- package/dist/components/ContainerSize/ContainerSize.d.ts +27 -0
- package/dist/components/ContainerSize/ContainerSize.js +51 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.d.ts +13 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.js +16 -0
- package/dist/components/Content/Content.context.d.ts +3 -0
- package/dist/components/Content/Content.context.js +3 -0
- package/dist/components/Content/Content.d.ts +33 -0
- package/dist/components/Content/Content.js +36 -0
- package/dist/components/Content/Content.stylex.d.ts +65 -0
- package/dist/components/Content/Content.stylex.js +69 -0
- package/dist/components/Content/HeaderSlots.d.ts +9 -0
- package/dist/components/Content/HeaderSlots.js +22 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.d.ts +2 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.js +2 -0
- package/dist/components/ControlSize/ControlSize.context.d.ts +3 -0
- package/dist/components/ControlSize/ControlSize.context.js +6 -0
- package/dist/components/Countdown/Countdown.d.ts +16 -0
- package/dist/components/Countdown/Countdown.js +30 -0
- package/dist/components/Countdown/Countdown.stylex.d.ts +11 -0
- package/dist/components/Countdown/Countdown.stylex.js +10 -0
- package/dist/components/CoverageTower/CoverageTower.axis.d.ts +28 -0
- package/dist/components/CoverageTower/CoverageTower.axis.js +28 -0
- package/dist/components/CoverageTower/CoverageTower.block.d.ts +39 -0
- package/dist/components/CoverageTower/CoverageTower.block.js +112 -0
- package/dist/components/CoverageTower/CoverageTower.d.ts +14 -0
- package/dist/components/CoverageTower/CoverageTower.js +284 -0
- package/dist/components/CoverageTower/CoverageTower.layout.d.ts +158 -0
- package/dist/components/CoverageTower/CoverageTower.layout.js +243 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.d.ts +404 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.js +525 -0
- package/dist/components/CoverageTower/CoverageTower.types.d.ts +172 -0
- package/dist/components/CoverageTower/CoverageTower.types.js +3 -0
- package/dist/components/DateField/DateField.d.ts +61 -0
- package/dist/components/DateField/DateField.js +66 -0
- package/dist/components/DateRangeField/DateRangeField.d.ts +60 -0
- package/dist/components/DateRangeField/DateRangeField.js +68 -0
- package/dist/components/Dialog/Dialog.context.d.ts +6 -0
- package/dist/components/Dialog/Dialog.context.js +3 -0
- package/dist/components/Dialog/Dialog.d.ts +15 -0
- package/dist/components/Dialog/Dialog.js +25 -0
- package/dist/components/Dialog/Dialog.stylex.d.ts +23 -0
- package/dist/components/Dialog/Dialog.stylex.js +20 -0
- package/dist/components/Disclosure/Disclosure.d.ts +5 -0
- package/dist/components/Disclosure/Disclosure.js +119 -0
- package/dist/components/Disclosure/Disclosure.stylex.d.ts +161 -0
- package/dist/components/Disclosure/Disclosure.stylex.js +143 -0
- package/dist/components/Disclosure/Disclosure.types.d.ts +96 -0
- package/dist/components/Disclosure/Disclosure.types.js +4 -0
- package/dist/components/Disclosure/DisclosureGroup.context.d.ts +2 -0
- package/dist/components/Disclosure/DisclosureGroup.context.js +2 -0
- package/dist/components/Disclosure/DisclosureGroup.d.ts +5 -0
- package/dist/components/Disclosure/DisclosureGroup.js +10 -0
- package/dist/components/DismissButton/Dismiss.context.d.ts +3 -0
- package/dist/components/DismissButton/Dismiss.context.js +10 -0
- package/dist/components/DismissButton/DismissButton.d.ts +16 -0
- package/dist/components/DismissButton/DismissButton.js +9 -0
- package/dist/components/DropZone/DropZone.d.ts +10 -0
- package/dist/components/DropZone/DropZone.js +16 -0
- package/dist/components/DropZone/DropZone.stylex.d.ts +32 -0
- package/dist/components/DropZone/DropZone.stylex.js +27 -0
- package/dist/components/EditableText/EditableText.d.ts +21 -0
- package/dist/components/EditableText/EditableText.js +63 -0
- package/dist/components/EditableText/EditableText.stylex.d.ts +108 -0
- package/dist/components/EditableText/EditableText.stylex.js +95 -0
- package/dist/components/FieldRow/FieldRow.d.ts +20 -0
- package/dist/components/FieldRow/FieldRow.js +17 -0
- package/dist/components/FieldRow/FieldRow.stylex.d.ts +30 -0
- package/dist/components/FieldRow/FieldRow.stylex.js +52 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.d.ts +74 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.js +193 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.d.ts +47 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.js +53 -0
- package/dist/components/FileContent/FileContent.context.d.ts +51 -0
- package/dist/components/FileContent/FileContent.context.js +45 -0
- package/dist/components/FileContent/FileContent.d.ts +66 -0
- package/dist/components/FileContent/FileContent.js +80 -0
- package/dist/components/FileContent/FileContent.markers.d.ts +7 -0
- package/dist/components/FileContent/FileContent.markers.js +28 -0
- package/dist/components/FileContent/FileContent.stylex.d.ts +152 -0
- package/dist/components/FileContent/FileContent.stylex.js +155 -0
- package/dist/components/FileContent/FileContentViewport.d.ts +42 -0
- package/dist/components/FileContent/FileContentViewport.js +117 -0
- package/dist/components/FileContent/FileDetails.d.ts +11 -0
- package/dist/components/FileContent/FileDetails.js +53 -0
- package/dist/components/FileContent/FileOutline.previews.d.ts +70 -0
- package/dist/components/FileContent/FileOutline.previews.js +278 -0
- package/dist/components/FileContent/FileOutlineRows.d.ts +21 -0
- package/dist/components/FileContent/FileOutlineRows.js +166 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.d.ts +13 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.js +125 -0
- package/dist/components/FileContent/FileStructure.d.ts +51 -0
- package/dist/components/FileContent/FileStructure.js +37 -0
- package/dist/components/FileExplorer/FileExplorer.browser.d.ts +58 -0
- package/dist/components/FileExplorer/FileExplorer.browser.js +274 -0
- package/dist/components/FileExplorer/FileExplorer.columns.d.ts +37 -0
- package/dist/components/FileExplorer/FileExplorer.columns.js +144 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.d.ts +95 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.js +95 -0
- package/dist/components/FileExplorer/FileExplorer.d.ts +33 -0
- package/dist/components/FileExplorer/FileExplorer.groups.d.ts +14 -0
- package/dist/components/FileExplorer/FileExplorer.groups.js +129 -0
- package/dist/components/FileExplorer/FileExplorer.hits.d.ts +12 -0
- package/dist/components/FileExplorer/FileExplorer.hits.js +51 -0
- package/dist/components/FileExplorer/FileExplorer.js +180 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.d.ts +141 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.js +132 -0
- package/dist/components/FileField/FileField.d.ts +24 -0
- package/dist/components/FileField/FileField.js +37 -0
- package/dist/components/FileField/FileField.stylex.d.ts +17 -0
- package/dist/components/FileField/FileField.stylex.js +18 -0
- package/dist/components/FileIcon/FileIcon.d.ts +25 -0
- package/dist/components/FileIcon/FileIcon.js +33 -0
- package/dist/components/FilePicker/FilePicker.d.ts +40 -0
- package/dist/components/FilePicker/FilePicker.js +155 -0
- package/dist/components/FilePicker/MovePicker.d.ts +13 -0
- package/dist/components/FilePicker/MovePicker.js +19 -0
- package/dist/components/FileScope/FileHeader.stylex.d.ts +8 -0
- package/dist/components/FileScope/FileHeader.stylex.js +9 -0
- package/dist/components/FileScope/FileScope.actions.d.ts +45 -0
- package/dist/components/FileScope/FileScope.actions.js +240 -0
- package/dist/components/FileScope/FileScope.cache.d.ts +12 -0
- package/dist/components/FileScope/FileScope.cache.js +25 -0
- package/dist/components/FileScope/FileScope.d.ts +163 -0
- package/dist/components/FileScope/FileScope.drag.d.ts +27 -0
- package/dist/components/FileScope/FileScope.drag.js +88 -0
- package/dist/components/FileScope/FileScope.entryActions.d.ts +32 -0
- package/dist/components/FileScope/FileScope.entryActions.js +121 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.d.ts +9 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.js +24 -0
- package/dist/components/FileScope/FileScope.js +132 -0
- package/dist/components/FileScope/FileScope.match.d.ts +8 -0
- package/dist/components/FileScope/FileScope.match.js +76 -0
- package/dist/components/FileScope/FileScope.plainText.d.ts +6 -0
- package/dist/components/FileScope/FileScope.plainText.js +34 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.d.ts +14 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.js +15 -0
- package/dist/components/FileScope/FileScope.queue.d.ts +20 -0
- package/dist/components/FileScope/FileScope.queue.js +81 -0
- package/dist/components/FileScope/FileScope.relative.d.ts +7 -0
- package/dist/components/FileScope/FileScope.relative.js +32 -0
- package/dist/components/FileScope/FileScope.search.d.ts +33 -0
- package/dist/components/FileScope/FileScope.search.js +105 -0
- package/dist/components/FileScope/FileScope.search.stylex.d.ts +7 -0
- package/dist/components/FileScope/FileScope.search.stylex.js +8 -0
- package/dist/components/FileScope/FileScope.share.d.ts +13 -0
- package/dist/components/FileScope/FileScope.share.js +159 -0
- package/dist/components/FileScope/FileScope.share.stylex.d.ts +18 -0
- package/dist/components/FileScope/FileScope.share.stylex.js +21 -0
- package/dist/components/FileScope/FileScope.types.d.ts +586 -0
- package/dist/components/FileScope/FileScope.types.js +6 -0
- package/dist/components/FileScope/FileScope.utils.d.ts +20 -0
- package/dist/components/FileScope/FileScope.utils.js +157 -0
- package/dist/components/FileScope/FileSourceError.d.ts +17 -0
- package/dist/components/FileScope/FileSourceError.js +24 -0
- package/dist/components/FileScope/FileStore.d.ts +178 -0
- package/dist/components/FileScope/FileStore.js +849 -0
- package/dist/components/FileThumbnail/FileThumbnail.d.ts +25 -0
- package/dist/components/FileThumbnail/FileThumbnail.js +242 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.d.ts +38 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.js +44 -0
- package/dist/components/FileTree/FileTree.d.ts +77 -0
- package/dist/components/FileTree/FileTree.entries.d.ts +29 -0
- package/dist/components/FileTree/FileTree.entries.js +97 -0
- package/dist/components/FileTree/FileTree.js +800 -0
- package/dist/components/FileTree/FileTree.stylex.d.ts +46 -0
- package/dist/components/FileTree/FileTree.stylex.js +60 -0
- package/dist/components/FileTrigger/FileSelection.context.d.ts +2 -0
- package/dist/components/FileTrigger/FileSelection.context.js +2 -0
- package/dist/components/FileTrigger/FileSelection.d.ts +13 -0
- package/dist/components/FileTrigger/FileSelection.js +31 -0
- package/dist/components/FileTrigger/FileTrigger.d.ts +9 -0
- package/dist/components/FileTrigger/FileTrigger.js +22 -0
- package/dist/components/FileViewer/FileViewer.chrome.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.chrome.js +126 -0
- package/dist/components/FileViewer/FileViewer.compact.d.ts +90 -0
- package/dist/components/FileViewer/FileViewer.compact.js +124 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.d.ts +138 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.js +140 -0
- package/dist/components/FileViewer/FileViewer.controls.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.controls.js +27 -0
- package/dist/components/FileViewer/FileViewer.d.ts +79 -0
- package/dist/components/FileViewer/FileViewer.edit.d.ts +63 -0
- package/dist/components/FileViewer/FileViewer.edit.js +209 -0
- package/dist/components/FileViewer/FileViewer.embedded.d.ts +49 -0
- package/dist/components/FileViewer/FileViewer.embedded.js +107 -0
- package/dist/components/FileViewer/FileViewer.frame.d.ts +92 -0
- package/dist/components/FileViewer/FileViewer.frame.js +36 -0
- package/dist/components/FileViewer/FileViewer.goTo.d.ts +13 -0
- package/dist/components/FileViewer/FileViewer.goTo.js +30 -0
- package/dist/components/FileViewer/FileViewer.js +846 -0
- package/dist/components/FileViewer/FileViewer.links.d.ts +18 -0
- package/dist/components/FileViewer/FileViewer.links.js +10 -0
- package/dist/components/FileViewer/FileViewer.present.d.ts +10 -0
- package/dist/components/FileViewer/FileViewer.present.js +36 -0
- package/dist/components/FileViewer/FileViewer.selection.d.ts +15 -0
- package/dist/components/FileViewer/FileViewer.selection.js +26 -0
- package/dist/components/FileViewer/FileViewer.sidebar.d.ts +24 -0
- package/dist/components/FileViewer/FileViewer.sidebar.js +53 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.d.ts +87 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.js +95 -0
- package/dist/components/FileViewer/FileViewer.skeleton.d.ts +27 -0
- package/dist/components/FileViewer/FileViewer.skeleton.js +80 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.d.ts +86 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.js +70 -0
- package/dist/components/FileViewer/FileViewer.stylex.d.ts +309 -0
- package/dist/components/FileViewer/FileViewer.stylex.js +306 -0
- package/dist/components/FileViewer/FileViewer.view.d.ts +61 -0
- package/dist/components/FileViewer/FileViewer.view.js +205 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.d.ts +105 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.js +109 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.d.ts +12 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.js +21 -0
- package/dist/components/FilterForm/FilterForm.context.d.ts +3 -0
- package/dist/components/FilterForm/FilterForm.context.js +3 -0
- package/dist/components/FilterForm/FilterForm.d.ts +6 -0
- package/dist/components/FilterForm/FilterForm.editor.d.ts +12 -0
- package/dist/components/FilterForm/FilterForm.editor.js +119 -0
- package/dist/components/FilterForm/FilterForm.js +125 -0
- package/dist/components/FilterForm/FilterForm.model.d.ts +9 -0
- package/dist/components/FilterForm/FilterForm.model.js +84 -0
- package/dist/components/FilterForm/FilterForm.options.d.ts +19 -0
- package/dist/components/FilterForm/FilterForm.options.js +89 -0
- package/dist/components/FilterForm/FilterForm.stylex.d.ts +17 -0
- package/dist/components/FilterForm/FilterForm.stylex.js +18 -0
- package/dist/components/FilterForm/FilterForm.types.d.ts +70 -0
- package/dist/components/FilterForm/FilterForm.types.js +1 -0
- package/dist/components/FlowFrame/FlowFrame.d.ts +11 -0
- package/dist/components/FlowFrame/FlowFrame.js +26 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.d.ts +8 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.js +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.d.ts +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.js +162 -0
- package/dist/components/FolderIcon/FolderIcon.d.ts +31 -0
- package/dist/components/FolderIcon/FolderIcon.js +34 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.d.ts +9 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.js +11 -0
- package/dist/components/FolderLabel/FolderLabel.d.ts +11 -0
- package/dist/components/FolderLabel/FolderLabel.js +9 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.d.ts +19 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.js +20 -0
- package/dist/components/ForEach/ForEach.d.ts +30 -0
- package/dist/components/ForEach/ForEach.data.d.ts +17 -0
- package/dist/components/ForEach/ForEach.data.js +32 -0
- package/dist/components/ForEach/ForEach.js +26 -0
- package/dist/components/Form/Form.context.d.ts +2 -0
- package/dist/components/Form/Form.context.js +5 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.stylex.d.ts +11 -0
- package/dist/components/Form/Form.stylex.js +12 -0
- package/dist/components/FormField/FormField.d.ts +25 -0
- package/dist/components/FormField/FormField.js +27 -0
- package/dist/components/FormField/FormField.stylex.d.ts +986 -0
- package/dist/components/FormField/FormField.stylex.js +1012 -0
- package/dist/components/Grid/Grid.d.ts +44 -0
- package/dist/components/Grid/Grid.js +212 -0
- package/dist/components/Grid/Grid.sections.d.ts +16 -0
- package/dist/components/Grid/Grid.sections.js +34 -0
- package/dist/components/Grid/Grid.stylex.d.ts +231 -0
- package/dist/components/Grid/Grid.stylex.js +235 -0
- package/dist/components/Grid/Grid.template.d.ts +6 -0
- package/dist/components/Grid/Grid.template.js +6 -0
- package/dist/components/HStack/HStack.d.ts +21 -0
- package/dist/components/HStack/HStack.js +13 -0
- package/dist/components/HStack/HStack.stylex.d.ts +174 -0
- package/dist/components/HStack/HStack.stylex.js +122 -0
- package/dist/components/Heading/Heading.context.d.ts +6 -0
- package/dist/components/Heading/Heading.context.js +12 -0
- package/dist/components/Heading/Heading.d.ts +15 -0
- package/dist/components/Heading/Heading.js +70 -0
- package/dist/components/Icon/FilledIcon.d.ts +5 -0
- package/dist/components/Icon/FilledIcon.js +12 -0
- package/dist/components/Icon/FilledIcon.stylex.d.ts +6 -0
- package/dist/components/Icon/FilledIcon.stylex.js +5 -0
- package/dist/components/Icon/Icon.d.ts +50 -0
- package/dist/components/Icon/Icon.js +110 -0
- package/dist/components/Icon/Icon.registry.d.ts +147 -0
- package/dist/components/Icon/Icon.registry.js +98 -0
- package/dist/components/Icon/Icon.stylex.d.ts +74 -0
- package/dist/components/Icon/Icon.stylex.js +63 -0
- package/dist/components/Icon/IconSlot.d.ts +18 -0
- package/dist/components/Icon/IconSlot.js +84 -0
- package/dist/components/Icon/badgedGlyph.d.ts +14 -0
- package/dist/components/Icon/badgedGlyph.js +23 -0
- package/dist/components/Icon/custom/BrandMarks.d.ts +12 -0
- package/dist/components/Icon/custom/BrandMarks.js +46 -0
- package/dist/components/Icon/custom/FileIcons.d.ts +27 -0
- package/dist/components/Icon/custom/FileIcons.js +117 -0
- package/dist/components/Icon/custom/FolderSearchInput.d.ts +6 -0
- package/dist/components/Icon/custom/FolderSearchInput.js +20 -0
- package/dist/components/Icon/custom/HighlighterOff.d.ts +2 -0
- package/dist/components/Icon/custom/HighlighterOff.js +7 -0
- package/dist/components/Icon/custom/LinkMarks.d.ts +74 -0
- package/dist/components/Icon/custom/LinkMarks.js +112 -0
- package/dist/components/Icon/custom/MessageSquareSearch.d.ts +5 -0
- package/dist/components/Icon/custom/MessageSquareSearch.js +10 -0
- package/dist/components/Icon/custom/PageRegions.d.ts +2 -0
- package/dist/components/Icon/custom/PageRegions.js +12 -0
- package/dist/components/Icon/custom/PanelExpand.d.ts +5 -0
- package/dist/components/Icon/custom/PanelExpand.js +12 -0
- package/dist/components/Icon/custom/SquareDashedPlus.d.ts +2 -0
- package/dist/components/Icon/custom/SquareDashedPlus.js +6 -0
- package/dist/components/Icon/getFileIconName.d.ts +11 -0
- package/dist/components/Icon/getFileIconName.js +140 -0
- package/dist/components/Icon/getLinkIconName.d.ts +23 -0
- package/dist/components/Icon/getLinkIconName.js +142 -0
- package/dist/components/Icon/lucideIcons.d.ts +9 -0
- package/dist/components/Icon/lucideIcons.js +14 -0
- package/dist/components/Icon/lucideIconsOnDemand.d.ts +11 -0
- package/dist/components/Icon/lucideIconsOnDemand.js +48 -0
- package/dist/components/IconButton/IconButton.d.ts +53 -0
- package/dist/components/IconButton/IconButton.js +116 -0
- package/dist/components/IconButton/IconButton.stylex.d.ts +88 -0
- package/dist/components/IconButton/IconButton.stylex.js +85 -0
- package/dist/components/Image/Image.d.ts +20 -0
- package/dist/components/Image/Image.js +45 -0
- package/dist/components/Image/Image.stylex.d.ts +70 -0
- package/dist/components/Image/Image.stylex.js +71 -0
- package/dist/components/ImageRedactor/ImageRedactor.d.ts +26 -0
- package/dist/components/ImageRedactor/ImageRedactor.js +56 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.d.ts +49 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.js +51 -0
- package/dist/components/Indicator/Indicator.d.ts +23 -0
- package/dist/components/Indicator/Indicator.js +105 -0
- package/dist/components/Indicator/Indicator.stylex.d.ts +181 -0
- package/dist/components/Indicator/Indicator.stylex.js +176 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +23 -0
- package/dist/components/InlineAlert/InlineAlert.js +54 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.d.ts +105 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.js +104 -0
- package/dist/components/IntentScope/IntentScope.d.ts +17 -0
- package/dist/components/IntentScope/IntentScope.js +19 -0
- package/dist/components/IntentScope/intentCoordinator.d.ts +12 -0
- package/dist/components/IntentScope/intentCoordinator.js +64 -0
- package/dist/components/IntentScope/useIntent.d.ts +12 -0
- package/dist/components/IntentScope/useIntent.js +47 -0
- package/dist/components/JsonValueView/JsonBlock.d.ts +31 -0
- package/dist/components/JsonValueView/JsonBlock.js +25 -0
- package/dist/components/JsonValueView/JsonCopyButton.d.ts +20 -0
- package/dist/components/JsonValueView/JsonCopyButton.js +37 -0
- package/dist/components/JsonValueView/JsonValueControls.d.ts +17 -0
- package/dist/components/JsonValueView/JsonValueControls.js +16 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.d.ts +21 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.d.ts +38 -0
- package/dist/components/JsonValueView/JsonValueView.frame.d.ts +12 -0
- package/dist/components/JsonValueView/JsonValueView.frame.js +13 -0
- package/dist/components/JsonValueView/JsonValueView.js +98 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.d.ts +65 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.js +49 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.d.ts +22 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.value.d.ts +25 -0
- package/dist/components/JsonValueView/JsonValueView.value.js +107 -0
- package/dist/components/JsonValueView/useJsonValueViewState.d.ts +20 -0
- package/dist/components/JsonValueView/useJsonValueViewState.js +54 -0
- package/dist/components/Keyboard/Keyboard.d.ts +14 -0
- package/dist/components/Keyboard/Keyboard.js +72 -0
- package/dist/components/Keyboard/Keyboard.stylex.d.ts +63 -0
- package/dist/components/Keyboard/Keyboard.stylex.js +64 -0
- package/dist/components/LazyGrid/LazyGrid.d.ts +11 -0
- package/dist/components/LazyGrid/LazyGrid.js +23 -0
- package/dist/components/LazyHStack/LazyHStack.d.ts +18 -0
- package/dist/components/LazyHStack/LazyHStack.js +11 -0
- package/dist/components/LazyList/LazyList.d.ts +11 -0
- package/dist/components/LazyList/LazyList.js +10 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.d.ts +4 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.js +192 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.d.ts +28 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.js +42 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.d.ts +7 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.js +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.d.ts +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.js +64 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.d.ts +110 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.js +100 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.d.ts +38 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.js +1 -0
- package/dist/components/LazyTable/LazyTable.d.ts +11 -0
- package/dist/components/LazyTable/LazyTable.js +28 -0
- package/dist/components/LazyTable/LazyTable.layout.d.ts +43 -0
- package/dist/components/LazyTable/LazyTable.layout.js +213 -0
- package/dist/components/LazyTable/LazyTable.viewport.d.ts +5 -0
- package/dist/components/LazyTable/LazyTable.viewport.js +83 -0
- package/dist/components/LazyTree/LazyTree.d.ts +11 -0
- package/dist/components/LazyTree/LazyTree.js +10 -0
- package/dist/components/LazyVStack/LazyVStack.d.ts +18 -0
- package/dist/components/LazyVStack/LazyVStack.js +15 -0
- package/dist/components/Link/Link.adapter.d.ts +19 -0
- package/dist/components/Link/Link.adapter.js +18 -0
- package/dist/components/Link/Link.d.ts +52 -0
- package/dist/components/Link/Link.js +137 -0
- package/dist/components/Link/Link.stylex.d.ts +200 -0
- package/dist/components/Link/Link.stylex.js +206 -0
- package/dist/components/List/List.d.ts +16 -0
- package/dist/components/List/List.js +90 -0
- package/dist/components/List/List.stylex.d.ts +116 -0
- package/dist/components/List/List.stylex.js +116 -0
- package/dist/components/List/flattenHelpers.d.ts +19 -0
- package/dist/components/List/flattenHelpers.js +88 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +9 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.js +16 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.d.ts +23 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.js +25 -0
- package/dist/components/LockedPreview/LockedPreview.d.ts +19 -0
- package/dist/components/LockedPreview/LockedPreview.js +11 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.d.ts +26 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.js +27 -0
- package/dist/components/Menu/Menu.collection.d.ts +3 -0
- package/dist/components/Menu/Menu.collection.js +130 -0
- package/dist/components/Menu/Menu.context.d.ts +7 -0
- package/dist/components/Menu/Menu.context.js +16 -0
- package/dist/components/Menu/Menu.d.ts +89 -0
- package/dist/components/Menu/Menu.identity.d.ts +3 -0
- package/dist/components/Menu/Menu.identity.js +3 -0
- package/dist/components/Menu/Menu.inlineRoom.d.ts +15 -0
- package/dist/components/Menu/Menu.inlineRoom.js +64 -0
- package/dist/components/Menu/Menu.js +235 -0
- package/dist/components/Menu/Menu.popoverTrigger.d.ts +10 -0
- package/dist/components/Menu/Menu.popoverTrigger.js +103 -0
- package/dist/components/Menu/Menu.stylex.d.ts +232 -0
- package/dist/components/Menu/Menu.stylex.js +265 -0
- package/dist/components/Menu/MenuItem.children.d.ts +5 -0
- package/dist/components/Menu/MenuItem.children.js +23 -0
- package/dist/components/Meter/Meter.d.ts +25 -0
- package/dist/components/Meter/Meter.js +34 -0
- package/dist/components/Meter/Meter.stylex.d.ts +49 -0
- package/dist/components/Meter/Meter.stylex.js +47 -0
- package/dist/components/Modal/Modal.d.ts +6 -0
- package/dist/components/Modal/Modal.js +14 -0
- package/dist/components/Modal/Modal.types.d.ts +40 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/Overlay.d.ts +11 -0
- package/dist/components/Modal/Overlay.js +63 -0
- package/dist/components/Modal/Overlay.stylex.d.ts +190 -0
- package/dist/components/Modal/Overlay.stylex.js +128 -0
- package/dist/components/Modal/OverlayBoundary.d.ts +5 -0
- package/dist/components/Modal/OverlayBoundary.js +17 -0
- package/dist/components/NavigationItem/NavigationItem.d.ts +64 -0
- package/dist/components/NavigationItem/NavigationItem.js +116 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.d.ts +15 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.js +20 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.d.ts +30 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.js +37 -0
- package/dist/components/NavigationRail/NavigationRail.context.d.ts +5 -0
- package/dist/components/NavigationRail/NavigationRail.context.js +9 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +12 -0
- package/dist/components/NavigationRail/NavigationRail.js +72 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.d.ts +57 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.js +58 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.d.ts +7 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.js +75 -0
- package/dist/components/NavigationTree/NavigationTree.d.ts +21 -0
- package/dist/components/NavigationTree/NavigationTree.js +273 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.d.ts +245 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.js +262 -0
- package/dist/components/NumberField/NumberField.d.ts +73 -0
- package/dist/components/NumberField/NumberField.js +112 -0
- package/dist/components/Option/Option.d.ts +18 -0
- package/dist/components/Option/Option.js +44 -0
- package/dist/components/Option/Option.stylex.d.ts +75 -0
- package/dist/components/Option/Option.stylex.js +74 -0
- package/dist/components/Page/NestedPageAuxiliary.d.ts +3 -0
- package/dist/components/Page/NestedPageAuxiliary.js +44 -0
- package/dist/components/Page/Page.d.ts +59 -0
- package/dist/components/Page/Page.js +265 -0
- package/dist/components/Page/Page.stylex.d.ts +333 -0
- package/dist/components/Page/Page.stylex.js +310 -0
- package/dist/components/Page/PageAuxiliary.context.d.ts +7 -0
- package/dist/components/Page/PageAuxiliary.context.js +2 -0
- package/dist/components/Page/PageAuxiliaryPanel.d.ts +32 -0
- package/dist/components/Page/PageAuxiliaryPanel.js +50 -0
- package/dist/components/Page/PageLabel.d.ts +26 -0
- package/dist/components/Page/PageLabel.js +56 -0
- package/dist/components/Page/PageScrollMotion.d.ts +24 -0
- package/dist/components/Page/PageScrollMotion.js +186 -0
- package/dist/components/Page/PageTitleRow.d.ts +21 -0
- package/dist/components/Page/PageTitleRow.js +50 -0
- package/dist/components/Page/PageTitleRow.stylex.d.ts +16 -0
- package/dist/components/Page/PageTitleRow.stylex.js +17 -0
- package/dist/components/Page/PageToolbar.context.d.ts +35 -0
- package/dist/components/Page/PageToolbar.context.js +43 -0
- package/dist/components/Page/PageToolbar.d.ts +13 -0
- package/dist/components/Page/PageToolbar.js +150 -0
- package/dist/components/Page/PageToolbar.motion.d.ts +5 -0
- package/dist/components/Page/PageToolbar.motion.js +27 -0
- package/dist/components/Page/PageToolbar.stylex.d.ts +41 -0
- package/dist/components/Page/PageToolbar.stylex.js +37 -0
- package/dist/components/Page/revealAuxiliary.d.ts +2 -0
- package/dist/components/Page/revealAuxiliary.js +56 -0
- package/dist/components/PageToolbar/PageToolbar.d.ts +7 -0
- package/dist/components/PageToolbar/PageToolbar.js +12 -0
- package/dist/components/Popover/OverflowPickerSearch.d.ts +7 -0
- package/dist/components/Popover/OverflowPickerSearch.js +10 -0
- package/dist/components/Popover/Popover.anchor.d.ts +12 -0
- package/dist/components/Popover/Popover.anchor.js +87 -0
- package/dist/components/Popover/Popover.context.d.ts +11 -0
- package/dist/components/Popover/Popover.context.js +11 -0
- package/dist/components/Popover/Popover.d.ts +69 -0
- package/dist/components/Popover/Popover.js +253 -0
- package/dist/components/Popover/Popover.pressTrigger.d.ts +12 -0
- package/dist/components/Popover/Popover.pressTrigger.js +54 -0
- package/dist/components/Popover/Popover.stylex.d.ts +98 -0
- package/dist/components/Popover/Popover.stylex.js +109 -0
- package/dist/components/Popover/Popover.viewport.d.ts +10 -0
- package/dist/components/Popover/Popover.viewport.js +61 -0
- package/dist/components/Popover/useHoverOpen.d.ts +24 -0
- package/dist/components/Popover/useHoverOpen.js +132 -0
- package/dist/components/Progress/Progress.d.ts +21 -0
- package/dist/components/Progress/Progress.js +20 -0
- package/dist/components/Progress/Progress.stylex.d.ts +90 -0
- package/dist/components/Progress/Progress.stylex.js +83 -0
- package/dist/components/RadioGroup/RadioGroup.children.d.ts +8 -0
- package/dist/components/RadioGroup/RadioGroup.children.js +64 -0
- package/dist/components/RadioGroup/RadioGroup.colors.d.ts +13 -0
- package/dist/components/RadioGroup/RadioGroup.colors.js +11 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +73 -0
- package/dist/components/RadioGroup/RadioGroup.js +85 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.d.ts +87 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.js +57 -0
- package/dist/components/ReflowContainer/ReflowContainer.d.ts +30 -0
- package/dist/components/ReflowContainer/ReflowContainer.js +106 -0
- package/dist/components/Region/Region.d.ts +50 -0
- package/dist/components/Region/Region.js +29 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.d.ts +34 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.js +49 -0
- package/dist/components/ResourceList/ResourceList.d.ts +7 -0
- package/dist/components/ResourceList/ResourceList.js +89 -0
- package/dist/components/ResourceList/ResourceList.model.d.ts +65 -0
- package/dist/components/ResourceList/ResourceList.model.js +372 -0
- package/dist/components/ResourceList/ResourceList.rows.d.ts +18 -0
- package/dist/components/ResourceList/ResourceList.rows.js +86 -0
- package/dist/components/ResourceList/ResourceList.stylex.d.ts +338 -0
- package/dist/components/ResourceList/ResourceList.stylex.js +272 -0
- package/dist/components/ResourceList/ResourceList.table.d.ts +22 -0
- package/dist/components/ResourceList/ResourceList.table.js +149 -0
- package/dist/components/ResourceList/ResourceList.types.d.ts +120 -0
- package/dist/components/ResourceList/ResourceList.types.js +18 -0
- package/dist/components/Reveal/Reveal.d.ts +36 -0
- package/dist/components/Reveal/Reveal.js +18 -0
- package/dist/components/Reveal/Reveal.stylex.d.ts +125 -0
- package/dist/components/Reveal/Reveal.stylex.js +155 -0
- package/dist/components/RotatingStatus/RotatingStatus.d.ts +17 -0
- package/dist/components/RotatingStatus/RotatingStatus.js +43 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.d.ts +27 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.js +28 -0
- package/dist/components/RouterProvider/RouterProvider.d.ts +22 -0
- package/dist/components/RouterProvider/RouterProvider.js +12 -0
- package/dist/components/RowButton/RowButton.d.ts +21 -0
- package/dist/components/RowButton/RowButton.js +16 -0
- package/dist/components/RowButton/RowButton.stylex.d.ts +71 -0
- package/dist/components/RowButton/RowButton.stylex.js +80 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.d.ts +20 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.js +229 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.d.ts +10 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.d.ts +16 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.js +114 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.js +30 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.d.ts +4 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.js +44 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.d.ts +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.js +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.d.ts +71 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.js +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +73 -0
- package/dist/components/ScrollArea/ScrollArea.js +176 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.d.ts +222 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.js +253 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.d.ts +8 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.js +13 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.d.ts +60 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.js +37 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.d.ts +23 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.js +14 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.d.ts +17 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.js +206 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.d.ts +166 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.js +194 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.d.ts +20 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.js +53 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.d.ts +16 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.js +137 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.d.ts +5 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.js +17 -0
- package/dist/components/ScrollArea/scrollbarGeometry.d.ts +6 -0
- package/dist/components/ScrollArea/scrollbarGeometry.js +7 -0
- package/dist/components/ScrollArea/useHasNoTabStops.d.ts +3 -0
- package/dist/components/ScrollArea/useHasNoTabStops.js +37 -0
- package/dist/components/ScrollArea/useHorizontalWheel.d.ts +3 -0
- package/dist/components/ScrollArea/useHorizontalWheel.js +40 -0
- package/dist/components/ScrollArea/useMarkerNavigation.d.ts +7 -0
- package/dist/components/ScrollArea/useMarkerNavigation.js +41 -0
- package/dist/components/ScrollArea/useMarkerRail.d.ts +16 -0
- package/dist/components/ScrollArea/useMarkerRail.js +37 -0
- package/dist/components/ScrollArea/useScrollArea.d.ts +22 -0
- package/dist/components/ScrollArea/useScrollArea.js +103 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.d.ts +38 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.js +154 -0
- package/dist/components/SearchField/SearchField.d.ts +29 -0
- package/dist/components/SearchField/SearchField.js +51 -0
- package/dist/components/SearchField/SearchField.stylex.d.ts +82 -0
- package/dist/components/SearchField/SearchField.stylex.js +60 -0
- package/dist/components/SecretField/SecretField.d.ts +66 -0
- package/dist/components/SecretField/SecretField.js +61 -0
- package/dist/components/Section/Section.d.ts +41 -0
- package/dist/components/Section/Section.data.d.ts +12 -0
- package/dist/components/Section/Section.data.js +16 -0
- package/dist/components/Section/Section.js +45 -0
- package/dist/components/Section/Section.stylex.d.ts +24 -0
- package/dist/components/Section/Section.stylex.js +26 -0
- package/dist/components/Select/Select.body.d.ts +14 -0
- package/dist/components/Select/Select.body.js +17 -0
- package/dist/components/Select/Select.collection.d.ts +7 -0
- package/dist/components/Select/Select.collection.js +67 -0
- package/dist/components/Select/Select.context.d.ts +1 -0
- package/dist/components/Select/Select.context.js +2 -0
- package/dist/components/Select/Select.d.ts +60 -0
- package/dist/components/Select/Select.js +118 -0
- package/dist/components/Select/Select.stylex.d.ts +131 -0
- package/dist/components/Select/Select.stylex.js +132 -0
- package/dist/components/Select/useSelectFormReset.d.ts +2 -0
- package/dist/components/Select/useSelectFormReset.js +25 -0
- package/dist/components/Separator/Separator.d.ts +26 -0
- package/dist/components/Separator/Separator.js +31 -0
- package/dist/components/Separator/Separator.stylex.d.ts +33 -0
- package/dist/components/Separator/Separator.stylex.js +34 -0
- package/dist/components/Sheet/Sheet.d.ts +24 -0
- package/dist/components/Sheet/Sheet.js +17 -0
- package/dist/components/Shortcuts/ShortcutIndicator.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutIndicator.js +10 -0
- package/dist/components/Shortcuts/Shortcuts.context.d.ts +9 -0
- package/dist/components/Shortcuts/Shortcuts.context.js +8 -0
- package/dist/components/Shortcuts/Shortcuts.d.ts +14 -0
- package/dist/components/Shortcuts/Shortcuts.js +50 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.d.ts +29 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.js +28 -0
- package/dist/components/Shortcuts/Shortcuts.types.d.ts +56 -0
- package/dist/components/Shortcuts/Shortcuts.types.js +1 -0
- package/dist/components/Shortcuts/ShortcutsHelp.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutsHelp.js +70 -0
- package/dist/components/Shortcuts/shortcutKeys.d.ts +6 -0
- package/dist/components/Shortcuts/shortcutKeys.js +61 -0
- package/dist/components/Shortcuts/shortcutRegistry.d.ts +36 -0
- package/dist/components/Shortcuts/shortcutRegistry.js +153 -0
- package/dist/components/Shortcuts/useShortcut.d.ts +12 -0
- package/dist/components/Shortcuts/useShortcut.js +127 -0
- package/dist/components/ShowMore/ShowMore.d.ts +18 -0
- package/dist/components/ShowMore/ShowMore.js +44 -0
- package/dist/components/ShowMore/ShowMore.lines.d.ts +23 -0
- package/dist/components/ShowMore/ShowMore.lines.js +49 -0
- package/dist/components/ShowMore/ShowMore.stylex.d.ts +24 -0
- package/dist/components/ShowMore/ShowMore.stylex.js +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -0
- package/dist/components/Skeleton/Skeleton.js +8 -0
- package/dist/components/Skeleton/Skeleton.stylex.d.ts +68 -0
- package/dist/components/Skeleton/Skeleton.stylex.js +78 -0
- package/dist/components/Skeleton/useSkeleton.d.ts +87 -0
- package/dist/components/Skeleton/useSkeleton.js +34 -0
- package/dist/components/Slider/Slider.d.ts +44 -0
- package/dist/components/Slider/Slider.js +56 -0
- package/dist/components/Slider/Slider.stylex.d.ts +105 -0
- package/dist/components/Slider/Slider.stylex.js +70 -0
- package/dist/components/Slot/Slot.d.ts +17 -0
- package/dist/components/Slot/Slot.js +83 -0
- package/dist/components/Slot/Slot.resolve.d.ts +3 -0
- package/dist/components/Slot/Slot.resolve.js +22 -0
- package/dist/components/Slot/Slot.scope.d.ts +7 -0
- package/dist/components/Slot/Slot.scope.js +19 -0
- package/dist/components/Slot/Slot.types.d.ts +64 -0
- package/dist/components/Slot/Slot.types.js +1 -0
- package/dist/components/Spacer/Spacer.d.ts +5 -0
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/Spacer/Spacer.stylex.d.ts +10 -0
- package/dist/components/Spacer/Spacer.stylex.js +10 -0
- package/dist/components/SplitLayout/SplitLayout.d.ts +43 -0
- package/dist/components/SplitLayout/SplitLayout.js +20 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.d.ts +51 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.js +77 -0
- package/dist/components/Stack/StackInsets.context.d.ts +14 -0
- package/dist/components/Stack/StackInsets.context.js +17 -0
- package/dist/components/Stack/StackPadding.stylex.d.ts +113 -0
- package/dist/components/Stack/StackPadding.stylex.js +154 -0
- package/dist/components/Stack/StackPropTypes.d.ts +30 -0
- package/dist/components/Stack/StackPropTypes.js +14 -0
- package/dist/components/StatCard/StatCard.d.ts +32 -0
- package/dist/components/StatCard/StatCard.js +15 -0
- package/dist/components/StatCard/StatCard.stylex.d.ts +101 -0
- package/dist/components/StatCard/StatCard.stylex.js +127 -0
- package/dist/components/StatCard/StatCard.vars.stylex.d.ts +22 -0
- package/dist/components/StatCard/StatCard.vars.stylex.js +26 -0
- package/dist/components/StepList/StepList.d.ts +52 -0
- package/dist/components/StepList/StepList.js +36 -0
- package/dist/components/StepList/StepList.stylex.d.ts +139 -0
- package/dist/components/StepList/StepList.stylex.js +134 -0
- package/dist/components/Stepper/Stepper.d.ts +49 -0
- package/dist/components/Stepper/Stepper.js +59 -0
- package/dist/components/Stepper/Stepper.stylex.d.ts +131 -0
- package/dist/components/Stepper/Stepper.stylex.js +147 -0
- package/dist/components/Stepper/useStepNamesFit.d.ts +12 -0
- package/dist/components/Stepper/useStepNamesFit.js +65 -0
- package/dist/components/Surface/Surface.colors.d.ts +4 -0
- package/dist/components/Surface/Surface.colors.js +34 -0
- package/dist/components/Surface/Surface.d.ts +41 -0
- package/dist/components/Surface/Surface.js +36 -0
- package/dist/components/Surface/Surface.stylex.d.ts +139 -0
- package/dist/components/Surface/Surface.stylex.js +121 -0
- package/dist/components/Switch/Switch.d.ts +50 -0
- package/dist/components/Switch/Switch.js +28 -0
- package/dist/components/TOC/TOC.activeEntry.d.ts +14 -0
- package/dist/components/TOC/TOC.activeEntry.js +89 -0
- package/dist/components/TOC/TOC.context.d.ts +33 -0
- package/dist/components/TOC/TOC.context.js +55 -0
- package/dist/components/TOC/TOC.d.ts +8 -0
- package/dist/components/TOC/TOC.js +49 -0
- package/dist/components/TOC/TOC.stylex.d.ts +60 -0
- package/dist/components/TOC/TOC.stylex.js +59 -0
- package/dist/components/Table/Table.d.ts +6 -0
- package/dist/components/Table/Table.data.d.ts +24 -0
- package/dist/components/Table/Table.data.js +224 -0
- package/dist/components/Table/Table.js +317 -0
- package/dist/components/Table/Table.layout.d.ts +33 -0
- package/dist/components/Table/Table.layout.js +246 -0
- package/dist/components/Table/Table.parts.d.ts +13 -0
- package/dist/components/Table/Table.parts.js +17 -0
- package/dist/components/Table/Table.stylex.d.ts +504 -0
- package/dist/components/Table/Table.stylex.js +468 -0
- package/dist/components/Table/Table.types.d.ts +114 -0
- package/dist/components/Table/Table.types.js +11 -0
- package/dist/components/Table/TableRowLink.d.ts +16 -0
- package/dist/components/Table/TableRowLink.js +39 -0
- package/dist/components/Tabs/NewTabAction.d.ts +7 -0
- package/dist/components/Tabs/NewTabAction.js +25 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/Tab.js +10 -0
- package/dist/components/Tabs/TabActionButton.d.ts +14 -0
- package/dist/components/Tabs/TabActionButton.js +60 -0
- package/dist/components/Tabs/TabActions.d.ts +12 -0
- package/dist/components/Tabs/TabActions.js +119 -0
- package/dist/components/Tabs/TabOutlet.d.ts +9 -0
- package/dist/components/Tabs/TabOutlet.js +15 -0
- package/dist/components/Tabs/TabPanelTransition.d.ts +18 -0
- package/dist/components/Tabs/TabPanelTransition.js +20 -0
- package/dist/components/Tabs/Tabs.children.d.ts +16 -0
- package/dist/components/Tabs/Tabs.children.js +97 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.js +270 -0
- package/dist/components/Tabs/Tabs.state.d.ts +19 -0
- package/dist/components/Tabs/Tabs.state.js +13 -0
- package/dist/components/Tabs/Tabs.stylex.d.ts +476 -0
- package/dist/components/Tabs/Tabs.stylex.js +376 -0
- package/dist/components/Tabs/Tabs.types.d.ts +99 -0
- package/dist/components/Tabs/Tabs.types.js +6 -0
- package/dist/components/Tabs/TabsPicker.d.ts +8 -0
- package/dist/components/Tabs/TabsPicker.js +21 -0
- package/dist/components/Tabs/useTabOverflow.d.ts +9 -0
- package/dist/components/Tabs/useTabOverflow.js +55 -0
- package/dist/components/Tabs/useTabReorder.d.ts +22 -0
- package/dist/components/Tabs/useTabReorder.js +133 -0
- package/dist/components/Tabs/useTabScrollRestoration.d.ts +4 -0
- package/dist/components/Tabs/useTabScrollRestoration.js +100 -0
- package/dist/components/Tabs/useTabs.d.ts +10 -0
- package/dist/components/Tabs/useTabs.js +43 -0
- package/dist/components/Tabs/useTabsPickerMotion.d.ts +6 -0
- package/dist/components/Tabs/useTabsPickerMotion.js +64 -0
- package/dist/components/TagGroup/CollapsedTagGroup.d.ts +13 -0
- package/dist/components/TagGroup/CollapsedTagGroup.js +205 -0
- package/dist/components/TagGroup/Tag.d.ts +22 -0
- package/dist/components/TagGroup/Tag.js +5 -0
- package/dist/components/TagGroup/TagCollection.d.ts +15 -0
- package/dist/components/TagGroup/TagCollection.js +30 -0
- package/dist/components/TagGroup/TagContents.d.ts +8 -0
- package/dist/components/TagGroup/TagContents.js +109 -0
- package/dist/components/TagGroup/TagGroup.children.d.ts +11 -0
- package/dist/components/TagGroup/TagGroup.children.js +59 -0
- package/dist/components/TagGroup/TagGroup.d.ts +29 -0
- package/dist/components/TagGroup/TagGroup.js +20 -0
- package/dist/components/TagGroup/TagGroup.stylex.d.ts +226 -0
- package/dist/components/TagGroup/TagGroup.stylex.js +162 -0
- package/dist/components/TagGroup/tagGroupLayout.d.ts +5 -0
- package/dist/components/TagGroup/tagGroupLayout.js +20 -0
- package/dist/components/Text/Text.d.ts +81 -0
- package/dist/components/Text/Text.js +124 -0
- package/dist/components/Text/Text.stylex.d.ts +239 -0
- package/dist/components/Text/Text.stylex.js +231 -0
- package/dist/components/Text/Text.truncation.d.ts +44 -0
- package/dist/components/Text/Text.truncation.js +365 -0
- package/dist/components/Text/Text.truncation.stylex.d.ts +42 -0
- package/dist/components/Text/Text.truncation.stylex.js +53 -0
- package/dist/components/TextArea/TextArea.d.ts +63 -0
- package/dist/components/TextArea/TextArea.js +43 -0
- package/dist/components/TextField/TextField.d.ts +67 -0
- package/dist/components/TextField/TextField.js +46 -0
- package/dist/components/TileButton/TileButton.d.ts +37 -0
- package/dist/components/TileButton/TileButton.js +23 -0
- package/dist/components/TileButton/TileButton.stylex.d.ts +68 -0
- package/dist/components/TileButton/TileButton.stylex.js +74 -0
- package/dist/components/TileButton/TileButton.vars.stylex.d.ts +10 -0
- package/dist/components/TileButton/TileButton.vars.stylex.js +13 -0
- package/dist/components/Time/Time.d.ts +25 -0
- package/dist/components/Time/Time.format.d.ts +22 -0
- package/dist/components/Time/Time.format.js +55 -0
- package/dist/components/Time/Time.js +31 -0
- package/dist/components/Time/Time.stylex.d.ts +14 -0
- package/dist/components/Time/Time.stylex.js +15 -0
- package/dist/components/TimeField/TimeField.d.ts +52 -0
- package/dist/components/TimeField/TimeField.js +53 -0
- package/dist/components/TimelineLanes/TimelineLanes.d.ts +71 -0
- package/dist/components/TimelineLanes/TimelineLanes.js +83 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.d.ts +14 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.js +35 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.d.ts +280 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.js +329 -0
- package/dist/components/Toast/Toast.context.d.ts +3 -0
- package/dist/components/Toast/Toast.context.js +8 -0
- package/dist/components/Toast/Toast.d.ts +5 -0
- package/dist/components/Toast/Toast.js +63 -0
- package/dist/components/Toast/Toast.stylex.d.ts +173 -0
- package/dist/components/Toast/Toast.stylex.js +137 -0
- package/dist/components/Toast/Toast.types.d.ts +31 -0
- package/dist/components/Toast/Toast.types.js +9 -0
- package/dist/components/Toast/ToastCountdown.d.ts +7 -0
- package/dist/components/Toast/ToastCountdown.js +48 -0
- package/dist/components/Toast/ToastView.d.ts +6 -0
- package/dist/components/Toast/ToastView.js +39 -0
- package/dist/components/Toast/createToastEntry.d.ts +9 -0
- package/dist/components/Toast/createToastEntry.js +33 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +45 -0
- package/dist/components/ToggleButton/ToggleButton.js +97 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.d.ts +118 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.js +109 -0
- package/dist/components/Toolbar/Toolbar.children.d.ts +19 -0
- package/dist/components/Toolbar/Toolbar.children.js +83 -0
- package/dist/components/Toolbar/Toolbar.d.ts +37 -0
- package/dist/components/Toolbar/Toolbar.js +180 -0
- package/dist/components/Toolbar/Toolbar.layout.d.ts +20 -0
- package/dist/components/Toolbar/Toolbar.layout.js +104 -0
- package/dist/components/Toolbar/Toolbar.menu.d.ts +27 -0
- package/dist/components/Toolbar/Toolbar.menu.js +213 -0
- package/dist/components/Toolbar/Toolbar.stylex.d.ts +69 -0
- package/dist/components/Toolbar/Toolbar.stylex.js +48 -0
- package/dist/components/Toolbar/ToolbarControl.context.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarControl.context.js +9 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.d.ts +42 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.js +50 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.d.ts +3 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.js +22 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.js +20 -0
- package/dist/components/Toolbar/ToolbarNote.d.ts +13 -0
- package/dist/components/Toolbar/ToolbarNote.js +8 -0
- package/dist/components/Tooltip/Tooltip.d.ts +43 -0
- package/dist/components/Tooltip/Tooltip.js +139 -0
- package/dist/components/Tooltip/Tooltip.stylex.d.ts +106 -0
- package/dist/components/Tooltip/Tooltip.stylex.js +105 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.js +12 -0
- package/dist/components/TourLayer/TourLayer.d.ts +14 -0
- package/dist/components/TourLayer/TourLayer.js +17 -0
- package/dist/components/TourLayer/TourLayer.stylex.d.ts +10 -0
- package/dist/components/TourLayer/TourLayer.stylex.js +11 -0
- package/dist/components/Tree/Tree.d.ts +21 -0
- package/dist/components/Tree/Tree.js +88 -0
- package/dist/components/Tree/Tree.stylex.d.ts +101 -0
- package/dist/components/Tree/Tree.stylex.js +103 -0
- package/dist/components/Trigger/Trigger.d.ts +10 -0
- package/dist/components/Trigger/Trigger.js +23 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.d.ts +44 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.js +136 -0
- package/dist/components/VStack/VStack.d.ts +26 -0
- package/dist/components/VStack/VStack.js +11 -0
- package/dist/components/VStack/VStack.stylex.d.ts +174 -0
- package/dist/components/VStack/VStack.stylex.js +124 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +13 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.d.ts +28 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.js +45 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.d.ts +88 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.js +106 -0
- package/dist/components/WindowSplitter/WindowSplitter.d.ts +43 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.d.ts +6 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.js +7 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.d.ts +70 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.js +88 -0
- package/dist/components/WindowSplitter/WindowSplitter.js +613 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.d.ts +33 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.js +90 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.d.ts +11 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.js +50 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.d.ts +180 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.js +163 -0
- package/dist/components/ZStack/ZStack.d.ts +41 -0
- package/dist/components/ZStack/ZStack.js +43 -0
- package/dist/components/ZStack/ZStack.stylex.d.ts +78 -0
- package/dist/components/ZStack/ZStack.stylex.js +42 -0
- package/dist/experimental/index.d.ts +48 -0
- package/dist/experimental/index.js +45 -0
- package/dist/files/index.d.ts +22 -0
- package/dist/files/index.js +19 -0
- package/dist/foundations/Color.context.d.ts +29 -0
- package/dist/foundations/Color.context.js +58 -0
- package/dist/foundations/Color.core.d.ts +70 -0
- package/dist/foundations/Color.core.js +323 -0
- package/dist/foundations/Color.d.ts +1 -0
- package/dist/foundations/Color.js +1 -0
- package/dist/foundations/Color.styles.stylex.d.ts +21 -0
- package/dist/foundations/Color.styles.stylex.js +34 -0
- package/dist/foundations/constants.stylex.d.ts +18 -0
- package/dist/foundations/constants.stylex.js +20 -0
- package/dist/foundations/textStyles.stylex.d.ts +87 -0
- package/dist/foundations/textStyles.stylex.js +88 -0
- package/dist/foundations/viewport.d.ts +5 -0
- package/dist/foundations/viewport.js +17 -0
- package/dist/index.d.ts +171 -0
- package/dist/index.js +189 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +1 -0
- package/dist/theming/OverlayRegion.d.ts +15 -0
- package/dist/theming/OverlayRegion.js +36 -0
- package/dist/theming/ThemeRegion.d.ts +22 -0
- package/dist/theming/ThemeRegion.js +28 -0
- package/dist/theming/ThemeScope.context.d.ts +40 -0
- package/dist/theming/ThemeScope.context.js +76 -0
- package/dist/theming/ThemeScope.d.ts +35 -0
- package/dist/theming/ThemeScope.js +67 -0
- package/dist/theming/ThemeScope.stylex.d.ts +34 -0
- package/dist/theming/ThemeScope.stylex.js +54 -0
- package/dist/theming/color.d.ts +51 -0
- package/dist/theming/color.js +175 -0
- package/dist/theming/createTheme.d.ts +145 -0
- package/dist/theming/createTheme.js +1009 -0
- package/dist/theming/designTokens.d.ts +49 -0
- package/dist/theming/designTokens.js +138 -0
- package/dist/theming/effectiveTheme.d.ts +154 -0
- package/dist/theming/effectiveTheme.js +62 -0
- package/dist/theming/themeStylesheet.d.ts +20 -0
- package/dist/theming/themeStylesheet.js +106 -0
- package/dist/theming/tokens.d.ts +48 -0
- package/dist/theming/tokens.js +314 -0
- package/dist/theming/tokens.stylex.d.ts +592 -0
- package/dist/theming/tokens.stylex.js +1265 -0
- package/dist/utils/declarationError.d.ts +7 -0
- package/dist/utils/declarationError.js +16 -0
- package/dist/utils/deviceCache.d.ts +40 -0
- package/dist/utils/deviceCache.js +234 -0
- package/dist/utils/isSoftwareKeyboardLikely.d.ts +2 -0
- package/dist/utils/isSoftwareKeyboardLikely.js +12 -0
- package/dist/utils/performance.d.ts +3 -0
- package/dist/utils/performance.js +5 -0
- package/dist/utils/preferences.d.ts +35 -0
- package/dist/utils/preferences.js +77 -0
- package/dist/utils/preload.d.ts +10 -0
- package/dist/utils/preload.js +12 -0
- package/dist/utils/props.d.ts +5 -0
- package/dist/utils/props.js +10 -0
- package/dist/utils/resolveAutoFocus.d.ts +3 -0
- package/dist/utils/resolveAutoFocus.js +8 -0
- package/dist/utils/trackRegionActivity.d.ts +13 -0
- package/dist/utils/trackRegionActivity.js +72 -0
- package/dist/utils/useAutoFocus.d.ts +6 -0
- package/dist/utils/useAutoFocus.js +16 -0
- package/dist/utils/visuallyHidden.stylex.d.ts +15 -0
- package/dist/utils/visuallyHidden.stylex.js +15 -0
- package/dist/vite/index.d.ts +21 -0
- package/dist/vite/index.js +104 -0
- package/dist/vite/lucideIcons.d.ts +11 -0
- package/dist/vite/lucideIcons.js +53 -0
- package/package.json +159 -3
|
@@ -0,0 +1,1001 @@
|
|
|
1
|
+
import { Color } from "../../foundations/Color.js";
|
|
2
|
+
import { chartToneColor, colorSlot, coloredSeries, isLogAxis, markSeries, markValues, seriesSlot, toneShades, } from "./Chart.data.js";
|
|
3
|
+
import { axisCategories, chartSummary, markDescription, markText, markTip, } from "./Chart.describe.js";
|
|
4
|
+
import { chartTime, formatChartTick, formatChartValue } from "./Chart.format.js";
|
|
5
|
+
import { RULE_LABEL_INSET, RULE_LABEL_ROW, separateRuleLabels } from "./Chart.rules.js";
|
|
6
|
+
import { tokenVars } from "../../theming/tokens.stylex.js";
|
|
7
|
+
// #region Palette
|
|
8
|
+
/**
|
|
9
|
+
* Categorical colors in fixed order, validated for lightness, chroma, color-vision separation
|
|
10
|
+
* and 3:1 contrast against the light and dark surfaces. They resolve like any tone, so orange
|
|
11
|
+
* and teal take the same deepening there that keeps them in contrast.
|
|
12
|
+
*/
|
|
13
|
+
export const CHART_PALETTE = [
|
|
14
|
+
Color.blue,
|
|
15
|
+
Color.orange,
|
|
16
|
+
Color.purple,
|
|
17
|
+
Color.teal,
|
|
18
|
+
Color.pink,
|
|
19
|
+
Color.indigo,
|
|
20
|
+
].map(chartToneColor);
|
|
21
|
+
/** Second encodings, so series never differ by color alone. */
|
|
22
|
+
// Dashes before dots: a dotted line reads faint, so it comes late.
|
|
23
|
+
const DASH_STYLES = [
|
|
24
|
+
'Solid',
|
|
25
|
+
'ShortDash',
|
|
26
|
+
'LongDash',
|
|
27
|
+
'DashDot',
|
|
28
|
+
'ShortDot',
|
|
29
|
+
'ShortDashDot',
|
|
30
|
+
// A seventh, for the neutral series that holds the rest.
|
|
31
|
+
'LongDashDot',
|
|
32
|
+
];
|
|
33
|
+
const SYMBOLS = [
|
|
34
|
+
'circle',
|
|
35
|
+
'square',
|
|
36
|
+
'diamond',
|
|
37
|
+
'triangle',
|
|
38
|
+
'triangle-down',
|
|
39
|
+
'circle',
|
|
40
|
+
'square',
|
|
41
|
+
];
|
|
42
|
+
export function seriesStyle(spec, name) {
|
|
43
|
+
const slot = seriesSlot(spec, name);
|
|
44
|
+
// A series tone wins; then the chart's tone, as one color or a ramp of its hue across several
|
|
45
|
+
// series; then the palette. Colors skip a neutral series, and the slot still sets the line
|
|
46
|
+
// style and dot shape, so every series stays distinct.
|
|
47
|
+
const colorIndex = colorSlot(spec, name);
|
|
48
|
+
const color = spec.series?.tones?.[name] ??
|
|
49
|
+
(spec.tone === undefined
|
|
50
|
+
? undefined
|
|
51
|
+
: toneShades(spec.tone, coloredSeries(spec).length)[colorIndex]) ??
|
|
52
|
+
CHART_PALETTE[colorIndex] ??
|
|
53
|
+
CHART_PALETTE[0];
|
|
54
|
+
return {
|
|
55
|
+
color,
|
|
56
|
+
dashStyle: DASH_STYLES[slot] ?? 'Solid',
|
|
57
|
+
symbol: spec.series?.shapes === 'circles' ? 'circle' : (SYMBOLS[slot] ?? 'circle'),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/** Faded but opaque, so overlapping context marks stay crisp instead of stacking tints. */
|
|
61
|
+
const muted = (color) => `color-mix(in oklab, ${color} 30%, ${tokenVars.canvas})`;
|
|
62
|
+
const BUBBLE = { minSize: 8, maxSize: 40 };
|
|
63
|
+
const DOT_RADIUS = 5;
|
|
64
|
+
/** Highcharts' own bubble radius for `sizeBy: 'area'` from a zero minimum, so labels clear it. */
|
|
65
|
+
function bubbleRadius(size, largest) {
|
|
66
|
+
const position = largest > 0 ? Math.sqrt(Math.max(0, size) / largest) : 0.5;
|
|
67
|
+
return Math.ceil(BUBBLE.minSize + position * (BUBBLE.maxSize - BUBBLE.minSize)) / 2;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* What a number axis's data spans, printed in the axis's format, such as "Data ranges from $1K
|
|
71
|
+
* to $8.2M." Highcharts would read the raw numbers. A 100% stacked axis spans 0% to 100%.
|
|
72
|
+
*/
|
|
73
|
+
function numberRange(spec, axis, isShare) {
|
|
74
|
+
const values = isShare
|
|
75
|
+
? [0, 100]
|
|
76
|
+
: spec.marks.flatMap((mark) => markValues(mark, axis).filter((value) => typeof value === 'number'));
|
|
77
|
+
if (values.length === 0)
|
|
78
|
+
return undefined;
|
|
79
|
+
const format = isShare ? 'percent' : spec[axis].format;
|
|
80
|
+
const [from, to] = [Math.min(...values), Math.max(...values)].map((value) => formatChartValue(value, format, 'full'));
|
|
81
|
+
return `Data ranges from ${from} to ${to}.`;
|
|
82
|
+
}
|
|
83
|
+
/** A minimal chart's rules: present, but quieter than its marks. */
|
|
84
|
+
const RULE_FAINT = tokenVars.borderStrong;
|
|
85
|
+
/**
|
|
86
|
+
* A small chip behind rule labels, so they stay legible where they cross bars, lines and
|
|
87
|
+
* gridlines.
|
|
88
|
+
*/
|
|
89
|
+
function ruleChip(label) {
|
|
90
|
+
return (
|
|
91
|
+
// Inline-block, so its padding and border count in the height of Highcharts' label box,
|
|
92
|
+
// which hides overflow and would otherwise cut off the chip's bottom edge.
|
|
93
|
+
`<span style="display:inline-block;background:${tokenVars.canvas};border:1px solid ` +
|
|
94
|
+
`${tokenVars.borderHairline};border-radius:4px;padding:1px 5px;` +
|
|
95
|
+
`color:${tokenVars.textSecondary};font-size:11px;white-space:nowrap">` +
|
|
96
|
+
// Braces escaped too: span rules pass the chip as a Highcharts format string.
|
|
97
|
+
`${escapeFormat(label)}</span>`);
|
|
98
|
+
}
|
|
99
|
+
// #endregion
|
|
100
|
+
/** Room above the plot for the corner info button, so it never covers marks or labels. */
|
|
101
|
+
const CORNER_STRIP = 32;
|
|
102
|
+
/** A row above the plot for vertical rules' labels, when two or more may not fit side by side. */
|
|
103
|
+
function ruleLabelRow(spec) {
|
|
104
|
+
const vertical = spec.rules.filter((rule) => rule.x !== undefined && (rule.from === undefined || rule.to === undefined));
|
|
105
|
+
return vertical.length >= 2 ? RULE_LABEL_ROW : 0;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* How far a hovered mark reaches past its point: Highcharts' default halo. A minimal chart keeps
|
|
109
|
+
* this much room on every side, so a point at an edge is not cut off.
|
|
110
|
+
*/
|
|
111
|
+
const MINIMAL_HOVER_REACH = 10;
|
|
112
|
+
export const CHART_HEIGHTS = { small: 160, medium: 260, large: 360 };
|
|
113
|
+
/** The Highcharts modules a spec needs beyond the core and accessibility. */
|
|
114
|
+
export function chartModules(spec) {
|
|
115
|
+
const more = spec.marks.some((mark) => (mark.kind === 'point' && mark.size !== undefined) ||
|
|
116
|
+
((mark.kind === 'bar' || mark.kind === 'area') &&
|
|
117
|
+
(rangeEnds(mark, 'x') !== undefined || rangeEnds(mark, 'y') !== undefined)));
|
|
118
|
+
const heatmap = spec.marks.some((mark) => mark.kind === 'cell');
|
|
119
|
+
return [
|
|
120
|
+
...(more ? ['highcharts-more'] : []),
|
|
121
|
+
...(heatmap ? ['heatmap'] : []),
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Where x values sit along the x axis, for scrolling and selecting along it: each mark's position,
|
|
126
|
+
* in order, with the value it came from, and half the closest spacing, so a span can reach the
|
|
127
|
+
* outer edges of its end marks, such as the full width of a column.
|
|
128
|
+
*/
|
|
129
|
+
export function xPositions(spec, layout) {
|
|
130
|
+
const categories = axisCategories(spec, 'x');
|
|
131
|
+
const toPosition = (value) => layout.scales.x === 'category'
|
|
132
|
+
? categories.indexOf(String(value))
|
|
133
|
+
: layout.scales.x === 'datetime'
|
|
134
|
+
? chartTime(value)
|
|
135
|
+
: Number(value);
|
|
136
|
+
const byPosition = new Map();
|
|
137
|
+
for (const mark of spec.marks)
|
|
138
|
+
for (const value of markValues(mark, 'x'))
|
|
139
|
+
byPosition.set(toPosition(value), value);
|
|
140
|
+
const positions = [...byPosition.keys()].sort((a, b) => a - b);
|
|
141
|
+
const gaps = positions.slice(1).map((position, index) => position - positions[index]);
|
|
142
|
+
const halfStep = layout.scales.x === 'category' ? 0.5 : gaps.length > 0 ? Math.min(...gaps) / 2 : 0;
|
|
143
|
+
return {
|
|
144
|
+
toPosition,
|
|
145
|
+
positions,
|
|
146
|
+
valueAt: (position) => byPosition.get(position),
|
|
147
|
+
halfStep,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The span a scrolled plot shows: as many marks as `span` holds, starting from the first mark
|
|
152
|
+
* whose center is right of `left`, and kept within the marks. Scrolling moves the span, never
|
|
153
|
+
* resizes it, so a plot scrolled part way through a mark does not report one more.
|
|
154
|
+
*/
|
|
155
|
+
export function xRangeScrolledTo(spec, layout, left, span) {
|
|
156
|
+
const { positions, toPosition, valueAt } = xPositions(spec, layout);
|
|
157
|
+
const from = toPosition(span.from);
|
|
158
|
+
const to = toPosition(span.to);
|
|
159
|
+
const count = positions.filter((position) => position >= from && position <= to).length;
|
|
160
|
+
if (count === 0 || positions.length === 0)
|
|
161
|
+
return null;
|
|
162
|
+
const first = positions.findIndex((position) => position >= left);
|
|
163
|
+
const start = Math.max(0, Math.min(first === -1 ? positions.length : first, positions.length - count));
|
|
164
|
+
return { from: valueAt(positions[start]), to: valueAt(positions[start + count - 1]) };
|
|
165
|
+
}
|
|
166
|
+
/** The marks' span within `from` to `to` along x, or null when no mark falls inside. */
|
|
167
|
+
export function xRangeWithin(spec, layout, from, to) {
|
|
168
|
+
const { positions, valueAt } = xPositions(spec, layout);
|
|
169
|
+
const inside = positions.filter((position) => position >= from && position <= to);
|
|
170
|
+
if (inside.length === 0)
|
|
171
|
+
return null;
|
|
172
|
+
return { from: valueAt(inside[0]), to: valueAt(inside[inside.length - 1]) };
|
|
173
|
+
}
|
|
174
|
+
/** Translate a validated spec into Highcharts options. Pure; the caller owns the instance. */
|
|
175
|
+
export function chartOptions(spec, layout, dotted, settings, handlers) {
|
|
176
|
+
if (spec.marks.some((mark) => mark.kind === 'sector'))
|
|
177
|
+
return donutOptions(spec, layout, settings, handlers);
|
|
178
|
+
const { isMinimal } = settings;
|
|
179
|
+
const { scales } = layout;
|
|
180
|
+
// Highcharts draws its x axis across unless inverted; categories down the side invert it.
|
|
181
|
+
// A heatmap's categories run both ways, so it never inverts.
|
|
182
|
+
const hasCells = spec.marks.some((mark) => mark.kind === 'cell');
|
|
183
|
+
const inverted = scales.y === 'category' && !hasCells;
|
|
184
|
+
const hcX = inverted ? 'y' : 'x';
|
|
185
|
+
const hcY = inverted ? 'x' : 'y';
|
|
186
|
+
const categories = { x: axisCategories(spec, 'x'), y: axisCategories(spec, 'y') };
|
|
187
|
+
const coordinate = (axis, value) => scales[axis] === 'category'
|
|
188
|
+
? categories[axis].indexOf(String(value))
|
|
189
|
+
: scales[axis] === 'datetime'
|
|
190
|
+
? chartTime(value)
|
|
191
|
+
: Number(value);
|
|
192
|
+
const arrangement = spec.series?.arrangement ?? 'grouped';
|
|
193
|
+
const stacking = arrangement === 'stacked' ? 'normal' : arrangement === 'normalized' ? 'percent' : undefined;
|
|
194
|
+
const cellValues = spec.marks.flatMap((mark) => (mark.kind === 'cell' ? [mark.value] : []));
|
|
195
|
+
const cellRange = { low: Math.min(...cellValues), high: Math.max(...cellValues) };
|
|
196
|
+
// Grouping reserves a slot per series at every x; when no two bars share an x, such as
|
|
197
|
+
// weekday and weekend bars, each bar takes the full width instead.
|
|
198
|
+
const bars = spec.marks.filter((mark) => mark.kind === 'bar');
|
|
199
|
+
const barPositions = bars.map((mark) => JSON.stringify(mark[hcX] ?? null));
|
|
200
|
+
const sharesPosition = new Set(barPositions).size < barPositions.length;
|
|
201
|
+
const sized = spec.marks.some((mark) => mark.kind === 'point' && mark.size !== undefined);
|
|
202
|
+
const largestSize = Math.max(0, ...spec.marks.map((mark) => (mark.kind === 'point' ? (mark.size ?? 0) : 0)));
|
|
203
|
+
const groups = new Map();
|
|
204
|
+
for (const mark of spec.marks) {
|
|
205
|
+
const name = markSeries(spec, mark);
|
|
206
|
+
const id = `${mark.kind}:${name}`;
|
|
207
|
+
const group = groups.get(id) ?? { kind: mark.kind, name, marks: [] };
|
|
208
|
+
group.marks.push(mark);
|
|
209
|
+
groups.set(id, group);
|
|
210
|
+
}
|
|
211
|
+
const series = [...groups.values()].map(({ kind, name, marks }) => {
|
|
212
|
+
const { color, dashStyle, symbol } = seriesStyle(spec, name);
|
|
213
|
+
// Muted context first and the selected mark last, so emphasis draws on top. Only marks
|
|
214
|
+
// drawn on their own reorder: a line or area joins its vertices in order, so sorting them
|
|
215
|
+
// would make it double back.
|
|
216
|
+
const depth = (mark) => (mark.isMuted ? 0 : mark.isSelected ? 2 : 1);
|
|
217
|
+
const isJoined = kind === 'line' || kind === 'area';
|
|
218
|
+
const ordered = isJoined ? marks : [...marks].sort((a, b) => depth(a) - depth(b));
|
|
219
|
+
const data = ordered.map((mark) => pointOptions(mark, color));
|
|
220
|
+
const isRange = data.some((point) => 'low' in point);
|
|
221
|
+
const step = ordered.some((mark) => 'interpolation' in mark && mark.interpolation === 'step')
|
|
222
|
+
? { step: 'left' }
|
|
223
|
+
: {};
|
|
224
|
+
// Highcharts' splines curve through each vertex and can overshoot between them.
|
|
225
|
+
const isSpline = ordered.some((mark) => 'interpolation' in mark && mark.interpolation === 'spline');
|
|
226
|
+
switch (kind) {
|
|
227
|
+
case 'bar':
|
|
228
|
+
return isRange
|
|
229
|
+
? {
|
|
230
|
+
type: 'columnrange',
|
|
231
|
+
name,
|
|
232
|
+
color,
|
|
233
|
+
data,
|
|
234
|
+
}
|
|
235
|
+
: { type: 'column', name, color, data };
|
|
236
|
+
case 'line': {
|
|
237
|
+
const line = {
|
|
238
|
+
name,
|
|
239
|
+
color,
|
|
240
|
+
data,
|
|
241
|
+
dashStyle,
|
|
242
|
+
...step,
|
|
243
|
+
marker: {
|
|
244
|
+
enabled: !isMinimal && ordered.some((mark) => dotted.has(mark)),
|
|
245
|
+
symbol,
|
|
246
|
+
},
|
|
247
|
+
};
|
|
248
|
+
return isSpline
|
|
249
|
+
? { type: 'spline', ...line }
|
|
250
|
+
: { type: 'line', ...line };
|
|
251
|
+
}
|
|
252
|
+
case 'area': {
|
|
253
|
+
// Areas differ by position and fill, so their edges stay solid unless `dashed` marks a
|
|
254
|
+
// threshold: a thin dashed line over a faint fill, as context behind the marks read
|
|
255
|
+
// against it, and under a plain area the fill reaches the axis minimum, the whole
|
|
256
|
+
// region under the line. A band is lighter, so a line drawn through it stays in front.
|
|
257
|
+
// Without an edge the fill alone carries the shape, so a plain area's fill is a little
|
|
258
|
+
// stronger.
|
|
259
|
+
const hasEdge = !ordered.some((mark) => mark.kind === 'area' && mark.edge === 'none');
|
|
260
|
+
const isDashed = ordered.some((mark) => mark.kind === 'area' && mark.edge === 'dashed');
|
|
261
|
+
const dashed = isDashed ? { dashStyle: 'Dash', lineWidth: 1 } : {};
|
|
262
|
+
if (isRange) {
|
|
263
|
+
const band = {
|
|
264
|
+
name,
|
|
265
|
+
color,
|
|
266
|
+
data,
|
|
267
|
+
...step,
|
|
268
|
+
lineWidth: hasEdge ? 1 : 0,
|
|
269
|
+
...dashed,
|
|
270
|
+
fillColor: `color-mix(in oklab, ${color} ${isDashed ? 8 : 16}%, transparent)`,
|
|
271
|
+
marker: { enabled: false },
|
|
272
|
+
};
|
|
273
|
+
return isSpline
|
|
274
|
+
? {
|
|
275
|
+
type: 'areasplinerange',
|
|
276
|
+
...band,
|
|
277
|
+
}
|
|
278
|
+
: { type: 'arearange', ...band };
|
|
279
|
+
}
|
|
280
|
+
const area = {
|
|
281
|
+
name,
|
|
282
|
+
color,
|
|
283
|
+
data,
|
|
284
|
+
...step,
|
|
285
|
+
fillColor: `color-mix(in oklab, ${color} ${isDashed ? 8 : hasEdge ? 22 : 30}%, transparent)`,
|
|
286
|
+
...(hasEdge ? {} : { lineWidth: 0 }),
|
|
287
|
+
...(isDashed ? { ...dashed, threshold: null } : {}),
|
|
288
|
+
marker: { enabled: false, symbol },
|
|
289
|
+
};
|
|
290
|
+
return isSpline
|
|
291
|
+
? { type: 'areaspline', ...area }
|
|
292
|
+
: { type: 'area', ...area };
|
|
293
|
+
}
|
|
294
|
+
case 'cell':
|
|
295
|
+
return {
|
|
296
|
+
type: 'heatmap',
|
|
297
|
+
name,
|
|
298
|
+
data,
|
|
299
|
+
borderWidth: 2,
|
|
300
|
+
borderColor: tokenVars.canvas,
|
|
301
|
+
};
|
|
302
|
+
case 'sector':
|
|
303
|
+
throw new Error('Chart.Sector draws as a donut, never with axes.');
|
|
304
|
+
case 'point':
|
|
305
|
+
return sized
|
|
306
|
+
? {
|
|
307
|
+
type: 'bubble',
|
|
308
|
+
name,
|
|
309
|
+
color,
|
|
310
|
+
data,
|
|
311
|
+
// Bubbles are translucent by default; muting already handles depth.
|
|
312
|
+
marker: { symbol, fillColor: color, fillOpacity: 1 },
|
|
313
|
+
...BUBBLE,
|
|
314
|
+
zMin: 0,
|
|
315
|
+
sizeBy: 'area',
|
|
316
|
+
}
|
|
317
|
+
: {
|
|
318
|
+
type: 'scatter',
|
|
319
|
+
name,
|
|
320
|
+
color,
|
|
321
|
+
data,
|
|
322
|
+
marker: { symbol, radius: 5, fillColor: color },
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
// Stable ids let a chart update in place: Highcharts matches series one to one by id.
|
|
327
|
+
const groupIds = [...groups.keys()];
|
|
328
|
+
series.forEach((options, index) => {
|
|
329
|
+
options.id = groupIds[index];
|
|
330
|
+
});
|
|
331
|
+
function pointOptions(mark, color) {
|
|
332
|
+
const custom = pointCustom(spec, layout, mark);
|
|
333
|
+
const selected = isMarkSelected(mark, settings);
|
|
334
|
+
const description = pointDescription(spec, layout, mark, settings);
|
|
335
|
+
const position = {};
|
|
336
|
+
const leadValue = mark[hcX] ?? ('xStart' in mark && hcX === 'x' ? mark.xStart : undefined);
|
|
337
|
+
if (leadValue !== undefined)
|
|
338
|
+
position.x = coordinate(hcX, leadValue);
|
|
339
|
+
const start = hcY === 'y'
|
|
340
|
+
? 'yStart' in mark
|
|
341
|
+
? mark.yStart
|
|
342
|
+
: undefined
|
|
343
|
+
: 'xStart' in mark
|
|
344
|
+
? mark.xStart
|
|
345
|
+
: undefined;
|
|
346
|
+
const end = hcY === 'y'
|
|
347
|
+
? 'yEnd' in mark
|
|
348
|
+
? mark.yEnd
|
|
349
|
+
: undefined
|
|
350
|
+
: 'xEnd' in mark
|
|
351
|
+
? mark.xEnd
|
|
352
|
+
: undefined;
|
|
353
|
+
if (start !== undefined && end !== undefined) {
|
|
354
|
+
position.low = coordinate(hcY, start);
|
|
355
|
+
position.high = coordinate(hcY, end);
|
|
356
|
+
}
|
|
357
|
+
else if (mark[hcY] !== undefined)
|
|
358
|
+
position.y = coordinate(hcY, mark[hcY]);
|
|
359
|
+
if (mark.kind === 'cell') {
|
|
360
|
+
// One hue, light to dark by value, mixed with the surface so it follows the theme.
|
|
361
|
+
const share = cellRange.high > cellRange.low
|
|
362
|
+
? (mark.value - cellRange.low) / (cellRange.high - cellRange.low)
|
|
363
|
+
: 1;
|
|
364
|
+
// Capped at 75% so the regular text color keeps 4.5:1 on the deepest cell in either theme.
|
|
365
|
+
const depth = Math.round(10 + share * 65);
|
|
366
|
+
return {
|
|
367
|
+
x: coordinate('x', mark.x),
|
|
368
|
+
y: coordinate('y', mark.y),
|
|
369
|
+
value: mark.value,
|
|
370
|
+
color: `color-mix(in oklab, ${color} ${depth}%, ${tokenVars.canvas})`,
|
|
371
|
+
custom,
|
|
372
|
+
accessibility: { description },
|
|
373
|
+
...(mark.annotation
|
|
374
|
+
? {
|
|
375
|
+
dataLabels: {
|
|
376
|
+
align: 'center',
|
|
377
|
+
verticalAlign: 'middle',
|
|
378
|
+
// The cell is the label's background; a halo would blur it.
|
|
379
|
+
style: { color: tokenVars.canvasText, textOutline: 'none' },
|
|
380
|
+
},
|
|
381
|
+
}
|
|
382
|
+
: {}),
|
|
383
|
+
// Selection restyles points in place, and an update keeps keys it omits, so a
|
|
384
|
+
// selectable chart sets the unselected border too.
|
|
385
|
+
...(selected
|
|
386
|
+
? { borderColor: tokenVars.canvasText }
|
|
387
|
+
: settings.isSelectable
|
|
388
|
+
? { borderColor: tokenVars.canvas }
|
|
389
|
+
: {}),
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
const isHollow = mark.kind === 'point' && mark.isHollow === true;
|
|
393
|
+
const fill = mark.isMuted ? muted(color) : color;
|
|
394
|
+
// Point annotations sit just right of the dot or bubble rather than on it.
|
|
395
|
+
const radius = mark.kind === 'point' ? (sized ? bubbleRadius(mark.size ?? 0, largestSize) : DOT_RADIUS) : 0;
|
|
396
|
+
return {
|
|
397
|
+
...(mark.kind === 'point' && mark.annotation
|
|
398
|
+
? {
|
|
399
|
+
dataLabels: {
|
|
400
|
+
align: 'left',
|
|
401
|
+
verticalAlign: 'middle',
|
|
402
|
+
// Measured from the point's center, not the bubble's box.
|
|
403
|
+
inside: false,
|
|
404
|
+
x: radius + 4,
|
|
405
|
+
y: 0,
|
|
406
|
+
padding: 0,
|
|
407
|
+
},
|
|
408
|
+
}
|
|
409
|
+
: {}),
|
|
410
|
+
...position,
|
|
411
|
+
...(mark.kind === 'point' && mark.size !== undefined ? { z: mark.size } : {}),
|
|
412
|
+
custom,
|
|
413
|
+
// When annotations collide, the selected mark's stays and muted context gives way.
|
|
414
|
+
labelrank: selected ? 2 : mark.isMuted ? 0 : 1,
|
|
415
|
+
accessibility: { description },
|
|
416
|
+
...(mark.isMuted && mark.kind !== 'line' ? { color: fill } : {}),
|
|
417
|
+
...(mark.kind === 'point' || mark.kind === 'line'
|
|
418
|
+
? {
|
|
419
|
+
marker: {
|
|
420
|
+
fillColor: isHollow ? tokenVars.canvas : fill,
|
|
421
|
+
lineColor: selected ? tokenVars.canvasText : isHollow ? fill : tokenVars.canvas,
|
|
422
|
+
lineWidth: selected || isHollow ? 2 : 1,
|
|
423
|
+
},
|
|
424
|
+
}
|
|
425
|
+
: {}),
|
|
426
|
+
...(mark.kind === 'bar' && selected
|
|
427
|
+
? { borderColor: tokenVars.canvasText, borderWidth: 2 }
|
|
428
|
+
: mark.kind === 'bar' && settings.isSelectable
|
|
429
|
+
? { borderColor: tokenVars.canvas, borderWidth: 1 }
|
|
430
|
+
: {}),
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
// Waterfalls: when a range bar begins or ends where the previous one ended, a thin line joins
|
|
434
|
+
// them at that level, drawn behind the bars so it shows only in the gap.
|
|
435
|
+
const ranges = spec.marks.filter((mark) => mark.kind === 'bar' && rangeEnds(mark, hcY) !== undefined);
|
|
436
|
+
ranges.slice(1).forEach((mark, index) => {
|
|
437
|
+
const previous = ranges[index];
|
|
438
|
+
const [, level] = rangeEnds(previous, hcY);
|
|
439
|
+
const ends = rangeEnds(mark, hcY);
|
|
440
|
+
if (!ends.includes(level))
|
|
441
|
+
return;
|
|
442
|
+
const along = [previous[hcX], mark[hcX]];
|
|
443
|
+
if (along.some((value) => value === undefined))
|
|
444
|
+
return;
|
|
445
|
+
series.push({
|
|
446
|
+
id: `connector:${index}`,
|
|
447
|
+
type: 'line',
|
|
448
|
+
name: 'connector',
|
|
449
|
+
data: along.map((value) => ({ x: coordinate(hcX, value), y: coordinate(hcY, level) })),
|
|
450
|
+
color: tokenVars.borderStrong,
|
|
451
|
+
lineWidth: 1,
|
|
452
|
+
zIndex: -1,
|
|
453
|
+
marker: { enabled: false },
|
|
454
|
+
enableMouseTracking: false,
|
|
455
|
+
showInLegend: false,
|
|
456
|
+
animation: false,
|
|
457
|
+
accessibility: { enabled: false },
|
|
458
|
+
dataLabels: { enabled: false },
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
// A line's fill: edge-less area vertices on its own vertices, drawn under it in its color and
|
|
462
|
+
// shape. The line is what readers navigate and hear, so the fill stays out of both.
|
|
463
|
+
const fillGroups = new Map();
|
|
464
|
+
for (const mark of spec.fills ?? []) {
|
|
465
|
+
const name = markSeries(spec, mark);
|
|
466
|
+
fillGroups.set(name, [...(fillGroups.get(name) ?? []), mark]);
|
|
467
|
+
}
|
|
468
|
+
for (const [name, marks] of fillGroups) {
|
|
469
|
+
const { color } = seriesStyle(spec, name);
|
|
470
|
+
const line = spec.marks.find((mark) => mark.kind === 'line' && markSeries(spec, mark) === name);
|
|
471
|
+
const interpolation = line && 'interpolation' in line ? line.interpolation : undefined;
|
|
472
|
+
series.push({
|
|
473
|
+
id: `fill:${name}`,
|
|
474
|
+
type: interpolation === 'spline' ? 'areaspline' : 'area',
|
|
475
|
+
name,
|
|
476
|
+
data: marks.map((mark) => ({ x: coordinate(hcX, mark.x), y: coordinate(hcY, mark.y) })),
|
|
477
|
+
color,
|
|
478
|
+
fillColor: `color-mix(in oklab, ${color} 30%, transparent)`,
|
|
479
|
+
lineWidth: 0,
|
|
480
|
+
...(interpolation === 'step' ? { step: 'left' } : {}),
|
|
481
|
+
zIndex: -1,
|
|
482
|
+
marker: { enabled: false },
|
|
483
|
+
enableMouseTracking: false,
|
|
484
|
+
showInLegend: false,
|
|
485
|
+
accessibility: { enabled: false },
|
|
486
|
+
dataLabels: { enabled: false },
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
for (const [ruleIndex, rule] of spec.rules.entries()) {
|
|
490
|
+
if (rule.from === undefined || rule.to === undefined)
|
|
491
|
+
continue;
|
|
492
|
+
// A span is a short dashed line; full rules are plot lines on their axis.
|
|
493
|
+
const along = rule.y !== undefined ? 'x' : 'y';
|
|
494
|
+
const at = along === 'x' ? 'y' : 'x';
|
|
495
|
+
const level = coordinate(at, (rule.y ?? rule.x));
|
|
496
|
+
const ends = [coordinate(along, rule.from), coordinate(along, rule.to)];
|
|
497
|
+
const asHc = (point) => along === hcX ? { x: point, y: level } : { x: level, y: point };
|
|
498
|
+
series.push({
|
|
499
|
+
id: `rule:${ruleIndex}`,
|
|
500
|
+
type: 'line',
|
|
501
|
+
name: rule.label,
|
|
502
|
+
data: ends.map((point, index) => ({
|
|
503
|
+
...asHc(point),
|
|
504
|
+
// A minimal chart has no room for a label; its summary still names the rule.
|
|
505
|
+
...(index === 0 && !isMinimal
|
|
506
|
+
? { dataLabels: { enabled: true, useHTML: true, format: ruleChip(rule.label) } }
|
|
507
|
+
: {}),
|
|
508
|
+
})),
|
|
509
|
+
color: isMinimal ? RULE_FAINT : tokenVars.textSecondary,
|
|
510
|
+
dashStyle: 'Dash',
|
|
511
|
+
lineWidth: 1,
|
|
512
|
+
marker: { enabled: false },
|
|
513
|
+
enableMouseTracking: false,
|
|
514
|
+
showInLegend: false,
|
|
515
|
+
accessibility: { enabled: false },
|
|
516
|
+
// Reference lines appear at once: a fading label would read as low contrast.
|
|
517
|
+
animation: false,
|
|
518
|
+
dataLabels: {
|
|
519
|
+
align: 'left',
|
|
520
|
+
verticalAlign: 'bottom',
|
|
521
|
+
y: -4,
|
|
522
|
+
crop: false,
|
|
523
|
+
overflow: 'allow',
|
|
524
|
+
defer: false,
|
|
525
|
+
},
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
const plotLines = (axis) => spec.rules
|
|
529
|
+
.filter((rule) => rule[axis] !== undefined && (rule.from === undefined || rule.to === undefined))
|
|
530
|
+
.map((rule) => ({
|
|
531
|
+
value: coordinate(axis, rule[axis]),
|
|
532
|
+
color: isMinimal ? RULE_FAINT : tokenVars.textSecondary,
|
|
533
|
+
dashStyle: 'Dash',
|
|
534
|
+
width: 1,
|
|
535
|
+
zIndex: 4,
|
|
536
|
+
...(isMinimal
|
|
537
|
+
? {}
|
|
538
|
+
: {
|
|
539
|
+
label: {
|
|
540
|
+
text: ruleChip(rule.label),
|
|
541
|
+
useHTML: true,
|
|
542
|
+
// Our x axis runs across, so its rules are vertical lines labelled at the top;
|
|
543
|
+
// horizontal rules are labelled at their far end, where reading finishes.
|
|
544
|
+
...(axis === 'x'
|
|
545
|
+
? {
|
|
546
|
+
rotation: 0,
|
|
547
|
+
align: 'left',
|
|
548
|
+
verticalAlign: 'top',
|
|
549
|
+
x: RULE_LABEL_INSET,
|
|
550
|
+
y: 4,
|
|
551
|
+
}
|
|
552
|
+
: { align: 'right', verticalAlign: 'bottom', x: -4, y: -6 }),
|
|
553
|
+
},
|
|
554
|
+
}),
|
|
555
|
+
}));
|
|
556
|
+
const normalizedAxis = arrangement === 'normalized' ? hcY : undefined;
|
|
557
|
+
// Where an axis's values fall on both sides of zero, its zero line is the one to read
|
|
558
|
+
// against, such as increases above and cuts below: it draws stronger than the gridlines.
|
|
559
|
+
const zeroLine = (axis) => {
|
|
560
|
+
if (isMinimal || scales[axis] !== 'linear' || isLogAxis(spec, axis) || axis === normalizedAxis)
|
|
561
|
+
return [];
|
|
562
|
+
// A rule the author drew at zero already marks it.
|
|
563
|
+
if (spec.rules.some((rule) => rule[axis] === 0))
|
|
564
|
+
return [];
|
|
565
|
+
const values = spec.marks.flatMap((mark) => markValues(mark, axis).filter((value) => typeof value === 'number'));
|
|
566
|
+
const { min, max } = spec[axis];
|
|
567
|
+
const low = Math.min(...values, typeof min === 'number' ? min : Infinity);
|
|
568
|
+
const high = Math.max(...values, typeof max === 'number' ? max : -Infinity);
|
|
569
|
+
return low < 0 && high > 0
|
|
570
|
+
? [{ value: 0, color: tokenVars.borderStrong, width: 1, zIndex: 1 }]
|
|
571
|
+
: [];
|
|
572
|
+
};
|
|
573
|
+
const axisOptions = (axis, isHcX) => {
|
|
574
|
+
const definition = spec[axis];
|
|
575
|
+
const scale = scales[axis];
|
|
576
|
+
// With normalized stacking, the measured axis shows each series' share.
|
|
577
|
+
const isShare = axis === normalizedAxis;
|
|
578
|
+
const range = scale === 'linear' ? numberRange(spec, axis, isShare) : undefined;
|
|
579
|
+
return {
|
|
580
|
+
type: isLogAxis(spec, axis) ? 'logarithmic' : scale,
|
|
581
|
+
// One gridline per power of ten, so each reads as ten times the one below.
|
|
582
|
+
...(isLogAxis(spec, axis) ? { tickInterval: 1 } : {}),
|
|
583
|
+
...(scale === 'category' ? { categories: [...categories[axis]] } : {}),
|
|
584
|
+
title: {
|
|
585
|
+
text: escapeHtml(isShare ? `Share of ${definition.label.toLowerCase()}` : definition.label),
|
|
586
|
+
style: { color: tokenVars.textSecondary, fontSize: '11px', fontWeight: '400' },
|
|
587
|
+
},
|
|
588
|
+
...(isShare ? { max: 100 } : {}),
|
|
589
|
+
// A heatmap reads its rows top-down, in the order they first appear.
|
|
590
|
+
...(hasCells && !isHcX ? { reversed: true } : {}),
|
|
591
|
+
...(!isShare && definition.min !== undefined
|
|
592
|
+
? { min: coordinate(axis, definition.min) }
|
|
593
|
+
: {}),
|
|
594
|
+
...(!isShare && definition.max !== undefined
|
|
595
|
+
? { max: coordinate(axis, definition.max) }
|
|
596
|
+
: {}),
|
|
597
|
+
...(scale === 'datetime'
|
|
598
|
+
? { minTickInterval: MIN_TICK[definition.format ?? 'date'] ?? 0, tickPixelInterval: 110 }
|
|
599
|
+
: {}),
|
|
600
|
+
// Bars across turn Highcharts' y axis sideways, where it keeps the tick spacing it uses up
|
|
601
|
+
// the side; give it the spacing of an axis that runs across, so its labels never crowd.
|
|
602
|
+
...(inverted && !isHcX && scale === 'linear' ? { tickPixelInterval: 100 } : {}),
|
|
603
|
+
gridLineColor: tokenVars.borderHairline,
|
|
604
|
+
gridLineWidth: isHcX || hasCells ? 0 : 1,
|
|
605
|
+
lineColor: tokenVars.borderStrong,
|
|
606
|
+
lineWidth: isHcX && !hasCells ? 1 : 0,
|
|
607
|
+
tickLength: 0,
|
|
608
|
+
plotLines: [...plotLines(axis), ...zeroLine(axis)],
|
|
609
|
+
crosshair: isHcX &&
|
|
610
|
+
(settings.xSelection !== 'none' ||
|
|
611
|
+
spec.marks.some((mark) => mark.kind === 'line' || mark.kind === 'area'))
|
|
612
|
+
? { color: tokenVars.borderStrong, width: 1 }
|
|
613
|
+
: false,
|
|
614
|
+
labels: {
|
|
615
|
+
style: { color: tokenVars.textSecondary, fontSize: '11px' },
|
|
616
|
+
...(scale === 'category'
|
|
617
|
+
? {}
|
|
618
|
+
: {
|
|
619
|
+
formatter() {
|
|
620
|
+
if (isShare)
|
|
621
|
+
return `${this.value}%`;
|
|
622
|
+
// On a time axis, Highcharts says whether ticks fall on years, months or days.
|
|
623
|
+
const unit = this.tickPositionInfo
|
|
624
|
+
?.unitName;
|
|
625
|
+
return formatChartTick(this.value, definition.format, unit);
|
|
626
|
+
},
|
|
627
|
+
}),
|
|
628
|
+
},
|
|
629
|
+
accessibility: {
|
|
630
|
+
// Screen readers say the spacing is not even.
|
|
631
|
+
description: isLogAxis(spec, axis) ? `${definition.label}, log scale` : definition.label,
|
|
632
|
+
...(range === undefined ? {} : { rangeDescription: range }),
|
|
633
|
+
},
|
|
634
|
+
// A minimal chart draws no axis, but keeps it so rules still draw as plot lines.
|
|
635
|
+
...(isMinimal
|
|
636
|
+
? { title: { text: '' }, labels: { enabled: false }, gridLineWidth: 0, lineWidth: 0 }
|
|
637
|
+
: {}),
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
const base = baseOptions(spec, layout, settings, handlers);
|
|
641
|
+
const { xSelection, scrollWidth } = settings;
|
|
642
|
+
return {
|
|
643
|
+
...base,
|
|
644
|
+
chart: {
|
|
645
|
+
...base.chart,
|
|
646
|
+
inverted,
|
|
647
|
+
events: {
|
|
648
|
+
// Highcharts places each rule's label from its own options, so close rules' labels collide.
|
|
649
|
+
render() {
|
|
650
|
+
separateRuleLabels(this);
|
|
651
|
+
},
|
|
652
|
+
// Dragging across the plot selects a span of x rather than zooming to it.
|
|
653
|
+
...(xSelection === 'range'
|
|
654
|
+
? {
|
|
655
|
+
selection(event) {
|
|
656
|
+
const axis = event.xAxis?.[0];
|
|
657
|
+
if (axis)
|
|
658
|
+
handlers.onSelectXRange(axis.min, axis.max);
|
|
659
|
+
return false;
|
|
660
|
+
},
|
|
661
|
+
click() {
|
|
662
|
+
handlers.onClearXRange();
|
|
663
|
+
},
|
|
664
|
+
}
|
|
665
|
+
: {}),
|
|
666
|
+
},
|
|
667
|
+
...(xSelection === 'range' ? { zooming: { type: 'x' } } : {}),
|
|
668
|
+
...(scrollWidth === null
|
|
669
|
+
? {}
|
|
670
|
+
: // No mask under the fixed y-axis labels: the chart's edge effect blurs what passes there.
|
|
671
|
+
{ scrollablePlotArea: { minWidth: Math.max(1, scrollWidth), opacity: 0 } }),
|
|
672
|
+
},
|
|
673
|
+
xAxis: {
|
|
674
|
+
...axisOptions(hcX, true),
|
|
675
|
+
// In a preview, marks run to the box's edges.
|
|
676
|
+
...(settings.isImage ? { minPadding: 0, maxPadding: 0 } : {}),
|
|
677
|
+
},
|
|
678
|
+
yAxis: {
|
|
679
|
+
...axisOptions(hcY, false),
|
|
680
|
+
// Behind content, marks keep to the lower half, clear of the text above them.
|
|
681
|
+
...(settings.isBackdrop ? { maxPadding: 1, endOnTick: false } : {}),
|
|
682
|
+
},
|
|
683
|
+
plotOptions: {
|
|
684
|
+
...base.plotOptions,
|
|
685
|
+
series: {
|
|
686
|
+
...base.plotOptions.series,
|
|
687
|
+
// Always set, null when not stacked, so an update from stacked to grouped unstacks.
|
|
688
|
+
stacking: stacking ?? null,
|
|
689
|
+
},
|
|
690
|
+
column: {
|
|
691
|
+
borderRadius: 4,
|
|
692
|
+
borderWidth: 1,
|
|
693
|
+
maxPointWidth: 48,
|
|
694
|
+
groupPadding: 0.12,
|
|
695
|
+
grouping: sharesPosition,
|
|
696
|
+
},
|
|
697
|
+
columnrange: { borderRadius: 4, borderWidth: 1, maxPointWidth: 48, grouping: sharesPosition },
|
|
698
|
+
line: { lineWidth: isMinimal ? 1.5 : 2 },
|
|
699
|
+
spline: { lineWidth: isMinimal ? 1.5 : 2 },
|
|
700
|
+
area: { lineWidth: isMinimal ? 1.5 : 2 },
|
|
701
|
+
areaspline: { lineWidth: isMinimal ? 1.5 : 2 },
|
|
702
|
+
},
|
|
703
|
+
series,
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
/** Whether a mark draws outlined: a static highlight, or one the reader selected. */
|
|
707
|
+
function isMarkSelected(mark, settings) {
|
|
708
|
+
return mark.isSelected === true || (mark.id !== undefined && settings.selected.has(mark.id));
|
|
709
|
+
}
|
|
710
|
+
/** A mark's description; a selectable one says when it is selected. */
|
|
711
|
+
function pointDescription(spec, layout, mark, settings) {
|
|
712
|
+
const description = markDescription(spec, layout, mark);
|
|
713
|
+
return settings.isSelectable && isMarkSelected(mark, settings)
|
|
714
|
+
? `${description}, selected`
|
|
715
|
+
: description;
|
|
716
|
+
}
|
|
717
|
+
/** The fields of a point that follow selection; Chart updates just these in place. */
|
|
718
|
+
function pointCustom(spec, layout, mark) {
|
|
719
|
+
const value = markText(spec, mark, layout.measure);
|
|
720
|
+
return {
|
|
721
|
+
tip: markTip(spec, layout, mark),
|
|
722
|
+
xText: markText(spec, mark, layout.lead),
|
|
723
|
+
readout: `${layout.namesSeries ? markSeries(spec, mark) : spec[layout.measure].label}: ${value}`,
|
|
724
|
+
...(mark.annotation ? { annotation: mark.annotation } : {}),
|
|
725
|
+
...(mark.href ? { href: mark.href } : {}),
|
|
726
|
+
...(mark.id ? { id: mark.id } : {}),
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
/** The summary's last words on scrolling and selecting along x, which nothing else says. */
|
|
730
|
+
function alongXText(spec, { xSelection, xWindow }) {
|
|
731
|
+
const along = spec.x.label;
|
|
732
|
+
return [
|
|
733
|
+
...(xWindow
|
|
734
|
+
? [
|
|
735
|
+
`${along} scrolls sideways, ${xWindow.shown} of ${xWindow.total} values in view at a ` +
|
|
736
|
+
'time; moving between marks scrolls to them.',
|
|
737
|
+
]
|
|
738
|
+
: []),
|
|
739
|
+
...(xSelection === 'range'
|
|
740
|
+
? [`Select a span of ${along} by dragging across the plot, or with Shift and the arrow keys.`]
|
|
741
|
+
: []),
|
|
742
|
+
];
|
|
743
|
+
}
|
|
744
|
+
/** Where the selected span of x draws: a band reaching the outer edges of its end marks. */
|
|
745
|
+
export const X_SELECTION_BAND = 'x-selection';
|
|
746
|
+
export function xSelectionBand(spec, layout, range) {
|
|
747
|
+
const { toPosition, halfStep } = xPositions(spec, layout);
|
|
748
|
+
return {
|
|
749
|
+
id: X_SELECTION_BAND,
|
|
750
|
+
from: toPosition(range.from) - halfStep,
|
|
751
|
+
to: toPosition(range.to) + halfStep,
|
|
752
|
+
color: `color-mix(in oklab, ${tokenVars.canvasText} 8%, transparent)`,
|
|
753
|
+
zIndex: 0,
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* The tip for a mark in focus: its own, or with a readout along x, every series at its x under
|
|
758
|
+
* one heading. It sits where Highcharts would put its tooltip: atop a bar, at a dot or vertex.
|
|
759
|
+
*/
|
|
760
|
+
function hoverOf(point, isReadout) {
|
|
761
|
+
const custom = point.options.custom;
|
|
762
|
+
if (!custom)
|
|
763
|
+
return null;
|
|
764
|
+
const { chart } = point.series;
|
|
765
|
+
const customs = isReadout
|
|
766
|
+
? chart.series.flatMap((series) => series.visible
|
|
767
|
+
? series.points.flatMap((other) => other.x === point.x && other.options.custom
|
|
768
|
+
? [other.options.custom]
|
|
769
|
+
: [])
|
|
770
|
+
: [])
|
|
771
|
+
: [custom];
|
|
772
|
+
const tip = isReadout
|
|
773
|
+
? {
|
|
774
|
+
title: custom.xText ?? custom.tip.title,
|
|
775
|
+
details: customs.map((each) => each.readout ?? each.tip.title),
|
|
776
|
+
}
|
|
777
|
+
: custom.tip;
|
|
778
|
+
// Bars, slices and cells give Highcharts' own tip position, at their edge; a dot of any size
|
|
779
|
+
// gives the top of its drawn shape, so the tip clears the dot and its hover halo.
|
|
780
|
+
const at = point.tooltipPos;
|
|
781
|
+
// A bubble keeps its own radius on the point; other dots share their series' marker radius.
|
|
782
|
+
// Read rather than measured, since a dot still animating in draws smaller than it ends up.
|
|
783
|
+
const radius = point.marker?.radius ??
|
|
784
|
+
point.series.options.marker?.radius ??
|
|
785
|
+
0;
|
|
786
|
+
return {
|
|
787
|
+
tip,
|
|
788
|
+
x: chart.plotLeft + (at?.[0] ?? point.plotX ?? 0),
|
|
789
|
+
y: chart.plotTop + (at?.[1] ?? (point.plotY ?? 0) - radius),
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
/** What every chart shares: naming, the summary, keyboard access, tooltips and links. */
|
|
793
|
+
function baseOptions(spec, layout, settings, handlers) {
|
|
794
|
+
const { height, reducedMotion, reserveCorner, isMinimal, isImage, isStatic, isBackdrop, isSelectable, } = settings;
|
|
795
|
+
return {
|
|
796
|
+
chart: {
|
|
797
|
+
backgroundColor: 'transparent',
|
|
798
|
+
height,
|
|
799
|
+
spacing: isBackdrop
|
|
800
|
+
? [24, 0, 0, 0]
|
|
801
|
+
: isImage
|
|
802
|
+
? // Cells fill the preview, a donut sits centered with even room around it, and other
|
|
803
|
+
// marks keep a little room above their peaks.
|
|
804
|
+
spec.marks.some((mark) => mark.kind === 'cell')
|
|
805
|
+
? [0, 0, 0, 0]
|
|
806
|
+
: spec.marks.some((mark) => mark.kind === 'sector')
|
|
807
|
+
? [10, 0, 10, 0]
|
|
808
|
+
: [12, 0, 0, 0]
|
|
809
|
+
: isMinimal
|
|
810
|
+
? isStatic
|
|
811
|
+
? [2, 0, 2, 0]
|
|
812
|
+
: [MINIMAL_HOVER_REACH, MINIMAL_HOVER_REACH, MINIMAL_HOVER_REACH, MINIMAL_HOVER_REACH]
|
|
813
|
+
: [(reserveCorner ? CORNER_STRIP : 8) + ruleLabelRow(spec), 4, 4, 0],
|
|
814
|
+
animation: !reducedMotion,
|
|
815
|
+
style: { fontFamily: 'inherit' },
|
|
816
|
+
// Highcharts must not mutate options React may compare.
|
|
817
|
+
allowMutatingData: false,
|
|
818
|
+
},
|
|
819
|
+
// No drawn title: the surrounding heading titles the chart, and `lang` names it.
|
|
820
|
+
title: { text: '' },
|
|
821
|
+
credits: { enabled: false },
|
|
822
|
+
exporting: { enabled: false },
|
|
823
|
+
legend: { enabled: false },
|
|
824
|
+
lang: {
|
|
825
|
+
accessibility: {
|
|
826
|
+
defaultChartTitle: spec.label,
|
|
827
|
+
chartContainerLabel: '{title}',
|
|
828
|
+
svgContainerLabel: '',
|
|
829
|
+
},
|
|
830
|
+
},
|
|
831
|
+
accessibility: {
|
|
832
|
+
enabled: !isStatic,
|
|
833
|
+
description: [chartSummary(spec, layout), ...alongXText(spec, settings)].join(' '),
|
|
834
|
+
landmarkVerbosity: 'one',
|
|
835
|
+
screenReaderSection: {
|
|
836
|
+
axisRangeDateFormat: '%b %e, %Y',
|
|
837
|
+
beforeChartFormat: '<{headingTagName}>{chartTitle}</{headingTagName}><div>{chartLongdesc}</div>' +
|
|
838
|
+
'<div>{xAxisDescription}</div><div>{yAxisDescription}</div>',
|
|
839
|
+
},
|
|
840
|
+
point: {
|
|
841
|
+
descriptionFormatter: (point) => point.options.accessibility?.description ?? '',
|
|
842
|
+
},
|
|
843
|
+
keyboardNavigation: { enabled: true, seriesNavigation: { mode: 'normal' } },
|
|
844
|
+
},
|
|
845
|
+
// Chart draws its own tip, the design-system Tooltip, from the hover events below.
|
|
846
|
+
tooltip: { enabled: false },
|
|
847
|
+
plotOptions: {
|
|
848
|
+
series: {
|
|
849
|
+
animation: !reducedMotion,
|
|
850
|
+
borderColor: tokenVars.canvas,
|
|
851
|
+
states: {
|
|
852
|
+
inactive: { opacity: 1 },
|
|
853
|
+
},
|
|
854
|
+
// A minimal plot runs to its edges; unclipped, a line along one keeps its full stroke.
|
|
855
|
+
...(isMinimal ? { clip: false } : {}),
|
|
856
|
+
...(isStatic ? { enableMouseTracking: false } : {}),
|
|
857
|
+
...(!isStatic && (isSelectable || spec.marks.some((mark) => mark.href))
|
|
858
|
+
? { cursor: 'pointer' }
|
|
859
|
+
: {}),
|
|
860
|
+
dataLabels: {
|
|
861
|
+
enabled: !isMinimal && spec.marks.some((mark) => mark.annotation),
|
|
862
|
+
formatter() {
|
|
863
|
+
const annotation = this.options.custom?.annotation;
|
|
864
|
+
// Range bars label both ends; annotate only the upper one.
|
|
865
|
+
const range = this;
|
|
866
|
+
if (range.high !== undefined && range.y !== range.high)
|
|
867
|
+
return null;
|
|
868
|
+
return annotation ? escapeHtml(annotation) : null;
|
|
869
|
+
},
|
|
870
|
+
style: {
|
|
871
|
+
color: tokenVars.canvasText,
|
|
872
|
+
fontSize: '11px',
|
|
873
|
+
fontWeight: '500',
|
|
874
|
+
// A surface halo keeps annotations legible over neighboring marks.
|
|
875
|
+
textOutline: `2px ${tokenVars.canvas}`,
|
|
876
|
+
},
|
|
877
|
+
crop: false,
|
|
878
|
+
overflow: 'allow',
|
|
879
|
+
},
|
|
880
|
+
point: {
|
|
881
|
+
events: {
|
|
882
|
+
click(event) {
|
|
883
|
+
const custom = this.options.custom;
|
|
884
|
+
if (isSelectable && custom?.id)
|
|
885
|
+
handlers.onSelect(custom.id);
|
|
886
|
+
else if (custom?.href)
|
|
887
|
+
handlers.onOpen(custom.href, event);
|
|
888
|
+
},
|
|
889
|
+
// Keyboard focus moves through marks with these events too.
|
|
890
|
+
mouseOver() {
|
|
891
|
+
handlers.onHover(hoverOf(this, settings.xSelection !== 'none'));
|
|
892
|
+
},
|
|
893
|
+
mouseOut() {
|
|
894
|
+
handlers.onHover(null);
|
|
895
|
+
},
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
},
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
/** A donut: one slice per sector, colored by series name, with no axes. */
|
|
903
|
+
function donutOptions(spec, layout, settings, handlers) {
|
|
904
|
+
const base = baseOptions(spec, layout, settings, handlers);
|
|
905
|
+
return {
|
|
906
|
+
...base,
|
|
907
|
+
plotOptions: {
|
|
908
|
+
...base.plotOptions,
|
|
909
|
+
pie: {
|
|
910
|
+
innerSize: '62%',
|
|
911
|
+
borderWidth: 2,
|
|
912
|
+
borderRadius: 4,
|
|
913
|
+
borderColor: tokenVars.canvas,
|
|
914
|
+
startAngle: 0,
|
|
915
|
+
dataLabels: settings.isMinimal
|
|
916
|
+
? { enabled: false }
|
|
917
|
+
: { distance: 12, connectorColor: tokenVars.borderStrong },
|
|
918
|
+
// Without slice labels, the donut takes the whole plot.
|
|
919
|
+
...(settings.isMinimal ? { size: '100%', slicedOffset: 0 } : {}),
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
series: [
|
|
923
|
+
{
|
|
924
|
+
id: 'sectors',
|
|
925
|
+
type: 'pie',
|
|
926
|
+
name: spec.y.label,
|
|
927
|
+
data: spec.marks.map((mark) => {
|
|
928
|
+
const name = markSeries(spec, mark);
|
|
929
|
+
const color = seriesStyle(spec, name).color;
|
|
930
|
+
return {
|
|
931
|
+
name,
|
|
932
|
+
y: Number(mark.y),
|
|
933
|
+
color: mark.isMuted ? muted(color) : color,
|
|
934
|
+
custom: pointCustom(spec, layout, mark),
|
|
935
|
+
accessibility: { description: pointDescription(spec, layout, mark, settings) },
|
|
936
|
+
...(isMarkSelected(mark, settings)
|
|
937
|
+
? { borderColor: tokenVars.canvasText }
|
|
938
|
+
: settings.isSelectable
|
|
939
|
+
? { borderColor: tokenVars.canvas }
|
|
940
|
+
: {}),
|
|
941
|
+
};
|
|
942
|
+
}),
|
|
943
|
+
},
|
|
944
|
+
],
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
/** A range bar's start and end along the measured axis, or undefined for a bar from zero. */
|
|
948
|
+
function rangeEnds(mark, axis) {
|
|
949
|
+
const start = axis === 'y'
|
|
950
|
+
? 'yStart' in mark
|
|
951
|
+
? mark.yStart
|
|
952
|
+
: undefined
|
|
953
|
+
: 'xStart' in mark
|
|
954
|
+
? mark.xStart
|
|
955
|
+
: undefined;
|
|
956
|
+
const end = axis === 'y'
|
|
957
|
+
? 'yEnd' in mark
|
|
958
|
+
? mark.yEnd
|
|
959
|
+
: undefined
|
|
960
|
+
: 'xEnd' in mark
|
|
961
|
+
? mark.xEnd
|
|
962
|
+
: undefined;
|
|
963
|
+
return start === undefined || end === undefined ? undefined : [start, end];
|
|
964
|
+
}
|
|
965
|
+
const DAY = 86_400_000;
|
|
966
|
+
const MIN_TICK = {
|
|
967
|
+
date: DAY,
|
|
968
|
+
month: 28 * DAY,
|
|
969
|
+
year: 365 * DAY,
|
|
970
|
+
};
|
|
971
|
+
function escapeHtml(text) {
|
|
972
|
+
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
973
|
+
}
|
|
974
|
+
/** Highcharts formats read `{…}` as placeholders. */
|
|
975
|
+
function escapeFormat(text) {
|
|
976
|
+
return escapeHtml(text).replace(/\{/g, '{').replace(/\}/g, '}');
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* The next options, with every key the previous ones set but these drop given as undefined.
|
|
980
|
+
* Highcharts merges an update into what it has, so a dropped key, such as `stacking` when
|
|
981
|
+
* stacked columns become grouped, would otherwise stay. Series match by id; points by position.
|
|
982
|
+
*/
|
|
983
|
+
export function clearDropped(previous, next) {
|
|
984
|
+
if (Array.isArray(previous) && Array.isArray(next))
|
|
985
|
+
return next.map((item, index) => {
|
|
986
|
+
const id = isPlainObject(item) ? item['id'] : undefined;
|
|
987
|
+
const match = typeof id === 'string'
|
|
988
|
+
? previous.find((candidate) => isPlainObject(candidate) && candidate['id'] === id)
|
|
989
|
+
: previous[index];
|
|
990
|
+
return clearDropped(match, item);
|
|
991
|
+
});
|
|
992
|
+
if (!isPlainObject(previous) || !isPlainObject(next))
|
|
993
|
+
return next;
|
|
994
|
+
const cleared = { ...next };
|
|
995
|
+
for (const key of Object.keys(previous))
|
|
996
|
+
cleared[key] = key in next ? clearDropped(previous[key], next[key]) : undefined;
|
|
997
|
+
return cleared;
|
|
998
|
+
}
|
|
999
|
+
export function isPlainObject(value) {
|
|
1000
|
+
return (typeof value === 'object' && value !== null && Object.getPrototypeOf(value) === Object.prototype);
|
|
1001
|
+
}
|