// 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/TextField/TextField.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'TextField.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` input[type="text"], .textField { 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; } input[type="text"]::placeholder, .textField::placeholder { color: oklch(0.7252 0 none); } input[type="text"]:focus, .textField: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); } input[type="text"]:disabled, .textField:disabled { background-color: oklch(0.9491 0 none); } input[type="text"].warning-field, .textField.warning-field, input[type="text"].warning-field:focus, .textField.warning-field:focus { border-color: oklch(0.7251 0.1625 65.1153); } input[type="text"].error-field, .textField.error-field, input[type="text"].error-field:focus, .textField.error-field:focus { border-color: oklch(0.5999 0.246 28.9803); } input[type="text"].xxs, .textField.xxs { width: 35px; } input[type="text"].xs, .textField.xs { width: 65px; } input[type="text"].sm, .textField.sm { width: 130px; } input[type="text"].md, .textField.md { width: 220px; } input[type="text"].lg, .textField.lg { width: 440px; } input[type="text"].full, .textField.full { width: 100%; } `); }); });