Skip to content

Commit

Permalink
fix: sort rules
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Aug 17, 2024
1 parent 627b8b9 commit c942ed8
Show file tree
Hide file tree
Showing 17 changed files with 3,451 additions and 3,457 deletions.
118 changes: 56 additions & 62 deletions src/rules/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,84 +29,78 @@ import { lineClamps } from './line-clamp'
import { filters } from './filters'

export const rules: Rule[] = [
animations,
backgroundStyles,
divides,
cssVariables,
cssProperty,
paddings,
contains,
screenReadersAccess,
pointerEvents,
appearances,
positions,
insets,
lineClamps,
isolations,
zIndexes,
orders,
grids,
floats,
margins,
boxSizing,
displays,
opacity,
aspectRatio,
sizes,
flex,
transforms,
animations,
cursors,
userSelects,
resizes,
appearance,
placements,
alignments,
justifies,
gaps,
flexGridJustifiesAlignments,
spaces,
divides,
overflows,
textOverflows,
whitespaces,
breaks,
borders,
bgColors,
backgroundStyles,
colorScheme,
svgUtilities,
borders,
contentVisibility,
contents,
contains,
fonts,
tabSizes,
objectPositions,
paddings,
safeArea,
textAligns,
textIndents,
textOverflows,
textDecorations,
textStrokes,
textShadows,
textWraps,
verticalAligns,
fonts,
textTransforms,
textAligns,
fontStyles,
textDecorations,
fontSmoothings,
tabSizes,
textStrokes,
textShadows,
hyphens,
writingModes,
writingOrientations,
opacity,
backgroundBlendModes,
mixBlendModes,
boxShadows,
rings,
flex,
grids,
gaps,
positions,
sizes,
aspectRatio,
cursors,
appearances,
pointerEvents,
resizes,
verticalAligns,
userSelects,
whitespaces,
breaks,
overflows,
outline,
appearance,
orders,
justifies,
alignments,
placements,
flexGridJustifiesAlignments,
insets,
floats,
zIndexes,
boxSizing,
rings,
filters,
transitions,
transforms,
willChange,
contentVisibility,
contents,
containerParent,
safeArea,
contains,
textWraps,
dynamicViewportHeight,

// should be the last
// questionMark,

// wind
backgroundBlendModes,
hyphens,
isolations,
mixBlendModes,
objectPositions,
screenReadersAccess,
textTransforms,
writingModes,
writingOrientations,
spaces,
lineClamps,
filters,
].flat(1)
136 changes: 68 additions & 68 deletions test/__snapshots__/autocomplete.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -112,74 +112,6 @@ exports[`autocomplete > should accept variants 1`] = `
"dark:md:min-w-sm",
"dark:md:min-w-xl",
"dark:md:min-w-xs",
"dark:md:min-h-screen-2xl",
"dark:md:max-h-screen-2xl",
"dark:md:min-w-screen-2xl",
"dark:md:max-w-screen-2xl",
"dark:md:max-w-2xl",
"dark:md:max-h-2xl",
"dark:md:max-block-2xl",
"dark:md:max-inline-2xl",
"dark:md:min-w-2xl",
"dark:md:min-h-2xl",
"dark:md:min-block-2xl",
"dark:md:min-inline-2xl",
"dark:md:max-w-3xl",
"dark:md:max-h-3xl",
"dark:md:max-block-3xl",
"dark:md:max-inline-3xl",
"dark:md:min-w-3xl",
"dark:md:min-h-3xl",
"dark:md:min-block-3xl",
"dark:md:min-inline-3xl",
"dark:md:max-w-4xl",
"dark:md:max-h-4xl",
"dark:md:max-block-4xl",
"dark:md:max-inline-4xl",
"dark:md:min-w-4xl",
"dark:md:min-h-4xl",
"dark:md:min-block-4xl",
"dark:md:min-inline-4xl",
"dark:md:max-w-5xl",
"dark:md:max-h-5xl",
"dark:md:max-block-5xl",
"dark:md:max-inline-5xl",
"dark:md:min-w-5xl",
"dark:md:min-h-5xl",
"dark:md:min-block-5xl",
"dark:md:min-inline-5xl",
"dark:md:max-w-6xl",
"dark:md:max-h-6xl",
"dark:md:max-block-6xl",
"dark:md:max-inline-6xl",
"dark:md:min-w-6xl",
"dark:md:min-h-6xl",
"dark:md:min-block-6xl",
"dark:md:min-inline-6xl",
"dark:md:max-w-7xl",
"dark:md:max-h-7xl",
"dark:md:max-block-7xl",
"dark:md:max-inline-7xl",
"dark:md:min-w-7xl",
"dark:md:min-h-7xl",
"dark:md:min-block-7xl",
"dark:md:min-inline-7xl",
"dark:md:max-w-8xl",
"dark:md:max-h-8xl",
"dark:md:max-block-8xl",
"dark:md:max-inline-8xl",
"dark:md:min-w-8xl",
"dark:md:min-h-8xl",
"dark:md:min-block-8xl",
"dark:md:min-inline-8xl",
"dark:md:max-w-9xl",
"dark:md:max-h-9xl",
"dark:md:max-block-9xl",
"dark:md:max-inline-9xl",
"dark:md:min-w-9xl",
"dark:md:min-h-9xl",
"dark:md:min-block-9xl",
"dark:md:min-inline-9xl",
"dark:md:m-bs-0",
"dark:md:m-be-0",
"dark:md:m-is-0",
Expand Down Expand Up @@ -372,6 +304,74 @@ exports[`autocomplete > should accept variants 1`] = `
"dark:md:m-12",
"dark:md:m-24",
"dark:md:m-36",
"dark:md:min-h-screen-2xl",
"dark:md:max-h-screen-2xl",
"dark:md:min-w-screen-2xl",
"dark:md:max-w-screen-2xl",
"dark:md:max-w-2xl",
"dark:md:max-h-2xl",
"dark:md:max-block-2xl",
"dark:md:max-inline-2xl",
"dark:md:min-w-2xl",
"dark:md:min-h-2xl",
"dark:md:min-block-2xl",
"dark:md:min-inline-2xl",
"dark:md:max-w-3xl",
"dark:md:max-h-3xl",
"dark:md:max-block-3xl",
"dark:md:max-inline-3xl",
"dark:md:min-w-3xl",
"dark:md:min-h-3xl",
"dark:md:min-block-3xl",
"dark:md:min-inline-3xl",
"dark:md:max-w-4xl",
"dark:md:max-h-4xl",
"dark:md:max-block-4xl",
"dark:md:max-inline-4xl",
"dark:md:min-w-4xl",
"dark:md:min-h-4xl",
"dark:md:min-block-4xl",
"dark:md:min-inline-4xl",
"dark:md:max-w-5xl",
"dark:md:max-h-5xl",
"dark:md:max-block-5xl",
"dark:md:max-inline-5xl",
"dark:md:min-w-5xl",
"dark:md:min-h-5xl",
"dark:md:min-block-5xl",
"dark:md:min-inline-5xl",
"dark:md:max-w-6xl",
"dark:md:max-h-6xl",
"dark:md:max-block-6xl",
"dark:md:max-inline-6xl",
"dark:md:min-w-6xl",
"dark:md:min-h-6xl",
"dark:md:min-block-6xl",
"dark:md:min-inline-6xl",
"dark:md:max-w-7xl",
"dark:md:max-h-7xl",
"dark:md:max-block-7xl",
"dark:md:max-inline-7xl",
"dark:md:min-w-7xl",
"dark:md:min-h-7xl",
"dark:md:min-block-7xl",
"dark:md:min-inline-7xl",
"dark:md:max-w-8xl",
"dark:md:max-h-8xl",
"dark:md:max-block-8xl",
"dark:md:max-inline-8xl",
"dark:md:min-w-8xl",
"dark:md:min-h-8xl",
"dark:md:min-block-8xl",
"dark:md:min-inline-8xl",
"dark:md:max-w-9xl",
"dark:md:max-h-9xl",
"dark:md:max-block-9xl",
"dark:md:max-inline-9xl",
"dark:md:min-w-9xl",
"dark:md:min-h-9xl",
"dark:md:min-block-9xl",
"dark:md:min-inline-9xl",
"dark:md:max-2xl",
]
`;
Expand Down
4 changes: 2 additions & 2 deletions test/assets/output/preset-mini/custom-var-prefix.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/assets/output/preset-mini/dark-customizing-selector.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* layer: default */
[data-mode="light"] .light\:disabled\:w-full:disabled{width:100%;}
[data-mode="dark"] .dark\:hover\:rounded:hover{border-radius:8rpx;}
[data-mode="dark"] .dark\:bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));}
[data-mode="light"] .light\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity));}
[data-mode="dark"] .dark\:hover\:rounded:hover{border-radius:8rpx;}
[data-mode="dark"] .dark\:text-lg{font-size:36rpx;line-height:56rpx;}
[data-mode="light"] .light\:text-sm{font-size:28rpx;line-height:40rpx;}
[data-mode="light"] .light\:disabled\:w-full:disabled{width:100%;}
[data-mode="light"] .light\:text-sm{font-size:28rpx;line-height:40rpx;}
4 changes: 2 additions & 2 deletions test/assets/output/preset-mini/empty-prefix.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c942ed8

Please sign in to comment.