// // Copyright 2026 DXOS.org // import '../../theme/index.css'; import { type Meta, type StoryObj } from '@storybook/react-vite'; import React from 'react'; import { expect, userEvent, within } from 'storybook/test'; import { SIZES } from '../../sizes.ts'; import { GEOMETRY, byTestId, controlSize, expectScoped, sizeRow } from '../../testing/geometry.ts'; import { withLayout, withTheme } from '../../testing/index.ts'; import { SIZE_ARG_TYPES, type SizeArgs, withSizes } from '../../testing/stories.tsx'; import { Button } from '../Button/Button.tsx'; import * as Icon from '../Icon/Icon.tsx'; import { ControlFrame } from './ControlFrame.tsx'; /** An editor stand-in (a one-line `contenteditable`) in a frame with adornments, a mono frame, and a disabled one. */ const DefaultStory = ({ size }: SizeArgs) => ( <> } end={