nudge-ui 0.2.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/README.md +66 -0
- package/bin/nudge-ui.mjs +7 -0
- package/dist/LICENSE +21 -0
- package/dist/client.mjs +261 -0
- package/dist/compiler/ast.d.ts +18 -0
- package/dist/compiler/ast.js +75 -0
- package/dist/compiler/componentContractTypes.d.ts +19 -0
- package/dist/compiler/componentContractTypes.js +1 -0
- package/dist/compiler/componentContracts.d.ts +2 -0
- package/dist/compiler/componentContracts.js +260 -0
- package/dist/compiler/componentInstrumentation.d.ts +32 -0
- package/dist/compiler/componentInstrumentation.js +140 -0
- package/dist/compiler/componentPolicyResolution.d.ts +71 -0
- package/dist/compiler/componentPolicyResolution.js +388 -0
- package/dist/compiler/index.d.ts +9 -0
- package/dist/compiler/index.js +9 -0
- package/dist/compiler/packageComponentContracts.d.ts +32 -0
- package/dist/compiler/packageComponentContracts.js +308 -0
- package/dist/compiler/reactComponentProtocols.d.ts +145 -0
- package/dist/compiler/reactComponentProtocols.js +47 -0
- package/dist/compiler/reactIdentity.d.ts +15 -0
- package/dist/compiler/reactIdentity.js +339 -0
- package/dist/compiler/sourcePaths.d.ts +12 -0
- package/dist/compiler/sourcePaths.js +27 -0
- package/dist/css/dialects/index.d.ts +62 -0
- package/dist/css/dialects/index.js +103 -0
- package/dist/css/dialects/tailwind.d.ts +46 -0
- package/dist/css/dialects/tailwind.js +119 -0
- package/dist/css/dialects/vanillaExtract.d.ts +20 -0
- package/dist/css/dialects/vanillaExtract.js +32 -0
- package/dist/css/index.d.ts +10 -0
- package/dist/css/index.js +10 -0
- package/dist/css/model/index.d.ts +190 -0
- package/dist/css/model/index.js +10 -0
- package/dist/css/token-inventory/index.d.ts +26 -0
- package/dist/css/token-inventory/index.js +24 -0
- package/dist/css/token-inventory/inventory.d.ts +8 -0
- package/dist/css/token-inventory/inventory.js +421 -0
- package/dist/css/token-inventory/parseStylesheet.d.ts +16 -0
- package/dist/css/token-inventory/parseStylesheet.js +155 -0
- package/dist/css/token-inventory/policy.d.ts +47 -0
- package/dist/css/token-inventory/policy.js +50 -0
- package/dist/css/token-inventory/types.d.ts +97 -0
- package/dist/css/token-inventory/types.js +1 -0
- package/dist/css/value-semantics/borderSemantics.d.ts +28 -0
- package/dist/css/value-semantics/borderSemantics.js +91 -0
- package/dist/css/value-semantics/boxSemantics.d.ts +37 -0
- package/dist/css/value-semantics/boxSemantics.js +71 -0
- package/dist/css/value-semantics/colorSemantics.d.ts +99 -0
- package/dist/css/value-semantics/colorSemantics.js +526 -0
- package/dist/css/value-semantics/cssSyntax.d.ts +19 -0
- package/dist/css/value-semantics/cssSyntax.js +111 -0
- package/dist/css/value-semantics/fontSemantics.d.ts +35 -0
- package/dist/css/value-semantics/fontSemantics.js +131 -0
- package/dist/css/value-semantics/index.d.ts +20 -0
- package/dist/css/value-semantics/index.js +15 -0
- package/dist/css/value-semantics/propertyPolicy.d.ts +118 -0
- package/dist/css/value-semantics/propertyPolicy.js +356 -0
- package/dist/css/value-semantics/stringMaps.d.ts +2 -0
- package/dist/css/value-semantics/stringMaps.js +1 -0
- package/dist/css/value-semantics/structuredValues.d.ts +64 -0
- package/dist/css/value-semantics/structuredValues.js +250 -0
- package/dist/css/value-semantics/tokenInterpretation.d.ts +90 -0
- package/dist/css/value-semantics/tokenInterpretation.js +193 -0
- package/dist/css/virtual-design-tokens.d.ts +17 -0
- package/dist/hosts/astro/astroRuntimeConfig.d.ts +12 -0
- package/dist/hosts/astro/astroRuntimeConfig.js +26 -0
- package/dist/hosts/astro/clientAsset.d.ts +12 -0
- package/dist/hosts/astro/clientAsset.js +51 -0
- package/dist/hosts/astro/clientTransport.d.ts +3 -0
- package/dist/hosts/astro/clientTransport.js +57 -0
- package/dist/hosts/astro/index.d.ts +3 -0
- package/dist/hosts/astro/index.js +2 -0
- package/dist/hosts/astro/integration.d.ts +35 -0
- package/dist/hosts/astro/integration.js +96 -0
- package/dist/hosts/astro/middleware.d.ts +13 -0
- package/dist/hosts/astro/middleware.js +22 -0
- package/dist/hosts/astro/projectContext.d.ts +11 -0
- package/dist/hosts/astro/projectContext.js +34 -0
- package/dist/hosts/astro/responseInstrumentation.d.ts +41 -0
- package/dist/hosts/astro/responseInstrumentation.js +80 -0
- package/dist/hosts/next/index.d.ts +4 -0
- package/dist/hosts/next/index.js +7 -0
- package/dist/hosts/next/loader.d.ts +66 -0
- package/dist/hosts/next/loader.js +346 -0
- package/dist/hosts/next/loaders/identity-loader.cjs +228257 -0
- package/dist/hosts/next/loaders/loader-plugin.cjs +228257 -0
- package/dist/hosts/next/manifest.d.ts +38 -0
- package/dist/hosts/next/manifest.js +30 -0
- package/dist/hosts/next/mount.d.ts +12 -0
- package/dist/hosts/next/mount.js +23 -0
- package/dist/hosts/next/repositoryScope.d.ts +20 -0
- package/dist/hosts/next/repositoryScope.js +33 -0
- package/dist/hosts/next/sidecar.d.ts +27 -0
- package/dist/hosts/next/sidecar.js +526 -0
- package/dist/hosts/next/wrapper.d.ts +67 -0
- package/dist/hosts/next/wrapper.js +310 -0
- package/dist/hosts/static/cli.d.ts +12 -0
- package/dist/hosts/static/cli.js +77 -0
- package/dist/hosts/static/html/bootstrap.d.ts +27 -0
- package/dist/hosts/static/html/bootstrap.js +93 -0
- package/dist/hosts/static/index.d.ts +4 -0
- package/dist/hosts/static/index.js +4 -0
- package/dist/hosts/static/manifest.d.ts +18 -0
- package/dist/hosts/static/manifest.js +51 -0
- package/dist/hosts/static/server.d.ts +72 -0
- package/dist/hosts/static/server.js +554 -0
- package/dist/hosts/vite/index.d.ts +20 -0
- package/dist/hosts/vite/index.js +48 -0
- package/dist/hosts/vite/react.d.ts +67 -0
- package/dist/hosts/vite/react.js +231 -0
- package/dist/hosts/vite/tokens/activeStylesheets.d.ts +28 -0
- package/dist/hosts/vite/tokens/activeStylesheets.js +70 -0
- package/dist/hosts/vite/tokens/fileMap.d.ts +2 -0
- package/dist/hosts/vite/tokens/fileMap.js +1 -0
- package/dist/hosts/vite/tokens/viteStylesheetArtifacts.d.ts +46 -0
- package/dist/hosts/vite/tokens/viteStylesheetArtifacts.js +104 -0
- package/dist/hosts/vite/virtual/design-tokens.d.ts +9 -0
- package/dist/hosts/vite/virtual/design-tokens.js +7 -0
- package/dist/hosts/vite/virtual-design-tokens.d.ts +1 -0
- package/dist/hosts/vite/vite.d.ts +62 -0
- package/dist/hosts/vite/vite.js +854 -0
- package/dist/html/dom.d.ts +13 -0
- package/dist/html/dom.js +46 -0
- package/dist/html/identity.d.ts +40 -0
- package/dist/html/identity.js +196 -0
- package/dist/html/insertions.d.ts +26 -0
- package/dist/html/insertions.js +59 -0
- package/dist/inspector/agent/McpConnectionDialog.d.ts +26 -0
- package/dist/inspector/agent/McpConnectionDialog.js +135 -0
- package/dist/inspector/agent/client.d.ts +98 -0
- package/dist/inspector/agent/client.js +728 -0
- package/dist/inspector/agent/connectionStatus.d.ts +13 -0
- package/dist/inspector/agent/connectionStatus.js +35 -0
- package/dist/inspector/agent/httpTransport.d.ts +21 -0
- package/dist/inspector/agent/httpTransport.js +347 -0
- package/dist/inspector/agent/protocol.d.ts +95 -0
- package/dist/inspector/agent/protocol.js +9 -0
- package/dist/inspector/agent/verification.d.ts +39 -0
- package/dist/inspector/agent/verification.js +207 -0
- package/dist/inspector/canvas/CanvasCard.d.ts +10 -0
- package/dist/inspector/canvas/CanvasCard.js +275 -0
- package/dist/inspector/canvas/CanvasElementOverlay.d.ts +2 -0
- package/dist/inspector/canvas/CanvasElementOverlay.js +301 -0
- package/dist/inspector/canvas/CanvasWorkspace.d.ts +2 -0
- package/dist/inspector/canvas/CanvasWorkspace.js +301 -0
- package/dist/inspector/canvas/LockedWorkspaceNotice.d.ts +6 -0
- package/dist/inspector/canvas/LockedWorkspaceNotice.js +17 -0
- package/dist/inspector/canvas/StaleChangeIndicator.d.ts +7 -0
- package/dist/inspector/canvas/StaleChangeIndicator.js +43 -0
- package/dist/inspector/canvas/agentPresentation.d.ts +87 -0
- package/dist/inspector/canvas/agentPresentation.js +421 -0
- package/dist/inspector/canvas/canvasGestures.d.ts +12 -0
- package/dist/inspector/canvas/canvasGestures.js +21 -0
- package/dist/inspector/canvas/canvasStore.d.ts +108 -0
- package/dist/inspector/canvas/canvasStore.js +448 -0
- package/dist/inspector/canvas/frameProtocol.d.ts +231 -0
- package/dist/inspector/canvas/frameProtocol.js +165 -0
- package/dist/inspector/canvas/linkEligibility.d.ts +8 -0
- package/dist/inspector/canvas/linkEligibility.js +68 -0
- package/dist/inspector/canvas/measurementProjection.d.ts +8 -0
- package/dist/inspector/canvas/measurementProjection.js +16 -0
- package/dist/inspector/canvas/normalizeUrl.d.ts +7 -0
- package/dist/inspector/canvas/normalizeUrl.js +27 -0
- package/dist/inspector/canvas/projection.d.ts +41 -0
- package/dist/inspector/canvas/projection.js +232 -0
- package/dist/inspector/canvas/rendererBootstrap.d.ts +4 -0
- package/dist/inspector/canvas/rendererBootstrap.js +410 -0
- package/dist/inspector/canvas/rendererCidIndex.d.ts +11 -0
- package/dist/inspector/canvas/rendererCidIndex.js +21 -0
- package/dist/inspector/canvas/rendererElementSelector.d.ts +2 -0
- package/dist/inspector/canvas/rendererElementSelector.js +378 -0
- package/dist/inspector/canvas/rendererSelectionProxy.d.ts +2 -0
- package/dist/inspector/canvas/rendererSelectionProxy.js +61 -0
- package/dist/inspector/canvas/rendererStylesheet.d.ts +16 -0
- package/dist/inspector/canvas/rendererStylesheet.js +221 -0
- package/dist/inspector/canvas/resizeHandleScale.d.ts +13 -0
- package/dist/inspector/canvas/resizeHandleScale.js +20 -0
- package/dist/inspector/canvas/roleDetection.d.ts +5 -0
- package/dist/inspector/canvas/roleDetection.js +21 -0
- package/dist/inspector/canvas/sessionStore.d.ts +71 -0
- package/dist/inspector/canvas/sessionStore.js +453 -0
- package/dist/inspector/canvas/staleChangeDetector.d.ts +11 -0
- package/dist/inspector/canvas/staleChangeDetector.js +217 -0
- package/dist/inspector/canvas/toolbarScale.d.ts +7 -0
- package/dist/inspector/canvas/toolbarScale.js +11 -0
- package/dist/inspector/canvas/workspaceLease.d.ts +26 -0
- package/dist/inspector/canvas/workspaceLease.js +214 -0
- package/dist/inspector/changes/changesLog.d.ts +46 -0
- package/dist/inspector/changes/changesLog.js +209 -0
- package/dist/inspector/changes/codecs.d.ts +98 -0
- package/dist/inspector/changes/codecs.js +389 -0
- package/dist/inspector/changes/editModel.d.ts +74 -0
- package/dist/inspector/changes/editModel.js +120 -0
- package/dist/inspector/changes/managedStyleProjection.d.ts +6 -0
- package/dist/inspector/changes/managedStyleProjection.js +109 -0
- package/dist/inspector/changes/model.d.ts +13 -0
- package/dist/inspector/changes/model.js +163 -0
- package/dist/inspector/changes/presentation.d.ts +14 -0
- package/dist/inspector/changes/presentation.js +81 -0
- package/dist/inspector/changes/previewDiagnostics.d.ts +39 -0
- package/dist/inspector/changes/previewDiagnostics.js +172 -0
- package/dist/inspector/changes/structuralTypes.d.ts +35 -0
- package/dist/inspector/changes/structuralTypes.js +1 -0
- package/dist/inspector/changes/types.d.ts +76 -0
- package/dist/inspector/changes/types.js +16 -0
- package/dist/inspector/changes/workspaceChanges.d.ts +43 -0
- package/dist/inspector/changes/workspaceChanges.js +239 -0
- package/dist/inspector/clientManifest.d.ts +24 -0
- package/dist/inspector/clientManifest.js +69 -0
- package/dist/inspector/componentSemantics/ComponentPropsSection.d.ts +5 -0
- package/dist/inspector/componentSemantics/ComponentPropsSection.js +44 -0
- package/dist/inspector/componentSemantics/adapterRegistry.d.ts +11 -0
- package/dist/inspector/componentSemantics/adapterRegistry.js +75 -0
- package/dist/inspector/componentSemantics/boundaries.d.ts +2 -0
- package/dist/inspector/componentSemantics/boundaries.js +10 -0
- package/dist/inspector/componentSemantics/changeAction.d.ts +3 -0
- package/dist/inspector/componentSemantics/changeAction.js +6 -0
- package/dist/inspector/componentSemantics/changeModel.d.ts +8 -0
- package/dist/inspector/componentSemantics/changeModel.js +60 -0
- package/dist/inspector/componentSemantics/index.d.ts +4 -0
- package/dist/inspector/componentSemantics/index.js +2 -0
- package/dist/inspector/componentSemantics/reactRuntime.d.ts +10 -0
- package/dist/inspector/componentSemantics/reactRuntime.js +186 -0
- package/dist/inspector/componentSemantics/runtimeBridge.d.ts +25 -0
- package/dist/inspector/componentSemantics/runtimeBridge.js +161 -0
- package/dist/inspector/componentSemantics/runtimeTypes.d.ts +2 -0
- package/dist/inspector/componentSemantics/runtimeTypes.js +1 -0
- package/dist/inspector/componentSemantics/textBinding.d.ts +69 -0
- package/dist/inspector/componentSemantics/textBinding.js +514 -0
- package/dist/inspector/componentSemantics/types.d.ts +96 -0
- package/dist/inspector/componentSemantics/types.js +5 -0
- package/dist/inspector/conformance/borderCases.d.ts +7 -0
- package/dist/inspector/conformance/borderCases.js +428 -0
- package/dist/inspector/conformance/colorCases.d.ts +8 -0
- package/dist/inspector/conformance/colorCases.js +470 -0
- package/dist/inspector/conformance/fixture.d.ts +68 -0
- package/dist/inspector/conformance/fixture.js +153 -0
- package/dist/inspector/conformance/projection.d.ts +2 -0
- package/dist/inspector/conformance/projection.js +3 -0
- package/dist/inspector/conformance/spacingCases.d.ts +6 -0
- package/dist/inspector/conformance/spacingCases.js +417 -0
- package/dist/inspector/conformance/typographyCases.d.ts +7 -0
- package/dist/inspector/conformance/typographyCases.js +174 -0
- package/dist/inspector/editScope.d.ts +4 -0
- package/dist/inspector/editScope.js +5 -0
- package/dist/inspector/index.d.ts +20 -0
- package/dist/inspector/index.js +236 -0
- package/dist/inspector/inline-text/inlineTextEditor.d.ts +74 -0
- package/dist/inspector/inline-text/inlineTextEditor.js +1207 -0
- package/dist/inspector/inline-text/inlineTextLifecycle.d.ts +2 -0
- package/dist/inspector/inline-text/inlineTextLifecycle.js +17 -0
- package/dist/inspector/inline-text/textChangeBoundary.d.ts +6 -0
- package/dist/inspector/inline-text/textChangeBoundary.js +1 -0
- package/dist/inspector/inspection/bridge.d.ts +72 -0
- package/dist/inspector/inspection/bridge.js +134 -0
- package/dist/inspector/inspection/browserCssInspection.d.ts +74 -0
- package/dist/inspector/inspection/browserCssInspection.js +317 -0
- package/dist/inspector/inspection/browserCssInspectionRegistry.d.ts +12 -0
- package/dist/inspector/inspection/browserCssInspectionRegistry.js +66 -0
- package/dist/inspector/inspection/selectionProperty.d.ts +32 -0
- package/dist/inspector/inspection/selectionProperty.js +33 -0
- package/dist/inspector/inspection/useBrowserCssInspection.d.ts +20 -0
- package/dist/inspector/inspection/useBrowserCssInspection.js +159 -0
- package/dist/inspector/overlay/DropGuideOverlay.d.ts +17 -0
- package/dist/inspector/overlay/DropGuideOverlay.js +17 -0
- package/dist/inspector/overlay/InspectorOverlay.d.ts +5 -0
- package/dist/inspector/overlay/InspectorOverlay.js +328 -0
- package/dist/inspector/overlay/MeasurementGuideOverlay.d.ts +19 -0
- package/dist/inspector/overlay/MeasurementGuideOverlay.js +40 -0
- package/dist/inspector/overlay/clickPolicy.d.ts +7 -0
- package/dist/inspector/overlay/clickPolicy.js +13 -0
- package/dist/inspector/overlay/dropGuide.d.ts +22 -0
- package/dist/inspector/overlay/dropGuide.js +48 -0
- package/dist/inspector/overlay/elementSelector.d.ts +1 -0
- package/dist/inspector/overlay/elementSelector.js +100 -0
- package/dist/inspector/overlay/frameThrottle.d.ts +10 -0
- package/dist/inspector/overlay/frameThrottle.js +38 -0
- package/dist/inspector/overlay/interactionStyles.d.ts +3 -0
- package/dist/inspector/overlay/interactionStyles.js +70 -0
- package/dist/inspector/overlay/measurementGeometry.d.ts +25 -0
- package/dist/inspector/overlay/measurementGeometry.js +104 -0
- package/dist/inspector/overlay/overlayGeometry.d.ts +40 -0
- package/dist/inspector/overlay/overlayGeometry.js +59 -0
- package/dist/inspector/overlay/selectedGeometry.d.ts +7 -0
- package/dist/inspector/overlay/selectedGeometry.js +51 -0
- package/dist/inspector/overlay/structuralGestures.d.ts +28 -0
- package/dist/inspector/overlay/structuralGestures.js +180 -0
- package/dist/inspector/projection/cssEscapes.d.ts +3 -0
- package/dist/inspector/projection/cssEscapes.js +20 -0
- package/dist/inspector/projection/managedStylesheet.d.ts +33 -0
- package/dist/inspector/projection/managedStylesheet.js +240 -0
- package/dist/inspector/projection/renderedInstance.d.ts +56 -0
- package/dist/inspector/projection/renderedInstance.js +306 -0
- package/dist/inspector/projection/structuralProjection.d.ts +93 -0
- package/dist/inspector/projection/structuralProjection.js +560 -0
- package/dist/inspector/projection/structuralProjectionBoundary.d.ts +5 -0
- package/dist/inspector/projection/structuralProjectionBoundary.js +65 -0
- package/dist/inspector/projection/textProjection.d.ts +53 -0
- package/dist/inspector/projection/textProjection.js +705 -0
- package/dist/inspector/projection/workspaceProjection.d.ts +43 -0
- package/dist/inspector/projection/workspaceProjection.js +58 -0
- package/dist/inspector/prompt/PromptSettingsDialog.d.ts +15 -0
- package/dist/inspector/prompt/PromptSettingsDialog.js +17 -0
- package/dist/inspector/prompt/clipboardHandoff.d.ts +34 -0
- package/dist/inspector/prompt/clipboardHandoff.js +212 -0
- package/dist/inspector/prompt/copyToClipboard.d.ts +1 -0
- package/dist/inspector/prompt/copyToClipboard.js +34 -0
- package/dist/inspector/prompt/detectFramework.d.ts +6 -0
- package/dist/inspector/prompt/detectFramework.js +4 -0
- package/dist/inspector/prompt/generatePrompt.d.ts +7 -0
- package/dist/inspector/prompt/generatePrompt.js +391 -0
- package/dist/inspector/prompt/promptSettings.d.ts +8 -0
- package/dist/inspector/prompt/promptSettings.js +28 -0
- package/dist/inspector/runtime/devFlag.d.ts +28 -0
- package/dist/inspector/runtime/devFlag.js +50 -0
- package/dist/inspector/runtime/documentStylesheetOrder.d.ts +19 -0
- package/dist/inspector/runtime/documentStylesheetOrder.js +89 -0
- package/dist/inspector/runtime/domRealm.d.ts +4 -0
- package/dist/inspector/runtime/domRealm.js +11 -0
- package/dist/inspector/runtime/runtimeConfig.d.ts +119 -0
- package/dist/inspector/runtime/runtimeConfig.js +276 -0
- package/dist/inspector/runtime/staticHtmlRuntimeIdentity.d.ts +32 -0
- package/dist/inspector/runtime/staticHtmlRuntimeIdentity.js +149 -0
- package/dist/inspector/runtime/useRuntimeConfig.d.ts +10 -0
- package/dist/inspector/runtime/useRuntimeConfig.js +13 -0
- package/dist/inspector/selection/editScope.d.ts +32 -0
- package/dist/inspector/selection/editScope.js +140 -0
- package/dist/inspector/selection/editTarget.d.ts +8 -0
- package/dist/inspector/selection/editTarget.js +11 -0
- package/dist/inspector/selection/hierarchy.d.ts +7 -0
- package/dist/inspector/selection/hierarchy.js +42 -0
- package/dist/inspector/selection/resolveSelection.d.ts +10 -0
- package/dist/inspector/selection/resolveSelection.js +60 -0
- package/dist/inspector/selection/selectionStore.d.ts +41 -0
- package/dist/inspector/selection/selectionStore.js +262 -0
- package/dist/inspector/selection/selectionTarget.d.ts +5 -0
- package/dist/inspector/selection/selectionTarget.js +50 -0
- package/dist/inspector/selection/sourceSite.d.ts +2 -0
- package/dist/inspector/selection/sourceSite.js +12 -0
- package/dist/inspector/selection/styleSelection.d.ts +22 -0
- package/dist/inspector/selection/styleSelection.js +104 -0
- package/dist/inspector/session/index.d.ts +3 -0
- package/dist/inspector/session/index.js +2 -0
- package/dist/inspector/session/lifecycle.d.ts +22 -0
- package/dist/inspector/session/lifecycle.js +63 -0
- package/dist/inspector/session/sessionContext.d.ts +21 -0
- package/dist/inspector/session/sessionContext.js +28 -0
- package/dist/inspector/session/sessionFactory.d.ts +29 -0
- package/dist/inspector/session/sessionFactory.js +73 -0
- package/dist/inspector/settings/SettingsDialog.d.ts +12 -0
- package/dist/inspector/settings/SettingsDialog.js +46 -0
- package/dist/inspector/shell/AppShell.d.ts +2 -0
- package/dist/inspector/shell/AppShell.js +9 -0
- package/dist/inspector/shell/ChangesLog.d.ts +6 -0
- package/dist/inspector/shell/ChangesLog.js +92 -0
- package/dist/inspector/shell/CopyPromptButton.d.ts +9 -0
- package/dist/inspector/shell/CopyPromptButton.js +159 -0
- package/dist/inspector/shell/DomNavigation.d.ts +8 -0
- package/dist/inspector/shell/DomNavigation.js +30 -0
- package/dist/inspector/shell/EmptyState.d.ts +2 -0
- package/dist/inspector/shell/EmptyState.js +15 -0
- package/dist/inspector/shell/InspectorShell.d.ts +11 -0
- package/dist/inspector/shell/InspectorShell.js +268 -0
- package/dist/inspector/shell/openStore.d.ts +6 -0
- package/dist/inspector/shell/openStore.js +29 -0
- package/dist/inspector/shell/panelLayout.d.ts +2 -0
- package/dist/inspector/shell/panelLayout.js +29 -0
- package/dist/inspector/shell/shortcuts.d.ts +3 -0
- package/dist/inspector/shell/shortcuts.js +25 -0
- package/dist/inspector/shell/stateValue.d.ts +3 -0
- package/dist/inspector/shell/stateValue.js +34 -0
- package/dist/inspector/shell/styleState.d.ts +7 -0
- package/dist/inspector/shell/styleState.js +13 -0
- package/dist/inspector/spacing/projection.d.ts +43 -0
- package/dist/inspector/spacing/projection.js +136 -0
- package/dist/inspector/styleEditors/AppearanceSection.d.ts +13 -0
- package/dist/inspector/styleEditors/AppearanceSection.js +6 -0
- package/dist/inspector/styleEditors/AspectRatioField.d.ts +17 -0
- package/dist/inspector/styleEditors/AspectRatioField.js +10 -0
- package/dist/inspector/styleEditors/BorderEditor.d.ts +13 -0
- package/dist/inspector/styleEditors/BorderEditor.js +295 -0
- package/dist/inspector/styleEditors/BorderRadiusEditor.d.ts +14 -0
- package/dist/inspector/styleEditors/BorderRadiusEditor.js +108 -0
- package/dist/inspector/styleEditors/BoxShadowEditor.d.ts +13 -0
- package/dist/inspector/styleEditors/BoxShadowEditor.js +13 -0
- package/dist/inspector/styleEditors/ColorPicker.d.ts +15 -0
- package/dist/inspector/styleEditors/ColorPicker.js +73 -0
- package/dist/inspector/styleEditors/GapField.d.ts +17 -0
- package/dist/inspector/styleEditors/GapField.js +12 -0
- package/dist/inspector/styleEditors/GridChildSection.d.ts +14 -0
- package/dist/inspector/styleEditors/GridChildSection.js +91 -0
- package/dist/inspector/styleEditors/GridPicker.d.ts +13 -0
- package/dist/inspector/styleEditors/GridPicker.js +179 -0
- package/dist/inspector/styleEditors/GridSection.d.ts +17 -0
- package/dist/inspector/styleEditors/GridSection.js +27 -0
- package/dist/inspector/styleEditors/GridValueField.d.ts +17 -0
- package/dist/inspector/styleEditors/GridValueField.js +70 -0
- package/dist/inspector/styleEditors/InsetSection.d.ts +15 -0
- package/dist/inspector/styleEditors/InsetSection.js +15 -0
- package/dist/inspector/styleEditors/LayoutBlockedIndicator.d.ts +6 -0
- package/dist/inspector/styleEditors/LayoutBlockedIndicator.js +6 -0
- package/dist/inspector/styleEditors/LayoutComboField.d.ts +18 -0
- package/dist/inspector/styleEditors/LayoutComboField.js +138 -0
- package/dist/inspector/styleEditors/LayoutDropdown.d.ts +14 -0
- package/dist/inspector/styleEditors/LayoutDropdown.js +34 -0
- package/dist/inspector/styleEditors/LayoutSection.d.ts +13 -0
- package/dist/inspector/styleEditors/LayoutSection.js +342 -0
- package/dist/inspector/styleEditors/OpacityEditor.d.ts +13 -0
- package/dist/inspector/styleEditors/OpacityEditor.js +34 -0
- package/dist/inspector/styleEditors/PositionInsets.d.ts +15 -0
- package/dist/inspector/styleEditors/PositionInsets.js +12 -0
- package/dist/inspector/styleEditors/SpacingBox.d.ts +29 -0
- package/dist/inspector/styleEditors/SpacingBox.js +189 -0
- package/dist/inspector/styleEditors/Typography.d.ts +13 -0
- package/dist/inspector/styleEditors/Typography.js +137 -0
- package/dist/inspector/styleEditors/completeCssValue.d.ts +8 -0
- package/dist/inspector/styleEditors/completeCssValue.js +34 -0
- package/dist/inspector/styleEditors/gridChildModel.d.ts +74 -0
- package/dist/inspector/styleEditors/gridChildModel.js +138 -0
- package/dist/inspector/styleEditors/layoutValue.d.ts +24 -0
- package/dist/inspector/styleEditors/layoutValue.js +103 -0
- package/dist/inspector/styleEditors/nudgeValue.d.ts +8 -0
- package/dist/inspector/styleEditors/nudgeValue.js +71 -0
- package/dist/inspector/styleEditors/rowLookup.d.ts +11 -0
- package/dist/inspector/styleEditors/rowLookup.js +13 -0
- package/dist/inspector/styleEditors/stringRecord.d.ts +4 -0
- package/dist/inspector/styleEditors/stringRecord.js +1 -0
- package/dist/inspector/styleEditors/valuePolicy.d.ts +20 -0
- package/dist/inspector/styleEditors/valuePolicy.js +82 -0
- package/dist/inspector/testing.d.ts +10 -0
- package/dist/inspector/testing.js +9 -0
- package/dist/inspector/tokens/TokenChip.d.ts +24 -0
- package/dist/inspector/tokens/TokenChip.js +23 -0
- package/dist/inspector/tokens/TokenDropdown.d.ts +13 -0
- package/dist/inspector/tokens/TokenDropdown.js +59 -0
- package/dist/inspector/tokens/TokenField.d.ts +68 -0
- package/dist/inspector/tokens/TokenField.js +485 -0
- package/dist/inspector/tokens/TokenLabel.d.ts +7 -0
- package/dist/inspector/tokens/TokenLabel.js +23 -0
- package/dist/inspector/tokens/TokensPanel.d.ts +5 -0
- package/dist/inspector/tokens/TokensPanel.js +47 -0
- package/dist/inspector/tokens/catalog.d.ts +51 -0
- package/dist/inspector/tokens/catalog.js +184 -0
- package/dist/inspector/tokens/editActions.d.ts +35 -0
- package/dist/inspector/tokens/editActions.js +164 -0
- package/dist/inspector/tokens/resolution/cascade.d.ts +14 -0
- package/dist/inspector/tokens/resolution/cascade.js +31 -0
- package/dist/inspector/tokens/resolution/cssomCollector.d.ts +43 -0
- package/dist/inspector/tokens/resolution/cssomCollector.js +528 -0
- package/dist/inspector/tokens/resolution/selectorSemantics.d.ts +12 -0
- package/dist/inspector/tokens/resolution/selectorSemantics.js +106 -0
- package/dist/inspector/tokens/resolution.d.ts +56 -0
- package/dist/inspector/tokens/resolution.js +1401 -0
- package/dist/inspector/tokens/tokenEdits.d.ts +3 -0
- package/dist/inspector/tokens/tokenEdits.js +22 -0
- package/dist/inspector/tokens/valueSemanticsAdapter.d.ts +6 -0
- package/dist/inspector/tokens/valueSemanticsAdapter.js +68 -0
- package/dist/inspector/ui/AtRuleContext.d.ts +18 -0
- package/dist/inspector/ui/AtRuleContext.js +54 -0
- package/dist/inspector/ui/Button.d.ts +9 -0
- package/dist/inspector/ui/Button.js +4 -0
- package/dist/inspector/ui/ColorSwatch.d.ts +7 -0
- package/dist/inspector/ui/ColorSwatch.js +6 -0
- package/dist/inspector/ui/ControlSurface.d.ts +14 -0
- package/dist/inspector/ui/ControlSurface.js +10 -0
- package/dist/inspector/ui/FieldRow.d.ts +14 -0
- package/dist/inspector/ui/FieldRow.js +15 -0
- package/dist/inspector/ui/IconButton.d.ts +14 -0
- package/dist/inspector/ui/IconButton.js +5 -0
- package/dist/inspector/ui/InspectorPopover.d.ts +17 -0
- package/dist/inspector/ui/InspectorPopover.js +13 -0
- package/dist/inspector/ui/PopoverListbox.d.ts +37 -0
- package/dist/inspector/ui/PopoverListbox.js +21 -0
- package/dist/inspector/ui/SegmentedControl.d.ts +24 -0
- package/dist/inspector/ui/SegmentedControl.js +16 -0
- package/dist/inspector/ui/Select.d.ts +25 -0
- package/dist/inspector/ui/Select.js +56 -0
- package/dist/inspector/ui/SideValuesField.d.ts +44 -0
- package/dist/inspector/ui/SideValuesField.js +76 -0
- package/dist/inspector/ui/StatusCallout.d.ts +9 -0
- package/dist/inspector/ui/StatusCallout.js +4 -0
- package/dist/inspector/ui/TextInput.d.ts +12 -0
- package/dist/inspector/ui/TextInput.js +5 -0
- package/dist/inspector/ui/ToggleButton.d.ts +11 -0
- package/dist/inspector/ui/ToggleButton.js +6 -0
- package/dist/inspector/ui/assets/grid.svg +14 -0
- package/dist/inspector/ui/css.d.ts +9 -0
- package/dist/inspector/ui/labels.d.ts +1 -0
- package/dist/inspector/ui/labels.js +7 -0
- package/dist/inspector/ui/styles.d.ts +1 -0
- package/dist/inspector/ui/styles.js +68 -0
- package/dist/inspector/virtual-modules.d.ts +7 -0
- package/dist/inspector/vite-env.d.ts +10 -0
- package/dist/internal/agent-protocol.d.ts +232 -0
- package/dist/internal/agent-protocol.js +237 -0
- package/dist/nudge-ui.mjs +15722 -0
- package/dist/project/files.d.ts +19 -0
- package/dist/project/files.js +226 -0
- package/dist/project/identity.d.ts +6 -0
- package/dist/project/identity.js +19 -0
- package/dist/project/pathPolicy.d.ts +8 -0
- package/dist/project/pathPolicy.js +12 -0
- package/dist/project/tokens.d.ts +36 -0
- package/dist/project/tokens.js +223 -0
- package/dist/transport/index.d.ts +8 -0
- package/dist/transport/index.js +8 -0
- package/dist/transport/routes.d.ts +13 -0
- package/dist/transport/routes.js +16 -0
- package/package.json +137 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
function token(cssName, value, source) {
|
|
2
|
+
return {
|
|
3
|
+
cssName,
|
|
4
|
+
name: cssName,
|
|
5
|
+
declarations: [{ value, source, important: false, context: { selector: ":root" } }],
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
const COLOR_BORDER = token("--color-border", "#334455", "fixtures/border.css:2");
|
|
9
|
+
const COLOR_ACCENT = token("--color-accent", "#ee1166", "fixtures/border.css:3");
|
|
10
|
+
const BORDER_SIZE = token("--border-size", "2px", "fixtures/border.css:4");
|
|
11
|
+
const BORDER_LINE = token("--border-line", "solid", "fixtures/border.css:5");
|
|
12
|
+
const SPACE_3 = token("--space-3", "12px", "fixtures/border.css:6");
|
|
13
|
+
function structuredProps(authored, structure, properties) {
|
|
14
|
+
return Object.fromEntries(Object.entries(properties).map(([property, overrides]) => [
|
|
15
|
+
property,
|
|
16
|
+
{
|
|
17
|
+
capability: "structured",
|
|
18
|
+
authored: overrides.authored ?? authored,
|
|
19
|
+
...(overrides.tokens ? { tokens: overrides.tokens } : {}),
|
|
20
|
+
structure: overrides.structure ?? structure,
|
|
21
|
+
},
|
|
22
|
+
]));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Framework-neutral border corpus. Covers shorthand decomposition into width,
|
|
26
|
+
* style, and color longhands (including omitted CSS initials), side-specific
|
|
27
|
+
* shorthands, token attribution, border-radius, and true raw fallbacks.
|
|
28
|
+
*/
|
|
29
|
+
export const BORDER_CASES = [
|
|
30
|
+
{
|
|
31
|
+
id: "border-shorthand-literal",
|
|
32
|
+
css: ".subject { border: 2px solid #334455; }",
|
|
33
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:1:1"></div>',
|
|
34
|
+
selected: ".subject",
|
|
35
|
+
catalog: [],
|
|
36
|
+
expected: {
|
|
37
|
+
catalog: [],
|
|
38
|
+
properties: {
|
|
39
|
+
...structuredProps("2px solid #334455", { width: "2px", style: "solid", color: "#334455" }, {
|
|
40
|
+
"border-width": {},
|
|
41
|
+
"border-style": {},
|
|
42
|
+
"border-color": {},
|
|
43
|
+
"border-top-width": {},
|
|
44
|
+
"border-right-width": {},
|
|
45
|
+
"border-bottom-width": {},
|
|
46
|
+
"border-left-width": {},
|
|
47
|
+
"border-top-style": {},
|
|
48
|
+
"border-right-style": {},
|
|
49
|
+
"border-bottom-style": {},
|
|
50
|
+
"border-left-style": {},
|
|
51
|
+
"border-top-color": {},
|
|
52
|
+
"border-right-color": {},
|
|
53
|
+
"border-bottom-color": {},
|
|
54
|
+
"border-left-color": {},
|
|
55
|
+
}),
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "border-shorthand-token-color",
|
|
61
|
+
css: `:root { --color-border: #334455; }
|
|
62
|
+
.subject { border: 1px solid var(--color-border); }`,
|
|
63
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:2:1"></div>',
|
|
64
|
+
selected: ".subject",
|
|
65
|
+
catalog: [COLOR_BORDER],
|
|
66
|
+
expected: {
|
|
67
|
+
catalog: [{ name: "--color-border", value: "#334455" }],
|
|
68
|
+
properties: {
|
|
69
|
+
...structuredProps("1px solid var(--color-border)", { width: "1px", style: "solid", color: "var(--color-border)" }, {
|
|
70
|
+
"border-width": {},
|
|
71
|
+
"border-style": {},
|
|
72
|
+
"border-color": { tokens: ["--color-border"] },
|
|
73
|
+
"border-top-color": { tokens: ["--color-border"] },
|
|
74
|
+
"border-right-color": { tokens: ["--color-border"] },
|
|
75
|
+
"border-bottom-color": { tokens: ["--color-border"] },
|
|
76
|
+
"border-left-color": { tokens: ["--color-border"] },
|
|
77
|
+
}),
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "border-shorthand-keyword-width-style",
|
|
83
|
+
css: ".subject { border: thin dashed red; }",
|
|
84
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:3:1"></div>',
|
|
85
|
+
selected: ".subject",
|
|
86
|
+
catalog: [],
|
|
87
|
+
expected: {
|
|
88
|
+
catalog: [],
|
|
89
|
+
properties: {
|
|
90
|
+
...structuredProps("thin dashed red", { width: "thin", style: "dashed", color: "red" }, {
|
|
91
|
+
"border-width": {},
|
|
92
|
+
"border-style": {},
|
|
93
|
+
"border-color": {},
|
|
94
|
+
"border-top-width": {},
|
|
95
|
+
"border-top-style": {},
|
|
96
|
+
"border-top-color": {},
|
|
97
|
+
}),
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "border-shorthand-order-permutation",
|
|
103
|
+
// Hex chosen to avoid reverse-matching sandbox Tailwind/VE brand (#123456).
|
|
104
|
+
css: ".subject { border: #9b4dca double 3px; }",
|
|
105
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:4:1"></div>',
|
|
106
|
+
selected: ".subject",
|
|
107
|
+
catalog: [],
|
|
108
|
+
expected: {
|
|
109
|
+
catalog: [],
|
|
110
|
+
properties: {
|
|
111
|
+
...structuredProps("#9b4dca double 3px", { width: "3px", style: "double", color: "#9b4dca" }, {
|
|
112
|
+
"border-width": {},
|
|
113
|
+
"border-style": {},
|
|
114
|
+
"border-color": {},
|
|
115
|
+
}),
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "border-side-specific",
|
|
121
|
+
css: `:root { --color-accent: #ee1166; }
|
|
122
|
+
.subject { border-top: 3px dotted var(--color-accent); }`,
|
|
123
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:5:1"></div>',
|
|
124
|
+
selected: ".subject",
|
|
125
|
+
catalog: [COLOR_ACCENT],
|
|
126
|
+
expected: {
|
|
127
|
+
catalog: [{ name: "--color-accent", value: "#ee1166" }],
|
|
128
|
+
properties: {
|
|
129
|
+
...structuredProps("3px dotted var(--color-accent)", { width: "3px", style: "dotted", color: "var(--color-accent)" }, {
|
|
130
|
+
"border-top-width": {},
|
|
131
|
+
"border-top-style": {},
|
|
132
|
+
"border-top-color": { tokens: ["--color-accent"] },
|
|
133
|
+
}),
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "border-side-specific-right",
|
|
139
|
+
css: ".subject { border-right: 4px groove #00aabb; }",
|
|
140
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:6:1"></div>',
|
|
141
|
+
selected: ".subject",
|
|
142
|
+
catalog: [],
|
|
143
|
+
expected: {
|
|
144
|
+
catalog: [],
|
|
145
|
+
properties: {
|
|
146
|
+
...structuredProps("4px groove #00aabb", { width: "4px", style: "groove", color: "#00aabb" }, {
|
|
147
|
+
"border-right-width": {},
|
|
148
|
+
"border-right-style": {},
|
|
149
|
+
"border-right-color": {},
|
|
150
|
+
}),
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "border-shorthand-override-longhand",
|
|
156
|
+
css: ".subject { border: 2px solid red; border-left-width: 8px; border-left-color: blue; }",
|
|
157
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:7:1"></div>',
|
|
158
|
+
selected: ".subject",
|
|
159
|
+
catalog: [],
|
|
160
|
+
expected: {
|
|
161
|
+
catalog: [],
|
|
162
|
+
properties: {
|
|
163
|
+
...structuredProps("2px solid red", { width: "2px", style: "solid", color: "red" }, {
|
|
164
|
+
"border-top-width": {},
|
|
165
|
+
"border-right-width": {},
|
|
166
|
+
"border-bottom-width": {},
|
|
167
|
+
}),
|
|
168
|
+
"border-left-width": { authored: "8px", capability: "atomic" },
|
|
169
|
+
"border-left-color": { authored: "blue", capability: "color" },
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "border-none-style",
|
|
175
|
+
css: ".subject { border: none; }",
|
|
176
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:8:1"></div>',
|
|
177
|
+
selected: ".subject",
|
|
178
|
+
catalog: [],
|
|
179
|
+
expected: {
|
|
180
|
+
catalog: [],
|
|
181
|
+
properties: {
|
|
182
|
+
...structuredProps("none", { width: "medium", style: "none", color: "currentcolor" }, {
|
|
183
|
+
"border-width": {},
|
|
184
|
+
"border-style": {},
|
|
185
|
+
"border-color": {},
|
|
186
|
+
}),
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: "border-hidden-style",
|
|
192
|
+
css: ".subject { border: hidden; }",
|
|
193
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:9:1"></div>',
|
|
194
|
+
selected: ".subject",
|
|
195
|
+
catalog: [],
|
|
196
|
+
expected: {
|
|
197
|
+
catalog: [],
|
|
198
|
+
properties: {
|
|
199
|
+
...structuredProps("hidden", { width: "medium", style: "hidden", color: "currentcolor" }, {
|
|
200
|
+
"border-width": {},
|
|
201
|
+
"border-style": {},
|
|
202
|
+
"border-color": {},
|
|
203
|
+
}),
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "border-incomplete-shorthand",
|
|
209
|
+
css: ".subject { border: 2px solid; }",
|
|
210
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:10:1"></div>',
|
|
211
|
+
selected: ".subject",
|
|
212
|
+
catalog: [],
|
|
213
|
+
expected: {
|
|
214
|
+
catalog: [],
|
|
215
|
+
properties: {
|
|
216
|
+
...structuredProps("2px solid", { width: "2px", style: "solid", color: "currentcolor" }, {
|
|
217
|
+
"border-width": {},
|
|
218
|
+
"border-style": {},
|
|
219
|
+
"border-color": {},
|
|
220
|
+
}),
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "border-unresolved-token-color",
|
|
226
|
+
css: ".subject { border: 2px solid var(--missing-token); }",
|
|
227
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:11:1"></div>',
|
|
228
|
+
selected: ".subject",
|
|
229
|
+
catalog: [],
|
|
230
|
+
expected: {
|
|
231
|
+
catalog: [],
|
|
232
|
+
properties: {
|
|
233
|
+
"border": { authored: "2px solid var(--missing-token)", capability: "raw" },
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "border-radius-atomic",
|
|
239
|
+
css: ".subject { border-radius: 8px; }",
|
|
240
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:12:1"></div>',
|
|
241
|
+
selected: ".subject",
|
|
242
|
+
catalog: [],
|
|
243
|
+
expected: {
|
|
244
|
+
catalog: [],
|
|
245
|
+
properties: {
|
|
246
|
+
"border-top-left-radius": { authored: "8px", capability: "atomic" },
|
|
247
|
+
"border-top-right-radius": { authored: "8px", capability: "atomic" },
|
|
248
|
+
"border-bottom-right-radius": { authored: "8px", capability: "atomic" },
|
|
249
|
+
"border-bottom-left-radius": { authored: "8px", capability: "atomic" },
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: "border-radius-token",
|
|
255
|
+
css: `:root { --space-3: 12px; }
|
|
256
|
+
.subject { border-radius: var(--space-3); }`,
|
|
257
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:13:1"></div>',
|
|
258
|
+
selected: ".subject",
|
|
259
|
+
catalog: [SPACE_3],
|
|
260
|
+
expected: {
|
|
261
|
+
catalog: [{ name: "--space-3", value: "12px" }],
|
|
262
|
+
properties: {
|
|
263
|
+
"border-top-left-radius": { authored: "var(--space-3)", tokens: ["--space-3"], capability: "atomic" },
|
|
264
|
+
"border-top-right-radius": { authored: "var(--space-3)", tokens: ["--space-3"], capability: "atomic" },
|
|
265
|
+
"border-bottom-right-radius": { authored: "var(--space-3)", tokens: ["--space-3"], capability: "atomic" },
|
|
266
|
+
"border-bottom-left-radius": { authored: "var(--space-3)", tokens: ["--space-3"], capability: "atomic" },
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: "border-radius-shorthand",
|
|
272
|
+
css: ".subject { border-radius: 4px 8px 12px 16px; }",
|
|
273
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:14:1"></div>',
|
|
274
|
+
selected: ".subject",
|
|
275
|
+
catalog: [],
|
|
276
|
+
expected: {
|
|
277
|
+
catalog: [],
|
|
278
|
+
properties: {
|
|
279
|
+
"border-top-left-radius": { authored: "4px", capability: "atomic" },
|
|
280
|
+
"border-top-right-radius": { authored: "8px", capability: "atomic" },
|
|
281
|
+
"border-bottom-right-radius": { authored: "12px", capability: "atomic" },
|
|
282
|
+
"border-bottom-left-radius": { authored: "16px", capability: "atomic" },
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: "border-width-longhand-four-value",
|
|
288
|
+
css: ".subject { border-width: 2px 4px 6px 8px; }",
|
|
289
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:15:1"></div>',
|
|
290
|
+
selected: ".subject",
|
|
291
|
+
catalog: [],
|
|
292
|
+
expected: {
|
|
293
|
+
catalog: [],
|
|
294
|
+
properties: {
|
|
295
|
+
"border-width": { authored: "2px 4px 6px 8px", capability: "raw" },
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: "border-style-longhand-multi",
|
|
301
|
+
css: ".subject { border-style: solid dashed; }",
|
|
302
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:16:1"></div>',
|
|
303
|
+
selected: ".subject",
|
|
304
|
+
catalog: [],
|
|
305
|
+
expected: {
|
|
306
|
+
catalog: [],
|
|
307
|
+
properties: {
|
|
308
|
+
"border-style": { authored: "solid dashed", capability: "raw" },
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
id: "border-color-longhand-token",
|
|
314
|
+
css: `:root { --color-border: #334455; }
|
|
315
|
+
.subject { border-color: var(--color-border); }`,
|
|
316
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:17:1"></div>',
|
|
317
|
+
selected: ".subject",
|
|
318
|
+
catalog: [COLOR_BORDER],
|
|
319
|
+
expected: {
|
|
320
|
+
catalog: [{ name: "--color-border", value: "#334455" }],
|
|
321
|
+
properties: {
|
|
322
|
+
"border-color": { authored: "var(--color-border)", tokens: ["--color-border"], capability: "structured" },
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: "border-longhands-separate",
|
|
328
|
+
css: `:root {
|
|
329
|
+
--border-size: 2px;
|
|
330
|
+
--border-line: solid;
|
|
331
|
+
--color-border: #334455;
|
|
332
|
+
}
|
|
333
|
+
.subject {
|
|
334
|
+
border-width: var(--border-size);
|
|
335
|
+
border-style: var(--border-line);
|
|
336
|
+
border-color: var(--color-border);
|
|
337
|
+
}`,
|
|
338
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:18:1"></div>',
|
|
339
|
+
selected: ".subject",
|
|
340
|
+
catalog: [BORDER_SIZE, BORDER_LINE, COLOR_BORDER],
|
|
341
|
+
expected: {
|
|
342
|
+
catalog: [
|
|
343
|
+
{ name: "--border-size", value: "2px" },
|
|
344
|
+
{ name: "--border-line", value: "solid" },
|
|
345
|
+
{ name: "--color-border", value: "#334455" },
|
|
346
|
+
],
|
|
347
|
+
properties: {
|
|
348
|
+
"border-width": { authored: "var(--border-size)", tokens: ["--border-size"], capability: "atomic" },
|
|
349
|
+
"border-style": { authored: "var(--border-line)", tokens: ["--border-line"], capability: "atomic" },
|
|
350
|
+
"border-color": { authored: "var(--color-border)", tokens: ["--color-border"], capability: "structured" },
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
id: "border-collapse-reset",
|
|
356
|
+
css: ".subject { border: 2px solid #334455; border-style: none; }",
|
|
357
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:19:1"></div>',
|
|
358
|
+
selected: ".subject",
|
|
359
|
+
catalog: [],
|
|
360
|
+
expected: {
|
|
361
|
+
catalog: [],
|
|
362
|
+
properties: {
|
|
363
|
+
...structuredProps("2px solid #334455", { width: "2px", style: "solid", color: "#334455" }, {
|
|
364
|
+
"border-top-style": {},
|
|
365
|
+
}),
|
|
366
|
+
"border-style": { authored: "none", capability: "raw" },
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
id: "border-width-single",
|
|
372
|
+
css: ".subject { border-width: 2px; }",
|
|
373
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:20:1"></div>',
|
|
374
|
+
selected: ".subject",
|
|
375
|
+
catalog: [],
|
|
376
|
+
expected: {
|
|
377
|
+
catalog: [],
|
|
378
|
+
properties: {
|
|
379
|
+
"border-width": { authored: "2px", capability: "atomic" },
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
id: "border-top-width-longhand",
|
|
385
|
+
css: ".subject { border-top-width: 5px; border-top-style: solid; }",
|
|
386
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:21:1"></div>',
|
|
387
|
+
selected: ".subject",
|
|
388
|
+
catalog: [],
|
|
389
|
+
expected: {
|
|
390
|
+
catalog: [],
|
|
391
|
+
properties: {
|
|
392
|
+
"border-top-width": { authored: "5px", capability: "atomic" },
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
id: "border-all-sides-different",
|
|
398
|
+
css: ".subject { border-top: 1px solid red; border-right: 2px dotted green; border-bottom: 3px dashed blue; border-left: 4px double black; }",
|
|
399
|
+
markup: '<div class="subject" data-cid="BorderCase" data-src="fixtures/border.tsx:22:1"></div>',
|
|
400
|
+
selected: ".subject",
|
|
401
|
+
catalog: [],
|
|
402
|
+
expected: {
|
|
403
|
+
catalog: [],
|
|
404
|
+
properties: {
|
|
405
|
+
...structuredProps("1px solid red", { width: "1px", style: "solid", color: "red" }, {
|
|
406
|
+
"border-top-width": {},
|
|
407
|
+
"border-top-style": {},
|
|
408
|
+
"border-top-color": {},
|
|
409
|
+
}),
|
|
410
|
+
...structuredProps("2px dotted green", { width: "2px", style: "dotted", color: "green" }, {
|
|
411
|
+
"border-right-width": {},
|
|
412
|
+
"border-right-style": {},
|
|
413
|
+
"border-right-color": {},
|
|
414
|
+
}),
|
|
415
|
+
...structuredProps("3px dashed blue", { width: "3px", style: "dashed", color: "blue" }, {
|
|
416
|
+
"border-bottom-width": {},
|
|
417
|
+
"border-bottom-style": {},
|
|
418
|
+
"border-bottom-color": {},
|
|
419
|
+
}),
|
|
420
|
+
...structuredProps("4px double black", { width: "4px", style: "double", color: "black" }, {
|
|
421
|
+
"border-left-width": {},
|
|
422
|
+
"border-left-style": {},
|
|
423
|
+
"border-left-color": {},
|
|
424
|
+
}),
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ConformanceFixture } from "./fixture.js";
|
|
2
|
+
/**
|
|
3
|
+
* Framework-neutral color corpus covering `color` and `background-color`.
|
|
4
|
+
* Each fixture asserts authored CSS values and capability against the
|
|
5
|
+
* inspector's resolution pipeline. The gallery lets a human exercise the
|
|
6
|
+
* same cases through the real inspector UI.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COLOR_CASES: ConformanceFixture[];
|