// 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/ImageSelect/ImageSelect.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'ImageSelect.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .imageSelect { display: flex; flex-direction: column; gap: 4px; } .imageSelect__preview { border: 1px solid oklch(0.8761 0 none); } .imageSelect__preview--warning { border-color: oklch(0.7251 0.1625 65.1153); } .imageSelect__preview--error { border-color: oklch(0.5999 0.246 28.9803); } .imageSelect__action { display: flex; flex-direction: row; gap: 4px; justify-content: center; } .imageSelect--width-sm { width: 130px; } .imageSelect--width-md { width: 220px; } .imageSelect--width-lg { width: 440px; } .imageSelect--width-full { width: 100%; } .imageSelect__modalBody { display: flex; flex-direction: column; gap: 24px; } .imageSelect__modalBody p { margin: 0; } .v2form .imageSelect__action .btn { margin: unset; } `); }); });