// 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/CounterInput/CounterInput.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'CounterInput.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .counterInput { display: inline-flex; flex-direction: row; gap: 4px; align-items: center; } .counterInput__control { overflow: hidden; display: inline-flex; flex-direction: row; align-items: center; box-sizing: border-box; height: calc(24px + 2 * 1px); background-color: oklch(1 0 none); border: 1px solid oklch(0.8761 0 none); } .counterInput__control:focus-within { border-color: oklch(0.7247 0.1478 233.0429); box-shadow: 0px 0px 2px 0px oklch(0.7247 0.1478 233.0429); } .counterInput__control--error, .counterInput__control--error:focus-within { border-color: oklch(0.5999 0.246 28.9803); } .counterInput__control--warning, .counterInput__control--warning:focus-within { border-color: oklch(0.7251 0.1625 65.1153); } .counterInput__control--disabled { background-color: oklch(0.9491 0 none); } .counterInput__control .numberField { height: 24px; text-align: center; background: transparent; border: none; box-shadow: none; } .counterInput__control .numberField:focus { border: none; outline: none; box-shadow: none; } `); }); });