| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- // NOTICE: This file is generated by Rollup. To modify it,
- // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
- 'use strict';
- /** @type {ReadonlySet<string>} */
- const acceptCustomIdentsProperties = new Set([
- 'animation',
- 'animation-name',
- 'font',
- 'font-family',
- 'counter-increment',
- 'grid-row',
- 'grid-column',
- 'grid-area',
- 'list-style',
- 'list-style-type',
- ]);
- /** @type {ReadonlyMap<string, ReadonlySet<string>>} */
- const shorthandToResetToInitialProperty = new Map([
- [
- 'border',
- new Set([
- 'border-image',
- 'border-image-outset',
- 'border-image-repeat',
- 'border-image-slice',
- 'border-image-source',
- 'border-image-width',
- ]),
- ],
- [
- /** @see https://www.w3.org/TR/css-fonts-4/#font-prop */
- 'font',
- new Set([
- // prettier-ignore
- 'font-feature-settings',
- 'font-kerning',
- 'font-language-override',
- 'font-optical-sizing',
- 'font-size-adjust',
- 'font-variant-alternates',
- 'font-variant-caps',
- 'font-variant-east-asian',
- 'font-variant-emoji',
- 'font-variant-ligatures',
- 'font-variant-numeric',
- 'font-variant-position',
- 'font-variation-settings',
- ]),
- ],
- ]);
- /** @type {import('stylelint').LonghandSubPropertiesOfShorthandProperties} */
- const longhandSubPropertiesOfShorthandProperties = new Map([
- // Sort alphabetically
- [
- 'animation',
- new Set([
- // prettier-ignore
- 'animation-name',
- 'animation-duration',
- 'animation-timing-function',
- 'animation-delay',
- 'animation-iteration-count',
- 'animation-direction',
- 'animation-fill-mode',
- 'animation-play-state',
- ]),
- ],
- [
- 'background',
- new Set([
- // prettier-ignore
- 'background-image',
- 'background-size',
- 'background-position',
- 'background-repeat',
- 'background-origin',
- 'background-clip',
- 'background-attachment',
- 'background-color',
- ]),
- ],
- [
- 'border',
- new Set([
- // prettier-ignore
- 'border-top-width',
- 'border-right-width',
- 'border-bottom-width',
- 'border-left-width',
- 'border-top-style',
- 'border-right-style',
- 'border-bottom-style',
- 'border-left-style',
- 'border-top-color',
- 'border-right-color',
- 'border-bottom-color',
- 'border-left-color',
- 'border-width',
- 'border-style',
- 'border-color',
- ]),
- ],
- [
- 'border-block',
- new Set([
- // prettier-ignore
- 'border-block-width',
- 'border-block-style',
- 'border-block-color',
- ]),
- ],
- [
- 'border-block-end',
- new Set([
- // prettier-ignore
- 'border-block-end-width',
- 'border-block-end-style',
- 'border-block-end-color',
- ]),
- ],
- [
- 'border-block-start',
- new Set([
- // prettier-ignore
- 'border-block-start-width',
- 'border-block-start-style',
- 'border-block-start-color',
- ]),
- ],
- [
- 'border-bottom',
- new Set([
- // prettier-ignore
- 'border-bottom-width',
- 'border-bottom-style',
- 'border-bottom-color',
- ]),
- ],
- [
- 'border-color',
- new Set([
- // prettier-ignore
- 'border-top-color',
- 'border-right-color',
- 'border-bottom-color',
- 'border-left-color',
- ]),
- ],
- [
- 'border-image',
- new Set([
- // prettier-ignore
- 'border-image-source',
- 'border-image-slice',
- 'border-image-width',
- 'border-image-outset',
- 'border-image-repeat',
- ]),
- ],
- [
- 'border-inline',
- new Set([
- // prettier-ignore
- 'border-inline-width',
- 'border-inline-style',
- 'border-inline-color',
- ]),
- ],
- [
- 'border-inline-end',
- new Set([
- // prettier-ignore
- 'border-inline-end-width',
- 'border-inline-end-style',
- 'border-inline-end-color',
- ]),
- ],
- [
- 'border-inline-start',
- new Set([
- // prettier-ignore
- 'border-inline-start-width',
- 'border-inline-start-style',
- 'border-inline-start-color',
- ]),
- ],
- [
- 'border-left',
- new Set([
- // prettier-ignore
- 'border-left-width',
- 'border-left-style',
- 'border-left-color',
- ]),
- ],
- [
- 'border-radius',
- new Set([
- // prettier-ignore
- 'border-top-left-radius',
- 'border-top-right-radius',
- 'border-bottom-right-radius',
- 'border-bottom-left-radius',
- ]),
- ],
- [
- 'border-right',
- new Set([
- // prettier-ignore
- 'border-right-width',
- 'border-right-style',
- 'border-right-color',
- ]),
- ],
- [
- 'border-style',
- new Set([
- // prettier-ignore
- 'border-top-style',
- 'border-right-style',
- 'border-bottom-style',
- 'border-left-style',
- ]),
- ],
- [
- 'border-top',
- new Set([
- // prettier-ignore
- 'border-top-width',
- 'border-top-style',
- 'border-top-color',
- ]),
- ],
- [
- 'border-width',
- new Set([
- // prettier-ignore
- 'border-top-width',
- 'border-right-width',
- 'border-bottom-width',
- 'border-left-width',
- ]),
- ],
- [
- 'column-rule',
- new Set([
- // prettier-ignore
- 'column-rule-width',
- 'column-rule-style',
- 'column-rule-color',
- ]),
- ],
- [
- 'columns',
- new Set([
- // prettier-ignore
- 'column-width',
- 'column-count',
- ]),
- ],
- [
- 'flex',
- new Set([
- // prettier-ignore
- 'flex-grow',
- 'flex-shrink',
- 'flex-basis',
- ]),
- ],
- [
- 'flex-flow',
- new Set([
- // prettier-ignore
- 'flex-direction',
- 'flex-wrap',
- ]),
- ],
- [
- 'font',
- new Set([
- // prettier-ignore
- 'font-style',
- /**
- * reset explicitly: normal | small-caps
- * reset implicitly: all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
- * i.e. either way it will be reset
- * {@link https://www.w3.org/TR/css-fonts-4/#font-variant-prop World Wide Web Consortium}
- */
- 'font-variant',
- 'font-weight',
- 'font-stretch',
- 'font-size',
- 'line-height',
- 'font-family',
- ]),
- ],
- [
- 'font-synthesis',
- new Set([
- // prettier-ignore
- 'font-synthesis-weight',
- 'font-synthesis-style',
- 'font-synthesis-small-caps',
- ]),
- ],
- [
- 'font-variant',
- new Set([
- // prettier-ignore
- 'font-variant-ligatures',
- 'font-variant-position',
- 'font-variant-caps',
- 'font-variant-numeric',
- 'font-variant-alternates',
- 'font-variant-east-asian',
- 'font-variant-emoji',
- ]),
- ],
- [
- 'gap',
- new Set([
- // prettier-ignore
- 'row-gap',
- 'column-gap',
- ]),
- ],
- [
- 'grid',
- new Set([
- // prettier-ignore
- 'grid-template-rows',
- 'grid-template-columns',
- 'grid-template-areas',
- 'grid-auto-rows',
- 'grid-auto-columns',
- 'grid-auto-flow',
- 'grid-column-gap',
- 'grid-row-gap',
- ]),
- ],
- [
- 'grid-area',
- new Set([
- // prettier-ignore
- 'grid-row-start',
- 'grid-column-start',
- 'grid-row-end',
- 'grid-column-end',
- ]),
- ],
- [
- 'grid-column',
- new Set([
- // prettier-ignore
- 'grid-column-start',
- 'grid-column-end',
- ]),
- ],
- [
- 'grid-gap',
- new Set([
- // prettier-ignore
- 'grid-row-gap',
- 'grid-column-gap',
- ]),
- ],
- [
- 'grid-row',
- new Set([
- // prettier-ignore
- 'grid-row-start',
- 'grid-row-end',
- ]),
- ],
- [
- 'grid-template',
- new Set([
- // prettier-ignore
- 'grid-template-columns',
- 'grid-template-rows',
- 'grid-template-areas',
- ]),
- ],
- [
- 'inset',
- new Set([
- // prettier-ignore
- 'top',
- 'right',
- 'bottom',
- 'left',
- ]),
- ],
- [
- 'inset-block',
- new Set([
- // prettier-ignore
- 'inset-block-start',
- 'inset-block-end',
- ]),
- ],
- [
- 'inset-inline',
- new Set([
- // prettier-ignore
- 'inset-inline-start',
- 'inset-inline-end',
- ]),
- ],
- [
- 'list-style',
- new Set([
- // prettier-ignore
- 'list-style-type',
- 'list-style-position',
- 'list-style-image',
- ]),
- ],
- [
- 'margin',
- new Set([
- // prettier-ignore
- 'margin-top',
- 'margin-right',
- 'margin-bottom',
- 'margin-left',
- ]),
- ],
- [
- 'margin-block',
- new Set([
- // prettier-ignore
- 'margin-block-start',
- 'margin-block-end',
- ]),
- ],
- [
- 'margin-inline',
- new Set([
- // prettier-ignore
- 'margin-inline-start',
- 'margin-inline-end',
- ]),
- ],
- [
- 'mask',
- new Set([
- // prettier-ignore
- 'mask-image',
- 'mask-mode',
- 'mask-position',
- 'mask-size',
- 'mask-repeat',
- 'mask-origin',
- 'mask-clip',
- 'mask-composite',
- ]),
- ],
- [
- 'outline',
- new Set([
- // prettier-ignore
- 'outline-color',
- 'outline-style',
- 'outline-width',
- ]),
- ],
- [
- 'overflow',
- new Set([
- // prettier-ignore
- 'overflow-x',
- 'overflow-y',
- ]),
- ],
- [
- 'overscroll-behavior',
- new Set([
- // prettier-ignore
- 'overscroll-behavior-x',
- 'overscroll-behavior-y',
- ]),
- ],
- [
- 'padding',
- new Set([
- // prettier-ignore
- 'padding-top',
- 'padding-right',
- 'padding-bottom',
- 'padding-left',
- ]),
- ],
- [
- 'padding-block',
- new Set([
- // prettier-ignore
- 'padding-block-start',
- 'padding-block-end',
- ]),
- ],
- [
- 'padding-inline',
- new Set([
- // prettier-ignore
- 'padding-inline-start',
- 'padding-inline-end',
- ]),
- ],
- [
- 'place-content',
- new Set([
- // prettier-ignore
- 'align-content',
- 'justify-content',
- ]),
- ],
- [
- 'place-items',
- new Set([
- // prettier-ignore
- 'align-items',
- 'justify-items',
- ]),
- ],
- [
- 'place-self',
- new Set([
- // prettier-ignore
- 'align-self',
- 'justify-self',
- ]),
- ],
- [
- 'scroll-margin',
- new Set([
- // prettier-ignore
- 'scroll-margin-top',
- 'scroll-margin-right',
- 'scroll-margin-bottom',
- 'scroll-margin-left',
- ]),
- ],
- [
- 'scroll-margin-block',
- new Set([
- // prettier-ignore
- 'scroll-margin-block-start',
- 'scroll-margin-block-end',
- ]),
- ],
- [
- 'scroll-margin-inline',
- new Set([
- // prettier-ignore
- 'scroll-margin-inline-start',
- 'scroll-margin-inline-end',
- ]),
- ],
- [
- 'scroll-padding',
- new Set([
- // prettier-ignore
- 'scroll-padding-top',
- 'scroll-padding-right',
- 'scroll-padding-bottom',
- 'scroll-padding-left',
- ]),
- ],
- [
- 'scroll-padding-block',
- new Set([
- // prettier-ignore
- 'scroll-padding-block-start',
- 'scroll-padding-block-end',
- ]),
- ],
- [
- 'scroll-padding-inline',
- new Set([
- // prettier-ignore
- 'scroll-padding-inline-start',
- 'scroll-padding-inline-end',
- ]),
- ],
- [
- 'text-decoration',
- new Set([
- // prettier-ignore
- 'text-decoration-line',
- 'text-decoration-style',
- 'text-decoration-color',
- 'text-decoration-thickness',
- ]),
- ],
- [
- 'text-emphasis',
- new Set([
- // prettier-ignore
- 'text-emphasis-style',
- 'text-emphasis-color',
- ]),
- ],
- [
- 'transition',
- new Set([
- // prettier-ignore
- 'transition-property',
- 'transition-duration',
- 'transition-timing-function',
- 'transition-delay',
- ]),
- ],
- ]);
- /** @type {ReadonlySet<string>} */
- const singleValueColorProperties = new Set([
- 'accent-color',
- 'background-color',
- 'border-block-color',
- 'border-block-end-color',
- 'border-block-start-color',
- 'border-bottom-color',
- 'border-inline-color',
- 'border-inline-end-color',
- 'border-inline-start-color',
- 'border-left-color',
- 'border-right-color',
- 'border-top-color',
- 'caret-color',
- 'color',
- 'column-rule-color',
- 'outline-color',
- 'text-decoration-color',
- 'text-emphasis-color',
- // SVG
- 'flood-color',
- 'lighting-color',
- 'stop-color',
- ]);
- /** @type {ReadonlySet<string>} */
- const multiValueColorProperties = new Set(['border-color', 'scrollbar-color']);
- /** @type {ReadonlySet<string>} */
- const colorProperties = new Set([
- ...singleValueColorProperties,
- ...multiValueColorProperties,
- ]);
- /** @type {ReadonlySet<string>} */
- const longhandTimeProperties = new Set([
- 'transition-duration',
- 'transition-delay',
- 'animation-duration',
- 'animation-delay',
- ]);
- /** @type {ReadonlySet<string>} */
- const shorthandTimeProperties = new Set(['transition', 'animation']);
- /** @type {ReadonlySet<string>} */
- const pageContextProperties = new Set([
- 'direction',
- 'background-color',
- 'background-image',
- 'background-repeat',
- 'background-attachment',
- 'background-position',
- 'background',
- 'border-top-width',
- 'border-right-width',
- 'border-bottom-width',
- 'border-left-width',
- 'border-width',
- 'border-top-color',
- 'border-right-color',
- 'border-bottom-color',
- 'border-left-color',
- 'border-color',
- 'border-top-style',
- 'border-right-style',
- 'border-bottom-style',
- 'border-left-style',
- 'border-style',
- 'border-top',
- 'border-right',
- 'border-bottom',
- 'border-left',
- 'border',
- 'counter-reset',
- 'counter-increment',
- 'color',
- 'font-family',
- 'font-size',
- 'font-style',
- 'font-variant',
- 'font-weight',
- 'font',
- 'height',
- 'min-height',
- 'max-height',
- 'line-height',
- 'margin-top',
- 'margin-right',
- 'margin-bottom',
- 'margin-left',
- 'margin',
- 'outline-width',
- 'outline-style',
- 'outline-color',
- 'outline',
- 'padding-top',
- 'padding-right',
- 'padding-bottom',
- 'padding-left',
- 'padding',
- 'quotes',
- 'letter-spacing',
- 'text-align',
- 'text-decoration',
- 'text-indent',
- 'text-transform',
- 'white-space',
- 'word-spacing',
- 'visibility',
- 'width',
- 'min-width',
- 'max-width',
- ]);
- /** @type {ReadonlySet<string>} */
- const marginContextProperties = new Set([
- 'direction',
- 'unicode-bidi',
- 'background-color',
- 'background-image',
- 'background-repeat',
- 'background-attachment',
- 'background-position',
- 'background',
- 'border-top-width',
- 'border-right-width',
- 'border-bottom-width',
- 'border-left-width',
- 'border-width',
- 'border-top-color',
- 'border-right-color',
- 'border-bottom-color',
- 'border-left-color',
- 'border-color',
- 'border-top-style',
- 'border-right-style',
- 'border-bottom-style',
- 'border-left-style',
- 'border-style',
- 'border-top',
- 'border-right',
- 'border-bottom',
- 'border-left',
- 'border',
- 'counter-reset',
- 'counter-increment',
- 'content',
- 'color',
- 'font-family',
- 'font-size',
- 'font-style',
- 'font-variant',
- 'font-weight',
- 'font',
- 'height',
- 'min-height',
- 'max-height',
- 'line-height',
- 'margin-top',
- 'margin-right',
- 'margin-bottom',
- 'margin-left',
- 'margin',
- 'outline-width',
- 'outline-style',
- 'outline-color',
- 'outline',
- 'overflow',
- 'padding-top',
- 'padding-right',
- 'padding-bottom',
- 'padding-left',
- 'padding',
- 'quotes',
- 'letter-spacing',
- 'text-align',
- 'text-decoration',
- 'text-indent',
- 'text-transform',
- 'white-space',
- 'word-spacing',
- 'vertical-align',
- 'visibility',
- 'width',
- 'min-width',
- 'max-width',
- 'z-index',
- ]);
- exports.acceptCustomIdentsProperties = acceptCustomIdentsProperties;
- exports.colorProperties = colorProperties;
- exports.longhandSubPropertiesOfShorthandProperties = longhandSubPropertiesOfShorthandProperties;
- exports.longhandTimeProperties = longhandTimeProperties;
- exports.marginContextProperties = marginContextProperties;
- exports.multiValueColorProperties = multiValueColorProperties;
- exports.pageContextProperties = pageContextProperties;
- exports.shorthandTimeProperties = shorthandTimeProperties;
- exports.shorthandToResetToInitialProperty = shorthandToResetToInitialProperty;
- exports.singleValueColorProperties = singleValueColorProperties;
|