// 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/RadioGroup/RadioGroup.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'RadioGroup.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .radioGroup--flex { display: flex; flex-direction: column; gap: 8px; } .radioGroup--flexHorizontal { display: flex; flex-direction: row; flex-wrap: wrap; row-gap: 8px; column-gap: 24px; } .radioGroup--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); row-gap: 12px; column-gap: 12px; } .radioGroup--gapSm { row-gap: 8px; column-gap: 8px; } .radioGroup--gapMd { row-gap: 12px; column-gap: 12px; } .radioGroup--gapLg { row-gap: 16px; column-gap: 16px; } .radioGroup--gapXl { row-gap: 24px; column-gap: 24px; } .radioGroup__imageOption { cursor: pointer; position: relative; z-index: 0; display: flex; align-items: center; justify-content: center; border: 1px solid oklch(0.8761 0 none); } .radioGroup__imageOption:focus-within { outline: 2px solid oklch(0.7247 0.1478 233.0429); outline-offset: -2px; box-shadow: 0px 0px 2px 0px oklch(0.7247 0.1478 233.0429); } .radioGroup__imageOption > * { z-index: -1; } .radioGroup__imageOption__label { display: flex; flex: 1; align-items: center; justify-content: center; } .radioGroup__imageOption--checked { outline: 2px solid oklch(0.7247 0.1478 233.0429); outline-offset: -2px; } .radioGroup__imageOption--disabled { cursor: not-allowed; opacity: 0.6; } .radioGroup__imageOption--error { border: 1px solid oklch(0.5999 0.246 28.9803); outline: none; } .radioGroup__imageOption--error:focus-within { outline: none; } .radioGroup__imageOption--warning { border: 1px solid oklch(0.7251 0.1625 65.1153); outline: none; } .radioGroup__imageOption--warning:focus-within { outline: none; } .radioGroup__imageOptionCheckmark { position: absolute; top: 4px; right: 4px; color: oklch(0.7247 0.1478 233.0429); } .radioGroup__imageOptionCheckmarkEmpty { display: block; width: calc(24px - 4px); height: calc(24px - 4px); margin: 2px; background-color: oklch(1 0 none); border: 1px solid oklch(0.8761 0 none); border-radius: 50%; } `); }); });