An open source design system that's fully customizable and agent ready
TypeScript
test(rtl-audit): keep targets.json sorted by component, then story (#9389)
Cindy Zhang14af33ff90a3
diff --git a/.github/scripts/rtl-audit-coverage.test.mjs b/.github/scripts/rtl-audit-coverage.test.mjsindex 3839075b6b..30abd5342c 100644--- a/.github/scripts/rtl-audit-coverage.test.mjs+++ b/.github/scripts/rtl-audit-coverage.test.mjs@@ -9,8 +9,10 @@ import {JSDOM} from 'jsdom';import {describe, expect, it} from 'vitest';import componentPackages from '../../scripts/component-packages.cjs';import {+ assertSelectorParses,AUDITED_PACKAGE_NAMES,AUDITED_STORY_PREFIXES,+ bindDetectorValue,buildAuditedComponentRoster,buildComponentCoverage,buildD1Target,@@ -19,20 +21,21 @@ import {classifyLogicalGroupedCorners,classifyLogicalInlinePair,collectDirectionalDecorations,- filterStoryRoutesByPackages,- assertSelectorParses,- bindDetectorValue,+ compareTargets,d1GlyphKey,d1PairKey,- glyphRendersOnBlockAxis,- isUnchangedBlockAxisPair,+ filterStoryRoutesByPackages,finishFiniteAnimations,+ firstUnsortedTarget,+ glyphRendersOnBlockAxis,gradeDirectionalPair,gradePositionedPair,ignoredStoryIdentities,+ isUnchangedBlockAxisPair,orderD1StoryCandidates,resolveD1Applicability,resolveFilterRoutes,+ sortTargets,storyIdsForComponentFilters,unresolvedComponentFilters,validateStoryRtlAuditParameters,@@ -1421,3 +1424,37 @@ describe('gradeDirectionalPair (D2 order, D3 scroll direction)', () => {expect(gradeDirectionalPair(false, false)).toBe('fail');});});++describe('curated target order (targets.json)', () => {+ it('sorts by component, then story, case-insensitively and stably', () => {+ const targets = [+ {component: 'Table', storyId: 'core-table--b'},+ {component: 'button', storyId: 'core-button--a'},+ {component: 'Table', storyId: 'core-table--a', dims: ['D2']},+ {component: 'Table', storyId: 'core-table--a', dims: []},+ ];+ expect(firstUnsortedTarget(targets)).toBe(1);+ expect(sortTargets(targets)).toEqual([+ targets[1],+ targets[2],+ targets[3],+ targets[0],+ ]);+ expect(compareTargets(targets[2], targets[3])).toBe(0);+ });++ it('keeps apps/storybook/rtl-audit/targets.json sorted (fix: sort-targets.mjs --fix)', () => {+ const targets = JSON.parse(+ fs.readFileSync(+ new URL('../../apps/storybook/rtl-audit/targets.json', import.meta.url),+ 'utf8',+ ),+ );+ const index = firstUnsortedTarget(targets);+ expect(+ index === -1+ ? null+ : `${targets[index].component} / ${targets[index].storyId}`,+ ).toBeNull();+ });+});diff --git a/apps/storybook/rtl-audit/README.md b/apps/storybook/rtl-audit/README.mdindex 31084cfd85..53a57abf15 100644--- a/apps/storybook/rtl-audit/README.md+++ b/apps/storybook/rtl-audit/README.md@@ -373,7 +373,7 @@ below), so the signal does not hard-block yet.## Adding a curated target-Edit `targets.json`. Each entry is:+Edit `targets.json`, keeping it sorted by `component`, then `storyId`, so parallel pull requests add entries in different places. `node apps/storybook/rtl-audit/sort-targets.mjs --fix` sorts it; the RTL audit's node tests fail on an unsorted file. Each entry is:```jsonc{diff --git a/apps/storybook/rtl-audit/rtl-audit-coverage.mjs b/apps/storybook/rtl-audit/rtl-audit-coverage.mjsindex 077dba2d32..0012a00df9 100644--- a/apps/storybook/rtl-audit/rtl-audit-coverage.mjs+++ b/apps/storybook/rtl-audit/rtl-audit-coverage.mjs@@ -430,6 +430,38 @@ function validatePhysicalPosition(value, storyId) {return {physical: value.physical, within: value.within.trim()};}+/**+ * Canonical order for curated RTL targets: by component, then story id+ * (case-insensitive), keeping entries with the same key in file order. A sorted+ * `targets.json` lets parallel pull requests add targets in different places+ * instead of all appending at the end.+ */+export function compareTargets(left, right) {+ const key = target => [+ String(target.component).toLowerCase(),+ String(target.storyId).toLowerCase(),+ ];+ const [lc, ls] = key(left);+ const [rc, rs] = key(right);+ return lc < rc ? -1 : lc > rc ? 1 : ls < rs ? -1 : ls > rs ? 1 : 0;+}++/** Index of the first target out of canonical order, or -1 when sorted. */+export function firstUnsortedTarget(targets) {+ for (let i = 1; i < targets.length; i++) {+ if (compareTargets(targets[i - 1], targets[i]) > 0) return i;+ }+ return -1;+}++/** The targets in canonical order (a stable sort). */+export function sortTargets(targets) {+ return targets+ .map((target, index) => ({target, index}))+ .sort((a, b) => compareTargets(a.target, b.target) || a.index - b.index)+ .map(({target}) => target);+}+/** Selected owners for which the canonical Storybook route has no story. */export function unresolvedComponentFilters(routes, filters) {return filters.filter(diff --git a/apps/storybook/rtl-audit/sort-targets.mjs b/apps/storybook/rtl-audit/sort-targets.mjsnew file mode 100644index 0000000000..a58ff5de02--- /dev/null+++ b/apps/storybook/rtl-audit/sort-targets.mjs@@ -0,0 +1,40 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Check or fix the canonical order of the curated RTL targets.+ * @input apps/storybook/rtl-audit/targets.json+ * @output Exit 1 with the first out-of-order target (check), or a rewritten,+ * Prettier-formatted file (`--fix`).+ * @position Guardrail beside the RTL audit; the node suite runs the same check.+ */++import fs from 'node:fs';+import path from 'node:path';+import {fileURLToPath} from 'node:url';+import prettier from 'prettier';+import {firstUnsortedTarget, sortTargets} from './rtl-audit-coverage.mjs';++const file = path.join(+ path.dirname(fileURLToPath(import.meta.url)),+ 'targets.json',+);+const targets = JSON.parse(fs.readFileSync(file, 'utf8'));++if (process.argv.includes('--fix')) {+ const text = await prettier.format(JSON.stringify(sortTargets(targets)), {+ ...(await prettier.resolveConfig(file)),+ filepath: file,+ });+ fs.writeFileSync(file, text);+ console.log(`sorted ${targets.length} RTL targets`);+} else {+ const index = firstUnsortedTarget(targets);+ if (index !== -1) {+ const {component, storyId} = targets[index];+ console.error(+ `targets.json is not sorted by component, then story: ${component} / ${storyId} (entry ${index}) is out of order. Run node apps/storybook/rtl-audit/sort-targets.mjs --fix`,+ );+ process.exit(1);+ }+ console.log(`${targets.length} RTL targets are sorted`);+}diff --git a/apps/storybook/rtl-audit/targets.json b/apps/storybook/rtl-audit/targets.jsonindex 6c8e61647b..95d6dd146d 100644--- a/apps/storybook/rtl-audit/targets.json+++ b/apps/storybook/rtl-audit/targets.json@@ -1,4 +1,14 @@[+ {+ "component": "AlertDialog",+ "storyId": "core-alertdialog--delete",+ "dims": ["D2"],+ "setup": {"click": "button:has-text(\"Delete item\")"},+ "selectors": {+ "prev": "[role=\"alertdialog\"] button:has-text(\"Cancel\")",+ "next": "[role=\"alertdialog\"] button:has-text(\"Delete\") >> nth=-1"+ }+ },{"component": "AppShell","storyId": "core-appshell--top-nav-with-side-nav",@@ -8,6 +18,35 @@"overlayRoot": ".astryx-app-shell"}},+ {+ "component": "AspectRatio",+ "storyId": "core-aspectratio--height-driven",+ "dims": []+ },+ {+ "component": "AvatarGroupOverflow",+ "storyId": "core-avatargroupoverflow--default",+ "dims": ["D2"],+ "selectors": {+ "prev": ".astryx-avatar-group > .astryx-avatar:first-child",+ "next": ".astryx-avatar-group-overflow"+ }+ },+ {+ "component": "BaseTypeahead",+ "storyId": "core-basetypeahead--logical-dropdown-placement",+ "dims": ["D4"],+ "selectors": {+ "overlay": "[role=\"listbox\"]",+ "overlayRoot": "[data-base-typeahead-anchor=\"true\"]"+ }+ },+ {+ "component": "Blockquote",+ "storyId": "core-blockquote--default",+ "dims": ["D8"],+ "selectors": {"subject": ".astryx-blockquote"}+ },{"component": "Button","storyId": "core-button--icon-with-text",@@ -18,104 +57,144 @@}},{- "component": "TopNav",- "storyId": "core-topnav--full-example",+ "component": "ButtonGroup",+ "storyId": "core-buttongroup--horizontal","dims": ["D2"],"selectors": {- "prev": ".astryx-top-nav-heading",- "next": ".astryx-top-nav-item"+ "prev": "[role=\"group\"] button:first-child",+ "next": "[role=\"group\"] button:last-child"}},{- "component": "TopNavHeading",- "storyId": "core-topnav--full-example",- "dims": ["D2", "D8"],+ "component": "Calendar",+ "storyId": "core-calendar--default",+ "dims": ["D2"],"selectors": {- "prev": ".astryx-top-nav-heading > :first-child",- "next": ".astryx-top-nav-heading > :last-child",- "subject": ".astryx-top-nav-heading"+ "prev": "button[aria-label=\"Previous month\"]",+ "next": "button[aria-label=\"Next month\"]"}},{- "component": "TopNavItem",- "storyId": "core-topnav--full-example",- "dims": ["D2"],+ "component": "Carousel",+ "storyId": "core-carousel--default",+ "dims": ["D3"],"selectors": {- "prev": ".astryx-top-nav-item:has-text(\"Dashboard\") > svg",- "next": ".astryx-top-nav-item:has-text(\"Dashboard\")"+ "scroller": "[aria-roledescription=\"carousel\"] > div:first-child",+ "nextButton": "button[aria-label=\"Scroll right\"]"}},{- "component": "TopNavMenu",- "storyId": "core-topnavmenu--default",- "dims": ["D4"],- "setup": {"click": "button.astryx-top-nav-menu"},+ "component": "Center",+ "storyId": "core-center--padding-per-edge",+ "dims": ["D8"],+ "selectors": {"subject": ".astryx-center"}+ },+ {+ "component": "Chart",+ "storyId": "charts-chart--playground",+ "dims": ["D2"],+ "setup": {"args": {"legendPosition": "start"}},+ "selectors": {"prev": "[role=\"list\"]", "next": "svg[role=\"img\"]"}+ },+ {+ "component": "Chart",+ "storyId": "lab-chart--line-chart",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-popover",- "overlayRoot": "body"+ "prev": "foreignObject > div > div:first-child",+ "next": "foreignObject > div > div:last-child"}},{- "component": "TopNavMegaMenu",- "storyId": "core-topnavmenu--mega-menu",- "dims": ["D4"],- "setup": {"click": "button.astryx-top-nav-mega-menu"},+ "component": "ChartLegend",+ "storyId": "charts-chrome-legend--default",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-popover",- "overlayRoot": "body"+ "prev": "[role=\"listitem\"]:first-child",+ "next": "[role=\"listitem\"]:last-child"}},{- "component": "TopNavMegaMenuItem",- "storyId": "core-topnavmenu--mega-menu",+ "component": "Chat",+ "storyId": "core-chat--mixed-content","dims": ["D2"],- "setup": {"click": "button.astryx-top-nav-mega-menu"},"selectors": {- "prev": ".astryx-top-nav-mega-menu-item > :first-child",- "next": ".astryx-top-nav-mega-menu-item > :last-child"+ "prev": ".astryx-chat-message-bubble[data-sender=\"assistant\"]",+ "next": ".astryx-chat-message-bubble[data-sender=\"user\"]"}},{- "component": "TopNavMenu",- "storyId": "core-topnavmenu--mega-menu",- "dims": []+ "component": "ChatEmojiPicker",+ "storyId": "lab-chatadditions--emoji-picker",+ "dims": ["D2"],+ "setup": {"click": "#storybook-root button >> nth=0"},+ "selectors": {+ "prev": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(1)",+ "next": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(2)"+ }},{- "component": "ButtonGroup",- "storyId": "core-buttongroup--horizontal",+ "component": "ChatMessage",+ "storyId": "core-chatmessage--default","dims": ["D2"],"selectors": {- "prev": "[role=\"group\"] button:first-child",- "next": "[role=\"group\"] button:last-child"+ "prev": "section[aria-label=\"Density precedence\"] article[data-sender=\"assistant\"] .astryx-chat-message-bubble",+ "next": "section[aria-label=\"Density precedence\"] article[data-sender=\"user\"] .astryx-chat-message-bubble"}},{- "component": "CommandPalette",- "storyId": "core-commandpalette--default",+ "component": "ChatMessageBubble",+ "storyId": "core-chatmessagebubble--states",+ "dims": ["D9"],+ "selectors": {+ "groups": [+ {+ "name": "assistant",+ "logicalSide": "inline-start",+ "first": "[data-testid=\"assistant-group-first\"]",+ "middle": "[data-testid=\"assistant-group-middle\"]",+ "last": "[data-testid=\"assistant-group-last\"]"+ },+ {+ "name": "user",+ "logicalSide": "inline-end",+ "first": "[data-testid=\"user-group-first\"]",+ "middle": "[data-testid=\"user-group-middle\"]",+ "last": "[data-testid=\"user-group-last\"]"+ }+ ]+ }+ },+ {+ "component": "ChatReactionBar",+ "storyId": "lab-chatadditions--reactions","dims": ["D2"],- "setup": {- "click": "button:has-text(\"Open Command Palette\")"- },"selectors": {- "prev": ".astryx-command-palette-input > span:first-child",- "next": ".astryx-command-palette-input > input[role=\"combobox\"]"+ "prev": ".astryx-chat-reaction-bar button:has-text(\"π\")",+ "next": ".astryx-chat-reaction-bar button:has-text(\"π\")"}},{- "component": "CommandPaletteInput",- "storyId": "core-commandpaletteinput--standalone",+ "component": "ChatSendButton",+ "storyId": "core-chatcomposer--with-streaming",+ "dims": []+ },+ {+ "component": "ChatTypingIndicator",+ "storyId": "lab-chatadditions--typing-and-unread","dims": ["D2"],"selectors": {- "prev": ".astryx-command-palette-input > span:first-child",- "next": "[data-testid=\"input-end-content\"]"+ "prev": ".astryx-chat-typing-indicator > span:first-child",+ "next": ".astryx-chat-typing-indicator span:has-text(\"Ana and 2 others\")"}},{- "component": "Center",- "storyId": "core-center--padding-per-edge",- "dims": ["D8"],+ "component": "ChatUnreadDivider",+ "storyId": "lab-chatadditions--typing-and-unread",+ "dims": ["D2"],"selectors": {- "subject": ".astryx-center"+ "prev": ".astryx-chat-unread-divider > span:first-child",+ "next": ".astryx-chat-unread-divider span:text-is(\"New\")"}},{@@ -150,110 +229,91 @@}},{- "component": "ContextMenu",- "storyId": "core-contextmenu--bottom-sheet-submenu",+ "component": "CodeBlock",+ "storyId": "core-codeblock--default","dims": ["D2"],"selectors": {- "prev": "button[aria-label=\"Back\"]",- "next": "h3:text-is(\"Share\")"+ "prev": ".astryx-code-block-title",+ "next": ".astryx-code-block-copy-button"}},{- "component": "TableHeaderCell",- "storyId": "core-table--in-card",- "dims": ["D2", "D8"],+ "component": "CodeBlock",+ "storyId": "core-codeblock--end-content",+ "dims": ["D2"],"selectors": {- "prev": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:first-child",- "next": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:last-child",- "subject": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:first-child"+ "prev": "[aria-label=\"Run in terminal\"]",+ "next": ".astryx-code-block-copy-button"}},{- "component": "TableCell",- "storyId": "core-table--in-card",- "dims": ["D2", "D8"],+ "component": "CodeBlock",+ "storyId": "core-codeblock--end-content-headerless",+ "dims": ["D2"],"selectors": {- "prev": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:first-child",- "next": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:last-child",- "subject": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:first-child"+ "prev": "[aria-label=\"Run in terminal\"]",+ "next": ".astryx-code-block-copy-button"}},{- "component": "TableSelectionToolbar",- "storyId": "core-tableselection--bulk-actions",+ "component": "CommandPalette",+ "storyId": "core-commandpalette--default","dims": ["D2"],+ "setup": {"click": "button:has-text(\"Open Command Palette\")"},"selectors": {- "prev": "[role=\"toolbar\"][aria-label=\"Bulk actions\"] span:text-is(\"1 selected\")",- "next": "[role=\"toolbar\"][aria-label=\"Bulk actions\"] button:has-text(\"Unselect All\")"+ "prev": ".astryx-command-palette-input > span:first-child",+ "next": ".astryx-command-palette-input > input[role=\"combobox\"]"}},{- "component": "Table",- "storyId": "core-table--in-card",- "dims": []- },- {- "component": "GridSpan",- "storyId": "core-gridspan--span-matrix",+ "component": "CommandPaletteFooter",+ "storyId": "core-commandpalettefooter--default","dims": ["D2"],"selectors": {- "prev": "[data-audit-case=\"rows\"]",- "next": "[data-audit-grid=\"rows\"] > :nth-child(4)"+ "prev": ".astryx-command-palette-footer > span:first-child",+ "next": ".astryx-command-palette-footer > span:last-child"}},{- "component": "PowerSearch",- "storyId": "core-powersearch--with-date-filters",+ "component": "CommandPaletteInput",+ "storyId": "core-commandpaletteinput--standalone","dims": ["D2"],- "setup": {- "click": [- "button:has-text(\"Created: is between\")",- "button[aria-label=\"Open calendar\"]"- ]- },"selectors": {- "prev": "button[aria-label=\"Previous month\"]",- "next": "button[aria-label=\"Next month\"]"+ "prev": ".astryx-command-palette-input > span:first-child",+ "next": "[data-testid=\"input-end-content\"]"}},{- "component": "RadioList",- "storyId": "core-radiolist--rich-content",- "dims": ["D2", "D7"],- "minimumTargetSize": {"width": 24, "height": 24},- "sizes": ["sm", "md"],- "selectors": {- "prev": "input[aria-label=\"Pro\"]",- "next": "[data-testid=\"radio-end-content\"]",- "inputSelector": "input[type=\"radio\"]"- }+ "component": "CommandPaletteItem",+ "storyId": "core-commandpaletteitem--states",+ "dims": []},{- "component": "SegmentedControl",- "storyId": "core-segmentedcontrol--default",- "dims": ["D2"],+ "component": "ComplexSelector",+ "storyId": "core-complexselector--controlled-toolbar-trigger",+ "dims": ["D4"],+ "setup": {"click": "button[aria-haspopup=\"dialog\"]"},"selectors": {- "prev": "button[role=\"radio\"][data-value=\"grid\"]",- "next": "button[role=\"radio\"][data-value=\"table\"]"+ "overlay": ".astryx-complex-selector-popup",+ "overlayRoot": "button[aria-haspopup=\"dialog\"]"}},{- "component": "Switch",- "storyId": "core-switch--default",- "dims": ["D7"],- "minimumTargetSize": {"width": 24, "height": 24},- "sizes": ["sm", "md"],+ "component": "ContextMenu",+ "storyId": "core-contextmenu--bottom-sheet-submenu",+ "dims": ["D2"],"selectors": {- "inputSelector": "input[type=\"checkbox\"]"+ "prev": "button[aria-label=\"Back\"]",+ "next": "h3:text-is(\"Share\")"}},{- "component": "Calendar",- "storyId": "core-calendar--default",+ "component": "ContextMenuItem",+ "storyId": "core-contextmenuitem--states","dims": ["D2"],"selectors": {- "prev": "button[aria-label=\"Previous month\"]",- "next": "button[aria-label=\"Next month\"]"+ "prev": ".astryx-dropdown-menu-item .astryx-icon",+ "next": "[data-testid=\"context-menu-item-end-content\"]"}},{@@ -265,109 +325,48 @@"next": "button[aria-label=\"Clear Event date\"]"}},+ {"component": "Dialog", "storyId": "core-dialog--default", "dims": []},{- "component": "LayoutContent",- "storyId": "core-layout--content-width-with-start-panel",- "dims": ["D8"],+ "component": "DialogHeader",+ "storyId": "core-dialog--default",+ "dims": ["D2"],+ "setup": {"click": "button:has-text(\"Open Modal\")"},"selectors": {- "subject": ".astryx-layout-content"+ "prev": ".astryx-dialog-header-title-block",+ "next": ".astryx-dialog-header-end-content"}},{- "component": "LayoutPanel",- "storyId": "core-layout--content-width-with-start-panel",+ "component": "DiffViewer",+ "storyId": "lab-diffviewer--character-highlight","dims": ["D2"],"selectors": {- "prev": ".astryx-layout-panel",- "next": ".astryx-layout-content"+ "prev": ".astryx-diff-viewer-path",+ "next": ".astryx-diff-viewer-header span:text-is(\"+10\")"}},{- "component": "ResizeHandle",- "storyId": "core-resizable--horizontal-split",+ "component": "Drawer",+ "storyId": "core-drawer--sides","dims": ["D4"],- "selectors": {- "overlay": ".astryx-resize-handle",- "overlayRoot": ".astryx-layout"- }- },- {- "component": "Layout",- "storyId": "core-layout--content-width-with-start-panel",- "dims": []- },- {- "component": "Carousel",- "storyId": "core-carousel--default",- "dims": ["D3"],- "selectors": {- "scroller": "[aria-roledescription=\"carousel\"] > div:first-child",- "nextButton": "button[aria-label=\"Scroll right\"]"- }- },- {- "component": "ScrollableArea",- "storyId": "core-scrollablearea--rtl-behavior-probe",- "dims": ["D3"],- "selectors": {- "scroller": "[data-rtl-scroll-probe]",- "nextButton": "[data-rtl-scroll-button]"- }- },- {- "component": "ChatMessageBubble",- "storyId": "core-chatmessagebubble--states",- "dims": ["D9"],- "selectors": {- "groups": [- {- "name": "assistant",- "logicalSide": "inline-start",- "first": "[data-testid=\"assistant-group-first\"]",- "middle": "[data-testid=\"assistant-group-middle\"]",- "last": "[data-testid=\"assistant-group-last\"]"- },- {- "name": "user",- "logicalSide": "inline-end",- "first": "[data-testid=\"user-group-first\"]",- "middle": "[data-testid=\"user-group-middle\"]",- "last": "[data-testid=\"user-group-last\"]"- }- ]- }- },- {- "component": "Chat",- "storyId": "core-chat--mixed-content",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-chat-message-bubble[data-sender=\"assistant\"]",- "next": ".astryx-chat-message-bubble[data-sender=\"user\"]"- }+ "setup": {"click": "button:has-text(\"Open from end\")"},+ "selectors": {"overlay": "dialog[data-side=\"end\"]", "overlayRoot": "body"}},{- "component": "ChatMessage",- "storyId": "core-chatmessage--default",+ "component": "DrawerHeader",+ "storyId": "core-drawerheader--audit","dims": ["D2"],"selectors": {- "prev": "section[aria-label=\"Density precedence\"] article[data-sender=\"assistant\"] .astryx-chat-message-bubble",- "next": "section[aria-label=\"Density precedence\"] article[data-sender=\"user\"] .astryx-chat-message-bubble"+ "prev": ".astryx-drawer-header .astryx-heading",+ "next": ".astryx-drawer-header button[aria-label=\"Close\"]"}},{- "component": "ChatSendButton",- "storyId": "core-chatcomposer--with-streaming",- "dims": []- },- {- "component": "ContextMenuItem",- "storyId": "core-contextmenuitem--states",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-dropdown-menu-item .astryx-icon",- "next": "[data-testid=\"context-menu-item-end-content\"]"- }+ "component": "DropdownMenu",+ "storyId": "core-dropdownmenu--alignment-end",+ "dims": ["D4"],+ "setup": {"click": "button:has-text(\"Row actions\")"},+ "selectors": {"overlay": ".astryx-dropdown-menu", "overlayRoot": "body"}},{"component": "DropdownMenuCheckboxItem",@@ -379,39 +378,22 @@}},{- "component": "Stack",- "storyId": "core-stack--horizontal",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-stack > :first-child",- "next": ".astryx-stack > :nth-child(2)"- }- },- {- "component": "StackItem",- "storyId": "core-stack--stack-item-fill-size",- "dims": ["D2"],+ "component": "DropdownMenuSubMenu",+ "storyId": "core-dropdownmenusubmenu--row-states",+ "dims": ["D4"],+ "setup": {"click": "[role=\"menuitem\"]:has-text(\"Share\")"},"selectors": {- "prev": ".astryx-stack-item:first-child",- "next": ".astryx-stack-item:last-child"+ "overlay": "[data-testid=\"dropdown-menu-submenu-flyout\"]",+ "overlayRoot": "[role=\"menu\"]"}},{- "component": "HStack",- "storyId": "core-aspectratio--height-driven",+ "component": "FileInput",+ "storyId": "core-fileinput--with-error-status","dims": ["D2"],"selectors": {- "prev": ".astryx-stack > :first-child",- "next": ".astryx-stack > :nth-child(2)"- }- },- {- "component": "VStack",- "storyId": "core-spinner--narrow-flex-host",- "dims": ["D4"],- "selectors": {- "overlay": "#storybook-root .astryx-stack > .astryx-stack:first-child",- "overlayRoot": "#storybook-root .astryx-stack:has(> .astryx-stack)"+ "prev": ".astryx-file-input > .astryx-icon:not(.astryx-input-status-icon)",+ "next": ".astryx-file-input > .astryx-input-status-icon"}},{@@ -424,42 +406,44 @@}},{- "component": "Spinner",- "storyId": "core-spinner--narrow-flex-host",- "dims": []+ "component": "GridSpan",+ "storyId": "core-gridspan--span-matrix",+ "dims": ["D2"],+ "selectors": {+ "prev": "[data-audit-case=\"rows\"]",+ "next": "[data-audit-grid=\"rows\"] > :nth-child(4)"+ }},{- "component": "AspectRatio",+ "component": "HStack","storyId": "core-aspectratio--height-driven",- "dims": []+ "dims": ["D2"],+ "selectors": {+ "prev": ".astryx-stack > :first-child",+ "next": ".astryx-stack > :nth-child(2)"+ }},{- "component": "Stack",- "storyId": "core-stack--stack-item-fill-size",+ "component": "InputGroup",+ "storyId": "core-inputgroup--with-prefix","dims": []},{- "component": "DropdownMenu",- "storyId": "core-dropdownmenu--alignment-end",- "dims": ["D4"],- "setup": {- "click": "button:has-text(\"Row actions\")"- },+ "component": "InputGroup",+ "storyId": "core-inputgroup--with-prefix-and-suffix",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-dropdown-menu",- "overlayRoot": "body"+ "prev": ".astryx-input-group > .astryx-input-group-text:first-child",+ "next": ".astryx-input-group > .astryx-input-group-text:last-child"}},{- "component": "DropdownMenuSubMenu",- "storyId": "core-dropdownmenusubmenu--row-states",- "dims": ["D4"],- "setup": {- "click": "[role=\"menuitem\"]:has-text(\"Share\")"- },+ "component": "InputGroupText",+ "storyId": "core-inputgroup--with-prefix",+ "dims": ["D2"],"selectors": {- "overlay": "[data-testid=\"dropdown-menu-submenu-flyout\"]",- "overlayRoot": "[role=\"menu\"]"+ "prev": ".astryx-input-group-text",+ "next": ".astryx-text-input"}},{@@ -469,22 +453,12 @@"setup": {"click": ["button:has-text(\"end\")", "button:has-text(\"Trigger\")"]},- "selectors": {- "overlay": "[popover]:popover-open",- "overlayRoot": "body"- }+ "selectors": {"overlay": "[popover]:popover-open", "overlayRoot": "body"}},{- "component": "Lightbox",- "storyId": "core-lightbox--gallery",- "dims": ["D2"],- "setup": {- "click": "img, [role=button]"- },- "selectors": {- "prev": "button[aria-label=\"Previous\"]",- "next": "button[aria-label=\"Next\"]"- }+ "component": "Layout",+ "storyId": "core-layout--content-width-with-start-panel",+ "dims": []},{"component": "Layout",@@ -496,23 +470,31 @@}},{- "component": "Resizable",- "storyId": "core-resizable--horizontal-split",- "dims": ["D4"],+ "component": "LayoutContent",+ "storyId": "core-layout--content-width-with-start-panel",+ "dims": ["D8"],+ "selectors": {"subject": ".astryx-layout-content"}+ },+ {+ "component": "LayoutPanel",+ "storyId": "core-layout--content-width-with-start-panel",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-resize-handle",- "overlayRoot": ".astryx-layout"+ "prev": ".astryx-layout-panel",+ "next": ".astryx-layout-content"}},{- "component": "Stepper",- "storyId": "core-stepper--default-horizontal",+ "component": "Lightbox",+ "storyId": "core-lightbox--gallery","dims": ["D2"],+ "setup": {"click": "img, [role=button]"},"selectors": {- "prev": ".astryx-stepper > li:first-child",- "next": ".astryx-stepper > li:last-child"+ "prev": "button[aria-label=\"Previous\"]",+ "next": "button[aria-label=\"Next\"]"}},+ {"component": "List", "storyId": "core-list--interactive", "dims": []},{"component": "ListItem","storyId": "core-list--interactive",@@ -523,12 +505,21 @@}},{- "component": "MetadataList",- "storyId": "core-metadatalist--basic",+ "component": "LogStream",+ "storyId": "lab-logstream--terminal-build","dims": ["D2"],"selectors": {- "prev": ".astryx-metadata-list dl > dt:first-of-type",- "next": ".astryx-metadata-list dl > dd:first-of-type"+ "prev": "span:text-is(\"12:04:38.207\")",+ "next": "span:text-is(\"12:04:38.207\") + span"+ }+ },+ {+ "component": "MetadataList",+ "storyId": "core-metadatalist--basic",+ "dims": ["D2"],+ "selectors": {+ "prev": ".astryx-metadata-list dl > dt:first-of-type",+ "next": ".astryx-metadata-list dl > dd:first-of-type"}},{@@ -541,252 +532,213 @@}},{- "component": "RadioListItem",- "storyId": "core-radiolist--default",- "dims": ["D2"],+ "component": "MobileNav",+ "storyId": "core-mobilenav--default",+ "dims": ["D4"],+ "setup": {"click": "button[aria-label=\"Open Navigation\"]"},"selectors": {- "prev": ".astryx-radio-list-item:first-child .astryx-radio-indicator",- "next": ".astryx-radio-list-item:first-child span:text-is(\"Email\")"+ "overlay": "[class*=\"astryx-mobile-nav\"] > div:first-child",+ "overlayRoot": "body"}},{- "component": "SelectorOption",- "storyId": "core-selector--with-icons",+ "component": "MobilePowerSearch",+ "storyId": "lab-mobilepowersearch--touch-flow","dims": ["D2"],- "setup": {"click": "[role=\"combobox\"]"},"selectors": {- "prev": ".astryx-selector-option > span:first-child",- "next": ".astryx-selector-option > span:nth-child(2)"+ "prev": ".astryx-token:has-text(\"Status\")",+ "next": ".astryx-token:has-text(\"Priority\")"}},{- "component": "TypeaheadItem",- "storyId": "core-typeahead--item-with-icon",+ "component": "MobileTokenizer",+ "storyId": "lab-mobiletokenizer--touch-flow","dims": ["D2"],- "setup": {"click": "[role=\"combobox\"]"},"selectors": {- "prev": ".astryx-typeahead-item > :first-child",- "next": ".astryx-typeahead-item > :last-child"+ "prev": ".astryx-token:has-text(\"Design\")",+ "next": ".astryx-token:has-text(\"Eng\")"}},{- "component": "List",- "storyId": "core-list--interactive",- "dims": []- },- {- "component": "RadioList",- "storyId": "core-radiolist--default",- "dims": []- },- {- "component": "Selector",- "storyId": "core-selector--with-icons",- "dims": []- },- {- "component": "Typeahead",- "storyId": "core-typeahead--item-with-icon",- "dims": []- },- {- "component": "Switch",- "storyId": "core-switch--on",+ "component": "MoreMenu",+ "storyId": "core-moremenu--default","dims": ["D4"],+ "setup": {"click": "button[aria-label=\"More options\"]"},"selectors": {- "overlay": ".astryx-switch-thumb",- "overlayRoot": ".astryx-switch"+ "overlay": "[role=\"menu\"]",+ "overlayRoot": "button[aria-label=\"More options\"]"}},{- "component": "TabList",- "storyId": "core-tablist--overflow",- "dims": ["D3"],+ "component": "MultiSelector",+ "storyId": "core-multiselector--default",+ "dims": ["D4"],+ "setup": {"click": "[role=\"combobox\"]"},"selectors": {- "scroller": ".astryx-tab-strip",- "nextButton": ".astryx-tab-scroll-button"+ "overlay": ".astryx-multi-selector-popup",+ "overlayRoot": "[role=\"combobox\"]"}},{- "component": "BaseTypeahead",- "storyId": "core-basetypeahead--logical-dropdown-placement",- "dims": ["D4"],+ "component": "NavHeadingMenu",+ "storyId": "core-navmenu--with-icons",+ "dims": ["D2"],"selectors": {- "overlay": "[role=\"listbox\"]",- "overlayRoot": "[data-base-typeahead-anchor=\"true\"]"+ "prev": ".astryx-nav-heading-menu-item svg.astryx-icon >> nth=0",+ "next": ".astryx-nav-heading-menu-item span.astryx-text:text-is(\"Profile\")"}},{- "component": "Typeahead",- "storyId": "core-typeahead--rtl-end-lane",- "dims": ["D4"],+ "component": "NumberInput",+ "storyId": "core-numberinput--with-number-steppers",+ "dims": ["D2"],"selectors": {- "overlay": "button[aria-label=\"Clear selection\"]",- "overlayRoot": ".astryx-typeahead"+ "prev": "input[role=\"spinbutton\"]",+ "next": "button[aria-label=\"Increment Quantity\"]"}},{- "component": "Tokenizer",- "storyId": "core-tokenizer--rtl-end-lane",- "dims": ["D4"],+ "component": "Outline",+ "storyId": "core-outline--controlled",+ "dims": ["D2"],"selectors": {- "overlay": "button[aria-label=\"Clear all\"]",- "overlayRoot": ".astryx-tokenizer"+ "prev": ".astryx-outline > div[aria-hidden=\"true\"]",+ "next": ".astryx-outline > ul"}},{- "component": "Tooltip",- "storyId": "core-tooltip--rtl-logical-placement",- "dims": ["D4"],+ "component": "OverflowList",+ "storyId": "core-overflowlist--default",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-tooltip",- "overlayRoot": "button:has-text(\"RTL placement target\")"+ "prev": ".astryx-overflow-list > :nth-child(1)",+ "next": ".astryx-overflow-list > :nth-child(2)"}},{- "component": "Toast",- "storyId": "core-toast--logical-placement",+ "component": "Overlay",+ "storyId": "core-overlay--bottom-strip","dims": ["D4"],- "setup": {- "click": "button:has-text(\"Show toast\")"- },"selectors": {- "overlay": "[data-toast-id]",- "overlayRoot": "body"+ "overlay": ".astryx-overlay-scrim .astryx-stack",+ "overlayRoot": ".astryx-overlay"}},{- "component": "InputGroup",- "storyId": "core-inputgroup--with-prefix-and-suffix",- "dims": ["D2"],+ "component": "Popover",+ "storyId": "core-popover--default",+ "dims": ["D4"],+ "setup": {"click": "button:has-text(\"Settings\")"},"selectors": {- "prev": ".astryx-input-group > .astryx-input-group-text:first-child",- "next": ".astryx-input-group > .astryx-input-group-text:last-child"+ "overlay": ".astryx-popover",+ "overlayRoot": "button:has-text(\"Settings\")"}},{- "component": "SideNavHeading",- "storyId": "core-sidenav--default",- "dims": ["D2", "D8"],+ "component": "PowerSearch",+ "storyId": "core-powersearch--with-date-filters",+ "dims": ["D2"],+ "setup": {+ "click": [+ "button:has-text(\"Created: is between\")",+ "button[aria-label=\"Open calendar\"]"+ ]+ },"selectors": {- "prev": ".astryx-side-nav-heading .astryx-nav-icon",- "next": ".astryx-side-nav-heading span:text-is(\"My App\")",- "subject": ".astryx-side-nav-heading"+ "prev": "button[aria-label=\"Previous month\"]",+ "next": "button[aria-label=\"Next month\"]"}},+ {"component": "RadioList", "storyId": "core-radiolist--default", "dims": []},{- "component": "SideNavItem",- "storyId": "core-sidenav--default",- "dims": ["D2"],+ "component": "RadioList",+ "storyId": "core-radiolist--rich-content",+ "dims": ["D2", "D7"],+ "minimumTargetSize": {"width": 24, "height": 24},+ "sizes": ["sm", "md"],"selectors": {- "prev": ".astryx-side-nav-item svg.astryx-icon",- "next": ".astryx-side-nav-item span:text-is(\"Dashboard\")"+ "prev": "input[aria-label=\"Pro\"]",+ "next": "[data-testid=\"radio-end-content\"]",+ "inputSelector": "input[type=\"radio\"]"}},{- "component": "SideNavSection",- "storyId": "core-sidenav--section-end-content",+ "component": "RadioListItem",+ "storyId": "core-radiolist--default","dims": ["D2"],"selectors": {- "prev": ".astryx-side-nav-section span:text-is(\"Projects\")",- "next": ".astryx-side-nav-section .astryx-badge"+ "prev": ".astryx-radio-list-item:first-child .astryx-radio-indicator",+ "next": ".astryx-radio-list-item:first-child span:text-is(\"Email\")"}},{- "component": "SideNavCollapseButton",- "storyId": "core-sidenav--collapsible-sidebar",- "dims": []- },- {- "component": "SideNav",- "storyId": "core-sidenav--section-end-content",- "dims": []- },- {- "component": "SideNav",- "storyId": "core-sidenav--collapsible-sidebar",- "dims": []- },- {- "component": "NumberInput",- "storyId": "core-numberinput--with-number-steppers",- "dims": ["D2"],+ "component": "Resizable",+ "storyId": "core-resizable--horizontal-split",+ "dims": ["D4"],"selectors": {- "prev": "input[role=\"spinbutton\"]",- "next": "button[aria-label=\"Increment Quantity\"]"+ "overlay": ".astryx-resize-handle",+ "overlayRoot": ".astryx-layout"}},{- "component": "TextArea",- "storyId": "core-textarea--max-length-with-value",+ "component": "ResizeHandle",+ "storyId": "core-resizable--horizontal-split","dims": ["D4"],"selectors": {- "overlay": ".astryx-text-area-counter",- "overlayRoot": ".astryx-text-area"+ "overlay": ".astryx-resize-handle",+ "overlayRoot": ".astryx-layout"}},{- "component": "Thumbnail",- "storyId": "core-thumbnail--with-remove",+ "component": "richtext/RichTextEditor",+ "storyId": "richtext-richtexteditor--error-status","dims": ["D4"],"selectors": {- "overlay": ".astryx-thumbnail .astryx-button",- "overlayRoot": ".astryx-thumbnail"+ "overlay": ".astryx-rich-text-editor > div:first-child > div:last-child",+ "overlayRoot": ".astryx-rich-text-editor"}},{- "component": "CodeBlock",- "storyId": "core-codeblock--default",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-code-block-title",- "next": ".astryx-code-block-copy-button"- }+ "component": "richtext/RichTextEditorAutoLinkPlugin",+ "storyId": "richtext-richtexteditor--with-auto-link",+ "dims": []},{- "component": "CodeBlock",- "storyId": "core-codeblock--end-content",+ "component": "richtext/RichTextEditorToolbar",+ "storyId": "richtext-richtexteditor--with-toolbar","dims": ["D2"],"selectors": {- "prev": "[aria-label=\"Run in terminal\"]",- "next": ".astryx-code-block-copy-button"+ "prev": "[role=\"group\"][aria-label=\"Formatting actions\"] button:first-of-type",+ "next": "[role=\"group\"][aria-label=\"Formatting actions\"] button:last-of-type"}},{- "component": "CodeBlock",- "storyId": "core-codeblock--end-content-headerless",- "dims": ["D2"],- "selectors": {- "prev": "[aria-label=\"Run in terminal\"]",- "next": ".astryx-code-block-copy-button"- }+ "component": "richtext/RichTextView",+ "storyId": "richtext-richtexteditor--markdown-serializers",+ "dims": []},{- "component": "FileInput",- "storyId": "core-fileinput--with-error-status",- "dims": ["D2"],+ "component": "ScrollableArea",+ "storyId": "core-scrollablearea--rtl-behavior-probe",+ "dims": ["D3"],"selectors": {- "prev": ".astryx-file-input > .astryx-icon:not(.astryx-input-status-icon)",- "next": ".astryx-file-input > .astryx-input-status-icon"+ "scroller": "[data-rtl-scroll-probe]",+ "nextButton": "[data-rtl-scroll-button]"}},{- "component": "Tab",- "storyId": "core-tablist--with-icons",+ "component": "SegmentedControl",+ "storyId": "core-segmentedcontrol--default","dims": ["D2"],"selectors": {- "prev": ".astryx-tab svg",- "next": ".astryx-tab span:text-is(\"Home\")"+ "prev": "button[role=\"radio\"][data-value=\"grid\"]",+ "next": "button[role=\"radio\"][data-value=\"table\"]"}},{- "component": "TabMenu",- "storyId": "core-tablist--with-menu",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-tab-menu span:text-is(\"More\")",- "next": ".astryx-tab-menu .astryx-icon"- }+ "component": "SegmentedControl",+ "storyId": "core-segmentedcontrol--with-icons",+ "dims": []},{"component": "SegmentedControlItem",@@ -798,121 +750,113 @@}},{- "component": "ToggleButtonGroup",- "storyId": "core-togglebutton--group-single",+ "component": "Selector",+ "storyId": "core-selector--default",+ "dims": ["D4"],+ "setup": {"click": "[role=\"combobox\"]"},+ "selectors": {+ "overlay": ".astryx-selector-popup",+ "overlayRoot": "[role=\"combobox\"]"+ }+ },+ {"component": "Selector", "storyId": "core-selector--with-icons", "dims": []},+ {+ "component": "SelectorOption",+ "storyId": "core-selector--with-icons","dims": ["D2"],+ "setup": {"click": "[role=\"combobox\"]"},"selectors": {- "prev": "button[aria-label=\"List view\"]",- "next": "button[aria-label=\"Grid view\"]"+ "prev": ".astryx-selector-option > span:first-child",+ "next": ".astryx-selector-option > span:nth-child(2)"}},{- "component": "TabList",- "storyId": "core-tablist--with-icons",+ "component": "SideNav",+ "storyId": "core-sidenav--collapsible-sidebar","dims": []},{- "component": "TabList",- "storyId": "core-tablist--with-menu",- "dims": []+ "component": "SideNav",+ "storyId": "core-sidenav--default",+ "dims": ["D2"],+ "selectors": {+ "prev": "a.astryx-side-nav-item[href=\"/projects\"] > svg.astryx-icon",+ "next": "a.astryx-side-nav-item[href=\"/projects\"] .astryx-badge"+ }},{- "component": "SegmentedControl",- "storyId": "core-segmentedcontrol--with-icons",+ "component": "SideNav",+ "storyId": "core-sidenav--section-end-content","dims": []},{- "component": "ToggleButton",- "storyId": "core-togglebutton--group-single",+ "component": "SideNavCollapseButton",+ "storyId": "core-sidenav--collapsible-sidebar","dims": []},{- "component": "Outline",- "storyId": "core-outline--controlled",- "dims": ["D2"],+ "component": "SideNavHeading",+ "storyId": "core-sidenav--default",+ "dims": ["D2", "D8"],"selectors": {- "prev": ".astryx-outline > div[aria-hidden=\"true\"]",- "next": ".astryx-outline > ul"+ "prev": ".astryx-side-nav-heading .astryx-nav-icon",+ "next": ".astryx-side-nav-heading span:text-is(\"My App\")",+ "subject": ".astryx-side-nav-heading"}},{- "component": "Popover",- "storyId": "core-popover--default",- "dims": ["D4"],- "setup": {- "click": "button:has-text(\"Settings\")"- },+ "component": "SideNavItem",+ "storyId": "core-sidenav--default",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-popover",- "overlayRoot": "button:has-text(\"Settings\")"+ "prev": ".astryx-side-nav-item svg.astryx-icon",+ "next": ".astryx-side-nav-item span:text-is(\"Dashboard\")"}},{- "component": "Selector",- "storyId": "core-selector--default",- "dims": ["D4"],- "setup": {- "click": "[role=\"combobox\"]"- },+ "component": "SideNavSection",+ "storyId": "core-sidenav--section-end-content",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-selector-popup",- "overlayRoot": "[role=\"combobox\"]"+ "prev": ".astryx-side-nav-section span:text-is(\"Projects\")",+ "next": ".astryx-side-nav-section .astryx-badge"}},{- "component": "MultiSelector",- "storyId": "core-multiselector--default",- "dims": ["D4"],- "setup": {- "click": "[role=\"combobox\"]"- },- "selectors": {- "overlay": ".astryx-multi-selector-popup",- "overlayRoot": "[role=\"combobox\"]"- }+ "component": "Spinner",+ "storyId": "core-spinner--narrow-flex-host",+ "dims": []},{- "component": "ComplexSelector",- "storyId": "core-complexselector--controlled-toolbar-trigger",- "dims": ["D4"],- "setup": {- "click": "button[aria-haspopup=\"dialog\"]"- },+ "component": "Stack",+ "storyId": "core-stack--horizontal",+ "dims": ["D2"],"selectors": {- "overlay": ".astryx-complex-selector-popup",- "overlayRoot": "button[aria-haspopup=\"dialog\"]"+ "prev": ".astryx-stack > :first-child",+ "next": ".astryx-stack > :nth-child(2)"}},{- "component": "SideNav",- "storyId": "core-sidenav--default",- "dims": ["D2"],- "selectors": {- "prev": "a.astryx-side-nav-item[href=\"/projects\"] > svg.astryx-icon",- "next": "a.astryx-side-nav-item[href=\"/projects\"] .astryx-badge"- }+ "component": "Stack",+ "storyId": "core-stack--stack-item-fill-size",+ "dims": []},{- "component": "Chart",- "storyId": "lab-chart--line-chart",+ "component": "StackItem",+ "storyId": "core-stack--stack-item-fill-size","dims": ["D2"],"selectors": {- "prev": "foreignObject > div > div:first-child",- "next": "foreignObject > div > div:last-child"+ "prev": ".astryx-stack-item:first-child",+ "next": ".astryx-stack-item:last-child"}},{- "component": "Chart",- "storyId": "charts-chart--playground",+ "component": "Stat",+ "storyId": "lab-stat--showcase","dims": ["D2"],- "setup": {- "args": {- "legendPosition": "start"- }- },"selectors": {- "prev": "[role=\"list\"]",- "next": "svg[role=\"img\"]"+ "prev": "span:text-is(\"$1.28M\")",+ "next": "span:text-is(\"$1.28M\") + span"}},{@@ -925,216 +869,217 @@}},{- "component": "OverflowList",- "storyId": "core-overflowlist--default",+ "component": "Stepper",+ "storyId": "core-stepper--default-horizontal","dims": ["D2"],"selectors": {- "prev": ".astryx-overflow-list > :nth-child(1)",- "next": ".astryx-overflow-list > :nth-child(2)"+ "prev": ".astryx-stepper > li:first-child",+ "next": ".astryx-stepper > li:last-child"}},{- "component": "DialogHeader",- "storyId": "core-dialog--default",- "dims": ["D2"],- "setup": {"click": "button:has-text(\"Open Modal\")"},- "selectors": {- "prev": ".astryx-dialog-header-title-block",- "next": ".astryx-dialog-header-end-content"- }+ "component": "Switch",+ "storyId": "core-switch--default",+ "dims": ["D7"],+ "minimumTargetSize": {"width": 24, "height": 24},+ "sizes": ["sm", "md"],+ "selectors": {"inputSelector": "input[type=\"checkbox\"]"}},{- "component": "AlertDialog",- "storyId": "core-alertdialog--delete",- "dims": ["D2"],- "setup": {"click": "button:has-text(\"Delete item\")"},+ "component": "Switch",+ "storyId": "core-switch--on",+ "dims": ["D4"],"selectors": {- "prev": "[role=\"alertdialog\"] button:has-text(\"Cancel\")",- "next": "[role=\"alertdialog\"] button:has-text(\"Delete\") >> nth=-1"+ "overlay": ".astryx-switch-thumb",+ "overlayRoot": ".astryx-switch"}},{- "component": "MobileNav",- "storyId": "core-mobilenav--default",- "dims": ["D4"],- "setup": {"click": "button[aria-label=\"Open Navigation\"]"},+ "component": "Tab",+ "storyId": "core-tablist--with-icons",+ "dims": ["D2"],"selectors": {- "overlay": "[class*=\"astryx-mobile-nav\"] > div:first-child",- "overlayRoot": "body"+ "prev": ".astryx-tab svg",+ "next": ".astryx-tab span:text-is(\"Home\")"}},+ {"component": "Table", "storyId": "core-table--in-card", "dims": []},{- "component": "MoreMenu",- "storyId": "core-moremenu--default",- "dims": ["D4"],- "setup": {"click": "button[aria-label=\"More options\"]"},- "selectors": {- "overlay": "[role=\"menu\"]",- "overlayRoot": "button[aria-label=\"More options\"]"+ "component": "TableCell",+ "storyId": "core-table--in-card",+ "dims": ["D2", "D8"],+ "selectors": {+ "prev": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:first-child",+ "next": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:last-child",+ "subject": "div:nth-child(2) > .astryx-card tbody tr:first-child > .astryx-table-cell:first-child"}},{- "component": "Dialog",- "storyId": "core-dialog--default",- "dims": []+ "component": "TableHeaderCell",+ "storyId": "core-table--in-card",+ "dims": ["D2", "D8"],+ "selectors": {+ "prev": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:first-child",+ "next": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:last-child",+ "subject": "div:nth-child(2) > .astryx-card .astryx-table-header-cell:first-child"+ }},{- "component": "NavHeadingMenu",- "storyId": "core-navmenu--with-icons",+ "component": "TableSelectionToolbar",+ "storyId": "core-tableselection--bulk-actions","dims": ["D2"],"selectors": {- "prev": ".astryx-nav-heading-menu-item svg.astryx-icon >> nth=0",- "next": ".astryx-nav-heading-menu-item span.astryx-text:text-is(\"Profile\")"+ "prev": "[role=\"toolbar\"][aria-label=\"Bulk actions\"] span:text-is(\"1 selected\")",+ "next": "[role=\"toolbar\"][aria-label=\"Bulk actions\"] button:has-text(\"Unselect All\")"}},{- "component": "ChartLegend",- "storyId": "charts-chrome-legend--default",- "dims": ["D2"],+ "component": "TabList",+ "storyId": "core-tablist--overflow",+ "dims": ["D3"],"selectors": {- "prev": "[role=\"listitem\"]:first-child",- "next": "[role=\"listitem\"]:last-child"+ "scroller": ".astryx-tab-strip",+ "nextButton": ".astryx-tab-scroll-button"}},+ {"component": "TabList", "storyId": "core-tablist--with-icons", "dims": []},+ {"component": "TabList", "storyId": "core-tablist--with-menu", "dims": []},{- "component": "Drawer",- "storyId": "core-drawer--sides",- "dims": ["D4"],- "setup": {- "click": "button:has-text(\"Open from end\")"- },+ "component": "TabMenu",+ "storyId": "core-tablist--with-menu",+ "dims": ["D2"],"selectors": {- "overlay": "dialog[data-side=\"end\"]",- "overlayRoot": "body"+ "prev": ".astryx-tab-menu span:text-is(\"More\")",+ "next": ".astryx-tab-menu .astryx-icon"}},{- "component": "richtext/RichTextEditor",- "storyId": "richtext-richtexteditor--error-status",+ "component": "TextArea",+ "storyId": "core-textarea--max-length-with-value","dims": ["D4"],"selectors": {- "overlay": ".astryx-rich-text-editor > div:first-child > div:last-child",- "overlayRoot": ".astryx-rich-text-editor"+ "overlay": ".astryx-text-area-counter",+ "overlayRoot": ".astryx-text-area"}},{- "component": "richtext/RichTextEditorToolbar",- "storyId": "richtext-richtexteditor--with-toolbar",- "dims": ["D2"],+ "component": "Thumbnail",+ "storyId": "core-thumbnail--with-remove",+ "dims": ["D4"],"selectors": {- "prev": "[role=\"group\"][aria-label=\"Formatting actions\"] button:first-of-type",- "next": "[role=\"group\"][aria-label=\"Formatting actions\"] button:last-of-type"+ "overlay": ".astryx-thumbnail .astryx-button",+ "overlayRoot": ".astryx-thumbnail"}},{- "component": "richtext/RichTextEditorAutoLinkPlugin",- "storyId": "richtext-richtexteditor--with-auto-link",- "dims": []+ "component": "Toast",+ "storyId": "core-toast--logical-placement",+ "dims": ["D4"],+ "setup": {"click": "button:has-text(\"Show toast\")"},+ "selectors": {"overlay": "[data-toast-id]", "overlayRoot": "body"}},{- "component": "richtext/RichTextView",- "storyId": "richtext-richtexteditor--markdown-serializers",+ "component": "ToggleButton",+ "storyId": "core-togglebutton--group-single","dims": []},{- "component": "AvatarGroupOverflow",- "storyId": "core-avatargroupoverflow--default",+ "component": "ToggleButtonGroup",+ "storyId": "core-togglebutton--group-single","dims": ["D2"],"selectors": {- "prev": ".astryx-avatar-group > .astryx-avatar:first-child",- "next": ".astryx-avatar-group-overflow"+ "prev": "button[aria-label=\"List view\"]",+ "next": "button[aria-label=\"Grid view\"]"}},{- "component": "ChatReactionBar",- "storyId": "lab-chatadditions--reactions",- "dims": ["D2"],+ "component": "Tokenizer",+ "storyId": "core-tokenizer--rtl-end-lane",+ "dims": ["D4"],"selectors": {- "prev": ".astryx-chat-reaction-bar button:has-text(\"\ud83c\udf89\")",- "next": ".astryx-chat-reaction-bar button:has-text(\"\ud83d\udc40\")"+ "overlay": "button[aria-label=\"Clear all\"]",+ "overlayRoot": ".astryx-tokenizer"}},{- "component": "ChatUnreadDivider",- "storyId": "lab-chatadditions--typing-and-unread",- "dims": ["D2"],+ "component": "Tooltip",+ "storyId": "core-tooltip--rtl-logical-placement",+ "dims": ["D4"],"selectors": {- "prev": ".astryx-chat-unread-divider > span:first-child",- "next": ".astryx-chat-unread-divider span:text-is(\"New\")"+ "overlay": ".astryx-tooltip",+ "overlayRoot": "button:has-text(\"RTL placement target\")"}},{- "component": "ChatTypingIndicator",- "storyId": "lab-chatadditions--typing-and-unread",+ "component": "TopNav",+ "storyId": "core-topnav--full-example","dims": ["D2"],"selectors": {- "prev": ".astryx-chat-typing-indicator > span:first-child",- "next": ".astryx-chat-typing-indicator span:has-text(\"Ana and 2 others\")"+ "prev": ".astryx-top-nav-heading",+ "next": ".astryx-top-nav-item"}},{- "component": "ChatEmojiPicker",- "storyId": "lab-chatadditions--emoji-picker",- "dims": ["D2"],- "setup": {"click": "#storybook-root button >> nth=0"},+ "component": "TopNavHeading",+ "storyId": "core-topnav--full-example",+ "dims": ["D2", "D8"],"selectors": {- "prev": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(1)",- "next": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(2)"+ "prev": ".astryx-top-nav-heading > :first-child",+ "next": ".astryx-top-nav-heading > :last-child",+ "subject": ".astryx-top-nav-heading"}},{- "component": "Stat",- "storyId": "lab-stat--showcase",+ "component": "TopNavItem",+ "storyId": "core-topnav--full-example","dims": ["D2"],"selectors": {- "prev": "span:text-is(\"$1.28M\")",- "next": "span:text-is(\"$1.28M\") + span"+ "prev": ".astryx-top-nav-item:has-text(\"Dashboard\") > svg",+ "next": ".astryx-top-nav-item:has-text(\"Dashboard\")"}},{- "component": "TransferList",- "storyId": "lab-transferlist--default",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-transfer-list-panel >> nth=0",- "next": ".astryx-transfer-list-panel >> nth=1"- }+ "component": "TopNavMegaMenu",+ "storyId": "core-topnavmenu--mega-menu",+ "dims": ["D4"],+ "setup": {"click": "button.astryx-top-nav-mega-menu"},+ "selectors": {"overlay": ".astryx-popover", "overlayRoot": "body"}},{- "component": "TransferListSelector",- "storyId": "lab-transferlistselector--default",- "dims": ["D2"],+ "component": "TopNavMegaMenuFeaturedCard",+ "storyId": "core-topnavmenu--featured-card-link-arrow",+ "dims": ["D4"],"selectors": {- "prev": ".astryx-complex-selector button span:text-is(\"3 visible fields\")",- "next": ".astryx-complex-selector-indicator-icon"+ "overlay": ".astryx-top-nav-mega-menu-featured-card a > span",+ "overlayRoot": ".astryx-top-nav-mega-menu-featured-card a"}},{- "component": "LogStream",- "storyId": "lab-logstream--terminal-build",+ "component": "TopNavMegaMenuItem",+ "storyId": "core-topnavmenu--mega-menu","dims": ["D2"],+ "setup": {"click": "button.astryx-top-nav-mega-menu"},"selectors": {- "prev": "span:text-is(\"12:04:38.207\")",- "next": "span:text-is(\"12:04:38.207\") + span"+ "prev": ".astryx-top-nav-mega-menu-item > :first-child",+ "next": ".astryx-top-nav-mega-menu-item > :last-child"}},{- "component": "MobileTokenizer",- "storyId": "lab-mobiletokenizer--touch-flow",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-token:has-text(\"Design\")",- "next": ".astryx-token:has-text(\"Eng\")"- }+ "component": "TopNavMenu",+ "storyId": "core-topnavmenu--default",+ "dims": ["D4"],+ "setup": {"click": "button.astryx-top-nav-menu"},+ "selectors": {"overlay": ".astryx-popover", "overlayRoot": "body"}},{- "component": "MobilePowerSearch",- "storyId": "lab-mobilepowersearch--touch-flow",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-token:has-text(\"Status\")",- "next": ".astryx-token:has-text(\"Priority\")"- }+ "component": "TopNavMenu",+ "storyId": "core-topnavmenu--featured-card-link-arrow",+ "dims": []+ },+ {+ "component": "TopNavMenu",+ "storyId": "core-topnavmenu--mega-menu",+ "dims": []},{"component": "Tour",@@ -1157,80 +1102,54 @@}},{- "component": "CommandPaletteItem",- "storyId": "core-commandpaletteitem--states",- "dims": []- },- {- "component": "CommandPaletteFooter",- "storyId": "core-commandpalettefooter--default",+ "component": "TransferList",+ "storyId": "lab-transferlist--default","dims": ["D2"],"selectors": {- "prev": ".astryx-command-palette-footer > span:first-child",- "next": ".astryx-command-palette-footer > span:last-child"+ "prev": ".astryx-transfer-list-panel >> nth=0",+ "next": ".astryx-transfer-list-panel >> nth=1"}},{- "component": "DiffViewer",- "storyId": "lab-diffviewer--character-highlight",+ "component": "TransferListSelector",+ "storyId": "lab-transferlistselector--default","dims": ["D2"],"selectors": {- "prev": ".astryx-diff-viewer-path",- "next": ".astryx-diff-viewer-header span:text-is(\"+10\")"+ "prev": ".astryx-complex-selector button span:text-is(\"3 visible fields\")",+ "next": ".astryx-complex-selector-indicator-icon"}},{- "component": "DrawerHeader",- "storyId": "core-drawerheader--audit",- "dims": ["D2"],- "selectors": {- "prev": ".astryx-drawer-header .astryx-heading",- "next": ".astryx-drawer-header button[aria-label=\"Close\"]"- }+ "component": "Typeahead",+ "storyId": "core-typeahead--item-with-icon",+ "dims": []},{- "component": "Blockquote",- "storyId": "core-blockquote--default",- "dims": ["D8"],+ "component": "Typeahead",+ "storyId": "core-typeahead--rtl-end-lane",+ "dims": ["D4"],"selectors": {- "subject": ".astryx-blockquote"+ "overlay": "button[aria-label=\"Clear selection\"]",+ "overlayRoot": ".astryx-typeahead"}},{- "component": "InputGroupText",- "storyId": "core-inputgroup--with-prefix",+ "component": "TypeaheadItem",+ "storyId": "core-typeahead--item-with-icon","dims": ["D2"],+ "setup": {"click": "[role=\"combobox\"]"},"selectors": {- "prev": ".astryx-input-group-text",- "next": ".astryx-text-input"- }- },- {- "component": "Overlay",- "storyId": "core-overlay--bottom-strip",- "dims": ["D4"],- "selectors": {- "overlay": ".astryx-overlay-scrim .astryx-stack",- "overlayRoot": ".astryx-overlay"+ "prev": ".astryx-typeahead-item > :first-child",+ "next": ".astryx-typeahead-item > :last-child"}},{- "component": "InputGroup",- "storyId": "core-inputgroup--with-prefix",- "dims": []- },- {- "component": "TopNavMegaMenuFeaturedCard",- "storyId": "core-topnavmenu--featured-card-link-arrow",+ "component": "VStack",+ "storyId": "core-spinner--narrow-flex-host","dims": ["D4"],"selectors": {- "overlay": ".astryx-top-nav-mega-menu-featured-card a > span",- "overlayRoot": ".astryx-top-nav-mega-menu-featured-card a"+ "overlay": "#storybook-root .astryx-stack > .astryx-stack:first-child",+ "overlayRoot": "#storybook-root .astryx-stack:has(> .astryx-stack)"}- },- {- "component": "TopNavMenu",- "storyId": "core-topnavmenu--featured-card-link-arrow",- "dims": []}]