()
| 106 | }) as const; |
| 107 | |
| 108 | export const fieldInput = () => |
| 109 | ({ |
| 110 | gridArea: 'input', |
| 111 | minWidth: controlSize(), |
| 112 | contain: { |
| 113 | // Only apply size containment if contain-intrinsic-width is supported. |
| 114 | // In older browsers, this will fall back to the default browser intrinsic width. |
| 115 | '@supports (contain-intrinsic-width: 1px)': 'inline-size', |
| 116 | isQuiet: 'none' |
| 117 | }, |
| 118 | '--defaultWidth': { |
| 119 | type: 'width', |
| 120 | value: { |
| 121 | default: 208, |
| 122 | size: { |
| 123 | S: 192, |
| 124 | L: 224, |
| 125 | XL: 240 |
| 126 | } |
| 127 | } |
| 128 | }, |
| 129 | // contain-intrinsic-width only includes the width of children, not the padding or borders. |
| 130 | containIntrinsicWidth: |
| 131 | 'calc(var(--defaultWidth) - self(paddingStart, 0px) - self(paddingEnd, 0px) - self(borderStartWidth, 0px) - self(borderEndWidth, 0px))' |
| 132 | }) as const; |
| 133 | |
| 134 | /** |
| 135 | * Returns style properties that set the CSS `color-scheme` for a component. Defaults to the page's |
no test coverage detected