import PropTypes from 'prop-types'; import { Center } from '@astryxdesign/core/Center'; import { DT, soft } from './tokens'; // ============================================================================ // Shared DT primitives — the tiny components that every DT-styled operator // page used to redeclare verbatim at the top of its own file. // // They were byte-identical in all 6 copies, so the duplication bought nothing // and made the pages drift apart whenever one was tweaked. `deliveries.js` is // the visual reference for both (see root CLAUDE.md §6). // ============================================================================ // Soft popup surface. Under MUI this was a `PaperComponent` handed to every // Autocomplete; Astryx's Selector/Typeahead own their own popup chrome, so // this now only serves the few hand-rolled dropdowns that remain. Kept as a // style object rather than a component for exactly that reason. export const softPopupStyle = { marginTop: 6, background: DT.surface, borderRadius: DT.radiusInner + 'px', boxShadow: DT.shadowPop, border: `1px solid ${DT.borderSubtle}`, overflow: 'hidden' }; // Scroll container for a table. Astryx's Table renders a bare