// 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/Stepper/Stepper.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Stepper.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .stepper { --stepper-dimensions: 32px; --stepper-width: 100%; --stepper-gap: 8px; display: flex; flex-direction: column; gap: var(--stepper-gap); } .stepper__steps { display: flex; gap: var(--stepper-gap); align-items: stretch; } .stepper__summary { display: flex; gap: 4px; } .stepper__separator { flex: 1 1 0px; align-self: center; height: 1px; background: oklch(0.8761 0 none); } .stepper .typography { margin-bottom: 0; text-wrap: nowrap; } .stepper__item { position: relative; display: flex; flex-direction: column; gap: var(--stepper-gap); align-items: center; } .stepper__item .icon { color: transparent; border: 1px solid oklch(0.8761 0 none); border-radius: 9999px; } .stepper__icon { display: flex; align-items: center; align-self: center; justify-content: center; min-width: var(--stepper-dimensions); min-height: var(--stepper-dimensions); border-radius: 9999px; } .stepper__item--completed .icon { color: oklch(0.7247 0.1478 233.0429); background: oklch(0.9496 0.0283 234.8404); } .stepper__item--active .stepper__icon { border: 1px solid oklch(0.7247 0.1478 233.0429); } .stepper__item--active .icon { background: oklch(0.7247 0.1478 233.0429); border-radius: 9999px; } .stepper__item .stepper__label { display: none; } .stepper__label .typography { flex-grow: 1; text-wrap: balance; } .stepper__labelPrefix .typography { color: oklch(0.5999 0 none); } @media only screen and (min-width: 992px) { .stepper { padding-top: 16px; padding-bottom: 16px; } .stepper__summary { pointer-events: none; visibility: hidden; opacity: 0; } .stepper__item { flex: 1 1 0px; } .stepper__item:not(:last-child)::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% + var(--stepper-dimensions) - var(--stepper-gap)); display: block; width: calc(100% - var(--stepper-dimensions)); height: 1px; margin-top: calc(var(--stepper-dimensions) / 2); margin-right: auto; margin-bottom: auto; margin-left: auto; background-color: oklch(0.8761 0 none); } .stepper__separator { flex: 0; } .stepper__item .stepper__label { display: unset; text-align: center; } .stepper__item .stepper__label .typography { text-align: center; } .stepper__labelPrefix { display: none; } } `); }); });