cursedbelt 5.87.0 → 5.89.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/dist/looks.css +4 -4
- package/dist/react/Toast.js +2 -2
- package/dist/react/Toast.js.map +1 -1
- package/dist/react/VirtualCardGrid.d.ts +1 -1
- package/dist/react/VirtualCardGrid.js +1 -1
- package/dist/react/activity-bar/ActivityBar.d.ts +2 -2
- package/dist/react/activity-bar/ActivityBar.js +1 -1
- package/dist/react/activity-bar/activityBar.css +4 -4
- package/dist/react/analytics/AnalyticsPanel.d.ts +1 -1
- package/dist/react/analytics/AnalyticsPanel.js +1 -1
- package/dist/react/canvas-hud/CanvasMinimap.d.ts +1 -1
- package/dist/react/canvas-hud/HudControls.d.ts +2 -2
- package/dist/react/canvas-hud/alignment.d.ts +2 -2
- package/dist/react/canvas-hud/alignment.js +3 -3
- package/dist/react/canvas-hud/alignment.js.map +1 -1
- package/dist/react/canvas-hud/viewport.d.ts +1 -1
- package/dist/react/canvas-hud/viewport.js +1 -1
- package/dist/react/charts/BarChart.d.ts +2 -2
- package/dist/react/charts/HeatmapChart.d.ts +1 -1
- package/dist/react/charts/HeatmapChart.js +1 -1
- package/dist/react/charts/IntervalTimeline.d.ts +2 -2
- package/dist/react/charts/IntervalTimeline.d.ts.map +1 -1
- package/dist/react/charts/categorical.d.ts +11 -11
- package/dist/react/charts/categorical.js +9 -9
- package/dist/react/charts/categorical.js.map +1 -1
- package/dist/react/charts/ink.d.ts +5 -5
- package/dist/react/charts/ink.js +5 -5
- package/dist/react/charts/tokens.d.ts +1 -1
- package/dist/react/charts/tokens.js +1 -1
- package/dist/react/chat/Bubble.js +1 -1
- package/dist/react/chat/Bubble.js.map +1 -1
- package/dist/react/chat/DateMarker.js +1 -1
- package/dist/react/chat/MessageComposer.d.ts +1 -1
- package/dist/react/chat/types.d.ts +1 -1
- package/dist/react/chat/usePresence.d.ts +2 -2
- package/dist/react/chat/usePresence.js +1 -1
- package/dist/react/code-editor/markdownRules.js +1 -1
- package/dist/react/code-editor/markdownRules.js.map +1 -1
- package/dist/react/components/Badge.js +1 -1
- package/dist/react/components/Badge.js.map +1 -1
- package/dist/react/components/Button.js +5 -5
- package/dist/react/components/Button.js.map +1 -1
- package/dist/react/components/ChartTablePanel.js +1 -1
- package/dist/react/components/ChartTablePanel.js.map +1 -1
- package/dist/react/components/Checkbox.js +2 -2
- package/dist/react/components/Checkbox.js.map +1 -1
- package/dist/react/components/ChoiceGroup.d.ts +1 -1
- package/dist/react/components/ChoiceGroup.js +1 -1
- package/dist/react/components/CodeChip.d.ts +1 -1
- package/dist/react/components/CodeChip.js +1 -1
- package/dist/react/components/ColorSwatches.d.ts +10 -10
- package/dist/react/components/ColorSwatches.d.ts.map +1 -1
- package/dist/react/components/ColorSwatches.js +10 -10
- package/dist/react/components/ColorSwatches.js.map +1 -1
- package/dist/react/components/DataTable/DataTable.d.ts +2 -2
- package/dist/react/components/DataTable/DataTable.js +8 -8
- package/dist/react/components/DataTable/DataTable.js.map +1 -1
- package/dist/react/components/DataTable/SearchBox.js +2 -2
- package/dist/react/components/DataTable/SortHeader.js +1 -1
- package/dist/react/components/DataTable/SortHeader.js.map +1 -1
- package/dist/react/components/DataTable/TableFilterBuilder.d.ts +1 -1
- package/dist/react/components/DataTable/TableFilterBuilder.js +1 -1
- package/dist/react/components/DropdownMenu.js +1 -1
- package/dist/react/components/Field.d.ts +1 -1
- package/dist/react/components/FormPreviewLayout.d.ts +1 -1
- package/dist/react/components/FormPreviewLayout.js +1 -1
- package/dist/react/components/Heat.d.ts +6 -6
- package/dist/react/components/Heat.js +1 -1
- package/dist/react/components/IconPicker.d.ts +8 -8
- package/dist/react/components/IconPicker.d.ts.map +1 -1
- package/dist/react/components/IconPicker.js +6 -6
- package/dist/react/components/IconPicker.js.map +1 -1
- package/dist/react/components/InfoHint.d.ts +1 -1
- package/dist/react/components/InfoHint.js +1 -1
- package/dist/react/components/InheritBadge.js +2 -2
- package/dist/react/components/ListToolbar.d.ts +1 -1
- package/dist/react/components/ListToolbar.js +1 -1
- package/dist/react/components/Menu.d.ts +1 -1
- package/dist/react/components/Menu.d.ts.map +1 -1
- package/dist/react/components/Modal.js +5 -5
- package/dist/react/components/Modal.js.map +1 -1
- package/dist/react/components/Page.d.ts +1 -1
- package/dist/react/components/Page.js +1 -1
- package/dist/react/components/PaneSplit.d.ts +1 -1
- package/dist/react/components/PathText.d.ts +1 -1
- package/dist/react/components/PathText.js +1 -1
- package/dist/react/components/Popover.d.ts +1 -1
- package/dist/react/components/PropertyList.d.ts +1 -1
- package/dist/react/components/PropertyList.js +1 -1
- package/dist/react/components/PropertyPicker.d.ts +2 -2
- package/dist/react/components/PropertyPicker.js +2 -2
- package/dist/react/components/RatingField.js +1 -1
- package/dist/react/components/RatingField.js.map +1 -1
- package/dist/react/components/SaveIndicator.d.ts +2 -2
- package/dist/react/components/SaveIndicator.js +2 -2
- package/dist/react/components/SearchInput.d.ts +1 -1
- package/dist/react/components/SearchInput.d.ts.map +1 -1
- package/dist/react/components/SecretInput.d.ts +1 -1
- package/dist/react/components/Section.d.ts +1 -1
- package/dist/react/components/SectionNav.d.ts +3 -3
- package/dist/react/components/SectionNav.d.ts.map +1 -1
- package/dist/react/components/SectionNav.js +2 -2
- package/dist/react/components/Slider.js +1 -1
- package/dist/react/components/StarRating.js +1 -1
- package/dist/react/components/SwatchPicker.d.ts +6 -6
- package/dist/react/components/SwatchPicker.d.ts.map +1 -1
- package/dist/react/components/SwatchPicker.js +3 -3
- package/dist/react/components/SwatchPicker.js.map +1 -1
- package/dist/react/components/Tooltip.js +1 -1
- package/dist/react/components/TreeView.js +1 -1
- package/dist/react/components/TreeView.js.map +1 -1
- package/dist/react/components/TruncatedText.d.ts +1 -1
- package/dist/react/components/TruncatedText.js +1 -1
- package/dist/react/components/UnstyledButton.d.ts +2 -2
- package/dist/react/components/UnstyledButton.js +2 -2
- package/dist/react/components/auth/AuthCard.js +1 -1
- package/dist/react/components/auth/AuthCard.js.map +1 -1
- package/dist/react/components/buildFreshness.css +2 -2
- package/dist/react/components/calendar/MonthGrid.js +2 -2
- package/dist/react/components/calendar/MonthGrid.js.map +1 -1
- package/dist/react/components/calendar/colorUtils.js +2 -2
- package/dist/react/components/dialog.js +1 -1
- package/dist/react/components/fieldErrorText.d.ts +1 -1
- package/dist/react/components/fieldErrorText.js +1 -1
- package/dist/react/components/paneSplit.css +1 -1
- package/dist/react/components/sharing/ShareEditor.d.ts +5 -1
- package/dist/react/components/sharing/ShareEditor.d.ts.map +1 -1
- package/dist/react/components/sharing/ShareEditor.js +2 -2
- package/dist/react/components/sharing/ShareEditor.js.map +1 -1
- package/dist/react/deep-link/links.d.ts +1 -1
- package/dist/react/deep-link/resume.js +1 -1
- package/dist/react/diff-viewer/DiffViewer.css +1 -1
- package/dist/react/file-tree/FileTree.d.ts +9 -9
- package/dist/react/file-tree/FileTree.js +13 -13
- package/dist/react/file-tree/FileTree.js.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.d.ts +3 -3
- package/dist/react/file-tree/FolderViewMenus.d.ts.map +1 -1
- package/dist/react/file-tree/FolderViewMenus.js +1 -1
- package/dist/react/file-tree/FolderViewMenus.js.map +1 -1
- package/dist/react/file-tree/fileTree.css +14 -14
- package/dist/react/file-tree/fileTreeSelection.d.ts +3 -3
- package/dist/react/file-tree/fileTreeSelection.js +4 -4
- package/dist/react/file-tree/folderView.d.ts +3 -3
- package/dist/react/file-tree/folderView.d.ts.map +1 -1
- package/dist/react/file-tree/folderView.js +3 -3
- package/dist/react/file-tree/folderView.js.map +1 -1
- package/dist/react/filter-rail/FilterRail.d.ts +3 -3
- package/dist/react/filter-rail/FilterRail.d.ts.map +1 -1
- package/dist/react/filter-rail/FilterRail.js +1 -1
- package/dist/react/filter-rail/RailSection.d.ts +1 -1
- package/dist/react/filter-rail/railResize.d.ts +1 -1
- package/dist/react/filter-rail/railResize.js +1 -1
- package/dist/react/folder-tree/FolderBreadcrumb.d.ts +1 -1
- package/dist/react/folder-tree/NewFolderControl.js +1 -1
- package/dist/react/hooks/keyboardDnd.d.ts +1 -1
- package/dist/react/hooks/keyboardDnd.d.ts.map +1 -1
- package/dist/react/hooks/keyboardDnd.js +2 -2
- package/dist/react/hooks/keyboardDnd.js.map +1 -1
- package/dist/react/hooks/pointerDnd.d.ts +2 -2
- package/dist/react/hooks/pointerDnd.d.ts.map +1 -1
- package/dist/react/hooks/pointerDnd.js +1 -1
- package/dist/react/hooks/usePointerDrag.d.ts +2 -2
- package/dist/react/icons.d.ts +16 -9
- package/dist/react/icons.d.ts.map +1 -1
- package/dist/react/icons.js +17 -10
- package/dist/react/icons.js.map +1 -1
- package/dist/react/layoutEngine/LayoutRenderer.js +1 -1
- package/dist/react/layoutEngine/LayoutRenderer.js.map +1 -1
- package/dist/react/lib/cn.d.ts +3 -3
- package/dist/react/lib/cn.js +4 -4
- package/dist/react/lib/field.d.ts +1 -1
- package/dist/react/lib/floatingContainer.d.ts +1 -1
- package/dist/react/lib/floatingContainer.js +1 -1
- package/dist/react/lib/floatingStyles.d.ts +1 -1
- package/dist/react/lib/floatingStyles.js +2 -2
- package/dist/react/lib/floatingStyles.js.map +1 -1
- package/dist/react/lib/hoverIntent.d.ts +6 -6
- package/dist/react/lib/hoverIntent.js +6 -6
- package/dist/react/lib/infoHint.d.ts +1 -1
- package/dist/react/lib/infoHint.js +1 -1
- package/dist/react/lib/overlayMotion.d.ts +1 -1
- package/dist/react/lib/overlayMotion.d.ts.map +1 -1
- package/dist/react/lib/overlayMotion.js +1 -1
- package/dist/react/lib/overlayMotion.js.map +1 -1
- package/dist/react/lib/press.d.ts +1 -1
- package/dist/react/lib/press.js +1 -1
- package/dist/react/lib/selectField.d.ts +2 -2
- package/dist/react/lib/selectField.d.ts.map +1 -1
- package/dist/react/lib/selectField.js +2 -2
- package/dist/react/lib/selectField.js.map +1 -1
- package/dist/react/look/AppearanceMenu.d.ts +1 -1
- package/dist/react/look/AppearanceMenu.js +1 -1
- package/dist/react/look/LookPicker.d.ts +3 -3
- package/dist/react/look/LookPicker.js +3 -3
- package/dist/react/look/lookStore.d.ts +1 -1
- package/dist/react/look/lookStore.js +4 -4
- package/dist/react/look/lookStore.js.map +1 -1
- package/dist/react/master-lock/MasterLockDialog.js +2 -2
- package/dist/react/master-lock/MasterLockDialog.js.map +1 -1
- package/dist/react/master-lock/MasterLockProvider.d.ts +1 -1
- package/dist/react/media/DenseGalleryShell.d.ts +3 -3
- package/dist/react/media/FocusViewer.js +3 -3
- package/dist/react/media/FocusViewer.js.map +1 -1
- package/dist/react/media/FrameGrabber.js +3 -3
- package/dist/react/media/FrameGrabber.js.map +1 -1
- package/dist/react/media/HoverScrubVideoThumb.d.ts +1 -1
- package/dist/react/media/HoverScrubVideoThumb.js +1 -1
- package/dist/react/media/HoverScrubVideoThumb.js.map +1 -1
- package/dist/react/media/MediaCell.d.ts +1 -1
- package/dist/react/media/MediaCell.js +1 -1
- package/dist/react/media/MediaResize.d.ts +1 -1
- package/dist/react/media/MediaThumb.d.ts +1 -1
- package/dist/react/media/PictureControls.d.ts +1 -1
- package/dist/react/media/PictureControls.js +2 -2
- package/dist/react/media/PictureControls.js.map +1 -1
- package/dist/react/media/PictureEditor.js +2 -2
- package/dist/react/media/PictureEditor.js.map +1 -1
- package/dist/react/media/PlayerStrip.d.ts +4 -4
- package/dist/react/media/PlayerStrip.d.ts.map +1 -1
- package/dist/react/media/PlayerStrip.js +2 -2
- package/dist/react/media/VideoPlayer.d.ts +3 -3
- package/dist/react/media/VideoPlayer.js +5 -5
- package/dist/react/media/VideoTurner.js +1 -1
- package/dist/react/media/VideoTurner.js.map +1 -1
- package/dist/react/media/VirtualizedRows.d.ts +1 -1
- package/dist/react/media/denseGallery.css +7 -7
- package/dist/react/media/focusViewer.css +2 -2
- package/dist/react/media/gifEncode.d.ts +4 -4
- package/dist/react/media/gifEncode.d.ts.map +1 -1
- package/dist/react/media/gifEncode.js +8 -8
- package/dist/react/media/gifEncode.js.map +1 -1
- package/dist/react/media/gifRecord.js +1 -1
- package/dist/react/media/gifRecord.js.map +1 -1
- package/dist/react/media/hlsSource.js +2 -2
- package/dist/react/media/hlsSource.js.map +1 -1
- package/dist/react/media/mediaResize.css +3 -3
- package/dist/react/media/pictureEdit.d.ts +1 -1
- package/dist/react/media/pictureEdit.js +4 -4
- package/dist/react/media/pictureEdit.js.map +1 -1
- package/dist/react/media/pictureEditor.css +6 -6
- package/dist/react/media/playerSpaceKey.js +3 -3
- package/dist/react/media/playerStrip.css +11 -11
- package/dist/react/media/posterFraming.d.ts +2 -2
- package/dist/react/media/posterFraming.d.ts.map +1 -1
- package/dist/react/media/posterFraming.js +4 -4
- package/dist/react/media/posterFraming.js.map +1 -1
- package/dist/react/media/sourceFault.d.ts +2 -2
- package/dist/react/media/sourceFault.js +1 -1
- package/dist/react/media/stageResize.d.ts +1 -1
- package/dist/react/media/stageResize.js +1 -1
- package/dist/react/media/surfaceGesture.d.ts +1 -1
- package/dist/react/media/surfaceGesture.js +1 -1
- package/dist/react/media/types.d.ts +1 -1
- package/dist/react/media/videoChapterEditor.css +1 -1
- package/dist/react/media/videoChapters.d.ts +1 -1
- package/dist/react/media/videoChapters.js +1 -1
- package/dist/react/media/videoCutEditor.css +2 -2
- package/dist/react/media/videoEnhance.d.ts +2 -2
- package/dist/react/media/videoEnhance.js +2 -2
- package/dist/react/media/videoPoster.d.ts +3 -3
- package/dist/react/media/videoPoster.d.ts.map +1 -1
- package/dist/react/media/videoPoster.js +4 -4
- package/dist/react/media/videoPoster.js.map +1 -1
- package/dist/react/media/videoRegion.d.ts +8 -8
- package/dist/react/media/videoRegion.js +8 -8
- package/dist/react/media-gallery/MediaGallery.d.ts +2 -2
- package/dist/react/media-gallery/MediaGallery.d.ts.map +1 -1
- package/dist/react/media-gallery/MediaGallery.js +17 -17
- package/dist/react/media-gallery/MediaGallery.js.map +1 -1
- package/dist/react/media-gallery/MediaMetaEditor.js +1 -1
- package/dist/react/media-gallery/galleryDeepLink.d.ts +1 -1
- package/dist/react/media-gallery/galleryDeepLink.js +2 -2
- package/dist/react/media-gallery/galleryItemMedia.d.ts +1 -1
- package/dist/react/media-gallery/galleryItemMedia.js +1 -1
- package/dist/react/media-gallery/galleryReturn.d.ts +1 -1
- package/dist/react/media-gallery/galleryReturn.js +2 -2
- package/dist/react/media-gallery/mediaGallery.css +10 -10
- package/dist/react/media-gallery/mediaGalleryModel.d.ts +1 -1
- package/dist/react/media-gallery/mediaGalleryModel.js +1 -1
- package/dist/react/media-gallery/playbackPreferences.d.ts +3 -3
- package/dist/react/media-gallery/playbackPreferences.js +2 -2
- package/dist/react/media-gallery/playbackRun.d.ts +1 -1
- package/dist/react/media-gallery/playbackRun.js +1 -1
- package/dist/react/media-gallery/preferenceSync.js +1 -1
- package/dist/react/namespace/NamespaceTargetCapsule.d.ts +1 -1
- package/dist/react/nav/BreadcrumbTrail.d.ts +1 -1
- package/dist/react/nav/BreadcrumbTrail.js +1 -1
- package/dist/react/nav/Breadcrumbs.d.ts +1 -1
- package/dist/react/nav/Breadcrumbs.js +1 -1
- package/dist/react/nav/HeaderSearch.d.ts +3 -3
- package/dist/react/nav/HeaderSearch.d.ts.map +1 -1
- package/dist/react/nav/HeaderSearch.js +2 -2
- package/dist/react/nav/PlaceBar.d.ts +1 -1
- package/dist/react/nav/PlaceBar.js +2 -2
- package/dist/react/nav/SearchResults.d.ts +2 -2
- package/dist/react/nav/SearchResults.d.ts.map +1 -1
- package/dist/react/nav/SearchResults.js +1 -1
- package/dist/react/nav/TopBar.js +1 -1
- package/dist/react/nav/breadcrumbStore.js +1 -1
- package/dist/react/nav/navShared.d.ts +1 -1
- package/dist/react/palette/CommandPalette.js +1 -1
- package/dist/react/palette/CommandPalette.js.map +1 -1
- package/dist/react/pdf-viewer/PdfPage.js +1 -1
- package/dist/react/pdf-viewer/PdfPage.js.map +1 -1
- package/dist/react/spreadsheet/SpreadsheetGrid.d.ts +1 -1
- package/dist/react/spreadsheet/useGlideTheme.js +2 -2
- package/dist/react/workbook-viewer/WorkbookViewer.js +1 -1
- package/dist/react/workbook-viewer/WorkbookViewer.js.map +1 -1
- package/dist/styles-areas/notifications.css +1 -1
- package/dist/styles-static.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/designAudit.d.ts +2 -2
- package/dist/testing/designAudit.js +3 -3
- package/dist/testing/designAudit.js.map +1 -1
- package/dist/testing/phoneRules.d.ts +4 -4
- package/dist/testing/phoneRules.js +4 -4
- package/dist/testing/phoneRules.js.map +1 -1
- package/dist/theme.css +10 -10
- package/package.json +1 -1
- package/scripts/attributesForwarded.ts +1 -1
- package/scripts/checkAreaStyles.ts +2 -2
- package/scripts/cssRules.ts +2 -2
- package/scripts/demoCoverage.ts +1 -1
- package/scripts/demoServer.ts +1 -1
- package/scripts/generateStaticStyles.ts +1 -1
- package/scripts/guardrailsEnforce.spec.ts +14 -14
- package/scripts/guardrailsEnforce.ts +25 -25
- package/scripts/paths.ts +1 -1
- package/scripts/styleAreas.ts +2 -2
- package/scripts/testTmpRoot.ts +1 -1
- package/src/buildIsStaged.spec.ts +1 -1
- package/src/iframesMakeNoRealRequest.spec.ts +1 -1
- package/src/looks.css +4 -4
- package/src/looks.spec.ts +3 -3
- package/src/namedSubpathsResolve.spec.ts +2 -2
- package/src/publishShape.spec.ts +1 -1
- package/src/react/Toast.spec.tsx +1 -1
- package/src/react/Toast.tsx +2 -2
- package/src/react/VirtualCardGrid.spec.tsx +1 -1
- package/src/react/VirtualCardGrid.tsx +3 -3
- package/src/react/activity-bar/ActivityBar.spec.tsx +2 -2
- package/src/react/activity-bar/ActivityBar.tsx +4 -4
- package/src/react/activity-bar/activityBar.css +4 -4
- package/src/react/analytics/AnalyticsPanel.tsx +1 -1
- package/src/react/canvas-hud/CanvasMinimap.tsx +1 -1
- package/src/react/canvas-hud/HudControls.spec.tsx +1 -1
- package/src/react/canvas-hud/HudControls.tsx +2 -2
- package/src/react/canvas-hud/alignment.spec.tsx +4 -4
- package/src/react/canvas-hud/alignment.ts +3 -3
- package/src/react/canvas-hud/viewport.spec.ts +1 -1
- package/src/react/canvas-hud/viewport.ts +1 -1
- package/src/react/charts/BarChart.tsx +2 -2
- package/src/react/charts/HeatmapChart.spec.ts +1 -1
- package/src/react/charts/HeatmapChart.tsx +1 -1
- package/src/react/charts/IntervalTimeline.color.spec.tsx +6 -6
- package/src/react/charts/IntervalTimeline.tsx +2 -2
- package/src/react/charts/Treemap.tsx +1 -1
- package/src/react/charts/accentCollision.spec.ts +1 -1
- package/src/react/charts/categorical.spec.ts +3 -3
- package/src/react/charts/categorical.ts +12 -12
- package/src/react/charts/ink.spec.ts +1 -1
- package/src/react/charts/ink.ts +5 -5
- package/src/react/charts/tokens.ts +1 -1
- package/src/react/chat/Bubble.tsx +1 -1
- package/src/react/chat/DateMarker.tsx +2 -2
- package/src/react/chat/MessageComposer.tsx +1 -1
- package/src/react/chat/PresenceRoster.tsx +2 -2
- package/src/react/chat/types.ts +1 -1
- package/src/react/chat/usePresence.ts +2 -2
- package/src/react/code-editor/markdownRules.ts +1 -1
- package/src/react/components/AvatarStack.spec.tsx +2 -2
- package/src/react/components/AvatarStack.tsx +2 -2
- package/src/react/components/Badge.capsule.spec.ts +6 -6
- package/src/react/components/Badge.tsx +1 -1
- package/src/react/components/Button.spec.tsx +1 -1
- package/src/react/components/Button.tsx +5 -5
- package/src/react/components/ChartTablePanel.tsx +1 -1
- package/src/react/components/Checkbox.spec.tsx +2 -2
- package/src/react/components/Checkbox.tsx +2 -2
- package/src/react/components/ChoiceGroup.tsx +1 -1
- package/src/react/components/CodeChip.spec.tsx +1 -1
- package/src/react/components/CodeChip.tsx +1 -1
- package/src/react/components/ColorSwatches.spec.tsx +9 -9
- package/src/react/components/ColorSwatches.tsx +16 -16
- package/src/react/components/CommentThread.tsx +1 -1
- package/src/react/components/ConnectionHealer.tsx +1 -1
- package/src/react/components/DataTable/DataTable.spec.tsx +2 -2
- package/src/react/components/DataTable/DataTable.tsx +10 -10
- package/src/react/components/DataTable/SearchBox.tsx +2 -2
- package/src/react/components/DataTable/SortHeader.tsx +1 -1
- package/src/react/components/DataTable/TableFilterBuilder.tsx +1 -1
- package/src/react/components/DataTable/selection.spec.tsx +1 -1
- package/src/react/components/DataTable/virtualize.spec.tsx +1 -1
- package/src/react/components/DropdownMenu.tsx +1 -1
- package/src/react/components/Field.tsx +1 -1
- package/src/react/components/FormPreviewLayout.tsx +1 -1
- package/src/react/components/Heat.spec.tsx +1 -1
- package/src/react/components/Heat.tsx +6 -6
- package/src/react/components/IconPicker.spec.tsx +1 -1
- package/src/react/components/IconPicker.tsx +9 -9
- package/src/react/components/InfoHint.spec.tsx +2 -2
- package/src/react/components/InfoHint.tsx +1 -1
- package/src/react/components/InheritBadge.tsx +2 -2
- package/src/react/components/IsolatedFrame.tsx +1 -1
- package/src/react/components/ListToolbar.tsx +1 -1
- package/src/react/components/Menu.tsx +1 -1
- package/src/react/components/Modal.tsx +5 -5
- package/src/react/components/Page.spec.tsx +1 -1
- package/src/react/components/Page.tsx +2 -2
- package/src/react/components/PaneSplit.tsx +1 -1
- package/src/react/components/PathText.tsx +1 -1
- package/src/react/components/PointerDrag.spec.tsx +1 -1
- package/src/react/components/Popover.spec.tsx +2 -2
- package/src/react/components/Popover.tsx +1 -1
- package/src/react/components/PropertyList.tsx +1 -1
- package/src/react/components/PropertyPicker.tsx +2 -2
- package/src/react/components/RatingField.tsx +1 -1
- package/src/react/components/SaveIndicator.tsx +2 -2
- package/src/react/components/SearchInput.tsx +1 -1
- package/src/react/components/SecretInput.tsx +1 -1
- package/src/react/components/Section.tsx +1 -1
- package/src/react/components/SectionNav.spec.tsx +3 -3
- package/src/react/components/SectionNav.tsx +3 -3
- package/src/react/components/SelectField.spec.tsx +1 -1
- package/src/react/components/Slider.tsx +1 -1
- package/src/react/components/StarRating.spec.tsx +4 -4
- package/src/react/components/StarRating.tsx +3 -3
- package/src/react/components/SwatchPicker.spec.tsx +4 -4
- package/src/react/components/SwatchPicker.tsx +9 -9
- package/src/react/components/Tooltip.spec.tsx +3 -3
- package/src/react/components/Tooltip.tsx +1 -1
- package/src/react/components/TreeView.tsx +1 -1
- package/src/react/components/TruncatedText.tsx +1 -1
- package/src/react/components/UnstyledButton.tsx +2 -2
- package/src/react/components/auth/AuthCard.tsx +1 -1
- package/src/react/components/buildFreshness.css +2 -2
- package/src/react/components/calendar/EventChip.spec.tsx +2 -2
- package/src/react/components/calendar/MonthGrid.tsx +2 -2
- package/src/react/components/calendar/colorUtils.ts +2 -2
- package/src/react/components/dialog.tsx +1 -1
- package/src/react/components/fieldErrorText.tsx +1 -1
- package/src/react/components/paneSplit.css +1 -1
- package/src/react/components/sharing/ShareEditor.spec.tsx +15 -0
- package/src/react/components/sharing/ShareEditor.tsx +14 -3
- package/src/react/deep-link/links.spec.ts +1 -1
- package/src/react/deep-link/links.ts +1 -1
- package/src/react/deep-link/resume.spec.tsx +1 -1
- package/src/react/deep-link/resume.ts +1 -1
- package/src/react/diff-viewer/DiffViewer.css +1 -1
- package/src/react/file-tree/FileTree.spec.tsx +13 -13
- package/src/react/file-tree/FileTree.tsx +22 -22
- package/src/react/file-tree/FolderViewMenus.tsx +3 -3
- package/src/react/file-tree/FolderViewPanels.tsx +1 -1
- package/src/react/file-tree/fileTree.css +14 -14
- package/src/react/file-tree/fileTreeGeometry.spec.ts +5 -5
- package/src/react/file-tree/fileTreeSelection.ts +4 -4
- package/src/react/file-tree/folderView.spec.ts +1 -1
- package/src/react/file-tree/folderView.ts +3 -3
- package/src/react/filter-rail/FilterRail.spec.tsx +1 -1
- package/src/react/filter-rail/FilterRail.tsx +4 -4
- package/src/react/filter-rail/RailSection.spec.tsx +2 -2
- package/src/react/filter-rail/RailSection.tsx +1 -1
- package/src/react/filter-rail/railResize.tsx +1 -1
- package/src/react/folder-tree/FolderBreadcrumb.tsx +1 -1
- package/src/react/folder-tree/NewFolderControl.tsx +1 -1
- package/src/react/hooks/keyboardDnd.spec.tsx +1 -1
- package/src/react/hooks/keyboardDnd.tsx +2 -2
- package/src/react/hooks/pointerDnd.spec.ts +3 -3
- package/src/react/hooks/pointerDnd.ts +2 -2
- package/src/react/hooks/useOutsidePress.spec.tsx +1 -1
- package/src/react/hooks/usePointerDrag.ts +2 -2
- package/src/react/icons.tsx +18 -11
- package/src/react/keep-awake/keepAwakeEngine.spec.ts +1 -1
- package/src/react/layoutEngine/LayoutConfigDialog.tsx +1 -1
- package/src/react/layoutEngine/LayoutRenderer.tsx +1 -1
- package/src/react/layoutEngine/gridClasses.spec.ts +3 -3
- package/src/react/lib/cn.spec.ts +1 -1
- package/src/react/lib/cn.ts +4 -4
- package/src/react/lib/directUpload.spec.ts +1 -1
- package/src/react/lib/field.ts +1 -1
- package/src/react/lib/floatingContainer.ts +1 -1
- package/src/react/lib/floatingStyles.spec.ts +1 -1
- package/src/react/lib/floatingStyles.ts +2 -2
- package/src/react/lib/hoverIntent.ts +6 -6
- package/src/react/lib/infoHint.ts +1 -1
- package/src/react/lib/overlayMotion.ts +1 -1
- package/src/react/lib/press.ts +1 -1
- package/src/react/lib/selectField.ts +2 -2
- package/src/react/lib/zodResolver.ts +1 -1
- package/src/react/look/AppearanceMenu.tsx +1 -1
- package/src/react/look/LookPicker.tsx +3 -3
- package/src/react/look/lookStore.ts +4 -4
- package/src/react/markdown/MarkdownDoc.spec.tsx +1 -1
- package/src/react/master-detail/MasterDetail.tsx +1 -1
- package/src/react/master-lock/MasterLockDialog.tsx +2 -2
- package/src/react/master-lock/MasterLockProvider.spec.tsx +1 -1
- package/src/react/master-lock/MasterLockProvider.tsx +1 -1
- package/src/react/media/DenseGalleryShell.tsx +3 -3
- package/src/react/media/FocusViewer.tsx +3 -3
- package/src/react/media/FrameGrabber.spec.tsx +2 -2
- package/src/react/media/FrameGrabber.tsx +3 -3
- package/src/react/media/HoverScrubVideoThumb.tsx +3 -3
- package/src/react/media/MediaCell.tsx +1 -1
- package/src/react/media/MediaResize.spec.tsx +4 -4
- package/src/react/media/MediaResize.tsx +1 -1
- package/src/react/media/MediaThumb.tsx +1 -1
- package/src/react/media/PictureControls.tsx +2 -2
- package/src/react/media/PictureEditor.tsx +2 -2
- package/src/react/media/PlayerStrip.tsx +9 -9
- package/src/react/media/VideoChapterEditor.tsx +1 -1
- package/src/react/media/VideoCutEditor.spec.tsx +1 -1
- package/src/react/media/VideoCutEditor.tsx +1 -1
- package/src/react/media/VideoPlayer.spec.tsx +7 -7
- package/src/react/media/VideoPlayer.tsx +6 -6
- package/src/react/media/VideoTurner.tsx +1 -1
- package/src/react/media/VirtualizedRows.tsx +1 -1
- package/src/react/media/denseGallery.css +7 -7
- package/src/react/media/focusViewer.css +2 -2
- package/src/react/media/focusViewer.css.spec.ts +1 -1
- package/src/react/media/gifEncode.spec.ts +2 -2
- package/src/react/media/gifEncode.ts +9 -9
- package/src/react/media/gifRecord.ts +1 -1
- package/src/react/media/hlsSource.recovery.spec.ts +2 -2
- package/src/react/media/hlsSource.spec.ts +1 -1
- package/src/react/media/hlsSource.ts +2 -2
- package/src/react/media/mediaResize.css +3 -3
- package/src/react/media/pictureEdit.spec.ts +5 -5
- package/src/react/media/pictureEdit.ts +4 -4
- package/src/react/media/pictureEditor.css +6 -6
- package/src/react/media/playerSpaceKey.ts +3 -3
- package/src/react/media/playerStrip.css +11 -11
- package/src/react/media/playerStrip.spec.tsx +17 -13
- package/src/react/media/posterFraming.spec.ts +4 -4
- package/src/react/media/posterFraming.ts +5 -5
- package/src/react/media/sourceFault.tsx +2 -2
- package/src/react/media/stageResize.ts +1 -1
- package/src/react/media/surfaceGesture.ts +1 -1
- package/src/react/media/types.ts +1 -1
- package/src/react/media/videoChapterEditor.css +1 -1
- package/src/react/media/videoChapters.spec.ts +1 -1
- package/src/react/media/videoChapters.ts +1 -1
- package/src/react/media/videoCutEditor.css +2 -2
- package/src/react/media/videoEnhance.spec.ts +1 -1
- package/src/react/media/videoEnhance.ts +2 -2
- package/src/react/media/videoPoster.spec.ts +3 -3
- package/src/react/media/videoPoster.ts +5 -5
- package/src/react/media/videoRegion.spec.ts +7 -7
- package/src/react/media/videoRegion.ts +8 -8
- package/src/react/media-gallery/GalleryTable.tsx +1 -1
- package/src/react/media-gallery/MediaGallery.spec.tsx +11 -11
- package/src/react/media-gallery/MediaGallery.tsx +23 -23
- package/src/react/media-gallery/MediaMetaEditor.tsx +1 -1
- package/src/react/media-gallery/galleryDeepLink.ts +2 -2
- package/src/react/media-gallery/galleryItemMedia.spec.tsx +1 -1
- package/src/react/media-gallery/galleryItemMedia.tsx +1 -1
- package/src/react/media-gallery/galleryReturn.ts +2 -2
- package/src/react/media-gallery/mediaGallery.css +10 -10
- package/src/react/media-gallery/mediaGalleryModel.ts +1 -1
- package/src/react/media-gallery/playbackPreferences.ts +3 -3
- package/src/react/media-gallery/playbackRun.spec.ts +1 -1
- package/src/react/media-gallery/playbackRun.ts +1 -1
- package/src/react/media-gallery/preferenceSync.ts +1 -1
- package/src/react/namespace/NamespaceTargetCapsule.tsx +1 -1
- package/src/react/nav/BreadcrumbTrail.tsx +1 -1
- package/src/react/nav/Breadcrumbs.tsx +1 -1
- package/src/react/nav/HeaderSearch.tsx +3 -3
- package/src/react/nav/PlaceBar.spec.tsx +4 -4
- package/src/react/nav/PlaceBar.tsx +4 -4
- package/src/react/nav/SearchResults.tsx +2 -2
- package/src/react/nav/TopBar.spec.tsx +1 -1
- package/src/react/nav/TopBar.tsx +1 -1
- package/src/react/nav/breadcrumbStore.ts +1 -1
- package/src/react/nav/breadcrumbSystem.spec.tsx +1 -1
- package/src/react/nav/navShared.tsx +1 -1
- package/src/react/palette/CommandPalette.spec.tsx +1 -1
- package/src/react/palette/CommandPalette.tsx +1 -1
- package/src/react/pdf-viewer/PdfPage.tsx +1 -1
- package/src/react/spreadsheet/SpreadsheetGrid.tsx +1 -1
- package/src/react/spreadsheet/useGlideTheme.ts +2 -2
- package/src/react/workbook-viewer/WorkbookViewer.tsx +1 -1
- package/src/shippedFilesAreTracked.spec.ts +2 -2
- package/src/styles-areas/notifications.css +1 -1
- package/src/styles-static.css +1 -1
- package/src/styles.css +1 -1
- package/src/stylesAreas.spec.ts +1 -1
- package/src/stylesStaticMatches.spec.ts +2 -2
- package/src/stylesUtilitiesMatches.spec.ts +4 -4
- package/src/testing/designAudit.ts +4 -4
- package/src/testing/phoneRules.spec.ts +1 -1
- package/src/testing/phoneRules.ts +7 -7
- package/src/theme.css +10 -10
- package/src/themeColorsResolve.spec.ts +5 -5
- package/src/themeDarkScopeAliases.spec.ts +1 -1
- package/src/verifyGraph.spec.ts +1 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* | dark | `--chart-6` teal ↔ `--chart-5` pink | **5.0** | FAIL |
|
|
14
14
|
*
|
|
15
15
|
* A reader with deuteranomaly — around 1 in 12 men — cannot tell those two
|
|
16
|
-
* series apart at all. The
|
|
16
|
+
* series apart at all. The colors themselves are fine; the *sequence* is what
|
|
17
17
|
* fails, because it was chosen to look pleasant in a swatch row rather than to
|
|
18
18
|
* stay separable when only some of it is used.
|
|
19
19
|
*
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
* Past five the same check fails again however the tokens are stepped: eight
|
|
35
35
|
* hues cannot all be separable under CVD, and generating a ninth would be
|
|
36
36
|
* indistinguishable from an existing one while *looking* like new information.
|
|
37
|
-
* So a chart with more categories than it has safe
|
|
37
|
+
* So a chart with more categories than it has safe colors does one of three
|
|
38
38
|
* things — fold the tail into "Other" ({@link foldToOther}), facet into small
|
|
39
|
-
* multiples, or drop
|
|
39
|
+
* multiples, or drop color as the encoding entirely and sort by magnitude with
|
|
40
40
|
* a single hue. The last is usually the right answer for "which app costs the
|
|
41
41
|
* most time": that question is about magnitude, not identity.
|
|
42
42
|
*
|
|
@@ -50,7 +50,7 @@ import type { ChartTokens } from './tokens.js';
|
|
|
50
50
|
*
|
|
51
51
|
* emerald (the accent) → violet → amber → sky → pink. Teal, red and indigo are
|
|
52
52
|
* deliberately absent: teal collides with the accent AND with pink, red is
|
|
53
|
-
* reserved as a status
|
|
53
|
+
* reserved as a status color (`danger`), and indigo collides with violet.
|
|
54
54
|
*
|
|
55
55
|
* Slot 0 is the APP's accent, not always emerald: when it lands on one of the
|
|
56
56
|
* other four (station's violet), `clearTheAccent` in `tokens.ts` gives that slot
|
|
@@ -59,16 +59,16 @@ import type { ChartTokens } from './tokens.js';
|
|
|
59
59
|
export const CATEGORICAL_ORDER = [0, 3, 2, 1, 4] as const;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* How many categorical series a single chart may
|
|
62
|
+
* How many categorical series a single chart may color. Past this, color has
|
|
63
63
|
* stopped carrying information — see the header.
|
|
64
64
|
*/
|
|
65
65
|
export const CATEGORICAL_CEILING = CATEGORICAL_ORDER.length;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* The i-th categorical
|
|
68
|
+
* The i-th categorical color, in the validated order. Wraps at the ceiling
|
|
69
69
|
* rather than continuing into the unsafe slots — a caller that hits the wrap
|
|
70
|
-
* has a data problem ({@link foldToOther}), not a
|
|
71
|
-
* a
|
|
70
|
+
* has a data problem ({@link foldToOther}), not a color problem, and repeating
|
|
71
|
+
* a color makes that visible instead of hiding it behind a near-duplicate hue.
|
|
72
72
|
*/
|
|
73
73
|
export const categoricalColor = (t: ChartTokens, i: number): string =>
|
|
74
74
|
t.series[CATEGORICAL_ORDER[i % CATEGORICAL_ORDER.length]] ?? t.accent;
|
|
@@ -78,9 +78,9 @@ export const categoricalColor = (t: ChartTokens, i: number): string =>
|
|
|
78
78
|
* an alpha ramp over the chart surface so it themes correctly in both modes
|
|
79
79
|
* without a second set of tokens.
|
|
80
80
|
*
|
|
81
|
-
* `frac` is 0–1 (already
|
|
81
|
+
* `frac` is 0–1 (already normalized by the caller — the caller knows whether
|
|
82
82
|
* its scale is linear, log or rank-based). Returns an `rgb(… / a)` string when
|
|
83
|
-
* the token is a hex
|
|
83
|
+
* the token is a hex color, and the raw token otherwise (a named or `oklch()`
|
|
84
84
|
* token still themes; it simply cannot be alpha-stepped here).
|
|
85
85
|
*
|
|
86
86
|
* The floor is deliberately non-zero: a cell with a real, small value must not
|
|
@@ -90,7 +90,7 @@ export function sequentialStep(hex: string, frac: number): string {
|
|
|
90
90
|
const rgb = hexToRgb(hex);
|
|
91
91
|
const clamped = Number.isFinite(frac) ? Math.min(1, Math.max(0, frac)) : 0;
|
|
92
92
|
// 0.10 floor, 1.0 ceiling: the faintest real value stays visible against the
|
|
93
|
-
// surface, and the strongest reaches the token's own
|
|
93
|
+
// surface, and the strongest reaches the token's own color.
|
|
94
94
|
const alpha = Math.round((0.1 + clamped * 0.9) * 100) / 100;
|
|
95
95
|
if (!rgb) return hex;
|
|
96
96
|
return `rgb(${rgb[0]} ${rgb[1]} ${rgb[2]} / ${alpha})`;
|
|
@@ -113,7 +113,7 @@ export function hexToRgb(hex: string): [number, number, number] | null {
|
|
|
113
113
|
* honest answer to "too many categories", and the one the ceiling above forces.
|
|
114
114
|
*
|
|
115
115
|
* Sorts descending by `value`. "Other" is appended last (so it takes the final,
|
|
116
|
-
* least-
|
|
116
|
+
* least-emphasized color slot) and is omitted entirely when nothing folds, so
|
|
117
117
|
* a chart with exactly `keep` categories does not grow a zero row.
|
|
118
118
|
*/
|
|
119
119
|
export function foldToOther<T extends { value: number }>(
|
|
@@ -16,7 +16,7 @@ describe('inkOn', () => {
|
|
|
16
16
|
test('#rgb shorthand parses', () => {
|
|
17
17
|
expect(inkOn('#fff', [WHITE, DARK])).toBe(DARK);
|
|
18
18
|
});
|
|
19
|
-
test('an unparseable
|
|
19
|
+
test('an unparseable color falls back', () => {
|
|
20
20
|
expect(inkOn('oklch(0.7 0.1 200)', [WHITE, DARK], 'fallback')).toBe('fallback');
|
|
21
21
|
});
|
|
22
22
|
});
|
package/src/react/charts/ink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The text
|
|
2
|
+
* The text color that reads on a filled mark — whichever of two inks has the higher WCAG
|
|
3
3
|
* contrast against the fill.
|
|
4
4
|
*
|
|
5
5
|
* A chart that writes labels ON its marks (a treemap tile) cannot use one ink for every
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* 2.15:1 on light's amber and 2.77:1 on its sky (forge task 2593). Choosing per fill keeps
|
|
8
8
|
* every label over FND-9's 4.5:1 wherever the palette allows it at all.
|
|
9
9
|
*
|
|
10
|
-
* Accepts `#rgb`, `#rrggbb` and `rgb()/rgba()` — what the chart tokens resolve to. A
|
|
11
|
-
* it cannot parse (a future `oklch()`) returns `fallback`, which is the old
|
|
10
|
+
* Accepts `#rgb`, `#rrggbb` and `rgb()/rgba()` — what the chart tokens resolve to. A color
|
|
11
|
+
* it cannot parse (a future `oklch()`) returns `fallback`, which is the old behavior.
|
|
12
12
|
*/
|
|
13
13
|
export function inkOn(fill: string, inks: readonly [string, string], fallback: string = inks[0]): string {
|
|
14
14
|
const bg = luminance(fill);
|
|
@@ -42,10 +42,10 @@ function parse(color: string): [number, number, number] | null {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* How far apart two
|
|
45
|
+
* How far apart two colors look to a reader with full color vision: Euclidean distance in
|
|
46
46
|
* OKLab, ×100 — the same "ΔE (normal)" the palette validator prints. Under 15 is the
|
|
47
47
|
* validator's normal-vision floor, a hard FAIL: two series that close read as one. Null when
|
|
48
|
-
* either
|
|
48
|
+
* either color does not parse.
|
|
49
49
|
*/
|
|
50
50
|
export function okDistance(x: string, y: string): number | null {
|
|
51
51
|
const a = parse(x.trim());
|
|
@@ -117,7 +117,7 @@ export const SERIES_FLOOR = 15;
|
|
|
117
117
|
* validated with, and the set of five is again the validated five (violet, emerald, amber,
|
|
118
118
|
* sky, pink pass every CVD check in both modes). Slot 0 stays the accent, so a single series
|
|
119
119
|
* is still the brand. Slots past the ceiling (teal, red, indigo) are not touched: they were
|
|
120
|
-
* never safe, and a chart that reaches them has a fold-to-Other problem, not a
|
|
120
|
+
* never safe, and a chart that reaches them has a fold-to-Other problem, not a color one.
|
|
121
121
|
*/
|
|
122
122
|
export function clearTheAccent(series: string[], background: string): string[] {
|
|
123
123
|
const accent = series[0];
|
|
@@ -47,7 +47,7 @@ function AttachmentChip({
|
|
|
47
47
|
attachment: ChatAttachment;
|
|
48
48
|
onDelete?: (attachment: ChatAttachment) => void;
|
|
49
49
|
}) {
|
|
50
|
-
// Deleted (removed from the host's
|
|
50
|
+
// Deleted (removed from the host's catalog) or never resolved to a live url — either
|
|
51
51
|
// way there's nothing to link/preview, so render a flat placeholder rather than a
|
|
52
52
|
// broken image or a dead link (orchai-19).
|
|
53
53
|
if (attachment.deleted || !attachment.url) {
|
|
@@ -19,7 +19,7 @@ function formatMarkerDate(date: Date, now = new Date()): string {
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* The LOCAL calendar day as `YYYY-MM-DD` — the same day the label names. `toISOString()` is the
|
|
22
|
-
* UTC day, so a message at 19:00 in Chicago was
|
|
22
|
+
* UTC day, so a message at 19:00 in Chicago was labeled "Wednesday, July 1" and stamped
|
|
23
23
|
* `2026-07-02` (forge task 2591).
|
|
24
24
|
*/
|
|
25
25
|
function localDayKey(date: Date): string {
|
|
@@ -48,7 +48,7 @@ export function DateMarker({ date, className, ...rest }: DateMarkerProps) {
|
|
|
48
48
|
const day = localDayKey(d);
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
|
-
// biome-ignore lint/a11y/useSemanticElements: an <hr> cannot hold the date it announces; a named separator role on the row is the
|
|
51
|
+
// biome-ignore lint/a11y/useSemanticElements: an <hr> cannot hold the date it announces; a named separator role on the row is the labeled-divider pattern
|
|
52
52
|
<div
|
|
53
53
|
{...rest}
|
|
54
54
|
data-chat-date={day}
|
|
@@ -16,7 +16,7 @@ export interface MessageComposerProps {
|
|
|
16
16
|
/** Show the file attachment button. Default false. */
|
|
17
17
|
allowAttachments?: boolean;
|
|
18
18
|
/** A reply is still streaming in — swaps the Send button for a Stop button
|
|
19
|
-
* (always clickable, even while `disabled` —
|
|
19
|
+
* (always clickable, even while `disabled` — canceling must work exactly
|
|
20
20
|
* when the composer would otherwise be locked waiting on that reply). */
|
|
21
21
|
isGenerating?: boolean;
|
|
22
22
|
/** Called when the Stop button is clicked. Required when `isGenerating` is used. */
|
|
@@ -31,8 +31,8 @@ function PresenceAvatar({ user }: { user: PresenceUser }) {
|
|
|
31
31
|
return (
|
|
32
32
|
<Tooltip content={tip}>
|
|
33
33
|
{/* The avatar's initials sit on a translucent accent tint, so overlapped (-space-x-2)
|
|
34
|
-
each one showed its
|
|
35
|
-
background-
|
|
34
|
+
each one showed its neighbor's letters through it ("MOLVSR"). An opaque
|
|
35
|
+
background-color disc under it, ringed, separates them as AvatarStack does. */}
|
|
36
36
|
<span className='relative inline-flex rounded-full bg-background ring-2 ring-background'>
|
|
37
37
|
<Avatar name={user.name} src={user.avatarUrl} size='sm' />
|
|
38
38
|
<OnlineDot online={user.isOnline} className='absolute -bottom-0.5 -right-0.5 h-2.5 w-2.5 ring-2 ring-background' />
|
package/src/react/chat/types.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface ChatAttachment {
|
|
|
20
20
|
mimeType?: string;
|
|
21
21
|
/** Bytes — used to render a human-readable size. */
|
|
22
22
|
sizeBytes?: number;
|
|
23
|
-
/** The referenced file no longer exists in the host's
|
|
23
|
+
/** The referenced file no longer exists in the host's catalog — the chip renders a
|
|
24
24
|
* "file deleted" placeholder instead of a broken image/link. */
|
|
25
25
|
deleted?: boolean;
|
|
26
26
|
}
|
|
@@ -10,7 +10,7 @@ import type { PresenceUser } from './types.js';
|
|
|
10
10
|
* `presence: true`, whose `getPresence(channel)` is one `{ userId, connectedAt }` row per live
|
|
11
11
|
* client) and nothing in between — so the roster sat exported with zero consumers, and the one
|
|
12
12
|
* app that shows presence (`apps/family`, `src/live.ts`) hand-rolled its own socket. This is that
|
|
13
|
-
* socket,
|
|
13
|
+
* socket, generalized: open `/ws/<channel>`, take every `presence` snapshot the channel
|
|
14
14
|
* broadcasts, and reconnect with a capped backoff when the socket drops.
|
|
15
15
|
*
|
|
16
16
|
* The server side a channel needs is one line in its lifecycle hooks:
|
|
@@ -72,7 +72,7 @@ export const PRESENCE_RETRY_MS = [500, 1_000, 2_000, 5_000, 10_000, 30_000] as c
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Collapse a snapshot to one {@link PresenceUser} per user, earliest arrival first, without
|
|
75
|
-
* `selfId`. Pure — the hook's whole
|
|
75
|
+
* `selfId`. Pure — the hook's whole judgment, exported so it is tested without a socket.
|
|
76
76
|
*/
|
|
77
77
|
export function presenceUsers(
|
|
78
78
|
rows: readonly PresenceEntryLike[],
|
|
@@ -55,7 +55,7 @@ const rulePlugin = ViewPlugin.fromClass(
|
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
const ruleTheme = EditorView.baseTheme({
|
|
58
|
-
// The rule is the line's background,
|
|
58
|
+
// The rule is the line's background, centered, the width of the text column; the dashes stay
|
|
59
59
|
// in the document (and under the caret's click), just not painted.
|
|
60
60
|
'.cb-md-rule': {
|
|
61
61
|
backgroundImage: 'linear-gradient(var(--border), var(--border))',
|
|
@@ -37,8 +37,8 @@ describe('AvatarStack', () => {
|
|
|
37
37
|
expect(getByLabelText('3 more')).toBeTruthy();
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
// Forge task 2590: the ring sits on an opaque background-
|
|
41
|
-
// the initials chip is a translucent tint, so overlapped bare it showed its
|
|
40
|
+
// Forge task 2590: the ring sits on an opaque background-color disc around each avatar —
|
|
41
|
+
// the initials chip is a translucent tint, so overlapped bare it showed its neighbor's letters.
|
|
42
42
|
test('every avatar sits on an opaque, ringed disc', () => {
|
|
43
43
|
const { container } = render(<AvatarStack users={USERS.slice(0, 2)} />);
|
|
44
44
|
const spans = container.querySelectorAll('[aria-hidden]');
|
|
@@ -54,8 +54,8 @@ export function AvatarStack({ users, max = 4, size = 'sm', className, ...rest }:
|
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<div {...rest} className={cn('flex items-center', className)}>
|
|
57
|
-
{/* Each avatar on an opaque background-
|
|
58
|
-
translucent accent tint, so overlapped it let its
|
|
57
|
+
{/* Each avatar on an opaque background-color disc: the initials chip is a
|
|
58
|
+
translucent accent tint, so overlapped it let its neighbor's letters show
|
|
59
59
|
through ("MC LV" where "MO" was meant). */}
|
|
60
60
|
{displayed.map((u, i) => (
|
|
61
61
|
<span
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* pills as bare text beside a dot on a `Surface level="raised"`: `--muted` #1f2937 on
|
|
8
8
|
* `--card-raised` #0f1929 is 1.2:1. station patched it app-locally with `tone="outline"`.
|
|
9
9
|
*
|
|
10
|
-
* The measure is CIEDE2000 — perceived
|
|
11
|
-
* emerald tint on white is a plainly visible capsule at 1.13:1 luminance, while a
|
|
10
|
+
* The measure is CIEDE2000 — perceived color difference — not the WCAG luminance ratio: a pale
|
|
11
|
+
* emerald tint on white is a plainly visible capsule at 1.13:1 luminance, while a gray one at
|
|
12
12
|
* 1.10:1 is not, and only hue tells them apart. Measured over the four scopes theme.css ships
|
|
13
|
-
* (default and aurora, light and dark), the fill-to-surface ΔE00 of the neutral
|
|
13
|
+
* (default and aurora, light and dark), the fill-to-surface ΔE00 of the neutral gray is 2.3–5.3
|
|
14
14
|
* (5.3 being the raised dark card the owner saw as bare text) and of the categorical hues 5.5–20.
|
|
15
15
|
* So the floor is {@link CAPSULE_FLOOR}.
|
|
16
16
|
*
|
|
17
|
-
* A tone passes on its EDGE: its border
|
|
17
|
+
* A tone passes on its EDGE: its border color when it draws one, else its fill — each composited
|
|
18
18
|
* over the surface first, because `bg-success/15` and the dark tones' `color-mix(… transparent)`
|
|
19
19
|
* are translucent.
|
|
20
20
|
*/
|
|
@@ -66,7 +66,7 @@ function color(scope: Record<string, string>, token: string): Rgba {
|
|
|
66
66
|
const mix = /^color-mix\(in srgb, (#[0-9a-f]{3,6}) (\d+)%, transparent\)$/i.exec(value);
|
|
67
67
|
if (mix) return [...hex(mix[1] as string).slice(0, 3), Number(mix[2]) / 100] as Rgba;
|
|
68
68
|
if (/^#[0-9a-f]{3,6}$/i.test(value)) return hex(value);
|
|
69
|
-
throw new Error(`--${token}: "${value}" is a
|
|
69
|
+
throw new Error(`--${token}: "${value}" is a color this spec cannot read — teach it, never skip the tone`);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
const over = (fg: Rgba, bg: Rgba): Rgba => [0, 1, 2].map((i) => (fg[i] as number) * fg[3] + (bg[i] as number) * (1 - fg[3])).concat(1) as Rgba;
|
|
@@ -119,7 +119,7 @@ export function deltaE2000(c1: Rgba, c2: Rgba): number {
|
|
|
119
119
|
return Math.sqrt(dL ** 2 + dC ** 2 + dHs ** 2 + RT * dC * dHs);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
/** A tone's classes → the
|
|
122
|
+
/** A tone's classes → the color its capsule's EDGE is drawn in: its `border-*`, else its `bg-*`. */
|
|
123
123
|
function edgeOf(classes: string): { token: string; alpha: number; kind: 'border' | 'fill' } {
|
|
124
124
|
const words = classes.split(/\s+/);
|
|
125
125
|
const paint = (prefix: string) => {
|
|
@@ -61,7 +61,7 @@ export const BADGE_TONE = {
|
|
|
61
61
|
slate: 'bg-tone-slate-bg text-tone-slate-fg border border-tone-slate-fg/30',
|
|
62
62
|
// Four more, 2026-08-20 (unit 15) — see theme.css. Eight hues is enough while a tone
|
|
63
63
|
// means a badge and not enough when the hue is an identity CHANNEL (arcade's Crowns
|
|
64
|
-
// tells ten regions apart by
|
|
64
|
+
// tells ten regions apart by color alone).
|
|
65
65
|
lime: 'bg-tone-lime-bg text-tone-lime-fg',
|
|
66
66
|
teal: 'bg-tone-teal-bg text-tone-teal-fg',
|
|
67
67
|
violet: 'bg-tone-violet-bg text-tone-violet-fg',
|
|
@@ -175,7 +175,7 @@ describe('Button', () => {
|
|
|
175
175
|
test('🔴 a press is answered: the control dips to --press-scale while held, eased, and a link never does', () => {
|
|
176
176
|
const cls = render(<Button tooltip='B'>B</Button>).getByRole('button').className;
|
|
177
177
|
expect(cls).toContain('active:scale-[var(--press-scale)]');
|
|
178
|
-
// The dip eases in and out like the
|
|
178
|
+
// The dip eases in and out like the colors do — `scale` (the property Tailwind v4's
|
|
179
179
|
// `scale-*` writes, not `transform`) is in the transition list.
|
|
180
180
|
expect(cls).toMatch(/transition-\[[^\]]*\bscale\b[^\]]*\]/);
|
|
181
181
|
// Nothing happened on a refused press, so nothing dips; reduced motion turns it off.
|
|
@@ -34,7 +34,7 @@ export const buttonVariants = cva(
|
|
|
34
34
|
[
|
|
35
35
|
'relative inline-flex items-center justify-center gap-2 rounded-md font-medium',
|
|
36
36
|
// 🔴 TACTILE (forge task family-app-ux-overhaul, 2026-10-06): a press is answered — eased
|
|
37
|
-
//
|
|
37
|
+
// colors and a `--press-scale` dip while held. The contract and who is exempt: `lib/press.ts`.
|
|
38
38
|
PRESS,
|
|
39
39
|
TAP_TARGET_HEIGHT, // ≥44px touch target on coarse pointers
|
|
40
40
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-background',
|
|
@@ -44,7 +44,7 @@ export const buttonVariants = cva(
|
|
|
44
44
|
// it has to be hoverable and focusable to deliver the reason it exists to give.
|
|
45
45
|
'aria-disabled:cursor-not-allowed aria-disabled:opacity-50',
|
|
46
46
|
// A toggle that is ON (`aria-pressed`) reads as selected in every variant — the
|
|
47
|
-
// accent border and text over a faint accent wash, never
|
|
47
|
+
// accent border and text over a faint accent wash, never color alone (the border).
|
|
48
48
|
'aria-pressed:border aria-pressed:border-accent aria-pressed:bg-accent/10 aria-pressed:text-accent',
|
|
49
49
|
'[&_svg]:size-4 [&_svg]:shrink-0',
|
|
50
50
|
],
|
|
@@ -66,7 +66,7 @@ export const buttonVariants = cva(
|
|
|
66
66
|
// an emergency stop). ≤1 per view, like primary.
|
|
67
67
|
// success-solid — its green twin, for the "go" half of a state toggle whose
|
|
68
68
|
// "stop" half is destructive-solid (a runner's Resume beside its
|
|
69
|
-
// Pause): the
|
|
69
|
+
// Pause): the color says what the press DOES. Not a second primary.
|
|
70
70
|
variant: {
|
|
71
71
|
primary:
|
|
72
72
|
'bg-accent-solid text-white hover:bg-accent-solid-hover focus-visible:ring-accent-solid',
|
|
@@ -79,7 +79,7 @@ export const buttonVariants = cva(
|
|
|
79
79
|
// `border-border-strong bg-card`: the card's own ground inside a full-strength 3:1
|
|
80
80
|
// outline, so a toolbar of them was a row of bright boxes ("stark block borders", the
|
|
81
81
|
// judge's words when desk lost to Linear on 2026-10-05, task 2822). The fill carries the
|
|
82
|
-
// presence now and the edge is the quiet `--border`; a
|
|
82
|
+
// presence now and the edge is the quiet `--border`; a labeled button is identified by
|
|
83
83
|
// its label and fill, so the 3:1 non-text floor that FIELD borders hold does not apply.
|
|
84
84
|
secondary:
|
|
85
85
|
'border border-border bg-muted text-foreground shadow-raised hover:bg-border focus-visible:ring-accent',
|
|
@@ -223,7 +223,7 @@ export interface ButtonProps
|
|
|
223
223
|
* 🔴 sonner is loaded when a toast is about to be SHOWN, never at import.
|
|
224
224
|
*
|
|
225
225
|
* `Button` is on every app's entry chunk, and a static `import { toast } from 'sonner'` here put
|
|
226
|
-
* the whole of sonner there with it — and, because Rollup
|
|
226
|
+
* the whole of sonner there with it — and, because Rollup colors a module into the chunk of its
|
|
227
227
|
* static importers, every app that mounted `Toaster` anywhere (even lazily) paid for the stack on
|
|
228
228
|
* first paint too. Measured in family, 2026-10-06 (forge task 2900): 36 kB minified of sonner on
|
|
229
229
|
* the entry, 15.5 kB of it the `Toaster` a lazy mount could not move. A toast follows an async
|
|
@@ -192,7 +192,7 @@ export function ChartTablePanel<TRow extends Record<string, unknown>>({
|
|
|
192
192
|
}
|
|
193
193
|
/>
|
|
194
194
|
{current === 'chart' ? (
|
|
195
|
-
// The chart side
|
|
195
|
+
// The chart side honors `loading` and `emptyState` as the table side does: it drew the
|
|
196
196
|
// caller's chart over no rows — bare axes — while the Table tab said "loading" (forge
|
|
197
197
|
// task 2593).
|
|
198
198
|
loading ? (
|
|
@@ -82,7 +82,7 @@ describe('Checkbox', () => {
|
|
|
82
82
|
expect(getByRole('checkbox').getAttribute('class') ?? '').toContain('size-4');
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
test('a captioned checkbox starts at the left edge, never
|
|
85
|
+
test('a captioned checkbox starts at the left edge, never centered in a stretched row (FRM-2)', () => {
|
|
86
86
|
const { getByText } = render(
|
|
87
87
|
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
88
88
|
<Checkbox checked={false} onCheckedChange={() => {}} label='Short' />
|
|
@@ -94,7 +94,7 @@ describe('Checkbox', () => {
|
|
|
94
94
|
expect(target).toContain('self-start');
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
test('a bare box still
|
|
97
|
+
test('a bare box still centers itself in its 44px target', () => {
|
|
98
98
|
const { getByRole } = render(<Checkbox checked={false} onCheckedChange={() => {}} />);
|
|
99
99
|
const target = (getByRole('checkbox').closest('label')?.getAttribute('class') ?? '').split(/\s+/);
|
|
100
100
|
expect(target).toContain('justify-center');
|
|
@@ -43,14 +43,14 @@ const BOX = cn(
|
|
|
43
43
|
|
|
44
44
|
// The tap target: the whole label, box and caption and the gap between them.
|
|
45
45
|
//
|
|
46
|
-
// Clicking a `<label>` toggles the control it labels — native browser
|
|
46
|
+
// Clicking a `<label>` toggles the control it labels — native browser behavior,
|
|
47
47
|
// not something this component implements — so the 44px floor belongs on the
|
|
48
48
|
// region a thumb is actually aiming at, which is the words as much as the box.
|
|
49
49
|
// `data-cb-tap-target` is the seam `e2e/touch-targets.spec.ts` measures a
|
|
50
50
|
// sub-44px control through, the way a checkbox has to be measured.
|
|
51
51
|
const TARGET = cn('inline-flex shrink-0 cursor-pointer items-center gap-2 align-middle', TAP_TARGET);
|
|
52
52
|
|
|
53
|
-
// A bare box
|
|
53
|
+
// A bare box centers itself in its 44px square. A captioned one starts at the left edge and is
|
|
54
54
|
// only as wide as its caption: `justify-center` on a stretched label (any column parent) set a
|
|
55
55
|
// short caption adrift in the middle of the row, off the edge every other control shares (FRM-2).
|
|
56
56
|
const BARE = 'justify-center';
|
|
@@ -59,7 +59,7 @@ export interface ChoiceGroupProps<T extends string = string> {
|
|
|
59
59
|
* When to use which:
|
|
60
60
|
* - a short view/mode switch on one line → `SegmentedControl`
|
|
61
61
|
* - a long or data-driven list → `SelectField` / `ChoiceMenu`
|
|
62
|
-
* - a
|
|
62
|
+
* - a color → `SwatchPicker`
|
|
63
63
|
* - one picture out of several (a cover, an avatar) → THIS, `layout='picture'`
|
|
64
64
|
* - a handful of answers that each need words → THIS
|
|
65
65
|
*
|
|
@@ -11,7 +11,7 @@ describe('CodeChip — DESIGN.md §3, an inline literal is a monospace chip with
|
|
|
11
11
|
const chip = container.querySelector('[data-cb-code-chip]');
|
|
12
12
|
expect(chip?.textContent).toBe('~/.local/state/deploy');
|
|
13
13
|
expect(chip?.className).toContain('font-mono');
|
|
14
|
-
// The TINT is the clause — a
|
|
14
|
+
// The TINT is the clause — a gray monospace run reads as prose in a different face.
|
|
15
15
|
expect(chip?.className).toContain('bg-surface-sunken');
|
|
16
16
|
expect(chip?.className).toContain('inline-flex');
|
|
17
17
|
expect(chip?.className).toContain('align-middle');
|
|
@@ -22,7 +22,7 @@ export interface CodeChipProps extends Omit<HTMLAttributes<HTMLElement>, 'childr
|
|
|
22
22
|
*
|
|
23
23
|
* cursedbelt had three near-relatives and none of them was this clause:
|
|
24
24
|
* {@link PathText} middle-truncates a path onto ONE line (it renders as a chip
|
|
25
|
-
* now, but it is still a path renderer), {@link FileLocation} is a whole
|
|
25
|
+
* now, but it is still a path renderer), {@link FileLocation} is a whole labeled
|
|
26
26
|
* row, and `data-table`'s `CodeCell` is a table cell. What every app improvised
|
|
27
27
|
* instead was `<code className="bg-muted px-1">`, spelled slightly differently in
|
|
28
28
|
* each one — station, vault, tools, admin and orch all have a version.
|
|
@@ -4,18 +4,18 @@ import { ColorSwatches } from './ColorSwatches.js';
|
|
|
4
4
|
|
|
5
5
|
afterEach(cleanup);
|
|
6
6
|
|
|
7
|
-
// guardrails-ignore no-hardcoded-colors: task 2829 — a
|
|
7
|
+
// guardrails-ignore no-hardcoded-colors: task 2829 — a color picker's test data; the browser's well speaks only hex, so hex is the subject
|
|
8
8
|
const [BLUE, GREEN, RED, CUSTOM, PICKED] = ['#2563eb', '#16a34a', '#DC2626', '#123456', '#ABCDEF'];
|
|
9
9
|
const PRESETS = [BLUE, GREEN, RED];
|
|
10
10
|
|
|
11
11
|
describe('ColorSwatches', () => {
|
|
12
|
-
test('the presets are ONE radiogroup, named, one radio per dot, then the any-
|
|
12
|
+
test('the presets are ONE radiogroup, named, one radio per dot, then the any-color well', () => {
|
|
13
13
|
const { getByRole, getAllByRole, getByLabelText } = render(
|
|
14
14
|
<ColorSwatches aria-label='Accent' presets={PRESETS} value={BLUE} onChange={() => {}} />,
|
|
15
15
|
);
|
|
16
16
|
expect(getByRole('radiogroup').getAttribute('aria-label')).toBe('Accent');
|
|
17
17
|
expect(getAllByRole('radio')).toHaveLength(3);
|
|
18
|
-
const well = getByLabelText('Any
|
|
18
|
+
const well = getByLabelText('Any color') as HTMLInputElement;
|
|
19
19
|
expect(well.type).toBe('color');
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -26,16 +26,16 @@ describe('ColorSwatches', () => {
|
|
|
26
26
|
expect(container.querySelector('[data-slot="color-swatches-custom"]')?.getAttribute('data-state')).toBe('unchecked');
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
test('🔴 a
|
|
29
|
+
test('🔴 a color outside the presets checks the WELL, which wears it — no preset lights (task 2829)', () => {
|
|
30
30
|
const { getAllByRole, container, getByLabelText } = render(<ColorSwatches presets={PRESETS} value={CUSTOM} onChange={() => {}} />);
|
|
31
31
|
expect(getAllByRole('radio').some((radio) => radio.getAttribute('aria-checked') === 'true')).toBe(false);
|
|
32
32
|
const custom = container.querySelector<HTMLElement>('[data-slot="color-swatches-custom"]');
|
|
33
33
|
expect(custom?.getAttribute('data-state')).toBe('checked');
|
|
34
34
|
expect(custom?.getAttribute('style')).toContain(CUSTOM);
|
|
35
|
-
expect((getByLabelText('Any
|
|
35
|
+
expect((getByLabelText('Any color') as HTMLInputElement).value).toBe(CUSTOM);
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
test('with no custom
|
|
38
|
+
test('with no custom color the well is painted from the theme ramp, not literals', () => {
|
|
39
39
|
const { container } = render(<ColorSwatches presets={PRESETS} value={BLUE} onChange={() => {}} />);
|
|
40
40
|
const custom = container.querySelector<HTMLElement>('[data-slot="color-swatches-custom"]');
|
|
41
41
|
expect(custom?.getAttribute('style')).toContain('var(--chart-1)');
|
|
@@ -45,18 +45,18 @@ describe('ColorSwatches', () => {
|
|
|
45
45
|
const picked: string[] = [];
|
|
46
46
|
const { getAllByRole, getByLabelText } = render(<ColorSwatches presets={PRESETS} value={BLUE} onChange={(c) => picked.push(c)} />);
|
|
47
47
|
fireEvent.click(getAllByRole('radio')[1] as HTMLElement);
|
|
48
|
-
fireEvent.change(getByLabelText('Any
|
|
48
|
+
fireEvent.change(getByLabelText('Any color'), { target: { value: PICKED } });
|
|
49
49
|
expect(picked).toEqual([GREEN, PICKED.toLowerCase()]);
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
test('the well follows a value changed from outside', () => {
|
|
53
53
|
const { getByLabelText, rerender } = render(<ColorSwatches presets={PRESETS} value={CUSTOM} onChange={() => {}} />);
|
|
54
54
|
rerender(<ColorSwatches presets={PRESETS} value={GREEN} onChange={() => {}} />);
|
|
55
|
-
expect((getByLabelText('Any
|
|
55
|
+
expect((getByLabelText('Any color') as HTMLInputElement).value).toBe(GREEN);
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
test('`custom={false}` is the presets alone', () => {
|
|
59
59
|
const { queryByLabelText } = render(<ColorSwatches presets={PRESETS} value={undefined} custom={false} onChange={() => {}} />);
|
|
60
|
-
expect(queryByLabelText('Any
|
|
60
|
+
expect(queryByLabelText('Any color')).toBeNull();
|
|
61
61
|
});
|
|
62
62
|
});
|
|
@@ -4,38 +4,38 @@ import { TAP_TARGET_SQUARE } from '../lib/tapTarget.js';
|
|
|
4
4
|
import { SwatchPicker } from './SwatchPicker.js';
|
|
5
5
|
|
|
6
6
|
export interface ColorSwatchesProps {
|
|
7
|
-
/** The preset dots, in order. Any CSS
|
|
7
|
+
/** The preset dots, in order. Any CSS color; a 6-digit hex is what the custom well can open on. */
|
|
8
8
|
presets: readonly string[];
|
|
9
|
-
/** The current
|
|
9
|
+
/** The current color — one of the presets, or any other color picked through the well. */
|
|
10
10
|
value: string | undefined;
|
|
11
11
|
onChange: (color: string) => void;
|
|
12
|
-
/** Offer a last dot for any
|
|
12
|
+
/** Offer a last dot for any color (the browser's own color well). Default `true`. */
|
|
13
13
|
custom?: boolean;
|
|
14
|
-
/** The custom dot's accessible name. Default "Any
|
|
14
|
+
/** The custom dot's accessible name. Default "Any color". */
|
|
15
15
|
customLabel?: string;
|
|
16
16
|
/** Dot diameter, as `SwatchPicker`'s: `sm` 1.5rem, `md` (default) 1.75rem, `lg` 2.25rem. */
|
|
17
17
|
size?: 'sm' | 'md' | 'lg';
|
|
18
|
-
/** Accessible name for the preset group (default "
|
|
18
|
+
/** Accessible name for the preset group (default "Color"). */
|
|
19
19
|
'aria-label'?: string;
|
|
20
20
|
className?: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const SIZE = { sm: 'size-6', md: 'size-7', lg: 'size-9' } as const;
|
|
24
24
|
const HEX6 = /^#[0-9a-f]{6}$/i;
|
|
25
|
-
/** The any-
|
|
25
|
+
/** The any-color dot before a custom color is picked: the theme's categorical ramp, round the dial. */
|
|
26
26
|
const RAMP =
|
|
27
27
|
'conic-gradient(var(--chart-1), var(--chart-2), var(--chart-3), var(--chart-4), var(--chart-5), var(--chart-6), var(--chart-7), var(--chart-8), var(--chart-1))';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* `ColorSwatches` — an accent picker drawn as ONE row of dots: the presets, then a last dot for
|
|
31
|
-
* any
|
|
32
|
-
* roving tabindex, arrow keys move the choice); the last dot is the browser's
|
|
33
|
-
* invisibly over a dot painted with the theme's categorical ramp, and becomes that
|
|
34
|
-
* ringed as the current one — once a
|
|
31
|
+
* any color. The preset dots are a {@link SwatchPicker} radiogroup (Radix: radio semantics,
|
|
32
|
+
* roving tabindex, arrow keys move the choice); the last dot is the browser's color well, laid
|
|
33
|
+
* invisibly over a dot painted with the theme's categorical ramp, and becomes that color —
|
|
34
|
+
* ringed as the current one — once a color outside the presets is picked.
|
|
35
35
|
*
|
|
36
36
|
* desk drew this twice by hand (its component and list template pages, forge task 2829): a row
|
|
37
37
|
* of raw buttons, one of them with a raw `<input type="color">` behind an opt-out and the other
|
|
38
|
-
* with no custom
|
|
38
|
+
* with no custom color at all. `ColorField` is a full-width hex field; this is the compact
|
|
39
39
|
* "pick an accent for this thing" control, and the next app that wants one takes it from here.
|
|
40
40
|
*
|
|
41
41
|
* Matching is case-insensitive, and what the well reports is lower-case hex, so a stored
|
|
@@ -46,17 +46,17 @@ export function ColorSwatches({
|
|
|
46
46
|
value,
|
|
47
47
|
onChange,
|
|
48
48
|
custom = true,
|
|
49
|
-
customLabel = 'Any
|
|
49
|
+
customLabel = 'Any color',
|
|
50
50
|
size = 'md',
|
|
51
|
-
'aria-label': ariaLabel = '
|
|
51
|
+
'aria-label': ariaLabel = 'Color',
|
|
52
52
|
className,
|
|
53
53
|
...rest
|
|
54
54
|
}: ColorSwatchesProps) {
|
|
55
55
|
const current = value?.toLowerCase();
|
|
56
56
|
const isPreset = current !== undefined && presets.some((color) => color.toLowerCase() === current);
|
|
57
57
|
const isCustom = current !== undefined && current !== '' && !isPreset;
|
|
58
|
-
// The well opens on the current
|
|
59
|
-
// in step here, because a controlled
|
|
58
|
+
// The well opens on the current color when it is one it can show. It is uncontrolled and kept
|
|
59
|
+
// in step here, because a controlled color input needs a hex for "nothing chosen" and there is
|
|
60
60
|
// no honest one to write.
|
|
61
61
|
const wellHex = current !== undefined && HEX6.test(current) ? current : undefined;
|
|
62
62
|
const well = useRef<HTMLInputElement>(null);
|
|
@@ -86,7 +86,7 @@ export function ColorSwatches({
|
|
|
86
86
|
)}
|
|
87
87
|
>
|
|
88
88
|
<input
|
|
89
|
-
// guardrails-ignore no-raw-inputs: task 2829 — the browser's own
|
|
89
|
+
// guardrails-ignore no-raw-inputs: task 2829 — the browser's own color well, laid invisibly over the last dot; a hex field is ColorField's job, not a dot's
|
|
90
90
|
type='color'
|
|
91
91
|
ref={well}
|
|
92
92
|
aria-label={customLabel}
|
|
@@ -248,7 +248,7 @@ function CommentItem({
|
|
|
248
248
|
</Button>
|
|
249
249
|
{comment.canEdit && !editing && (
|
|
250
250
|
// size sm and muted, as Reply is: IconButton's own 20px glyph at md, in the
|
|
251
|
-
// body
|
|
251
|
+
// body color, made edit and delete the loudest things under every comment.
|
|
252
252
|
<IconButton label='Edit comment' size='sm' className={QUIET_ACTION} onClick={() => setEditing(true)}>
|
|
253
253
|
<Edit2 />
|
|
254
254
|
</IconButton>
|
|
@@ -164,7 +164,7 @@ export const ConnectionHealer = ({
|
|
|
164
164
|
: `Waiting for the server to come back — reconnecting automatically (attempt ${attempts})`}
|
|
165
165
|
</span>
|
|
166
166
|
</div>
|
|
167
|
-
{/* The alert's own body
|
|
167
|
+
{/* The alert's own body color, not faded: at opacity 0.8 the message sat at 4.3:1 on
|
|
168
168
|
the warning tint (FND-9). A mono face says it is the raw error, not our words. */}
|
|
169
169
|
{error ? <div className='mt-1 break-words font-mono text-xs'>{error.message}</div> : null}
|
|
170
170
|
{children}
|
|
@@ -44,7 +44,7 @@ describe('DataTable', () => {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
// Forge task 2625: a totals row, which desk's list table hand-drew a <table> for.
|
|
47
|
-
test('a column footer draws a totals row in the grid and a
|
|
47
|
+
test('a column footer draws a totals row in the grid and a labeled summary for the narrow tiers', () => {
|
|
48
48
|
const withTotals: ColDef<Person>[] = [
|
|
49
49
|
{ key: 'name', label: 'Name', type: 'text', footer: '3 people' },
|
|
50
50
|
{ key: 'age', label: 'Age', type: 'number', footer: '90' },
|
|
@@ -440,7 +440,7 @@ describe('fixedLayout — the table never compresses below its declared tracks',
|
|
|
440
440
|
const plain = container.querySelectorAll('thead th')[1]?.querySelector('span');
|
|
441
441
|
expect(plain?.className).toContain('truncate');
|
|
442
442
|
// 🔴 The full label is one hover away through the design system's `Tooltip`,
|
|
443
|
-
// NOT a native `title` — the OS draws that one, after ~1–2s, in its own
|
|
443
|
+
// NOT a native `title` — the OS draws that one, after ~1–2s, in its own gray
|
|
444
444
|
// box, which is the report this changed for (owner, 2026-08-15). Asserting the
|
|
445
445
|
// ABSENCE of `title` is what stops it coming back as a "harmless" addition;
|
|
446
446
|
// `data-state` is Radix's trigger marker, i.e. proof a real tooltip is wired.
|