// 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/TextareaField/TextareaField.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'TextareaField.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` /* TODO: replace textarea selector in Smarty will be done in https://shoptet.atlassian.net/browse/FRONTEND-2163 */ textarea, .textareaField { min-width: 35px; max-width: 100%; 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; } textarea::placeholder, .textareaField::placeholder { color: oklch(0.7252 0 none); } textarea:focus, .textareaField: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); } textarea:disabled, .textareaField:disabled { background-color: oklch(0.9491 0 none); } textarea.warning-field, .textareaField.warning-field, textarea.warning-field:focus, .textareaField.warning-field:focus { border-color: oklch(0.7251 0.1625 65.1153); } textarea.error-field, .textareaField.error-field, textarea.error-field:focus, .textareaField.error-field:focus { border-color: oklch(0.5999 0.246 28.9803); } textarea.sm, .textareaField.sm { width: 130px; } textarea.md, .textareaField.md { width: 220px; } textarea.lg, .textareaField.lg { width: 440px; } textarea.full, .textareaField.full { /* not in DS */ width: 100%; } `); }); });