// 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/Inputs/SingleSelect/SelectField.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'SelectField.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` select, .selectField { min-width: 35px; max-width: 100%; height: calc(24px + 2 * 1px); padding: 4px; padding-right: 24px; 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); background-image: url('../../../assets/icons/shp-down.svg'); background-repeat: no-repeat; background-position: calc(100% - 4px) center; background-size: 18px; border: 1px solid oklch(0.8761 0 none); border-radius: 0px; } select::-ms-expand, .selectField::-ms-expand { display: none; } select:focus, .selectField: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); } select:disabled, .selectField:disabled { opacity: 1; background-color: oklch(0.9491 0 none); } select.warning-field, .selectField.warning-field, select.warning-field:focus, .selectField.warning-field:focus { border-color: oklch(0.7251 0.1625 65.1153); } select.error-field, .selectField.error-field, select.error-field:focus, .selectField.error-field:focus { border-color: oklch(0.5999 0.246 28.9803); } select[multiple], .selectField[multiple] { height: auto; } select.xs, .selectField.xs { width: 65px; } select.sm, .selectField.sm { width: 130px; } select.md, .selectField.md { width: 220px; } select.lg, .selectField.lg { width: 440px; } select.full, .selectField.full { width: 100%; } select ~ .input-select, .selectField ~ .input-select, select ~ .iconButton, .selectField ~ .iconButton { margin-left: 4px; } `); }); });