// 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/Fields/MultiSelectField/MultiSelectField.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'MultiSelectField.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .multiSelectField { overflow: hidden; min-width: 35px; max-width: 100%; height: calc(24px + 2 * 1px); padding: 4px; padding-right: 24px; font-family: 'Inter', 'Arial', sans-serif; font-size: 12px; font-weight: 400; line-height: 16px; color: oklch(0 0 none); text-align: left; text-overflow: ellipsis; letter-spacing: 0.1px; white-space: nowrap; background-color: oklch(1 0 none); background-image: url('../../../assets/icons/shp-down.svg'); background-repeat: no-repeat; background-position: calc(100% - 4px) center; background-size: 18px; border: 1px solid oklch(0.8761 0 none); border-radius: 0px; } .multiSelectField::-ms-expand { display: none; } .multiSelectField:focus { background-color: oklch(1 0 none); border-color: oklch(0.7247 0.1478 233.0429); outline: 0; box-shadow: 0px 0px 2px 0px oklch(0.7247 0.1478 233.0429); } .multiSelectField:disabled { opacity: 1; background-color: oklch(0.9491 0 none); } .multiSelectField.warning-field, .multiSelectField.warning-field:focus { border-color: oklch(0.7251 0.1625 65.1153); } .multiSelectField.error-field, .multiSelectField.error-field:focus { border-color: oklch(0.5999 0.246 28.9803); } .multiSelectField[multiple] { height: auto; } .multiSelectField.xs { width: 65px; } .multiSelectField.sm { width: 130px; } .multiSelectField.md { width: 220px; } .multiSelectField.lg { width: 440px; } .multiSelectField.full { width: 100%; } .multiSelectField__value--muted { color: oklch(0.7252 0 none); } .multiSelectField__content.xs { width: 65px; } .multiSelectField__content.sm { width: 130px; } .multiSelectField__content.md { width: 220px; } .multiSelectField__content.lg { width: 440px; } .multiSelectField__content.full { width: 100%; } .multiSelectField__popover { will-change: transform; display: flex; flex-direction: column; background-color: oklch(1 0 none); box-shadow: 0px 3px 7px 0px oklch(0 0 none / 0.1); } .multiSelectField__popover[data-placement^='top'] { margin-bottom: 5px; } .multiSelectField__popover[data-placement^='bottom'] { margin-top: 5px; } .multiSelectField__dialog { display: flex; flex-direction: column; max-height: 360px; } .multiSelectField__dialogSearch { padding: 8px; } .multiSelectField__inputDialogSearch { padding: 8px 0; } .multiSelectField__scroll { overflow-y: auto; min-height: 0; } .multiSelectField__selectAll { color: oklch(0 0 none); background: none; border: none; } .multiSelectField__selectAll .typography { margin: 0; } .multiSelectField__divider { border-top: 1px solid oklch(0.8761 0 none); } `); }); });