@effectiveailabs/design-system 0.0.0-placeholder → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +120 -3
- package/dist/components/AdaptiveGrid/AdaptiveGrid.d.ts +38 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.js +15 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.d.ts +104 -0
- package/dist/components/AdaptiveGrid/AdaptiveGrid.stylex.js +62 -0
- package/dist/components/Anchor/Anchor.d.ts +29 -0
- package/dist/components/Anchor/Anchor.js +56 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.d.ts +16 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.js +45 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.d.ts +6 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.stylex.js +7 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationOutlet.js +15 -0
- package/dist/components/AnnotationPin/AnnotationPin.d.ts +31 -0
- package/dist/components/AnnotationPin/AnnotationPin.js +99 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.d.ts +19 -0
- package/dist/components/AnnotationPin/AnnotationPin.layout.js +56 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.d.ts +48 -0
- package/dist/components/AnnotationPin/AnnotationPin.stylex.js +39 -0
- package/dist/components/AnnotationPin/AnnotationScope.d.ts +26 -0
- package/dist/components/AnnotationPin/AnnotationScope.js +59 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.d.ts +15 -0
- package/dist/components/AnnotationPin/AnnotationScope.layout.js +68 -0
- package/dist/components/AnnotationPin/useRangeAnchor.d.ts +9 -0
- package/dist/components/AnnotationPin/useRangeAnchor.js +35 -0
- package/dist/components/App/App.d.ts +85 -0
- package/dist/components/App/App.js +515 -0
- package/dist/components/App/App.layout.d.ts +25 -0
- package/dist/components/App/App.layout.js +42 -0
- package/dist/components/App/App.stylex.d.ts +373 -0
- package/dist/components/App/App.stylex.js +352 -0
- package/dist/components/App/AppNavigationHeader.context.d.ts +9 -0
- package/dist/components/App/AppNavigationHeader.context.js +13 -0
- package/dist/components/Article/Article.d.ts +16 -0
- package/dist/components/Article/Article.js +14 -0
- package/dist/components/Article/Article.stylex.d.ts +49 -0
- package/dist/components/Article/Article.stylex.js +66 -0
- package/dist/components/Article/ArticleSection.d.ts +23 -0
- package/dist/components/Article/ArticleSection.js +26 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +13 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.d.ts +9 -0
- package/dist/components/Autocomplete/Autocomplete.gridFocus.js +5 -0
- package/dist/components/Autocomplete/Autocomplete.js +68 -0
- package/dist/components/Avatar/Avatar.d.ts +30 -0
- package/dist/components/Avatar/Avatar.js +14 -0
- package/dist/components/Avatar/Avatar.stylex.d.ts +74 -0
- package/dist/components/Avatar/Avatar.stylex.js +71 -0
- package/dist/components/Avatar/Avatar.view.d.ts +7 -0
- package/dist/components/Avatar/Avatar.view.js +43 -0
- package/dist/components/Avatar/AvatarName.d.ts +7 -0
- package/dist/components/Avatar/AvatarName.js +17 -0
- package/dist/components/Avatar/avatarColor.d.ts +3 -0
- package/dist/components/Avatar/avatarColor.js +28 -0
- package/dist/components/Avatar/avatarInitials.d.ts +1 -0
- package/dist/components/Avatar/avatarInitials.js +37 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.d.ts +11 -0
- package/dist/components/AvatarGroup/AvatarGroup.children.js +52 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.d.ts +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.context.js +2 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +188 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.d.ts +149 -0
- package/dist/components/AvatarGroup/AvatarGroup.stylex.js +132 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.d.ts +14 -0
- package/dist/components/AvatarGroup/avatarGroupLayout.js +27 -0
- package/dist/components/Badge/Badge.d.ts +54 -0
- package/dist/components/Badge/Badge.js +149 -0
- package/dist/components/Badge/Badge.stylex.d.ts +278 -0
- package/dist/components/Badge/Badge.stylex.js +267 -0
- package/dist/components/BrandLogo/BrandLogo.d.ts +16 -0
- package/dist/components/BrandLogo/BrandLogo.js +19 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.d.ts +23 -0
- package/dist/components/BrandLogo/BrandLogo.stylex.js +14 -0
- package/dist/components/BrandLogo/brandLogoArtwork.d.ts +10 -0
- package/dist/components/BrandLogo/brandLogoArtwork.js +30 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.d.ts +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.children.js +59 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.d.ts +20 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.headerContext.js +14 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +284 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.d.ts +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.layout.js +29 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.d.ts +200 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stylex.js +166 -0
- package/dist/components/Button/Button.appearance.d.ts +323 -0
- package/dist/components/Button/Button.appearance.js +57 -0
- package/dist/components/Button/Button.d.ts +102 -0
- package/dist/components/Button/Button.js +176 -0
- package/dist/components/Button/Button.stylex.d.ts +577 -0
- package/dist/components/Button/Button.stylex.js +590 -0
- package/dist/components/Button/ButtonProgress.d.ts +1 -0
- package/dist/components/Button/ButtonProgress.js +8 -0
- package/dist/components/Button/ButtonProgress.stylex.d.ts +22 -0
- package/dist/components/Button/ButtonProgress.stylex.js +14 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.d.ts +74 -0
- package/dist/components/ButtonGroup/ButtonGroup.context.js +25 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +35 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +49 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.d.ts +111 -0
- package/dist/components/ButtonGroup/ButtonGroup.stylex.js +116 -0
- package/dist/components/CalculationSteps/CalculationSteps.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.d.ts +13 -0
- package/dist/components/CalculationSteps/CalculationSteps.format.js +44 -0
- package/dist/components/CalculationSteps/CalculationSteps.js +84 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.d.ts +23 -0
- package/dist/components/CalculationSteps/CalculationSteps.stylex.js +22 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.d.ts +131 -0
- package/dist/components/CalculationSteps/CalculationSteps.types.js +11 -0
- package/dist/components/Calendar/Calendar.d.ts +22 -0
- package/dist/components/Calendar/Calendar.js +119 -0
- package/dist/components/Calendar/Calendar.stylex.d.ts +196 -0
- package/dist/components/Calendar/Calendar.stylex.js +197 -0
- package/dist/components/Card/Card.context.d.ts +28 -0
- package/dist/components/Card/Card.context.js +40 -0
- package/dist/components/Card/Card.d.ts +39 -0
- package/dist/components/Card/Card.js +121 -0
- package/dist/components/Card/Card.stylex.d.ts +172 -0
- package/dist/components/Card/Card.stylex.js +185 -0
- package/dist/components/Chart/Chart.d.ts +24 -0
- package/dist/components/Chart/Chart.data.d.ts +119 -0
- package/dist/components/Chart/Chart.data.js +596 -0
- package/dist/components/Chart/Chart.describe.d.ts +46 -0
- package/dist/components/Chart/Chart.describe.js +359 -0
- package/dist/components/Chart/Chart.environment.d.ts +8 -0
- package/dist/components/Chart/Chart.environment.js +10 -0
- package/dist/components/Chart/Chart.format.d.ts +14 -0
- package/dist/components/Chart/Chart.format.js +108 -0
- package/dist/components/Chart/Chart.highcharts.d.ts +106 -0
- package/dist/components/Chart/Chart.highcharts.js +1001 -0
- package/dist/components/Chart/Chart.js +600 -0
- package/dist/components/Chart/Chart.load.d.ts +69 -0
- package/dist/components/Chart/Chart.load.js +136 -0
- package/dist/components/Chart/Chart.raw.d.ts +33 -0
- package/dist/components/Chart/Chart.raw.js +234 -0
- package/dist/components/Chart/Chart.rules.d.ts +31 -0
- package/dist/components/Chart/Chart.rules.js +72 -0
- package/dist/components/Chart/Chart.stylex.d.ts +260 -0
- package/dist/components/Chart/Chart.stylex.js +280 -0
- package/dist/components/Chart/Chart.types.d.ts +380 -0
- package/dist/components/Chart/Chart.types.js +23 -0
- package/dist/components/Chart/ChartDataTable.d.ts +9 -0
- package/dist/components/Chart/ChartDataTable.js +42 -0
- package/dist/components/Chart/ChartGhost.d.ts +17 -0
- package/dist/components/Chart/ChartGhost.js +13 -0
- package/dist/components/Chart/ChartHighcharts.d.ts +6 -0
- package/dist/components/Chart/ChartHighcharts.js +61 -0
- package/dist/components/Chart/ChartLegend.d.ts +23 -0
- package/dist/components/Chart/ChartLegend.js +111 -0
- package/dist/components/Chart/ChartMarks.d.ts +29 -0
- package/dist/components/Chart/ChartMarks.js +29 -0
- package/dist/components/Chart/ChartScrollbar.d.ts +13 -0
- package/dist/components/Chart/ChartScrollbar.js +63 -0
- package/dist/components/Chart/ChartTip.d.ts +5 -0
- package/dist/components/Chart/ChartTip.js +7 -0
- package/dist/components/Checkbox/Checkbox.d.ts +81 -0
- package/dist/components/Checkbox/Checkbox.js +52 -0
- package/dist/components/CodeBlock/CodeBlock.copy.d.ts +7 -0
- package/dist/components/CodeBlock/CodeBlock.copy.js +28 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.d.ts +20 -0
- package/dist/components/CodeBlock/CodeBlock.copyButton.js +40 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +88 -0
- package/dist/components/CodeBlock/CodeBlock.fence.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.fence.js +110 -0
- package/dist/components/CodeBlock/CodeBlock.js +148 -0
- package/dist/components/CodeBlock/CodeBlock.marks.d.ts +24 -0
- package/dist/components/CodeBlock/CodeBlock.marks.js +54 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.d.ts +15 -0
- package/dist/components/CodeBlock/CodeBlock.ranges.js +30 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.d.ts +221 -0
- package/dist/components/CodeBlock/CodeBlock.stylex.js +194 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.d.ts +47 -0
- package/dist/components/CodeBlock/CodeBlock.tokens.js +103 -0
- package/dist/components/CodeBlock/CodeGroup.context.d.ts +5 -0
- package/dist/components/CodeBlock/CodeGroup.context.js +6 -0
- package/dist/components/CodeBlock/CodeGroup.d.ts +19 -0
- package/dist/components/CodeBlock/CodeGroup.js +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.d.ts +39 -0
- package/dist/components/CodeBlock/CodeHighlightScope.js +70 -0
- package/dist/components/CodeEntry/CodeEntry.d.ts +62 -0
- package/dist/components/CodeEntry/CodeEntry.js +86 -0
- package/dist/components/CodeField/CodeField.d.ts +32 -0
- package/dist/components/CodeField/CodeField.js +25 -0
- package/dist/components/CodeField/CodeField.stylex.d.ts +82 -0
- package/dist/components/CodeField/CodeField.stylex.js +88 -0
- package/dist/components/Collection/Collection.constants.d.ts +3 -0
- package/dist/components/Collection/Collection.constants.js +3 -0
- package/dist/components/Collection/Collection.context.d.ts +70 -0
- package/dist/components/Collection/Collection.context.js +39 -0
- package/dist/components/Collection/Collection.d.ts +119 -0
- package/dist/components/Collection/Collection.dnd.d.ts +19 -0
- package/dist/components/Collection/Collection.dnd.js +56 -0
- package/dist/components/Collection/Collection.dragScroll.d.ts +2 -0
- package/dist/components/Collection/Collection.dragScroll.js +93 -0
- package/dist/components/Collection/Collection.identity.d.ts +3 -0
- package/dist/components/Collection/Collection.identity.js +10 -0
- package/dist/components/Collection/Collection.js +479 -0
- package/dist/components/Collection/Collection.pageLoadMore.d.ts +2 -0
- package/dist/components/Collection/Collection.pageLoadMore.js +21 -0
- package/dist/components/Collection/Collection.stylex.d.ts +1033 -0
- package/dist/components/Collection/Collection.stylex.js +1095 -0
- package/dist/components/Collection/CollectionItemContent.d.ts +9 -0
- package/dist/components/Collection/CollectionItemContent.js +11 -0
- package/dist/components/Collection/CollectionVirtualizer.context.d.ts +9 -0
- package/dist/components/Collection/CollectionVirtualizer.context.js +2 -0
- package/dist/components/Collection/OutlinePreview.d.ts +12 -0
- package/dist/components/Collection/OutlinePreview.js +32 -0
- package/dist/components/CollectionViews/CollectionViews.context.d.ts +8 -0
- package/dist/components/CollectionViews/CollectionViews.context.js +9 -0
- package/dist/components/CollectionViews/CollectionViews.d.ts +42 -0
- package/dist/components/CollectionViews/CollectionViews.js +53 -0
- package/dist/components/ComboBox/ComboBox.collection.d.ts +5 -0
- package/dist/components/ComboBox/ComboBox.collection.js +40 -0
- package/dist/components/ComboBox/ComboBox.d.ts +50 -0
- package/dist/components/ComboBox/ComboBox.js +98 -0
- package/dist/components/ComboBox/ComboBox.stylex.d.ts +45 -0
- package/dist/components/ComboBox/ComboBox.stylex.js +34 -0
- package/dist/components/ContainerSize/ContainerSize.d.ts +27 -0
- package/dist/components/ContainerSize/ContainerSize.js +51 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.d.ts +13 -0
- package/dist/components/ContainerSize/ContainerSize.stylex.js +16 -0
- package/dist/components/Content/Content.context.d.ts +3 -0
- package/dist/components/Content/Content.context.js +3 -0
- package/dist/components/Content/Content.d.ts +33 -0
- package/dist/components/Content/Content.js +36 -0
- package/dist/components/Content/Content.stylex.d.ts +65 -0
- package/dist/components/Content/Content.stylex.js +69 -0
- package/dist/components/Content/HeaderSlots.d.ts +9 -0
- package/dist/components/Content/HeaderSlots.js +22 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.d.ts +2 -0
- package/dist/components/ContentOrientation/ContentOrientation.context.js +2 -0
- package/dist/components/ControlSize/ControlSize.context.d.ts +3 -0
- package/dist/components/ControlSize/ControlSize.context.js +6 -0
- package/dist/components/Countdown/Countdown.d.ts +16 -0
- package/dist/components/Countdown/Countdown.js +30 -0
- package/dist/components/Countdown/Countdown.stylex.d.ts +11 -0
- package/dist/components/Countdown/Countdown.stylex.js +10 -0
- package/dist/components/CoverageTower/CoverageTower.axis.d.ts +28 -0
- package/dist/components/CoverageTower/CoverageTower.axis.js +28 -0
- package/dist/components/CoverageTower/CoverageTower.block.d.ts +39 -0
- package/dist/components/CoverageTower/CoverageTower.block.js +112 -0
- package/dist/components/CoverageTower/CoverageTower.d.ts +14 -0
- package/dist/components/CoverageTower/CoverageTower.js +284 -0
- package/dist/components/CoverageTower/CoverageTower.layout.d.ts +158 -0
- package/dist/components/CoverageTower/CoverageTower.layout.js +243 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.d.ts +404 -0
- package/dist/components/CoverageTower/CoverageTower.stylex.js +525 -0
- package/dist/components/CoverageTower/CoverageTower.types.d.ts +172 -0
- package/dist/components/CoverageTower/CoverageTower.types.js +3 -0
- package/dist/components/DateField/DateField.d.ts +61 -0
- package/dist/components/DateField/DateField.js +66 -0
- package/dist/components/DateRangeField/DateRangeField.d.ts +60 -0
- package/dist/components/DateRangeField/DateRangeField.js +68 -0
- package/dist/components/Dialog/Dialog.context.d.ts +6 -0
- package/dist/components/Dialog/Dialog.context.js +3 -0
- package/dist/components/Dialog/Dialog.d.ts +15 -0
- package/dist/components/Dialog/Dialog.js +25 -0
- package/dist/components/Dialog/Dialog.stylex.d.ts +23 -0
- package/dist/components/Dialog/Dialog.stylex.js +20 -0
- package/dist/components/Disclosure/Disclosure.d.ts +5 -0
- package/dist/components/Disclosure/Disclosure.js +119 -0
- package/dist/components/Disclosure/Disclosure.stylex.d.ts +161 -0
- package/dist/components/Disclosure/Disclosure.stylex.js +143 -0
- package/dist/components/Disclosure/Disclosure.types.d.ts +96 -0
- package/dist/components/Disclosure/Disclosure.types.js +4 -0
- package/dist/components/Disclosure/DisclosureGroup.context.d.ts +2 -0
- package/dist/components/Disclosure/DisclosureGroup.context.js +2 -0
- package/dist/components/Disclosure/DisclosureGroup.d.ts +5 -0
- package/dist/components/Disclosure/DisclosureGroup.js +10 -0
- package/dist/components/DismissButton/Dismiss.context.d.ts +3 -0
- package/dist/components/DismissButton/Dismiss.context.js +10 -0
- package/dist/components/DismissButton/DismissButton.d.ts +16 -0
- package/dist/components/DismissButton/DismissButton.js +9 -0
- package/dist/components/DropZone/DropZone.d.ts +10 -0
- package/dist/components/DropZone/DropZone.js +16 -0
- package/dist/components/DropZone/DropZone.stylex.d.ts +32 -0
- package/dist/components/DropZone/DropZone.stylex.js +27 -0
- package/dist/components/EditableText/EditableText.d.ts +21 -0
- package/dist/components/EditableText/EditableText.js +63 -0
- package/dist/components/EditableText/EditableText.stylex.d.ts +108 -0
- package/dist/components/EditableText/EditableText.stylex.js +95 -0
- package/dist/components/FieldRow/FieldRow.d.ts +20 -0
- package/dist/components/FieldRow/FieldRow.js +17 -0
- package/dist/components/FieldRow/FieldRow.stylex.d.ts +30 -0
- package/dist/components/FieldRow/FieldRow.stylex.js +52 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.d.ts +74 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.js +193 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.d.ts +47 -0
- package/dist/components/FileCollectionViewer/FileCollectionViewer.stylex.js +53 -0
- package/dist/components/FileContent/FileContent.context.d.ts +51 -0
- package/dist/components/FileContent/FileContent.context.js +45 -0
- package/dist/components/FileContent/FileContent.d.ts +66 -0
- package/dist/components/FileContent/FileContent.js +80 -0
- package/dist/components/FileContent/FileContent.markers.d.ts +7 -0
- package/dist/components/FileContent/FileContent.markers.js +28 -0
- package/dist/components/FileContent/FileContent.stylex.d.ts +152 -0
- package/dist/components/FileContent/FileContent.stylex.js +155 -0
- package/dist/components/FileContent/FileContentViewport.d.ts +42 -0
- package/dist/components/FileContent/FileContentViewport.js +117 -0
- package/dist/components/FileContent/FileDetails.d.ts +11 -0
- package/dist/components/FileContent/FileDetails.js +53 -0
- package/dist/components/FileContent/FileOutline.previews.d.ts +70 -0
- package/dist/components/FileContent/FileOutline.previews.js +278 -0
- package/dist/components/FileContent/FileOutlineRows.d.ts +21 -0
- package/dist/components/FileContent/FileOutlineRows.js +166 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.d.ts +13 -0
- package/dist/components/FileContent/FileSelectionToolbarLayer.js +125 -0
- package/dist/components/FileContent/FileStructure.d.ts +51 -0
- package/dist/components/FileContent/FileStructure.js +37 -0
- package/dist/components/FileExplorer/FileExplorer.browser.d.ts +58 -0
- package/dist/components/FileExplorer/FileExplorer.browser.js +274 -0
- package/dist/components/FileExplorer/FileExplorer.columns.d.ts +37 -0
- package/dist/components/FileExplorer/FileExplorer.columns.js +144 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.d.ts +95 -0
- package/dist/components/FileExplorer/FileExplorer.columns.stylex.js +95 -0
- package/dist/components/FileExplorer/FileExplorer.d.ts +33 -0
- package/dist/components/FileExplorer/FileExplorer.groups.d.ts +14 -0
- package/dist/components/FileExplorer/FileExplorer.groups.js +129 -0
- package/dist/components/FileExplorer/FileExplorer.hits.d.ts +12 -0
- package/dist/components/FileExplorer/FileExplorer.hits.js +51 -0
- package/dist/components/FileExplorer/FileExplorer.js +180 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.d.ts +141 -0
- package/dist/components/FileExplorer/FileExplorer.stylex.js +132 -0
- package/dist/components/FileField/FileField.d.ts +24 -0
- package/dist/components/FileField/FileField.js +37 -0
- package/dist/components/FileField/FileField.stylex.d.ts +17 -0
- package/dist/components/FileField/FileField.stylex.js +18 -0
- package/dist/components/FileIcon/FileIcon.d.ts +25 -0
- package/dist/components/FileIcon/FileIcon.js +33 -0
- package/dist/components/FilePicker/FilePicker.d.ts +40 -0
- package/dist/components/FilePicker/FilePicker.js +155 -0
- package/dist/components/FilePicker/MovePicker.d.ts +13 -0
- package/dist/components/FilePicker/MovePicker.js +19 -0
- package/dist/components/FileScope/FileHeader.stylex.d.ts +8 -0
- package/dist/components/FileScope/FileHeader.stylex.js +9 -0
- package/dist/components/FileScope/FileScope.actions.d.ts +45 -0
- package/dist/components/FileScope/FileScope.actions.js +240 -0
- package/dist/components/FileScope/FileScope.cache.d.ts +12 -0
- package/dist/components/FileScope/FileScope.cache.js +25 -0
- package/dist/components/FileScope/FileScope.d.ts +163 -0
- package/dist/components/FileScope/FileScope.drag.d.ts +27 -0
- package/dist/components/FileScope/FileScope.drag.js +88 -0
- package/dist/components/FileScope/FileScope.entryActions.d.ts +32 -0
- package/dist/components/FileScope/FileScope.entryActions.js +121 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.d.ts +9 -0
- package/dist/components/FileScope/FileScope.entryActions.stylex.js +24 -0
- package/dist/components/FileScope/FileScope.js +132 -0
- package/dist/components/FileScope/FileScope.match.d.ts +8 -0
- package/dist/components/FileScope/FileScope.match.js +76 -0
- package/dist/components/FileScope/FileScope.plainText.d.ts +6 -0
- package/dist/components/FileScope/FileScope.plainText.js +34 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.d.ts +14 -0
- package/dist/components/FileScope/FileScope.plainText.stylex.js +15 -0
- package/dist/components/FileScope/FileScope.queue.d.ts +20 -0
- package/dist/components/FileScope/FileScope.queue.js +81 -0
- package/dist/components/FileScope/FileScope.relative.d.ts +7 -0
- package/dist/components/FileScope/FileScope.relative.js +32 -0
- package/dist/components/FileScope/FileScope.search.d.ts +33 -0
- package/dist/components/FileScope/FileScope.search.js +105 -0
- package/dist/components/FileScope/FileScope.search.stylex.d.ts +7 -0
- package/dist/components/FileScope/FileScope.search.stylex.js +8 -0
- package/dist/components/FileScope/FileScope.share.d.ts +13 -0
- package/dist/components/FileScope/FileScope.share.js +159 -0
- package/dist/components/FileScope/FileScope.share.stylex.d.ts +18 -0
- package/dist/components/FileScope/FileScope.share.stylex.js +21 -0
- package/dist/components/FileScope/FileScope.types.d.ts +586 -0
- package/dist/components/FileScope/FileScope.types.js +6 -0
- package/dist/components/FileScope/FileScope.utils.d.ts +20 -0
- package/dist/components/FileScope/FileScope.utils.js +157 -0
- package/dist/components/FileScope/FileSourceError.d.ts +17 -0
- package/dist/components/FileScope/FileSourceError.js +24 -0
- package/dist/components/FileScope/FileStore.d.ts +178 -0
- package/dist/components/FileScope/FileStore.js +849 -0
- package/dist/components/FileThumbnail/FileThumbnail.d.ts +25 -0
- package/dist/components/FileThumbnail/FileThumbnail.js +242 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.d.ts +38 -0
- package/dist/components/FileThumbnail/FileThumbnail.stylex.js +44 -0
- package/dist/components/FileTree/FileTree.d.ts +77 -0
- package/dist/components/FileTree/FileTree.entries.d.ts +29 -0
- package/dist/components/FileTree/FileTree.entries.js +97 -0
- package/dist/components/FileTree/FileTree.js +800 -0
- package/dist/components/FileTree/FileTree.stylex.d.ts +46 -0
- package/dist/components/FileTree/FileTree.stylex.js +60 -0
- package/dist/components/FileTrigger/FileSelection.context.d.ts +2 -0
- package/dist/components/FileTrigger/FileSelection.context.js +2 -0
- package/dist/components/FileTrigger/FileSelection.d.ts +13 -0
- package/dist/components/FileTrigger/FileSelection.js +31 -0
- package/dist/components/FileTrigger/FileTrigger.d.ts +9 -0
- package/dist/components/FileTrigger/FileTrigger.js +22 -0
- package/dist/components/FileViewer/FileViewer.chrome.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.chrome.js +126 -0
- package/dist/components/FileViewer/FileViewer.compact.d.ts +90 -0
- package/dist/components/FileViewer/FileViewer.compact.js +124 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.d.ts +138 -0
- package/dist/components/FileViewer/FileViewer.compact.stylex.js +140 -0
- package/dist/components/FileViewer/FileViewer.controls.d.ts +66 -0
- package/dist/components/FileViewer/FileViewer.controls.js +27 -0
- package/dist/components/FileViewer/FileViewer.d.ts +79 -0
- package/dist/components/FileViewer/FileViewer.edit.d.ts +63 -0
- package/dist/components/FileViewer/FileViewer.edit.js +209 -0
- package/dist/components/FileViewer/FileViewer.embedded.d.ts +49 -0
- package/dist/components/FileViewer/FileViewer.embedded.js +107 -0
- package/dist/components/FileViewer/FileViewer.frame.d.ts +92 -0
- package/dist/components/FileViewer/FileViewer.frame.js +36 -0
- package/dist/components/FileViewer/FileViewer.goTo.d.ts +13 -0
- package/dist/components/FileViewer/FileViewer.goTo.js +30 -0
- package/dist/components/FileViewer/FileViewer.js +846 -0
- package/dist/components/FileViewer/FileViewer.links.d.ts +18 -0
- package/dist/components/FileViewer/FileViewer.links.js +10 -0
- package/dist/components/FileViewer/FileViewer.present.d.ts +10 -0
- package/dist/components/FileViewer/FileViewer.present.js +36 -0
- package/dist/components/FileViewer/FileViewer.selection.d.ts +15 -0
- package/dist/components/FileViewer/FileViewer.selection.js +26 -0
- package/dist/components/FileViewer/FileViewer.sidebar.d.ts +24 -0
- package/dist/components/FileViewer/FileViewer.sidebar.js +53 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.d.ts +87 -0
- package/dist/components/FileViewer/FileViewer.sidebar.stylex.js +95 -0
- package/dist/components/FileViewer/FileViewer.skeleton.d.ts +27 -0
- package/dist/components/FileViewer/FileViewer.skeleton.js +80 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.d.ts +86 -0
- package/dist/components/FileViewer/FileViewer.skeleton.stylex.js +70 -0
- package/dist/components/FileViewer/FileViewer.stylex.d.ts +309 -0
- package/dist/components/FileViewer/FileViewer.stylex.js +306 -0
- package/dist/components/FileViewer/FileViewer.view.d.ts +61 -0
- package/dist/components/FileViewer/FileViewer.view.js +205 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.d.ts +105 -0
- package/dist/components/FileViewer/FileViewer.view.stylex.js +109 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.d.ts +12 -0
- package/dist/components/FileViewer/FileViewerHeaderTarget.js +21 -0
- package/dist/components/FilterForm/FilterForm.context.d.ts +3 -0
- package/dist/components/FilterForm/FilterForm.context.js +3 -0
- package/dist/components/FilterForm/FilterForm.d.ts +6 -0
- package/dist/components/FilterForm/FilterForm.editor.d.ts +12 -0
- package/dist/components/FilterForm/FilterForm.editor.js +119 -0
- package/dist/components/FilterForm/FilterForm.js +125 -0
- package/dist/components/FilterForm/FilterForm.model.d.ts +9 -0
- package/dist/components/FilterForm/FilterForm.model.js +84 -0
- package/dist/components/FilterForm/FilterForm.options.d.ts +19 -0
- package/dist/components/FilterForm/FilterForm.options.js +89 -0
- package/dist/components/FilterForm/FilterForm.stylex.d.ts +17 -0
- package/dist/components/FilterForm/FilterForm.stylex.js +18 -0
- package/dist/components/FilterForm/FilterForm.types.d.ts +70 -0
- package/dist/components/FilterForm/FilterForm.types.js +1 -0
- package/dist/components/FlowFrame/FlowFrame.d.ts +11 -0
- package/dist/components/FlowFrame/FlowFrame.js +26 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.d.ts +8 -0
- package/dist/components/FlowFrame/FlowFrame.stylex.js +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.d.ts +8 -0
- package/dist/components/FocusContinuity/FocusContinuity.js +162 -0
- package/dist/components/FolderIcon/FolderIcon.d.ts +31 -0
- package/dist/components/FolderIcon/FolderIcon.js +34 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.d.ts +9 -0
- package/dist/components/FolderIcon/FolderIcon.stylex.js +11 -0
- package/dist/components/FolderLabel/FolderLabel.d.ts +11 -0
- package/dist/components/FolderLabel/FolderLabel.js +9 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.d.ts +19 -0
- package/dist/components/FolderLabel/FolderLabel.stylex.js +20 -0
- package/dist/components/ForEach/ForEach.d.ts +30 -0
- package/dist/components/ForEach/ForEach.data.d.ts +17 -0
- package/dist/components/ForEach/ForEach.data.js +32 -0
- package/dist/components/ForEach/ForEach.js +26 -0
- package/dist/components/Form/Form.context.d.ts +2 -0
- package/dist/components/Form/Form.context.js +5 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.stylex.d.ts +11 -0
- package/dist/components/Form/Form.stylex.js +12 -0
- package/dist/components/FormField/FormField.d.ts +25 -0
- package/dist/components/FormField/FormField.js +27 -0
- package/dist/components/FormField/FormField.stylex.d.ts +986 -0
- package/dist/components/FormField/FormField.stylex.js +1012 -0
- package/dist/components/Grid/Grid.d.ts +44 -0
- package/dist/components/Grid/Grid.js +212 -0
- package/dist/components/Grid/Grid.sections.d.ts +16 -0
- package/dist/components/Grid/Grid.sections.js +34 -0
- package/dist/components/Grid/Grid.stylex.d.ts +231 -0
- package/dist/components/Grid/Grid.stylex.js +235 -0
- package/dist/components/Grid/Grid.template.d.ts +6 -0
- package/dist/components/Grid/Grid.template.js +6 -0
- package/dist/components/HStack/HStack.d.ts +21 -0
- package/dist/components/HStack/HStack.js +13 -0
- package/dist/components/HStack/HStack.stylex.d.ts +174 -0
- package/dist/components/HStack/HStack.stylex.js +122 -0
- package/dist/components/Heading/Heading.context.d.ts +6 -0
- package/dist/components/Heading/Heading.context.js +12 -0
- package/dist/components/Heading/Heading.d.ts +15 -0
- package/dist/components/Heading/Heading.js +70 -0
- package/dist/components/Icon/FilledIcon.d.ts +5 -0
- package/dist/components/Icon/FilledIcon.js +12 -0
- package/dist/components/Icon/FilledIcon.stylex.d.ts +6 -0
- package/dist/components/Icon/FilledIcon.stylex.js +5 -0
- package/dist/components/Icon/Icon.d.ts +47 -0
- package/dist/components/Icon/Icon.js +101 -0
- package/dist/components/Icon/Icon.registry.d.ts +147 -0
- package/dist/components/Icon/Icon.registry.js +98 -0
- package/dist/components/Icon/Icon.stylex.d.ts +74 -0
- package/dist/components/Icon/Icon.stylex.js +63 -0
- package/dist/components/Icon/IconSlot.d.ts +18 -0
- package/dist/components/Icon/IconSlot.js +84 -0
- package/dist/components/Icon/badgedGlyph.d.ts +14 -0
- package/dist/components/Icon/badgedGlyph.js +23 -0
- package/dist/components/Icon/custom/BrandMarks.d.ts +12 -0
- package/dist/components/Icon/custom/BrandMarks.js +46 -0
- package/dist/components/Icon/custom/FileIcons.d.ts +27 -0
- package/dist/components/Icon/custom/FileIcons.js +117 -0
- package/dist/components/Icon/custom/FolderSearchInput.d.ts +6 -0
- package/dist/components/Icon/custom/FolderSearchInput.js +20 -0
- package/dist/components/Icon/custom/HighlighterOff.d.ts +2 -0
- package/dist/components/Icon/custom/HighlighterOff.js +7 -0
- package/dist/components/Icon/custom/LinkMarks.d.ts +74 -0
- package/dist/components/Icon/custom/LinkMarks.js +112 -0
- package/dist/components/Icon/custom/MessageSquareSearch.d.ts +5 -0
- package/dist/components/Icon/custom/MessageSquareSearch.js +10 -0
- package/dist/components/Icon/custom/PageRegions.d.ts +2 -0
- package/dist/components/Icon/custom/PageRegions.js +12 -0
- package/dist/components/Icon/custom/PanelExpand.d.ts +5 -0
- package/dist/components/Icon/custom/PanelExpand.js +12 -0
- package/dist/components/Icon/custom/SquareDashedPlus.d.ts +2 -0
- package/dist/components/Icon/custom/SquareDashedPlus.js +6 -0
- package/dist/components/Icon/getFileIconName.d.ts +11 -0
- package/dist/components/Icon/getFileIconName.js +140 -0
- package/dist/components/Icon/getLinkIconName.d.ts +23 -0
- package/dist/components/Icon/getLinkIconName.js +142 -0
- package/dist/components/IconButton/IconButton.d.ts +53 -0
- package/dist/components/IconButton/IconButton.js +116 -0
- package/dist/components/IconButton/IconButton.stylex.d.ts +88 -0
- package/dist/components/IconButton/IconButton.stylex.js +85 -0
- package/dist/components/Image/Image.d.ts +20 -0
- package/dist/components/Image/Image.js +45 -0
- package/dist/components/Image/Image.stylex.d.ts +70 -0
- package/dist/components/Image/Image.stylex.js +71 -0
- package/dist/components/ImageRedactor/ImageRedactor.d.ts +26 -0
- package/dist/components/ImageRedactor/ImageRedactor.js +56 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.d.ts +49 -0
- package/dist/components/ImageRedactor/ImageRedactor.stylex.js +51 -0
- package/dist/components/Indicator/Indicator.d.ts +23 -0
- package/dist/components/Indicator/Indicator.js +105 -0
- package/dist/components/Indicator/Indicator.stylex.d.ts +181 -0
- package/dist/components/Indicator/Indicator.stylex.js +176 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +23 -0
- package/dist/components/InlineAlert/InlineAlert.js +54 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.d.ts +105 -0
- package/dist/components/InlineAlert/InlineAlert.stylex.js +104 -0
- package/dist/components/IntentScope/IntentScope.d.ts +17 -0
- package/dist/components/IntentScope/IntentScope.js +19 -0
- package/dist/components/IntentScope/intentCoordinator.d.ts +12 -0
- package/dist/components/IntentScope/intentCoordinator.js +64 -0
- package/dist/components/IntentScope/useIntent.d.ts +12 -0
- package/dist/components/IntentScope/useIntent.js +47 -0
- package/dist/components/JsonValueView/JsonBlock.d.ts +31 -0
- package/dist/components/JsonValueView/JsonBlock.js +25 -0
- package/dist/components/JsonValueView/JsonCopyButton.d.ts +20 -0
- package/dist/components/JsonValueView/JsonCopyButton.js +37 -0
- package/dist/components/JsonValueView/JsonValueControls.d.ts +17 -0
- package/dist/components/JsonValueView/JsonValueControls.js +16 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.d.ts +21 -0
- package/dist/components/JsonValueView/JsonValueExpandedView.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.d.ts +38 -0
- package/dist/components/JsonValueView/JsonValueView.frame.d.ts +12 -0
- package/dist/components/JsonValueView/JsonValueView.frame.js +13 -0
- package/dist/components/JsonValueView/JsonValueView.js +98 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.d.ts +65 -0
- package/dist/components/JsonValueView/JsonValueView.stylex.js +49 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.d.ts +22 -0
- package/dist/components/JsonValueView/JsonValueView.tokens.js +20 -0
- package/dist/components/JsonValueView/JsonValueView.value.d.ts +25 -0
- package/dist/components/JsonValueView/JsonValueView.value.js +107 -0
- package/dist/components/JsonValueView/useJsonValueViewState.d.ts +20 -0
- package/dist/components/JsonValueView/useJsonValueViewState.js +54 -0
- package/dist/components/Keyboard/Keyboard.d.ts +14 -0
- package/dist/components/Keyboard/Keyboard.js +72 -0
- package/dist/components/Keyboard/Keyboard.stylex.d.ts +63 -0
- package/dist/components/Keyboard/Keyboard.stylex.js +64 -0
- package/dist/components/LazyGrid/LazyGrid.d.ts +11 -0
- package/dist/components/LazyGrid/LazyGrid.js +23 -0
- package/dist/components/LazyHStack/LazyHStack.d.ts +18 -0
- package/dist/components/LazyHStack/LazyHStack.js +11 -0
- package/dist/components/LazyList/LazyList.d.ts +11 -0
- package/dist/components/LazyList/LazyList.js +10 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.d.ts +4 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.js +192 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.d.ts +28 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.range.js +42 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.d.ts +7 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.scroll.js +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.d.ts +27 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.sticky.js +64 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.d.ts +110 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.stylex.js +100 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.d.ts +38 -0
- package/dist/components/LazyStackRoot/LazyStackRoot.types.js +1 -0
- package/dist/components/LazyTable/LazyTable.d.ts +11 -0
- package/dist/components/LazyTable/LazyTable.js +28 -0
- package/dist/components/LazyTable/LazyTable.layout.d.ts +43 -0
- package/dist/components/LazyTable/LazyTable.layout.js +213 -0
- package/dist/components/LazyTable/LazyTable.viewport.d.ts +5 -0
- package/dist/components/LazyTable/LazyTable.viewport.js +83 -0
- package/dist/components/LazyTree/LazyTree.d.ts +11 -0
- package/dist/components/LazyTree/LazyTree.js +10 -0
- package/dist/components/LazyVStack/LazyVStack.d.ts +18 -0
- package/dist/components/LazyVStack/LazyVStack.js +15 -0
- package/dist/components/Link/Link.adapter.d.ts +19 -0
- package/dist/components/Link/Link.adapter.js +18 -0
- package/dist/components/Link/Link.d.ts +52 -0
- package/dist/components/Link/Link.js +137 -0
- package/dist/components/Link/Link.stylex.d.ts +200 -0
- package/dist/components/Link/Link.stylex.js +206 -0
- package/dist/components/List/List.d.ts +16 -0
- package/dist/components/List/List.js +90 -0
- package/dist/components/List/List.stylex.d.ts +116 -0
- package/dist/components/List/List.stylex.js +116 -0
- package/dist/components/List/flattenHelpers.d.ts +19 -0
- package/dist/components/List/flattenHelpers.js +88 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +9 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.js +16 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.d.ts +23 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.stylex.js +25 -0
- package/dist/components/LockedPreview/LockedPreview.d.ts +19 -0
- package/dist/components/LockedPreview/LockedPreview.js +11 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.d.ts +26 -0
- package/dist/components/LockedPreview/LockedPreview.stylex.js +27 -0
- package/dist/components/Menu/Menu.collection.d.ts +3 -0
- package/dist/components/Menu/Menu.collection.js +130 -0
- package/dist/components/Menu/Menu.context.d.ts +7 -0
- package/dist/components/Menu/Menu.context.js +16 -0
- package/dist/components/Menu/Menu.d.ts +89 -0
- package/dist/components/Menu/Menu.identity.d.ts +3 -0
- package/dist/components/Menu/Menu.identity.js +3 -0
- package/dist/components/Menu/Menu.inlineRoom.d.ts +15 -0
- package/dist/components/Menu/Menu.inlineRoom.js +64 -0
- package/dist/components/Menu/Menu.js +235 -0
- package/dist/components/Menu/Menu.popoverTrigger.d.ts +10 -0
- package/dist/components/Menu/Menu.popoverTrigger.js +103 -0
- package/dist/components/Menu/Menu.stylex.d.ts +232 -0
- package/dist/components/Menu/Menu.stylex.js +265 -0
- package/dist/components/Menu/MenuItem.children.d.ts +5 -0
- package/dist/components/Menu/MenuItem.children.js +23 -0
- package/dist/components/Meter/Meter.d.ts +25 -0
- package/dist/components/Meter/Meter.js +34 -0
- package/dist/components/Meter/Meter.stylex.d.ts +49 -0
- package/dist/components/Meter/Meter.stylex.js +47 -0
- package/dist/components/Modal/Modal.d.ts +6 -0
- package/dist/components/Modal/Modal.js +14 -0
- package/dist/components/Modal/Modal.types.d.ts +40 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/Overlay.d.ts +11 -0
- package/dist/components/Modal/Overlay.js +63 -0
- package/dist/components/Modal/Overlay.stylex.d.ts +190 -0
- package/dist/components/Modal/Overlay.stylex.js +128 -0
- package/dist/components/Modal/OverlayBoundary.d.ts +5 -0
- package/dist/components/Modal/OverlayBoundary.js +17 -0
- package/dist/components/NavigationItem/NavigationItem.d.ts +64 -0
- package/dist/components/NavigationItem/NavigationItem.js +116 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.d.ts +15 -0
- package/dist/components/NavigationItem/NavigationItem.navigationContext.js +20 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.d.ts +30 -0
- package/dist/components/NavigationItem/NavigationItem.stylex.js +37 -0
- package/dist/components/NavigationRail/NavigationRail.context.d.ts +5 -0
- package/dist/components/NavigationRail/NavigationRail.context.js +9 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +12 -0
- package/dist/components/NavigationRail/NavigationRail.js +72 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.d.ts +57 -0
- package/dist/components/NavigationRail/NavigationRail.stylex.js +58 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.d.ts +7 -0
- package/dist/components/NavigationTree/NavigationTree.activeSections.js +75 -0
- package/dist/components/NavigationTree/NavigationTree.d.ts +21 -0
- package/dist/components/NavigationTree/NavigationTree.js +273 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.d.ts +245 -0
- package/dist/components/NavigationTree/NavigationTree.stylex.js +262 -0
- package/dist/components/NumberField/NumberField.d.ts +73 -0
- package/dist/components/NumberField/NumberField.js +112 -0
- package/dist/components/Option/Option.d.ts +18 -0
- package/dist/components/Option/Option.js +44 -0
- package/dist/components/Option/Option.stylex.d.ts +75 -0
- package/dist/components/Option/Option.stylex.js +74 -0
- package/dist/components/Page/NestedPageAuxiliary.d.ts +3 -0
- package/dist/components/Page/NestedPageAuxiliary.js +44 -0
- package/dist/components/Page/Page.d.ts +59 -0
- package/dist/components/Page/Page.js +265 -0
- package/dist/components/Page/Page.stylex.d.ts +333 -0
- package/dist/components/Page/Page.stylex.js +310 -0
- package/dist/components/Page/PageAuxiliary.context.d.ts +7 -0
- package/dist/components/Page/PageAuxiliary.context.js +2 -0
- package/dist/components/Page/PageAuxiliaryPanel.d.ts +32 -0
- package/dist/components/Page/PageAuxiliaryPanel.js +50 -0
- package/dist/components/Page/PageLabel.d.ts +26 -0
- package/dist/components/Page/PageLabel.js +56 -0
- package/dist/components/Page/PageScrollMotion.d.ts +24 -0
- package/dist/components/Page/PageScrollMotion.js +186 -0
- package/dist/components/Page/PageTitleRow.d.ts +21 -0
- package/dist/components/Page/PageTitleRow.js +50 -0
- package/dist/components/Page/PageTitleRow.stylex.d.ts +16 -0
- package/dist/components/Page/PageTitleRow.stylex.js +17 -0
- package/dist/components/Page/PageToolbar.context.d.ts +35 -0
- package/dist/components/Page/PageToolbar.context.js +43 -0
- package/dist/components/Page/PageToolbar.d.ts +13 -0
- package/dist/components/Page/PageToolbar.js +150 -0
- package/dist/components/Page/PageToolbar.motion.d.ts +5 -0
- package/dist/components/Page/PageToolbar.motion.js +27 -0
- package/dist/components/Page/PageToolbar.stylex.d.ts +41 -0
- package/dist/components/Page/PageToolbar.stylex.js +37 -0
- package/dist/components/Page/revealAuxiliary.d.ts +2 -0
- package/dist/components/Page/revealAuxiliary.js +56 -0
- package/dist/components/PageToolbar/PageToolbar.d.ts +7 -0
- package/dist/components/PageToolbar/PageToolbar.js +12 -0
- package/dist/components/Popover/OverflowPickerSearch.d.ts +7 -0
- package/dist/components/Popover/OverflowPickerSearch.js +10 -0
- package/dist/components/Popover/Popover.anchor.d.ts +12 -0
- package/dist/components/Popover/Popover.anchor.js +87 -0
- package/dist/components/Popover/Popover.context.d.ts +11 -0
- package/dist/components/Popover/Popover.context.js +11 -0
- package/dist/components/Popover/Popover.d.ts +69 -0
- package/dist/components/Popover/Popover.js +253 -0
- package/dist/components/Popover/Popover.pressTrigger.d.ts +12 -0
- package/dist/components/Popover/Popover.pressTrigger.js +54 -0
- package/dist/components/Popover/Popover.stylex.d.ts +98 -0
- package/dist/components/Popover/Popover.stylex.js +109 -0
- package/dist/components/Popover/Popover.viewport.d.ts +10 -0
- package/dist/components/Popover/Popover.viewport.js +61 -0
- package/dist/components/Popover/useHoverOpen.d.ts +24 -0
- package/dist/components/Popover/useHoverOpen.js +132 -0
- package/dist/components/Progress/Progress.d.ts +21 -0
- package/dist/components/Progress/Progress.js +20 -0
- package/dist/components/Progress/Progress.stylex.d.ts +90 -0
- package/dist/components/Progress/Progress.stylex.js +83 -0
- package/dist/components/RadioGroup/RadioGroup.children.d.ts +8 -0
- package/dist/components/RadioGroup/RadioGroup.children.js +64 -0
- package/dist/components/RadioGroup/RadioGroup.colors.d.ts +13 -0
- package/dist/components/RadioGroup/RadioGroup.colors.js +11 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +73 -0
- package/dist/components/RadioGroup/RadioGroup.js +85 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.d.ts +87 -0
- package/dist/components/RadioGroup/RadioGroup.stylex.js +57 -0
- package/dist/components/ReflowContainer/ReflowContainer.d.ts +30 -0
- package/dist/components/ReflowContainer/ReflowContainer.js +106 -0
- package/dist/components/Region/Region.d.ts +50 -0
- package/dist/components/Region/Region.js +29 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.d.ts +34 -0
- package/dist/components/RenderingTreatment/RenderingTreatment.context.js +49 -0
- package/dist/components/ResourceList/ResourceList.d.ts +7 -0
- package/dist/components/ResourceList/ResourceList.js +89 -0
- package/dist/components/ResourceList/ResourceList.model.d.ts +65 -0
- package/dist/components/ResourceList/ResourceList.model.js +372 -0
- package/dist/components/ResourceList/ResourceList.rows.d.ts +18 -0
- package/dist/components/ResourceList/ResourceList.rows.js +86 -0
- package/dist/components/ResourceList/ResourceList.stylex.d.ts +338 -0
- package/dist/components/ResourceList/ResourceList.stylex.js +272 -0
- package/dist/components/ResourceList/ResourceList.table.d.ts +22 -0
- package/dist/components/ResourceList/ResourceList.table.js +149 -0
- package/dist/components/ResourceList/ResourceList.types.d.ts +120 -0
- package/dist/components/ResourceList/ResourceList.types.js +18 -0
- package/dist/components/Reveal/Reveal.d.ts +36 -0
- package/dist/components/Reveal/Reveal.js +18 -0
- package/dist/components/Reveal/Reveal.stylex.d.ts +125 -0
- package/dist/components/Reveal/Reveal.stylex.js +155 -0
- package/dist/components/RotatingStatus/RotatingStatus.d.ts +17 -0
- package/dist/components/RotatingStatus/RotatingStatus.js +43 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.d.ts +27 -0
- package/dist/components/RotatingStatus/RotatingStatus.stylex.js +28 -0
- package/dist/components/RouterProvider/RouterProvider.d.ts +22 -0
- package/dist/components/RouterProvider/RouterProvider.js +12 -0
- package/dist/components/RowButton/RowButton.d.ts +21 -0
- package/dist/components/RowButton/RowButton.js +16 -0
- package/dist/components/RowButton/RowButton.stylex.d.ts +71 -0
- package/dist/components/RowButton/RowButton.stylex.js +80 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.d.ts +20 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.context.js +229 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.d.ts +10 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.d.ts +16 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.edges.js +114 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.js +30 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.d.ts +4 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.styles.js +44 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.d.ts +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.stylex.js +15 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.d.ts +71 -0
- package/dist/components/SafeInsetArea/SafeInsetArea.types.js +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +73 -0
- package/dist/components/ScrollArea/ScrollArea.js +176 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.d.ts +222 -0
- package/dist/components/ScrollArea/ScrollArea.stylex.js +253 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.d.ts +8 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.js +13 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.d.ts +60 -0
- package/dist/components/ScrollArea/ScrollAreaEdgeEffect.stylex.js +37 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.d.ts +23 -0
- package/dist/components/ScrollArea/ScrollAreaMarker.js +14 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.d.ts +17 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.js +206 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.d.ts +166 -0
- package/dist/components/ScrollArea/ScrollAreaMarkers.stylex.js +194 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.d.ts +20 -0
- package/dist/components/ScrollArea/ScrollAreaOutline.js +53 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.d.ts +16 -0
- package/dist/components/ScrollArea/ScrollAreaScrollbar.js +137 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.d.ts +5 -0
- package/dist/components/ScrollArea/navigateToScrollTarget.js +17 -0
- package/dist/components/ScrollArea/scrollbarGeometry.d.ts +6 -0
- package/dist/components/ScrollArea/scrollbarGeometry.js +7 -0
- package/dist/components/ScrollArea/useHasNoTabStops.d.ts +3 -0
- package/dist/components/ScrollArea/useHasNoTabStops.js +37 -0
- package/dist/components/ScrollArea/useHorizontalWheel.d.ts +3 -0
- package/dist/components/ScrollArea/useHorizontalWheel.js +40 -0
- package/dist/components/ScrollArea/useMarkerNavigation.d.ts +7 -0
- package/dist/components/ScrollArea/useMarkerNavigation.js +41 -0
- package/dist/components/ScrollArea/useMarkerRail.d.ts +16 -0
- package/dist/components/ScrollArea/useMarkerRail.js +37 -0
- package/dist/components/ScrollArea/useScrollArea.d.ts +22 -0
- package/dist/components/ScrollArea/useScrollArea.js +103 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.d.ts +38 -0
- package/dist/components/ScrollArea/useScrollAreaMarkers.js +154 -0
- package/dist/components/SearchField/SearchField.d.ts +29 -0
- package/dist/components/SearchField/SearchField.js +51 -0
- package/dist/components/SearchField/SearchField.stylex.d.ts +82 -0
- package/dist/components/SearchField/SearchField.stylex.js +60 -0
- package/dist/components/SecretField/SecretField.d.ts +66 -0
- package/dist/components/SecretField/SecretField.js +61 -0
- package/dist/components/Section/Section.d.ts +41 -0
- package/dist/components/Section/Section.data.d.ts +12 -0
- package/dist/components/Section/Section.data.js +16 -0
- package/dist/components/Section/Section.js +45 -0
- package/dist/components/Section/Section.stylex.d.ts +24 -0
- package/dist/components/Section/Section.stylex.js +26 -0
- package/dist/components/Select/Select.body.d.ts +14 -0
- package/dist/components/Select/Select.body.js +17 -0
- package/dist/components/Select/Select.collection.d.ts +7 -0
- package/dist/components/Select/Select.collection.js +67 -0
- package/dist/components/Select/Select.context.d.ts +1 -0
- package/dist/components/Select/Select.context.js +2 -0
- package/dist/components/Select/Select.d.ts +60 -0
- package/dist/components/Select/Select.js +118 -0
- package/dist/components/Select/Select.stylex.d.ts +131 -0
- package/dist/components/Select/Select.stylex.js +132 -0
- package/dist/components/Select/useSelectFormReset.d.ts +2 -0
- package/dist/components/Select/useSelectFormReset.js +25 -0
- package/dist/components/Separator/Separator.d.ts +26 -0
- package/dist/components/Separator/Separator.js +31 -0
- package/dist/components/Separator/Separator.stylex.d.ts +33 -0
- package/dist/components/Separator/Separator.stylex.js +34 -0
- package/dist/components/Sheet/Sheet.d.ts +24 -0
- package/dist/components/Sheet/Sheet.js +17 -0
- package/dist/components/Shortcuts/ShortcutIndicator.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutIndicator.js +10 -0
- package/dist/components/Shortcuts/Shortcuts.context.d.ts +9 -0
- package/dist/components/Shortcuts/Shortcuts.context.js +8 -0
- package/dist/components/Shortcuts/Shortcuts.d.ts +14 -0
- package/dist/components/Shortcuts/Shortcuts.js +50 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.d.ts +29 -0
- package/dist/components/Shortcuts/Shortcuts.stylex.js +28 -0
- package/dist/components/Shortcuts/Shortcuts.types.d.ts +56 -0
- package/dist/components/Shortcuts/Shortcuts.types.js +1 -0
- package/dist/components/Shortcuts/ShortcutsHelp.d.ts +5 -0
- package/dist/components/Shortcuts/ShortcutsHelp.js +70 -0
- package/dist/components/Shortcuts/shortcutKeys.d.ts +6 -0
- package/dist/components/Shortcuts/shortcutKeys.js +61 -0
- package/dist/components/Shortcuts/shortcutRegistry.d.ts +36 -0
- package/dist/components/Shortcuts/shortcutRegistry.js +153 -0
- package/dist/components/Shortcuts/useShortcut.d.ts +12 -0
- package/dist/components/Shortcuts/useShortcut.js +127 -0
- package/dist/components/ShowMore/ShowMore.d.ts +18 -0
- package/dist/components/ShowMore/ShowMore.js +44 -0
- package/dist/components/ShowMore/ShowMore.lines.d.ts +23 -0
- package/dist/components/ShowMore/ShowMore.lines.js +49 -0
- package/dist/components/ShowMore/ShowMore.stylex.d.ts +24 -0
- package/dist/components/ShowMore/ShowMore.stylex.js +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -0
- package/dist/components/Skeleton/Skeleton.js +8 -0
- package/dist/components/Skeleton/Skeleton.stylex.d.ts +68 -0
- package/dist/components/Skeleton/Skeleton.stylex.js +78 -0
- package/dist/components/Skeleton/useSkeleton.d.ts +87 -0
- package/dist/components/Skeleton/useSkeleton.js +34 -0
- package/dist/components/Slider/Slider.d.ts +44 -0
- package/dist/components/Slider/Slider.js +56 -0
- package/dist/components/Slider/Slider.stylex.d.ts +105 -0
- package/dist/components/Slider/Slider.stylex.js +70 -0
- package/dist/components/Slot/Slot.d.ts +17 -0
- package/dist/components/Slot/Slot.js +83 -0
- package/dist/components/Slot/Slot.resolve.d.ts +3 -0
- package/dist/components/Slot/Slot.resolve.js +22 -0
- package/dist/components/Slot/Slot.scope.d.ts +7 -0
- package/dist/components/Slot/Slot.scope.js +19 -0
- package/dist/components/Slot/Slot.types.d.ts +64 -0
- package/dist/components/Slot/Slot.types.js +1 -0
- package/dist/components/Spacer/Spacer.d.ts +5 -0
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/Spacer/Spacer.stylex.d.ts +10 -0
- package/dist/components/Spacer/Spacer.stylex.js +10 -0
- package/dist/components/SplitLayout/SplitLayout.d.ts +43 -0
- package/dist/components/SplitLayout/SplitLayout.js +20 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.d.ts +51 -0
- package/dist/components/SplitLayout/SplitLayout.stylex.js +77 -0
- package/dist/components/Stack/StackInsets.context.d.ts +14 -0
- package/dist/components/Stack/StackInsets.context.js +17 -0
- package/dist/components/Stack/StackPadding.stylex.d.ts +113 -0
- package/dist/components/Stack/StackPadding.stylex.js +154 -0
- package/dist/components/Stack/StackPropTypes.d.ts +30 -0
- package/dist/components/Stack/StackPropTypes.js +14 -0
- package/dist/components/StatCard/StatCard.d.ts +32 -0
- package/dist/components/StatCard/StatCard.js +15 -0
- package/dist/components/StatCard/StatCard.stylex.d.ts +101 -0
- package/dist/components/StatCard/StatCard.stylex.js +127 -0
- package/dist/components/StatCard/StatCard.vars.stylex.d.ts +22 -0
- package/dist/components/StatCard/StatCard.vars.stylex.js +26 -0
- package/dist/components/StepList/StepList.d.ts +52 -0
- package/dist/components/StepList/StepList.js +36 -0
- package/dist/components/StepList/StepList.stylex.d.ts +139 -0
- package/dist/components/StepList/StepList.stylex.js +134 -0
- package/dist/components/Stepper/Stepper.d.ts +49 -0
- package/dist/components/Stepper/Stepper.js +59 -0
- package/dist/components/Stepper/Stepper.stylex.d.ts +131 -0
- package/dist/components/Stepper/Stepper.stylex.js +147 -0
- package/dist/components/Stepper/useStepNamesFit.d.ts +12 -0
- package/dist/components/Stepper/useStepNamesFit.js +65 -0
- package/dist/components/Surface/Surface.colors.d.ts +4 -0
- package/dist/components/Surface/Surface.colors.js +34 -0
- package/dist/components/Surface/Surface.d.ts +41 -0
- package/dist/components/Surface/Surface.js +36 -0
- package/dist/components/Surface/Surface.stylex.d.ts +139 -0
- package/dist/components/Surface/Surface.stylex.js +121 -0
- package/dist/components/Switch/Switch.d.ts +50 -0
- package/dist/components/Switch/Switch.js +28 -0
- package/dist/components/TOC/TOC.activeEntry.d.ts +14 -0
- package/dist/components/TOC/TOC.activeEntry.js +89 -0
- package/dist/components/TOC/TOC.context.d.ts +33 -0
- package/dist/components/TOC/TOC.context.js +55 -0
- package/dist/components/TOC/TOC.d.ts +8 -0
- package/dist/components/TOC/TOC.js +49 -0
- package/dist/components/TOC/TOC.stylex.d.ts +60 -0
- package/dist/components/TOC/TOC.stylex.js +59 -0
- package/dist/components/Table/Table.d.ts +6 -0
- package/dist/components/Table/Table.data.d.ts +24 -0
- package/dist/components/Table/Table.data.js +224 -0
- package/dist/components/Table/Table.js +317 -0
- package/dist/components/Table/Table.layout.d.ts +33 -0
- package/dist/components/Table/Table.layout.js +246 -0
- package/dist/components/Table/Table.parts.d.ts +13 -0
- package/dist/components/Table/Table.parts.js +17 -0
- package/dist/components/Table/Table.stylex.d.ts +504 -0
- package/dist/components/Table/Table.stylex.js +468 -0
- package/dist/components/Table/Table.types.d.ts +114 -0
- package/dist/components/Table/Table.types.js +11 -0
- package/dist/components/Table/TableRowLink.d.ts +16 -0
- package/dist/components/Table/TableRowLink.js +39 -0
- package/dist/components/Tabs/NewTabAction.d.ts +7 -0
- package/dist/components/Tabs/NewTabAction.js +25 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/Tab.js +10 -0
- package/dist/components/Tabs/TabActionButton.d.ts +14 -0
- package/dist/components/Tabs/TabActionButton.js +60 -0
- package/dist/components/Tabs/TabActions.d.ts +12 -0
- package/dist/components/Tabs/TabActions.js +119 -0
- package/dist/components/Tabs/TabOutlet.d.ts +9 -0
- package/dist/components/Tabs/TabOutlet.js +15 -0
- package/dist/components/Tabs/TabPanelTransition.d.ts +18 -0
- package/dist/components/Tabs/TabPanelTransition.js +20 -0
- package/dist/components/Tabs/Tabs.children.d.ts +16 -0
- package/dist/components/Tabs/Tabs.children.js +97 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.js +270 -0
- package/dist/components/Tabs/Tabs.state.d.ts +19 -0
- package/dist/components/Tabs/Tabs.state.js +13 -0
- package/dist/components/Tabs/Tabs.stylex.d.ts +476 -0
- package/dist/components/Tabs/Tabs.stylex.js +376 -0
- package/dist/components/Tabs/Tabs.types.d.ts +99 -0
- package/dist/components/Tabs/Tabs.types.js +6 -0
- package/dist/components/Tabs/TabsPicker.d.ts +8 -0
- package/dist/components/Tabs/TabsPicker.js +21 -0
- package/dist/components/Tabs/useTabOverflow.d.ts +9 -0
- package/dist/components/Tabs/useTabOverflow.js +55 -0
- package/dist/components/Tabs/useTabReorder.d.ts +22 -0
- package/dist/components/Tabs/useTabReorder.js +133 -0
- package/dist/components/Tabs/useTabScrollRestoration.d.ts +4 -0
- package/dist/components/Tabs/useTabScrollRestoration.js +100 -0
- package/dist/components/Tabs/useTabs.d.ts +10 -0
- package/dist/components/Tabs/useTabs.js +43 -0
- package/dist/components/Tabs/useTabsPickerMotion.d.ts +6 -0
- package/dist/components/Tabs/useTabsPickerMotion.js +64 -0
- package/dist/components/TagGroup/CollapsedTagGroup.d.ts +13 -0
- package/dist/components/TagGroup/CollapsedTagGroup.js +205 -0
- package/dist/components/TagGroup/Tag.d.ts +22 -0
- package/dist/components/TagGroup/Tag.js +5 -0
- package/dist/components/TagGroup/TagCollection.d.ts +15 -0
- package/dist/components/TagGroup/TagCollection.js +30 -0
- package/dist/components/TagGroup/TagContents.d.ts +8 -0
- package/dist/components/TagGroup/TagContents.js +109 -0
- package/dist/components/TagGroup/TagGroup.children.d.ts +11 -0
- package/dist/components/TagGroup/TagGroup.children.js +59 -0
- package/dist/components/TagGroup/TagGroup.d.ts +29 -0
- package/dist/components/TagGroup/TagGroup.js +20 -0
- package/dist/components/TagGroup/TagGroup.stylex.d.ts +226 -0
- package/dist/components/TagGroup/TagGroup.stylex.js +162 -0
- package/dist/components/TagGroup/tagGroupLayout.d.ts +5 -0
- package/dist/components/TagGroup/tagGroupLayout.js +20 -0
- package/dist/components/Text/Text.d.ts +81 -0
- package/dist/components/Text/Text.js +124 -0
- package/dist/components/Text/Text.stylex.d.ts +239 -0
- package/dist/components/Text/Text.stylex.js +231 -0
- package/dist/components/Text/Text.truncation.d.ts +44 -0
- package/dist/components/Text/Text.truncation.js +365 -0
- package/dist/components/Text/Text.truncation.stylex.d.ts +42 -0
- package/dist/components/Text/Text.truncation.stylex.js +53 -0
- package/dist/components/TextArea/TextArea.d.ts +63 -0
- package/dist/components/TextArea/TextArea.js +43 -0
- package/dist/components/TextField/TextField.d.ts +67 -0
- package/dist/components/TextField/TextField.js +46 -0
- package/dist/components/TileButton/TileButton.d.ts +37 -0
- package/dist/components/TileButton/TileButton.js +23 -0
- package/dist/components/TileButton/TileButton.stylex.d.ts +68 -0
- package/dist/components/TileButton/TileButton.stylex.js +74 -0
- package/dist/components/TileButton/TileButton.vars.stylex.d.ts +10 -0
- package/dist/components/TileButton/TileButton.vars.stylex.js +13 -0
- package/dist/components/Time/Time.d.ts +25 -0
- package/dist/components/Time/Time.format.d.ts +22 -0
- package/dist/components/Time/Time.format.js +55 -0
- package/dist/components/Time/Time.js +31 -0
- package/dist/components/Time/Time.stylex.d.ts +14 -0
- package/dist/components/Time/Time.stylex.js +15 -0
- package/dist/components/TimeField/TimeField.d.ts +52 -0
- package/dist/components/TimeField/TimeField.js +53 -0
- package/dist/components/TimelineLanes/TimelineLanes.d.ts +71 -0
- package/dist/components/TimelineLanes/TimelineLanes.js +83 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.d.ts +14 -0
- package/dist/components/TimelineLanes/TimelineLanes.scale.js +35 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.d.ts +280 -0
- package/dist/components/TimelineLanes/TimelineLanes.stylex.js +329 -0
- package/dist/components/Toast/Toast.context.d.ts +3 -0
- package/dist/components/Toast/Toast.context.js +8 -0
- package/dist/components/Toast/Toast.d.ts +5 -0
- package/dist/components/Toast/Toast.js +63 -0
- package/dist/components/Toast/Toast.stylex.d.ts +173 -0
- package/dist/components/Toast/Toast.stylex.js +137 -0
- package/dist/components/Toast/Toast.types.d.ts +31 -0
- package/dist/components/Toast/Toast.types.js +9 -0
- package/dist/components/Toast/ToastCountdown.d.ts +7 -0
- package/dist/components/Toast/ToastCountdown.js +48 -0
- package/dist/components/Toast/ToastView.d.ts +6 -0
- package/dist/components/Toast/ToastView.js +39 -0
- package/dist/components/Toast/createToastEntry.d.ts +9 -0
- package/dist/components/Toast/createToastEntry.js +33 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +45 -0
- package/dist/components/ToggleButton/ToggleButton.js +97 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.d.ts +118 -0
- package/dist/components/ToggleButton/ToggleButton.stylex.js +109 -0
- package/dist/components/Toolbar/Toolbar.children.d.ts +19 -0
- package/dist/components/Toolbar/Toolbar.children.js +83 -0
- package/dist/components/Toolbar/Toolbar.d.ts +37 -0
- package/dist/components/Toolbar/Toolbar.js +180 -0
- package/dist/components/Toolbar/Toolbar.layout.d.ts +20 -0
- package/dist/components/Toolbar/Toolbar.layout.js +104 -0
- package/dist/components/Toolbar/Toolbar.menu.d.ts +27 -0
- package/dist/components/Toolbar/Toolbar.menu.js +213 -0
- package/dist/components/Toolbar/Toolbar.stylex.d.ts +69 -0
- package/dist/components/Toolbar/Toolbar.stylex.js +48 -0
- package/dist/components/Toolbar/ToolbarControl.context.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarControl.context.js +9 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.d.ts +42 -0
- package/dist/components/Toolbar/ToolbarControl.stylex.js +50 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.d.ts +3 -0
- package/dist/components/Toolbar/ToolbarGroupLabel.js +22 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.d.ts +6 -0
- package/dist/components/Toolbar/ToolbarMenuTrigger.js +20 -0
- package/dist/components/Toolbar/ToolbarNote.d.ts +13 -0
- package/dist/components/Toolbar/ToolbarNote.js +8 -0
- package/dist/components/Tooltip/Tooltip.d.ts +43 -0
- package/dist/components/Tooltip/Tooltip.js +139 -0
- package/dist/components/Tooltip/Tooltip.stylex.d.ts +106 -0
- package/dist/components/Tooltip/Tooltip.stylex.js +105 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.unavailableContext.js +12 -0
- package/dist/components/TourLayer/TourLayer.d.ts +14 -0
- package/dist/components/TourLayer/TourLayer.js +17 -0
- package/dist/components/TourLayer/TourLayer.stylex.d.ts +10 -0
- package/dist/components/TourLayer/TourLayer.stylex.js +11 -0
- package/dist/components/Tree/Tree.d.ts +21 -0
- package/dist/components/Tree/Tree.js +88 -0
- package/dist/components/Tree/Tree.stylex.d.ts +101 -0
- package/dist/components/Tree/Tree.stylex.js +103 -0
- package/dist/components/Trigger/Trigger.d.ts +10 -0
- package/dist/components/Trigger/Trigger.js +23 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.d.ts +44 -0
- package/dist/components/UnsavedChangesScope/UnsavedChangesScope.js +136 -0
- package/dist/components/VStack/VStack.d.ts +26 -0
- package/dist/components/VStack/VStack.js +11 -0
- package/dist/components/VStack/VStack.stylex.d.ts +174 -0
- package/dist/components/VStack/VStack.stylex.js +124 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +13 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.d.ts +28 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.js +45 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.d.ts +88 -0
- package/dist/components/WelcomeDialog/WelcomeDialog.stylex.js +106 -0
- package/dist/components/WindowSplitter/WindowSplitter.d.ts +43 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.d.ts +6 -0
- package/dist/components/WindowSplitter/WindowSplitter.detached.js +7 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.d.ts +70 -0
- package/dist/components/WindowSplitter/WindowSplitter.drawer.js +88 -0
- package/dist/components/WindowSplitter/WindowSplitter.js +613 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.d.ts +33 -0
- package/dist/components/WindowSplitter/WindowSplitter.peek.js +90 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.d.ts +11 -0
- package/dist/components/WindowSplitter/WindowSplitter.sizing.js +50 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.d.ts +180 -0
- package/dist/components/WindowSplitter/WindowSplitter.stylex.js +163 -0
- package/dist/components/ZStack/ZStack.d.ts +41 -0
- package/dist/components/ZStack/ZStack.js +43 -0
- package/dist/components/ZStack/ZStack.stylex.d.ts +78 -0
- package/dist/components/ZStack/ZStack.stylex.js +42 -0
- package/dist/experimental/index.d.ts +48 -0
- package/dist/experimental/index.js +45 -0
- package/dist/files/index.d.ts +22 -0
- package/dist/files/index.js +19 -0
- package/dist/foundations/Color.context.d.ts +29 -0
- package/dist/foundations/Color.context.js +58 -0
- package/dist/foundations/Color.core.d.ts +70 -0
- package/dist/foundations/Color.core.js +323 -0
- package/dist/foundations/Color.d.ts +1 -0
- package/dist/foundations/Color.js +1 -0
- package/dist/foundations/Color.styles.stylex.d.ts +21 -0
- package/dist/foundations/Color.styles.stylex.js +34 -0
- package/dist/foundations/constants.stylex.d.ts +18 -0
- package/dist/foundations/constants.stylex.js +20 -0
- package/dist/foundations/textStyles.stylex.d.ts +87 -0
- package/dist/foundations/textStyles.stylex.js +88 -0
- package/dist/foundations/viewport.d.ts +5 -0
- package/dist/foundations/viewport.js +17 -0
- package/dist/index.d.ts +171 -0
- package/dist/index.js +189 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +1 -0
- package/dist/theming/OverlayRegion.d.ts +15 -0
- package/dist/theming/OverlayRegion.js +36 -0
- package/dist/theming/ThemeRegion.d.ts +22 -0
- package/dist/theming/ThemeRegion.js +28 -0
- package/dist/theming/ThemeScope.context.d.ts +40 -0
- package/dist/theming/ThemeScope.context.js +76 -0
- package/dist/theming/ThemeScope.d.ts +35 -0
- package/dist/theming/ThemeScope.js +67 -0
- package/dist/theming/ThemeScope.stylex.d.ts +34 -0
- package/dist/theming/ThemeScope.stylex.js +54 -0
- package/dist/theming/color.d.ts +51 -0
- package/dist/theming/color.js +175 -0
- package/dist/theming/createTheme.d.ts +145 -0
- package/dist/theming/createTheme.js +1009 -0
- package/dist/theming/designTokens.d.ts +49 -0
- package/dist/theming/designTokens.js +138 -0
- package/dist/theming/effectiveTheme.d.ts +154 -0
- package/dist/theming/effectiveTheme.js +62 -0
- package/dist/theming/themeStylesheet.d.ts +20 -0
- package/dist/theming/themeStylesheet.js +106 -0
- package/dist/theming/tokens.d.ts +48 -0
- package/dist/theming/tokens.js +314 -0
- package/dist/theming/tokens.stylex.d.ts +592 -0
- package/dist/theming/tokens.stylex.js +1265 -0
- package/dist/utils/declarationError.d.ts +7 -0
- package/dist/utils/declarationError.js +16 -0
- package/dist/utils/deviceCache.d.ts +40 -0
- package/dist/utils/deviceCache.js +234 -0
- package/dist/utils/isSoftwareKeyboardLikely.d.ts +2 -0
- package/dist/utils/isSoftwareKeyboardLikely.js +12 -0
- package/dist/utils/performance.d.ts +3 -0
- package/dist/utils/performance.js +5 -0
- package/dist/utils/preferences.d.ts +35 -0
- package/dist/utils/preferences.js +77 -0
- package/dist/utils/preload.d.ts +10 -0
- package/dist/utils/preload.js +12 -0
- package/dist/utils/props.d.ts +5 -0
- package/dist/utils/props.js +10 -0
- package/dist/utils/resolveAutoFocus.d.ts +3 -0
- package/dist/utils/resolveAutoFocus.js +8 -0
- package/dist/utils/trackRegionActivity.d.ts +13 -0
- package/dist/utils/trackRegionActivity.js +72 -0
- package/dist/utils/useAutoFocus.d.ts +6 -0
- package/dist/utils/useAutoFocus.js +16 -0
- package/dist/utils/visuallyHidden.stylex.d.ts +15 -0
- package/dist/utils/visuallyHidden.stylex.js +15 -0
- package/package.json +139 -7
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import type Highcharts from 'highcharts/esm/highcharts.src.js';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { Color } from '../../foundations/Color.ts';
|
|
4
|
+
/** A plotted value. Dates and times are ISO strings: `2026-10-16` or `2026-10-16T09:30:00Z`. */
|
|
5
|
+
export type ChartValue = number | string;
|
|
6
|
+
export declare const chartNumberFormats: readonly ["number", "percent", "signedPercent", "currency", "compact", "duration"];
|
|
7
|
+
/**
|
|
8
|
+
* How numbers print. `percent` takes percent points: 40 prints as 40%. `signedPercent` adds a
|
|
9
|
+
* plus sign to increases. `currency` is US dollars. `compact` prints 12,400 as 12.4K.
|
|
10
|
+
* `duration` takes seconds: 0.25 prints as 250ms.
|
|
11
|
+
*/
|
|
12
|
+
export type ChartNumberFormat = (typeof chartNumberFormats)[number];
|
|
13
|
+
export declare const chartDateFormats: readonly ["date", "dateTime", "month", "year"];
|
|
14
|
+
/** How dates print, in UTC. Values are ISO strings. */
|
|
15
|
+
export type ChartDateFormat = (typeof chartDateFormats)[number];
|
|
16
|
+
export declare const chartAxisScales: readonly ["linear", "log"];
|
|
17
|
+
/**
|
|
18
|
+
* How a number axis spaces its values: evenly (`linear`), or by order of magnitude (`log`), so
|
|
19
|
+
* $1K, $10K and $100K sit equally apart. Use `log` for heavy-tailed data, such as claim
|
|
20
|
+
* severities from $1K to $10M, where a linear axis crushes most values against zero. Every
|
|
21
|
+
* value on a log axis must be above zero, and it suits points, lines and areas only.
|
|
22
|
+
*/
|
|
23
|
+
export type ChartAxisScale = (typeof chartAxisScales)[number];
|
|
24
|
+
export type ChartNumberAxis = {
|
|
25
|
+
/** Names the axis, its values in point descriptions, and its column in the data table. */
|
|
26
|
+
readonly label: string;
|
|
27
|
+
/** Numbers by default. Without a format, text values are categories in order of appearance. */
|
|
28
|
+
readonly format?: ChartNumberFormat;
|
|
29
|
+
/** Defaults to `linear`. */
|
|
30
|
+
readonly scale?: ChartAxisScale;
|
|
31
|
+
/** Ends of the axis. By default they fit the data and include zero (not on a log axis). */
|
|
32
|
+
readonly min?: number;
|
|
33
|
+
readonly max?: number;
|
|
34
|
+
};
|
|
35
|
+
export type ChartDateAxis = {
|
|
36
|
+
/** Names the axis, its values in point descriptions, and its column in the data table. */
|
|
37
|
+
readonly label: string;
|
|
38
|
+
readonly format: ChartDateFormat;
|
|
39
|
+
/** Ends of the axis as ISO dates. By default they fit the data. */
|
|
40
|
+
readonly min?: string;
|
|
41
|
+
readonly max?: string;
|
|
42
|
+
};
|
|
43
|
+
/** One axis. Its format picks the scale: a date format gives a time axis. */
|
|
44
|
+
export type ChartAxis = ChartNumberAxis | ChartDateAxis;
|
|
45
|
+
export declare const chartSeriesArrangements: readonly ["grouped", "stacked", "normalized"];
|
|
46
|
+
/**
|
|
47
|
+
* How bars and areas of several series at one x combine: side by side (`grouped`), on top of
|
|
48
|
+
* each other (`stacked`), or stacked to 100% so each shows its share (`normalized`).
|
|
49
|
+
*/
|
|
50
|
+
export type ChartSeriesArrangement = (typeof chartSeriesArrangements)[number];
|
|
51
|
+
export declare const chartSeriesShapes: readonly ["distinct", "circles"];
|
|
52
|
+
/** Whether each series' dots take a shape of their own, or every series' dots are round. */
|
|
53
|
+
export type ChartSeriesShapes = (typeof chartSeriesShapes)[number];
|
|
54
|
+
export type ChartSeries = {
|
|
55
|
+
/** What the series names are, such as "Product". Titles the legend and the table column. */
|
|
56
|
+
readonly label: string;
|
|
57
|
+
/** Fixes each series name's color, so filtering out one series never repaints the others. */
|
|
58
|
+
readonly order?: readonly string[];
|
|
59
|
+
/**
|
|
60
|
+
* How bars and areas of several series at one x combine. Defaults to `grouped`. With
|
|
61
|
+
* `normalized`, the measured axis shows each series' share; tips and the table keep values.
|
|
62
|
+
*/
|
|
63
|
+
readonly arrangement?: ChartSeriesArrangement;
|
|
64
|
+
/**
|
|
65
|
+
* Colors for some series by name, such as `{ Target: 'neutral', p99: Color.danger }` for a
|
|
66
|
+
* target read against the others, or a series that stands out. Purely visual: other series
|
|
67
|
+
* keep their palette colors, and every series keeps its line style and dot shape, so tones
|
|
68
|
+
* never become the only difference.
|
|
69
|
+
*/
|
|
70
|
+
readonly tones?: Readonly<Record<string, ChartTone>>;
|
|
71
|
+
/**
|
|
72
|
+
* `circles` draws every series' dots round, for a chart whose positions already tell its
|
|
73
|
+
* series apart, such as increases above a zero line and cuts below it: color is then a second
|
|
74
|
+
* cue, not the only one. Defaults to `distinct`, where each series' dots take their own shape.
|
|
75
|
+
* Lines keep their own styles either way.
|
|
76
|
+
*/
|
|
77
|
+
readonly shapes?: ChartSeriesShapes;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* A color: `'neutral'` gray or a `Color`. On Chart it colors the only series, or shades several;
|
|
81
|
+
* in `series.tones` it colors one series by name.
|
|
82
|
+
*/
|
|
83
|
+
export type ChartTone = 'neutral' | Color;
|
|
84
|
+
/** What cell shading measures, such as loss ratio. Required when the chart has cells. */
|
|
85
|
+
export type ChartColorScale = {
|
|
86
|
+
readonly label: string;
|
|
87
|
+
readonly format?: ChartNumberFormat;
|
|
88
|
+
};
|
|
89
|
+
/** The scale a point's size measures, such as written premium, named and formatted like an axis. */
|
|
90
|
+
export type ChartSizeScale = {
|
|
91
|
+
readonly label: string;
|
|
92
|
+
readonly format?: ChartNumberFormat;
|
|
93
|
+
};
|
|
94
|
+
export declare const chartDataTablePlacements: readonly ["none", "inline", "auto"];
|
|
95
|
+
/**
|
|
96
|
+
* Where the table of every value goes. `none` (the default) leaves it out. `inline` shows it
|
|
97
|
+
* under the chart in a fixed-height scrolling area. `auto` opens it from an info button named
|
|
98
|
+
* "Show data" in the chart's top-right corner: in a popover for a small table on a wide
|
|
99
|
+
* screen, and in a modal otherwise, which is a sheet on phones.
|
|
100
|
+
*/
|
|
101
|
+
export type ChartDataTablePlacement = (typeof chartDataTablePlacements)[number];
|
|
102
|
+
export declare const chartHeights: readonly ["small", "medium", "large", "fill"];
|
|
103
|
+
/** `small`, `medium` and `large` are fixed heights; `fill` takes the container's height. */
|
|
104
|
+
export type ChartHeight = (typeof chartHeights)[number];
|
|
105
|
+
export declare const chartLegendModes: readonly ["static", "toggle"];
|
|
106
|
+
/** Whether legend entries only name series, or also show and hide them. */
|
|
107
|
+
export type ChartLegendMode = (typeof chartLegendModes)[number];
|
|
108
|
+
export declare const chartSelectionModes: readonly ["none", "single", "multiple"];
|
|
109
|
+
/** Whether readers can select marks, and how many at once. */
|
|
110
|
+
export type ChartSelectionMode = (typeof chartSelectionModes)[number];
|
|
111
|
+
export declare const chartXSelections: readonly ["none", "value", "range"];
|
|
112
|
+
/**
|
|
113
|
+
* What readers select along x. `value` reads every series at the x under the pointer or the
|
|
114
|
+
* focused mark, with a line across the plot there. `range` also lets them drag out a span of x,
|
|
115
|
+
* or extend one with Shift and the arrow keys. Defaults to `none`.
|
|
116
|
+
*/
|
|
117
|
+
export type ChartXSelection = (typeof chartXSelections)[number];
|
|
118
|
+
/** A span of x values, both ends included, such as `{ from: '2026-09-01', to: '2026-09-14' }`. */
|
|
119
|
+
export type ChartRange = {
|
|
120
|
+
readonly from: ChartValue;
|
|
121
|
+
readonly to: ChartValue;
|
|
122
|
+
};
|
|
123
|
+
export declare const chartVariants: readonly ["standard", "minimal"];
|
|
124
|
+
/**
|
|
125
|
+
* `standard` draws axes, legend and annotations. `minimal` draws the marks alone, such as a
|
|
126
|
+
* sparkline in a table row, tile or card: no axes, legend, annotations, rule labels, data
|
|
127
|
+
* table or info button, while its summary and tooltips still describe it. With no legend,
|
|
128
|
+
* state in nearby text anything that needs a key, such as which series is which. It sets
|
|
129
|
+
* only what is drawn; `height` sets the size.
|
|
130
|
+
*/
|
|
131
|
+
export type ChartVariant = (typeof chartVariants)[number];
|
|
132
|
+
/** Chart drawn from marks: the design system's chart. */
|
|
133
|
+
export type ChartMarksProps = {
|
|
134
|
+
/**
|
|
135
|
+
* Names the chart for assistive technology. Not drawn; the surrounding heading titles it.
|
|
136
|
+
* Required, except in `<Preview variant="backdrop">`, where the chart is decoration only.
|
|
137
|
+
*/
|
|
138
|
+
readonly label?: string;
|
|
139
|
+
/** Read after the generated summary, such as how missing days are drawn. */
|
|
140
|
+
readonly description?: string;
|
|
141
|
+
/** Across. Every mark but Chart.Sector needs it. */
|
|
142
|
+
readonly x?: ChartAxis;
|
|
143
|
+
/** Up. Every mark needs it; for Chart.Sector it names and formats the slice values. */
|
|
144
|
+
readonly y?: ChartAxis;
|
|
145
|
+
readonly series?: ChartSeries;
|
|
146
|
+
/**
|
|
147
|
+
* The scale heatmap shading measures, such as loss ratio: its `label` and `format`, like an
|
|
148
|
+
* axis. Required with Chart.Cell.
|
|
149
|
+
*/
|
|
150
|
+
readonly colorScale?: ChartColorScale;
|
|
151
|
+
/**
|
|
152
|
+
* The chart's color: one series takes it, such as `neutral` for a quiet usage strip, and
|
|
153
|
+
* several take shades of its hue, strongest first. Past four shades, series differ mostly by
|
|
154
|
+
* line style and dot shape; use `series.tones` for the ones that matter.
|
|
155
|
+
*/
|
|
156
|
+
readonly tone?: ChartTone;
|
|
157
|
+
/** What Chart.Point `size` measures, such as written premium. Required when points have a size. */
|
|
158
|
+
readonly sizeScale?: ChartSizeScale;
|
|
159
|
+
/**
|
|
160
|
+
* What a hollow point means, such as "Pending or not yet effective". Required with `isHollow`;
|
|
161
|
+
* shown in the legend, descriptions and table.
|
|
162
|
+
*/
|
|
163
|
+
readonly hollowLabel?: string;
|
|
164
|
+
/** What faded marks are, such as "Other states". Required with `isMuted`. */
|
|
165
|
+
readonly mutedLabel?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Offers every value as a table. Defaults to `none`; leave it there when the same values
|
|
168
|
+
* are already on the page, such as in a table beside the chart.
|
|
169
|
+
*/
|
|
170
|
+
readonly dataTable?: ChartDataTablePlacement;
|
|
171
|
+
/**
|
|
172
|
+
* `presentation` makes the chart purely visual, for when nearby text already states its
|
|
173
|
+
* figures, such as a sparkline beside its total. Nothing in it takes focus, clicks or reaches
|
|
174
|
+
* assistive technology: no tooltips, links, data table or info button, and `label` is
|
|
175
|
+
* optional.
|
|
176
|
+
*/
|
|
177
|
+
readonly role?: 'presentation';
|
|
178
|
+
/** What the chart draws, not its size. Defaults to `standard`. */
|
|
179
|
+
readonly variant?: ChartVariant;
|
|
180
|
+
/**
|
|
181
|
+
* Width always fills the container. Defaults to `medium`. For a short inline trend, set
|
|
182
|
+
* `fill` inside a container that sets the height.
|
|
183
|
+
*/
|
|
184
|
+
readonly height?: ChartHeight;
|
|
185
|
+
/**
|
|
186
|
+
* Lets readers select marks by click, Enter or Space: `single` replaces the selection and
|
|
187
|
+
* `multiple` toggles each mark. Every mark then needs an `id`. Defaults to `none`.
|
|
188
|
+
*/
|
|
189
|
+
readonly selectionMode?: ChartSelectionMode;
|
|
190
|
+
/**
|
|
191
|
+
* `toggle` turns legend entries into buttons that show and hide their series; `static`, the
|
|
192
|
+
* default, only names them.
|
|
193
|
+
*/
|
|
194
|
+
readonly legend?: ChartLegendMode;
|
|
195
|
+
/**
|
|
196
|
+
* Series names left out of the chart, when visibility is controlled. A hidden series leaves
|
|
197
|
+
* the plot, keyboard navigation, descriptions, summary and table, and keeps its color.
|
|
198
|
+
*/
|
|
199
|
+
readonly hiddenSeries?: Iterable<string>;
|
|
200
|
+
/** Series names hidden at first, when visibility is uncontrolled. */
|
|
201
|
+
readonly defaultHiddenSeries?: Iterable<string>;
|
|
202
|
+
/** Called with the new set of hidden series when a reader toggles one in the legend. */
|
|
203
|
+
readonly onHiddenSeriesChange?: (hidden: Set<string>) => void;
|
|
204
|
+
/** The selected mark ids, when the selection is controlled. */
|
|
205
|
+
readonly selectedKeys?: Iterable<string>;
|
|
206
|
+
/** The mark ids selected at first, when the selection is uncontrolled. */
|
|
207
|
+
readonly defaultSelectedKeys?: Iterable<string>;
|
|
208
|
+
/** Called with the new selection when a reader selects or deselects a mark. */
|
|
209
|
+
readonly onSelectionChange?: (keys: Set<string>) => void;
|
|
210
|
+
/**
|
|
211
|
+
* The span of x in view, when it is controlled. Narrower than the data, the plot scrolls
|
|
212
|
+
* sideways under fixed y-axis labels, such as two weeks of a quarter. Set a shorter or longer
|
|
213
|
+
* span to zoom in or out.
|
|
214
|
+
*/
|
|
215
|
+
readonly visibleXRange?: ChartRange;
|
|
216
|
+
/** The span of x in view at first, when it is uncontrolled. */
|
|
217
|
+
readonly defaultVisibleXRange?: ChartRange;
|
|
218
|
+
/** Called with the marks' span in view after the plot scrolls. */
|
|
219
|
+
readonly onVisibleXRangeChange?: (range: ChartRange) => void;
|
|
220
|
+
/**
|
|
221
|
+
* Lets readers select along x: a readout of every series at one x (`value`), or a span of x
|
|
222
|
+
* (`range`). Defaults to `none`. A chart selects marks or a range, not both.
|
|
223
|
+
*/
|
|
224
|
+
readonly xSelection?: ChartXSelection;
|
|
225
|
+
/** The selected span of x, or null for none, when it is controlled. */
|
|
226
|
+
readonly selectedXRange?: ChartRange | null;
|
|
227
|
+
/** The span of x selected at first, when it is uncontrolled. */
|
|
228
|
+
readonly defaultSelectedXRange?: ChartRange;
|
|
229
|
+
/** Called with the new span, or null when cleared, as a reader drags or extends it. */
|
|
230
|
+
readonly onSelectedXRangeChange?: (range: ChartRange | null) => void;
|
|
231
|
+
/** Marks, directly or inside Fragment and ForEach. */
|
|
232
|
+
readonly children?: ReactNode;
|
|
233
|
+
readonly carelesslyUseHighchartsOptions?: never;
|
|
234
|
+
};
|
|
235
|
+
/** Raw Highcharts options, as `carelesslyUseHighchartsOptions` takes them. */
|
|
236
|
+
export type ChartHighchartsOptions = Highcharts.Options;
|
|
237
|
+
/**
|
|
238
|
+
* Chart drawn from raw Highcharts options, for a chart type marks cannot express, such as a
|
|
239
|
+
* sankey or a map, or options that arrive raw. Prefer marks: these charts get the design
|
|
240
|
+
* system's fonts, colors and size, but Highcharts' own tooltips, legend and keyboard model,
|
|
241
|
+
* and no summary or data table.
|
|
242
|
+
*/
|
|
243
|
+
export type ChartHighchartsProps = {
|
|
244
|
+
/** Names the chart for assistive technology. Not drawn. */
|
|
245
|
+
readonly label: string;
|
|
246
|
+
/**
|
|
247
|
+
* Highcharts options, drawn as given over the design system's theme. The chart loads the
|
|
248
|
+
* modules their chart and series types need and picks the map, stock or Gantt constructor.
|
|
249
|
+
* Nothing is sanitized: callers own options from untrusted sources.
|
|
250
|
+
*/
|
|
251
|
+
readonly carelesslyUseHighchartsOptions: ChartHighchartsOptions;
|
|
252
|
+
/**
|
|
253
|
+
* Defaults to the options' `chart.height`, or `medium` when they set none. Width always
|
|
254
|
+
* fills the container.
|
|
255
|
+
*/
|
|
256
|
+
readonly height?: ChartHeight;
|
|
257
|
+
} & {
|
|
258
|
+
readonly [Key in Exclude<keyof ChartMarksProps, 'label' | 'height' | 'carelesslyUseHighchartsOptions'>]?: never;
|
|
259
|
+
};
|
|
260
|
+
export type ChartProps = ChartMarksProps | ChartHighchartsProps;
|
|
261
|
+
/** Shown on hover and keyboard focus. Its title and details also describe the mark. */
|
|
262
|
+
export type ChartTip = {
|
|
263
|
+
/** The first line, emphasized: what the mark is, such as "Missouri +3.4%". */
|
|
264
|
+
readonly title: string;
|
|
265
|
+
/** Further lines, such as the date and the figures behind it. */
|
|
266
|
+
readonly details?: readonly string[] | undefined;
|
|
267
|
+
/** A quieter last line for pointer users, such as "Click to see Missouri". */
|
|
268
|
+
readonly hint?: string | undefined;
|
|
269
|
+
};
|
|
270
|
+
export type ChartMarkCommonProps = {
|
|
271
|
+
/** The series this mark belongs to. Marks of one series share a color and legend entry. */
|
|
272
|
+
readonly series?: string | undefined;
|
|
273
|
+
/** A few characters printed beside the mark, such as "MO". Annotate only the few that matter. */
|
|
274
|
+
readonly annotation?: string | undefined;
|
|
275
|
+
/** Replaces the generated tooltip and description. */
|
|
276
|
+
readonly tip?: ChartTip | undefined;
|
|
277
|
+
/** Where the mark leads when clicked or activated with Enter. */
|
|
278
|
+
readonly href?: string | undefined;
|
|
279
|
+
/** Faded context behind the other marks. Needs `mutedLabel` on Chart. */
|
|
280
|
+
readonly isMuted?: boolean | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* Outlined, such as the item in view. A static highlight: with `selectionMode` on Chart,
|
|
283
|
+
* use `selectedKeys` instead.
|
|
284
|
+
*/
|
|
285
|
+
readonly isSelected?: boolean | undefined;
|
|
286
|
+
/** Identifies the mark for selection. Required, and unique, when Chart has `selectionMode`. */
|
|
287
|
+
readonly id?: string | undefined;
|
|
288
|
+
};
|
|
289
|
+
type Not<T> = {
|
|
290
|
+
readonly [K in keyof T]?: never;
|
|
291
|
+
};
|
|
292
|
+
type ChartPosition = {
|
|
293
|
+
readonly x: ChartValue;
|
|
294
|
+
readonly y: ChartValue;
|
|
295
|
+
};
|
|
296
|
+
type ChartYRange = {
|
|
297
|
+
readonly x: ChartValue;
|
|
298
|
+
readonly yStart: ChartValue;
|
|
299
|
+
readonly yEnd: ChartValue;
|
|
300
|
+
};
|
|
301
|
+
type ChartXRange = {
|
|
302
|
+
readonly y: ChartValue;
|
|
303
|
+
readonly xStart: ChartValue;
|
|
304
|
+
readonly xEnd: ChartValue;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* A bar from the baseline to a value, or between two values for waterfalls and schedules. Bars
|
|
308
|
+
* run up from a category x axis, or across from a category y axis.
|
|
309
|
+
*/
|
|
310
|
+
export type ChartBarProps = ChartMarkCommonProps & ((ChartPosition & Not<Omit<ChartYRange, 'x'>> & Not<Omit<ChartXRange, 'y'>>) | (ChartYRange & Not<Pick<ChartPosition, 'y'>> & Not<Omit<ChartXRange, 'y'>>) | (ChartXRange & Not<Pick<ChartPosition, 'x'>> & Not<Omit<ChartYRange, 'x'>>));
|
|
311
|
+
export declare const chartInterpolations: readonly ["linear", "step", "spline"];
|
|
312
|
+
/**
|
|
313
|
+
* How a series joins its vertices: straight lines (`linear`), holding each value until the
|
|
314
|
+
* next (`step`), for values that change in jumps such as rate levels between filings, or a
|
|
315
|
+
* smooth curve through each vertex (`spline`). A spline can swing past its vertices, below
|
|
316
|
+
* zero or above a peak, so keep it for trends where the exact path between points does not
|
|
317
|
+
* matter. Every vertex of a series takes the same value.
|
|
318
|
+
*/
|
|
319
|
+
export type ChartInterpolation = (typeof chartInterpolations)[number];
|
|
320
|
+
/** One vertex of a line, joined to its series' neighbors along x. */
|
|
321
|
+
export type ChartLineProps = ChartMarkCommonProps & ChartPosition & {
|
|
322
|
+
readonly interpolation?: ChartInterpolation | undefined;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* One vertex of the filled area under a series' line, or of a band between `yStart` and
|
|
326
|
+
* `yEnd`, such as a range across carriers. Stacks with `series.arrangement`.
|
|
327
|
+
*/
|
|
328
|
+
export type ChartAreaProps = ChartMarkCommonProps & ((ChartPosition & Not<Omit<ChartYRange, 'x'>>) | (ChartYRange & Not<Pick<ChartPosition, 'y'>>)) & {
|
|
329
|
+
readonly interpolation?: ChartInterpolation | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* Whether the area draws its edge: a line along the top, or along both edges of a band
|
|
332
|
+
* (`line`); a thin dashed line over a faint fill (`dashed`), for a threshold the other marks
|
|
333
|
+
* are read against, where a plain area fills down to the axis minimum, the whole region
|
|
334
|
+
* under the line; or the fill alone (`none`), such as a soft background range. Every vertex
|
|
335
|
+
* of a series takes the same value. Defaults to `line`.
|
|
336
|
+
*/
|
|
337
|
+
readonly edge?: ChartAreaEdge | undefined;
|
|
338
|
+
};
|
|
339
|
+
export declare const chartAreaEdges: readonly ["line", "dashed", "none"];
|
|
340
|
+
/** Whether an area draws a line along its edge, or the fill alone. */
|
|
341
|
+
export type ChartAreaEdge = (typeof chartAreaEdges)[number];
|
|
342
|
+
/**
|
|
343
|
+
* One slice of a donut: its `series` names it and its `y` is its value. A chart of sectors has
|
|
344
|
+
* no x axis; its `y` names and formats the values. Keep to six slices or fewer.
|
|
345
|
+
*/
|
|
346
|
+
export type ChartSectorProps = Omit<ChartMarkCommonProps, 'series'> & {
|
|
347
|
+
readonly series: string;
|
|
348
|
+
readonly y: number;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* One cell of a heatmap at `x` and `y`, shaded by `value` from light to dark. Needs `colorScale` on
|
|
352
|
+
* Chart to say what the shading measures.
|
|
353
|
+
*/
|
|
354
|
+
export type ChartCellProps = Omit<ChartMarkCommonProps, 'series' | 'isMuted'> & {
|
|
355
|
+
readonly x: ChartValue;
|
|
356
|
+
readonly y: ChartValue;
|
|
357
|
+
readonly value: number;
|
|
358
|
+
};
|
|
359
|
+
export type ChartPointProps = ChartMarkCommonProps & ChartPosition & {
|
|
360
|
+
/** Dot area follows it, such as written premium. Needs `sizeScale` on Chart. */
|
|
361
|
+
readonly size?: number | undefined;
|
|
362
|
+
/** Drawn as a ring, such as a pending change. Needs `hollowLabel` on Chart. */
|
|
363
|
+
readonly isHollow?: boolean | undefined;
|
|
364
|
+
};
|
|
365
|
+
/** A reference line across the plot, or over a span with `from` and `to`. */
|
|
366
|
+
export type ChartRuleProps = {
|
|
367
|
+
/** Printed at the line and read in the summary, such as "Daily budget" or "Today". */
|
|
368
|
+
readonly label: string;
|
|
369
|
+
/** Start of the span along the other axis. */
|
|
370
|
+
readonly from?: ChartValue | undefined;
|
|
371
|
+
/** End of the span along the other axis. */
|
|
372
|
+
readonly to?: ChartValue | undefined;
|
|
373
|
+
} & ({
|
|
374
|
+
readonly y: ChartValue;
|
|
375
|
+
readonly x?: never;
|
|
376
|
+
} | {
|
|
377
|
+
readonly x: ChartValue;
|
|
378
|
+
readonly y?: never;
|
|
379
|
+
});
|
|
380
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const chartNumberFormats = [
|
|
2
|
+
'number',
|
|
3
|
+
'percent',
|
|
4
|
+
'signedPercent',
|
|
5
|
+
'currency',
|
|
6
|
+
'compact',
|
|
7
|
+
'duration',
|
|
8
|
+
];
|
|
9
|
+
export const chartDateFormats = ['date', 'dateTime', 'month', 'year'];
|
|
10
|
+
export const chartAxisScales = ['linear', 'log'];
|
|
11
|
+
// #endregion
|
|
12
|
+
// #region Chart-level encodings
|
|
13
|
+
export const chartSeriesArrangements = ['grouped', 'stacked', 'normalized'];
|
|
14
|
+
export const chartSeriesShapes = ['distinct', 'circles'];
|
|
15
|
+
export const chartDataTablePlacements = ['none', 'inline', 'auto'];
|
|
16
|
+
export const chartHeights = ['small', 'medium', 'large', 'fill'];
|
|
17
|
+
export const chartLegendModes = ['static', 'toggle'];
|
|
18
|
+
export const chartSelectionModes = ['none', 'single', 'multiple'];
|
|
19
|
+
export const chartXSelections = ['none', 'value', 'range'];
|
|
20
|
+
export const chartVariants = ['standard', 'minimal'];
|
|
21
|
+
export const chartInterpolations = ['linear', 'step', 'spline'];
|
|
22
|
+
export const chartAreaEdges = ['line', 'dashed', 'none'];
|
|
23
|
+
// #endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartSpec } from './Chart.data.ts';
|
|
2
|
+
import { type ChartLayout } from './Chart.describe.ts';
|
|
3
|
+
import type { ChartDataTablePlacement } from './Chart.types.ts';
|
|
4
|
+
/** Every value behind the chart, for readers who need exact figures or cannot see the plot. */
|
|
5
|
+
export declare function ChartDataTable({ spec, layout, placement, }: {
|
|
6
|
+
readonly spec: ChartSpec;
|
|
7
|
+
readonly layout: ChartLayout;
|
|
8
|
+
readonly placement: Exclude<ChartDataTablePlacement, 'none'>;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useViewportMatch } from "../../foundations/viewport.js";
|
|
3
|
+
import { Content, Header } from "../Content/Content.js";
|
|
4
|
+
import { Dialog } from "../Dialog/Dialog.js";
|
|
5
|
+
import { ForEach } from "../ForEach/ForEach.js";
|
|
6
|
+
import { IconButton } from "../IconButton/IconButton.js";
|
|
7
|
+
import { LazyTable } from "../LazyTable/LazyTable.js";
|
|
8
|
+
import { Modal } from "../Modal/Modal.js";
|
|
9
|
+
import { Popover } from "../Popover/Popover.js";
|
|
10
|
+
import { Cell, Column, Row } from "../Table/Table.parts.js";
|
|
11
|
+
import { Table } from "../Table/Table.js";
|
|
12
|
+
import { Text } from "../Text/Text.js";
|
|
13
|
+
import { VStack } from "../VStack/VStack.js";
|
|
14
|
+
import { chartTable, ruleText } from "./Chart.describe.js";
|
|
15
|
+
const POPOVER_WIDTH = 560;
|
|
16
|
+
const INLINE_HEIGHT = 240;
|
|
17
|
+
/** Past this many rows or columns, a popover gets cramped, so `auto` opens a modal. */
|
|
18
|
+
const POPOVER_LIMIT = { rows: 12, columns: 4 };
|
|
19
|
+
/** Every value behind the chart, for readers who need exact figures or cannot see the plot. */
|
|
20
|
+
export function ChartDataTable({ spec, layout, placement, }) {
|
|
21
|
+
const isPhone = useViewportMatch('phone');
|
|
22
|
+
const { columns, rows } = chartTable(spec, layout);
|
|
23
|
+
if (rows.length === 0)
|
|
24
|
+
return null;
|
|
25
|
+
const isSmall = rows.length <= POPOVER_LIMIT.rows && columns.length <= POPOVER_LIMIT.columns;
|
|
26
|
+
const header = (_jsx(Header, { children: _jsx(ForEach, { items: columns, children: (column, index) => (_jsx(Column, { id: column.id, isRowHeader: index === 0, align: column.isNumeric ? 'end' : 'start', children: column.label })) }) }));
|
|
27
|
+
const renderRow = (row) => (_jsx(Row, { id: row.id, children: _jsx(ForEach, { items: columns, children: (column) => _jsx(Cell, { children: row.cells[column.id] }) }) }));
|
|
28
|
+
const table = (_jsxs(Table, { "aria-label": `${spec.label}, data`, items: rows, children: [header, renderRow] }));
|
|
29
|
+
const rules = spec.rules.length > 0 ? (_jsxs(Text, { variant: "footnote", tone: "secondary", children: ["Reference lines: ", spec.rules.map((rule) => ruleText(spec, rule)).join('; '), "."] })) : null;
|
|
30
|
+
// An info button keeps dense layouts quiet; its label names it for assistive technology.
|
|
31
|
+
const trigger = _jsx(IconButton, { icon: "info", label: "Show data", size: "small" });
|
|
32
|
+
switch (placement) {
|
|
33
|
+
case 'inline':
|
|
34
|
+
// A fixed-height viewport of its own, with a sticky header, so a long table never
|
|
35
|
+
// pushes the page.
|
|
36
|
+
return (_jsxs(VStack, { gap: "small", children: [_jsxs(LazyTable, { "aria-label": `${spec.label}, data`, items: rows, viewportSize: INLINE_HEIGHT, sticky: "header", children: [header, renderRow] }), rules] }));
|
|
37
|
+
case 'auto':
|
|
38
|
+
// A small table stays anchored to its button; a large one, or any on a phone, gets
|
|
39
|
+
// the room of a modal, which phones present as a sheet.
|
|
40
|
+
return isSmall && !isPhone ? (_jsxs(Popover.Trigger, { children: [trigger, _jsx(Popover, { placement: "bottom start", children: _jsxs(VStack, { gap: "small", width: POPOVER_WIDTH, children: [table, rules] }) })] })) : (_jsxs(Modal.Trigger, { children: [trigger, _jsx(Modal, { size: "large", isDismissable: true, children: _jsx(Dialog, { title: spec.label, children: _jsx(Content, { children: _jsxs(VStack, { gap: "small", children: [table, rules] }) }) }) })] }));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The plot's place while a chart has nothing to draw, in the chart's own size so the page keeps
|
|
4
|
+
* its shape: a faint placeholder chart, with what the chart has to say on a frosted panel the
|
|
5
|
+
* placeholder shows through. The placeholder pulses while Highcharts loads.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ChartGhost({ label, isLoading, isCompact, children, }: {
|
|
8
|
+
/**
|
|
9
|
+
* Names the whole place as one image, such as "Credits per day. Loading.", when nothing in it
|
|
10
|
+
* needs reaching. Leave it out when the message holds a control, so it stays in reading order.
|
|
11
|
+
*/
|
|
12
|
+
readonly label?: string;
|
|
13
|
+
readonly isLoading?: boolean;
|
|
14
|
+
/** A minimal chart or card preview: the plot runs to the edges, with no axis gutters. */
|
|
15
|
+
readonly isCompact?: boolean;
|
|
16
|
+
readonly children?: ReactNode;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { styles } from "./Chart.stylex.js";
|
|
4
|
+
/** Placeholder bar heights, as a share of the plot: an unremarkable rise and fall. A narrow plot shows every other one. */
|
|
5
|
+
const BARS = [0.42, 0.58, 0.5, 0.72, 0.64, 0.8, 0.56, 0.68, 0.46, 0.62, 0.74, 0.52];
|
|
6
|
+
/**
|
|
7
|
+
* The plot's place while a chart has nothing to draw, in the chart's own size so the page keeps
|
|
8
|
+
* its shape: a faint placeholder chart, with what the chart has to say on a frosted panel the
|
|
9
|
+
* placeholder shows through. The placeholder pulses while Highcharts loads.
|
|
10
|
+
*/
|
|
11
|
+
export function ChartGhost({ label, isLoading = false, isCompact = false, children, }) {
|
|
12
|
+
return (_jsxs("div", { ...(label === undefined ? {} : { role: 'img', 'aria-label': label }), ...stylex.props(styles.ghost), children: [_jsxs("div", { "aria-hidden": "true", ...stylex.props(styles.ghostPlot, isCompact && styles.ghostPlotCompact, isLoading && styles.ghostLoading), children: [_jsx("div", { ...stylex.props(styles.ghostBars), children: BARS.map((share, index) => (_jsx("div", { ...stylex.props(styles.ghostBar(share), index % 2 === 1 && styles.ghostBarNarrowHidden) }, index))) }), _jsx("div", { ...stylex.props(styles.ghostBaseline) })] }), children === undefined ? null : (_jsx("div", { ...stylex.props(styles.ghostMessage, isCompact && styles.ghostMessageCompact), children: children }))] }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartHighchartsProps } from './Chart.types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Draws raw Highcharts options over the design system's theme and size. Highcharts' own
|
|
4
|
+
* tooltips, legend and keyboard model apply; the chart adds no summary or data table.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ChartHighcharts({ label, height, carelesslyUseHighchartsOptions: raw, }: ChartHighchartsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as stylex from '@stylexjs/stylex';
|
|
3
|
+
import { useReducedMotion } from 'motion/react';
|
|
4
|
+
import { useLayoutEffect, useMemo, useRef } from 'react';
|
|
5
|
+
import { Button } from "../Button/Button.js";
|
|
6
|
+
import { clearDropped } from "./Chart.highcharts.js";
|
|
7
|
+
import { useHighcharts } from "./Chart.load.js";
|
|
8
|
+
import { hasRawChartData, rawChartConstructor, rawChartModules, rawChartOptions, rawChartSize, } from "./Chart.raw.js";
|
|
9
|
+
import { styles } from "./Chart.stylex.js";
|
|
10
|
+
import { ChartGhost } from "./ChartGhost.js";
|
|
11
|
+
/**
|
|
12
|
+
* Draws raw Highcharts options over the design system's theme and size. Highcharts' own
|
|
13
|
+
* tooltips, legend and keyboard model apply; the chart adds no summary or data table.
|
|
14
|
+
*/
|
|
15
|
+
export function ChartHighcharts({ label, height, carelesslyUseHighchartsOptions: raw, }) {
|
|
16
|
+
if (!label)
|
|
17
|
+
throw new Error('Chart with carelesslyUseHighchartsOptions needs a label naming what it shows, such as ' +
|
|
18
|
+
'label="Claims by outcome".');
|
|
19
|
+
const reducedMotion = useReducedMotion() ?? false;
|
|
20
|
+
const size = rawChartSize(height, raw);
|
|
21
|
+
const sizeKey = JSON.stringify(size);
|
|
22
|
+
const { modules, constructor } = useMemo(() => ({ modules: rawChartModules(raw), constructor: rawChartConstructor(raw) }), [raw]);
|
|
23
|
+
const options = useMemo(() => rawChartOptions(raw, { label, size, reducedMotion }),
|
|
24
|
+
// `sizeKey` stands for `size`, a new object every render.
|
|
25
|
+
[raw, label, sizeKey, reducedMotion]);
|
|
26
|
+
const load = useHighcharts(modules);
|
|
27
|
+
const isEmpty = !hasRawChartData(raw);
|
|
28
|
+
const canvasRef = useRef(null);
|
|
29
|
+
const chartRef = useRef(null);
|
|
30
|
+
// The options last given to Highcharts, so an update can clear what the next ones drop.
|
|
31
|
+
const sent = useRef(null);
|
|
32
|
+
const hasCanvas = load.status === 'ready' && !isEmpty;
|
|
33
|
+
// One Highcharts instance per load and constructor; later options update it in place.
|
|
34
|
+
useLayoutEffect(() => {
|
|
35
|
+
const canvas = canvasRef.current;
|
|
36
|
+
if (load.status !== 'ready' || !canvas)
|
|
37
|
+
return;
|
|
38
|
+
const create = load.highcharts[constructor];
|
|
39
|
+
const chart = create(canvas, options);
|
|
40
|
+
chartRef.current = chart;
|
|
41
|
+
sent.current = options;
|
|
42
|
+
return () => {
|
|
43
|
+
chartRef.current = null;
|
|
44
|
+
sent.current = null;
|
|
45
|
+
chart.destroy();
|
|
46
|
+
};
|
|
47
|
+
// Created once per load, constructor and canvas; the effect below carries later options.
|
|
48
|
+
}, [load, constructor, hasCanvas]);
|
|
49
|
+
useLayoutEffect(() => {
|
|
50
|
+
const chart = chartRef.current;
|
|
51
|
+
if (!chart || sent.current === options)
|
|
52
|
+
return;
|
|
53
|
+
chart.update(clearDropped(sent.current, options), true, true, !reducedMotion);
|
|
54
|
+
sent.current = options;
|
|
55
|
+
}, [options]);
|
|
56
|
+
return (_jsx("div", { role: "figure", "aria-label": label, ...stylex.props(styles.root, size.kind === 'fill' && styles.fill), children: _jsxs("div", { ...stylex.props(size.kind === 'fill'
|
|
57
|
+
? styles.plotFill
|
|
58
|
+
: size.kind === 'ratio'
|
|
59
|
+
? styles.plotRatio(size.ratio)
|
|
60
|
+
: styles.plot(size.pixels)), children: [isEmpty ? (_jsx(ChartGhost, { label: `${label}. No data.`, children: "No data" })) : load.status === 'failed' ? (_jsxs(ChartGhost, { children: ["The chart could not load.", _jsx(Button, { size: "small", onPress: load.retry, children: "Try again" })] })) : (_jsx("div", { ref: canvasRef, ...stylex.props(styles.canvas) })), !isEmpty && load.status === 'loading' ? (_jsx(ChartGhost, { label: `${label}. Loading.`, isLoading: true })) : null] }) }));
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ChartMarkSpec, type ChartSpec } from './Chart.data.ts';
|
|
2
|
+
import type { ChartLayout } from './Chart.describe.ts';
|
|
3
|
+
/**
|
|
4
|
+
* What each color, shape and state means, under the plot. Drawn only when there is something to
|
|
5
|
+
* tell apart: several series, or a hollow, faded or sized mark.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ChartLegend({ spec, layout, dotted, toggles, onHighlight, }: {
|
|
8
|
+
readonly spec: ChartSpec;
|
|
9
|
+
readonly layout: ChartLayout;
|
|
10
|
+
/** Line vertices drawn with a dot. */
|
|
11
|
+
readonly dotted: ReadonlySet<ChartMarkSpec>;
|
|
12
|
+
/** With `legend="toggle"`: series entries show and hide their series. */
|
|
13
|
+
readonly toggles?: ChartLegendToggles;
|
|
14
|
+
/**
|
|
15
|
+
* A series to stand out while its entry is hovered, or focused when entries are buttons; null
|
|
16
|
+
* when it leaves. Drawing only.
|
|
17
|
+
*/
|
|
18
|
+
readonly onHighlight?: (series: string | null) => void;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export type ChartLegendToggles = {
|
|
21
|
+
readonly hidden: ReadonlySet<string>;
|
|
22
|
+
readonly onToggle: (series: string) => void;
|
|
23
|
+
};
|