// 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/List/List.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'List.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .list { --border-color: transparent; position: relative; margin: unset; padding: unset; list-style: none; } .list .icon, .list .typography { margin-bottom: 0; } .list--columns { columns: 320px; column-gap: 24px; } .list--columns-dense { columns: 160px; column-gap: 24px; } .list__item { --gap: 8px; --min-height: 44px; --align-items: flex-start; display: flex; gap: var(--gap); align-items: var(--align-items); min-height: var(--min-height); padding-top: 4px; padding-bottom: 3px; text-align: left; border-bottom: 1px solid var(--border-color); } .list__basicItem { display: list-item; margin-left: 1.75em; text-align: left; list-style-type: disc; } .list__item--divider { --border-color: oklch(0.8761 0 none); } .list__itemIcon { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-bottom: 2px; } .list__itemIcon .icon { flex-shrink: 0; } .list__itemContent { overflow: hidden; display: flex; flex: 1 1 0px; flex-direction: column; } .list__itemValue { display: flex; flex: 0; gap: 4px; } .list__itemValue .list__itemValueContent { flex: 1 1 0px; } .list__item--ellipsis .typography, .list__item--ellipsis .list__itemValueContent { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list__item--dense { --min-height: auto; } .list__item--alignTop { --align-items: flex-start; } .list__item--alignCenter { --align-items: center; } .list__item--alignBottom { --align-items: flex-end; } `); }); });