refactor(core): zero circulars + esm ready (#10770)

This commit is contained in:
Nathan Walker
2025-09-18 17:03:23 -07:00
committed by GitHub
parent 1e54baf198
commit c2ff8c1ae7
306 changed files with 9136 additions and 9889 deletions

View File

@ -5,6 +5,9 @@ import { Page } from '../page';
import { Frame } from '../frame';
import { CSSUtils } from '../../css/system-classes';
import { isObject, isString } from '../../utils/types';
import { Button } from '../button';
import { Label } from '../label';
import { TextField } from '../text-field';
const CSS_CLASS = `${CSSUtils.CLASS_PREFIX}dialog-item`;
@ -272,7 +275,6 @@ let textField: View;
export function getButtonColors(): { color: Color; backgroundColor: Color } {
if (!button) {
const Button = require('../button').Button;
button = new Button();
button.className = CSS_CLASS;
if (__APPLE__) {
@ -292,7 +294,6 @@ export function getButtonColors(): { color: Color; backgroundColor: Color } {
export function getLabelColor(): Color {
if (!label) {
const Label = require('../label').Label;
label = new Label();
label.className = CSS_CLASS;
if (__APPLE__) {
@ -310,7 +311,6 @@ export function getLabelColor(): Color {
export function getTextFieldColor(): Color {
if (!textField) {
const TextField = require('../text-field').TextField;
textField = new TextField();
textField.className = CSS_CLASS;
if (__APPLE__) {