@warp-ds/uno
Advanced tools
Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21
{ | ||
"name": "@warp-ds/uno", | ||
"repository": "git@github.com:warp-ds/drive.git", | ||
"version": "1.0.0-alpha.20", | ||
"version": "1.0.0-alpha.21", | ||
"type": "module", | ||
@@ -16,2 +16,3 @@ "exports": { | ||
"#rules": "./src/_rules/index.js", | ||
"#shortcuts": "./src/_shortcuts/index.js", | ||
"#theme": "./src/theme.js", | ||
@@ -18,0 +19,0 @@ "#variants": "./src/_variants/index.js", |
import { twReset } from './tw-reset.js'; | ||
import { formPreflight } from './forms/export.js'; | ||
import { transformBase } from './transform.js'; | ||
import { typographyBase } from './typography.js'; | ||
export const preflights = [twReset, transformBase, formPreflight]; | ||
export const preflights = [twReset, transformBase, formPreflight, typographyBase]; |
@@ -23,2 +23,3 @@ import * as align from "./align.js"; | ||
import * as spacing from "./spacing.js"; | ||
import * as typography from "./typography.js"; | ||
import * as staticRules from "./static.js"; | ||
@@ -56,2 +57,3 @@ import * as transform from "./transform.js"; | ||
...transition, | ||
...typography, | ||
}; | ||
@@ -89,1 +91,2 @@ | ||
export * from "./transition.js"; | ||
export * from "./typography.js"; |
@@ -98,1 +98,23 @@ export const directionMap = { | ||
]; | ||
// for backward compatible typography classes like text-12 or leading-16 | ||
export const textMap = { | ||
12: 'xs', | ||
14: 's', | ||
16: 'm', | ||
20: 'ml', | ||
22: 'l', | ||
28: 'xl', | ||
34: 'xxl', | ||
48: 'xxxl', | ||
}; | ||
export const lineHeightMap = { | ||
16: 'xs', | ||
18: 's', | ||
22: 'm', | ||
26: 'ml', | ||
28: 'l', | ||
34: 'xl', | ||
41: 'xxl', | ||
56: 'xxxl', | ||
}; |
export { useTheme } from '#theme'; | ||
export { rules } from '#rules'; | ||
export { variants } from '#variants'; | ||
export { shortcuts } from '#shortcuts'; | ||
import { preflights } from '#preflights'; | ||
import { rules } from '#rules'; | ||
import { shortcuts } from '#shortcuts'; | ||
import { variants } from '#variants'; | ||
@@ -30,2 +31,3 @@ import { useTheme } from '#theme'; | ||
postprocess: postprocess(externalizeClasses, externalClasses), | ||
shortcuts, | ||
}; | ||
@@ -32,0 +34,0 @@ } |
Sorry, the diff of this file is too big to display
203159
58
5738