// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../../scripts/testStylesheets/config'; describe('components/Fields/PhoneField/PhoneField.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'PhoneField.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .phoneField { min-width: 35px; max-width: 100%; height: calc(24px + 2 * 1px); padding: 4px; font-family: 'Inter', 'Arial', sans-serif; font-size: 12px; font-weight: 400; line-height: 16px; color: oklch(0 0 none); letter-spacing: 0.1px; background-color: oklch(1 0 none); border: 1px solid oklch(0.8761 0 none); border-radius: 0px; } .phoneField::placeholder { color: oklch(0.7252 0 none); } .phoneField:focus { background-color: oklch(1 0 none); border-color: oklch(0.7247 0.1478 233.0429); outline: 0; box-shadow: 0px 0px 2px 0px oklch(0.7247 0.1478 233.0429); } .phoneField:disabled { background-color: oklch(0.9491 0 none); } .phoneField.warning-field, .phoneField.warning-field:focus { border-color: oklch(0.7251 0.1625 65.1153); } .phoneField.error-field, .phoneField.error-field:focus { border-color: oklch(0.5999 0.246 28.9803); } .phoneField.md { width: 220px; } .phoneField.lg { width: 440px; } `); }); });