@unocss/preset-mini 0.58.9 → 0.59.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +18 -23
- package/dist/colors.cjs +0 -363
- package/dist/colors.d.cts +0 -354
- package/dist/index.cjs +0 -91
- package/dist/index.d.cts +0 -75
- package/dist/rules.cjs +0 -75
- package/dist/rules.d.cts +0 -129
- package/dist/shared/preset-mini.BP7cviYW.d.cts +0 -75
- package/dist/shared/preset-mini.D_Gfuejm.cjs +0 -1033
- package/dist/shared/preset-mini.DahJgnb1.cjs +0 -593
- package/dist/shared/preset-mini.P5Rzuhf5.d.cts +0 -77
- package/dist/shared/preset-mini.St8sZgQd.cjs +0 -322
- package/dist/shared/preset-mini.YtS7XCIs.cjs +0 -796
- package/dist/shared/preset-mini.bn9iWcrm.d.cts +0 -728
- package/dist/shared/preset-mini.mjThnwTD.cjs +0 -352
- package/dist/theme.cjs +0 -42
- package/dist/theme.d.cts +0 -270
- package/dist/utils.cjs +0 -42
- package/dist/utils.d.cts +0 -58
- package/dist/variants.cjs +0 -34
- package/dist/variants.d.cts +0 -47
package/dist/rules.d.cts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { Rule, CSSEntries, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
3
|
-
|
|
4
|
-
declare const verticalAligns: Rule[];
|
|
5
|
-
declare const textAligns: Rule[];
|
|
6
|
-
|
|
7
|
-
declare const outline: Rule<Theme>[];
|
|
8
|
-
declare const appearance: Rule[];
|
|
9
|
-
declare const willChange: Rule[];
|
|
10
|
-
|
|
11
|
-
declare const borderStyles: string[];
|
|
12
|
-
declare const borders: Rule[];
|
|
13
|
-
declare function handlerBorderStyle([, a, s]: string[]): CSSEntries | undefined;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @example op10 op-30 opacity-100
|
|
17
|
-
*/
|
|
18
|
-
declare const opacity: Rule[];
|
|
19
|
-
declare const bgColors: Rule[];
|
|
20
|
-
declare const colorScheme: Rule[];
|
|
21
|
-
|
|
22
|
-
declare const containerParent: Rule[];
|
|
23
|
-
|
|
24
|
-
declare const textDecorations: Rule<Theme>[];
|
|
25
|
-
|
|
26
|
-
declare const rules: Rule<Theme>[];
|
|
27
|
-
|
|
28
|
-
declare const flex: Rule<Theme>[];
|
|
29
|
-
|
|
30
|
-
declare const gaps: Rule[];
|
|
31
|
-
|
|
32
|
-
declare const grids: Rule<Theme>[];
|
|
33
|
-
|
|
34
|
-
declare const overflows: Rule[];
|
|
35
|
-
|
|
36
|
-
declare const positions: Rule[];
|
|
37
|
-
declare const justifies: StaticRule[];
|
|
38
|
-
declare const orders: Rule[];
|
|
39
|
-
declare const alignments: StaticRule[];
|
|
40
|
-
declare const placements: StaticRule[];
|
|
41
|
-
/**
|
|
42
|
-
* This is to add `flex-` and `grid-` prefix to the alignment rules,
|
|
43
|
-
* supporting `flex="~ items-center"` in attributify mode.
|
|
44
|
-
*/
|
|
45
|
-
declare const flexGridJustifiesAlignments: StaticRule[];
|
|
46
|
-
declare const insets: Rule[];
|
|
47
|
-
declare const floats: Rule[];
|
|
48
|
-
declare const zIndexes: Rule[];
|
|
49
|
-
declare const boxSizing: Rule[];
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Used for debugging, only available in development mode.
|
|
53
|
-
*
|
|
54
|
-
* @example `?` / `where`
|
|
55
|
-
*/
|
|
56
|
-
declare const questionMark: Rule[];
|
|
57
|
-
|
|
58
|
-
declare const ringBase: {
|
|
59
|
-
'--un-ring-inset': string;
|
|
60
|
-
'--un-ring-offset-width': string;
|
|
61
|
-
'--un-ring-offset-color': string;
|
|
62
|
-
'--un-ring-width': string;
|
|
63
|
-
'--un-ring-color': string;
|
|
64
|
-
'--un-shadow': string;
|
|
65
|
-
};
|
|
66
|
-
declare const rings: Rule<Theme>[];
|
|
67
|
-
|
|
68
|
-
declare const boxShadowsBase: {
|
|
69
|
-
'--un-ring-offset-shadow': string;
|
|
70
|
-
'--un-ring-shadow': string;
|
|
71
|
-
'--un-shadow-inset': string;
|
|
72
|
-
'--un-shadow': string;
|
|
73
|
-
};
|
|
74
|
-
declare const boxShadows: Rule<Theme>[];
|
|
75
|
-
|
|
76
|
-
declare const sizes: Rule<Theme>[];
|
|
77
|
-
declare const aspectRatio: Rule[];
|
|
78
|
-
|
|
79
|
-
declare const paddings: Rule[];
|
|
80
|
-
declare const margins: Rule[];
|
|
81
|
-
|
|
82
|
-
declare const varEmpty = " ";
|
|
83
|
-
declare const displays: Rule[];
|
|
84
|
-
declare const appearances: Rule[];
|
|
85
|
-
declare const cursors: Rule[];
|
|
86
|
-
declare const contains: Rule[];
|
|
87
|
-
declare const pointerEvents: Rule[];
|
|
88
|
-
declare const resizes: Rule[];
|
|
89
|
-
declare const userSelects: Rule[];
|
|
90
|
-
declare const whitespaces: Rule[];
|
|
91
|
-
declare const contentVisibility: Rule[];
|
|
92
|
-
declare const contents: Rule[];
|
|
93
|
-
declare const breaks: Rule[];
|
|
94
|
-
declare const textWraps: Rule[];
|
|
95
|
-
declare const textOverflows: Rule[];
|
|
96
|
-
declare const textTransforms: Rule[];
|
|
97
|
-
declare const fontStyles: Rule[];
|
|
98
|
-
declare const fontSmoothings: Rule[];
|
|
99
|
-
|
|
100
|
-
declare const svgUtilities: Rule<Theme>[];
|
|
101
|
-
|
|
102
|
-
declare const transformBase: {
|
|
103
|
-
'--un-rotate': number;
|
|
104
|
-
'--un-rotate-x': number;
|
|
105
|
-
'--un-rotate-y': number;
|
|
106
|
-
'--un-rotate-z': number;
|
|
107
|
-
'--un-scale-x': number;
|
|
108
|
-
'--un-scale-y': number;
|
|
109
|
-
'--un-scale-z': number;
|
|
110
|
-
'--un-skew-x': number;
|
|
111
|
-
'--un-skew-y': number;
|
|
112
|
-
'--un-translate-x': number;
|
|
113
|
-
'--un-translate-y': number;
|
|
114
|
-
'--un-translate-z': number;
|
|
115
|
-
};
|
|
116
|
-
declare const transforms: Rule[];
|
|
117
|
-
|
|
118
|
-
declare const transitions: Rule<Theme>[];
|
|
119
|
-
|
|
120
|
-
declare const fonts: Rule<Theme>[];
|
|
121
|
-
declare const tabSizes: Rule<Theme>[];
|
|
122
|
-
declare const textIndents: Rule<Theme>[];
|
|
123
|
-
declare const textStrokes: Rule<Theme>[];
|
|
124
|
-
declare const textShadows: Rule<Theme>[];
|
|
125
|
-
|
|
126
|
-
declare const cssVariables: Rule[];
|
|
127
|
-
declare const cssProperty: Rule[];
|
|
128
|
-
|
|
129
|
-
export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, colorScheme, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, flexGridJustifiesAlignments, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './preset-mini.P5Rzuhf5.cjs';
|
|
3
|
-
|
|
4
|
-
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
|
-
/**
|
|
6
|
-
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
7
|
-
*
|
|
8
|
-
* @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
|
|
9
|
-
* @see {@link directionMap}
|
|
10
|
-
*/
|
|
11
|
-
declare function directionSize(propertyPrefix: string): DynamicMatcher;
|
|
12
|
-
type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor' | 'shadowColor' | 'accentColor';
|
|
13
|
-
/**
|
|
14
|
-
* Split utility shorthand delimited by / or :
|
|
15
|
-
*/
|
|
16
|
-
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
|
|
19
|
-
* See also color.tests.ts for more examples.
|
|
20
|
-
*
|
|
21
|
-
* @example Parseable strings:
|
|
22
|
-
* 'red' // From theme, if 'red' is available
|
|
23
|
-
* 'red-100' // From theme, plus scale
|
|
24
|
-
* 'red-100/20' // From theme, plus scale/opacity
|
|
25
|
-
* '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
|
|
26
|
-
*
|
|
27
|
-
* @param body - Color string to be parsed.
|
|
28
|
-
* @param theme - {@link Theme} object.
|
|
29
|
-
* @return object if string is parseable.
|
|
30
|
-
*/
|
|
31
|
-
declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): ParsedColorValue | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Provide {@link DynamicMatcher} function to produce color value matched from rule.
|
|
34
|
-
*
|
|
35
|
-
* @see {@link parseColor}
|
|
36
|
-
*
|
|
37
|
-
* @example Resolving 'red' from theme:
|
|
38
|
-
* colorResolver('background-color', 'background')('', 'red')
|
|
39
|
-
* return { 'background-color': '#f12' }
|
|
40
|
-
*
|
|
41
|
-
* @example Resolving 'red-100' from theme:
|
|
42
|
-
* colorResolver('background-color', 'background')('', 'red-100')
|
|
43
|
-
* return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }
|
|
44
|
-
*
|
|
45
|
-
* @example Resolving 'red-100/20' from theme:
|
|
46
|
-
* colorResolver('background-color', 'background')('', 'red-100/20')
|
|
47
|
-
* return { 'background-color': 'rgb(204 251 241 / 0.22)' }
|
|
48
|
-
*
|
|
49
|
-
* @example Resolving 'hex-124':
|
|
50
|
-
* colorResolver('color', 'text')('', 'hex-124')
|
|
51
|
-
* return { '--un-text-opacity': '1', 'color': 'rgb(17 34 68 / var(--un-text-opacity))' }
|
|
52
|
-
*
|
|
53
|
-
* @param property - Property for the css value to be created.
|
|
54
|
-
* @param varName - Base name for the opacity variable.
|
|
55
|
-
* @param [key] - Theme key to select the color from.
|
|
56
|
-
* @param [shouldPass] - Function to decide whether to pass the css.
|
|
57
|
-
* @return object.
|
|
58
|
-
*/
|
|
59
|
-
declare function colorResolver(property: string, varName: string, key?: ThemeColorKeys, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
|
|
60
|
-
declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
|
|
61
|
-
declare function hasParseableColor(color: string | undefined, theme: Theme, key: ThemeColorKeys): boolean;
|
|
62
|
-
declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
|
|
63
|
-
point: string;
|
|
64
|
-
size: string;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
|
|
67
|
-
point: string;
|
|
68
|
-
size: string;
|
|
69
|
-
}[] | undefined;
|
|
70
|
-
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
71
|
-
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
72
|
-
declare function isSize(str: string): boolean;
|
|
73
|
-
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
74
|
-
|
|
75
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
|