@fluixi-css/core 0.1.0-next.0
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/LICENSE +21 -0
- package/README.md +52 -0
- package/base.css +4 -0
- package/components.css +1 -0
- package/dist/base.css +4 -0
- package/dist/components.css +1 -0
- package/dist/index.css +2 -0
- package/dist/package.json +139 -0
- package/dist/reset.css +168 -0
- package/dist/src/ast.d.ts +298 -0
- package/dist/src/ast.js +2240 -0
- package/dist/src/ast.js.map +1 -0
- package/dist/src/commons/constants.d.ts +1193 -0
- package/dist/src/commons/constants.js +1323 -0
- package/dist/src/commons/constants.js.map +1 -0
- package/dist/src/commons/helper.d.ts +1298 -0
- package/dist/src/commons/helper.js +1310 -0
- package/dist/src/commons/helper.js.map +1 -0
- package/dist/src/commons/index.d.ts +3 -0
- package/dist/src/commons/index.js +4 -0
- package/dist/src/commons/index.js.map +1 -0
- package/dist/src/commons/properties.d.ts +1431 -0
- package/dist/src/commons/properties.js +2855 -0
- package/dist/src/commons/properties.js.map +1 -0
- package/dist/src/commons/types.d.ts +359 -0
- package/dist/src/commons/types.js +4 -0
- package/dist/src/commons/types.js.map +1 -0
- package/dist/src/components/avatar/index.d.ts +19 -0
- package/dist/src/components/avatar/index.js +22 -0
- package/dist/src/components/avatar/index.js.map +1 -0
- package/dist/src/components/button/index.d.ts +48 -0
- package/dist/src/components/button/index.js +51 -0
- package/dist/src/components/button/index.js.map +1 -0
- package/dist/src/components/card/index.d.ts +44 -0
- package/dist/src/components/card/index.js +47 -0
- package/dist/src/components/card/index.js.map +1 -0
- package/dist/src/components/checkbox/index.d.ts +69 -0
- package/dist/src/components/checkbox/index.js +80 -0
- package/dist/src/components/checkbox/index.js.map +1 -0
- package/dist/src/components/daterangepicker/index.d.ts +147 -0
- package/dist/src/components/daterangepicker/index.js +150 -0
- package/dist/src/components/daterangepicker/index.js.map +1 -0
- package/dist/src/components/dialog/index.d.ts +71 -0
- package/dist/src/components/dialog/index.js +74 -0
- package/dist/src/components/dialog/index.js.map +1 -0
- package/dist/src/components/drawer/index.d.ts +26 -0
- package/dist/src/components/drawer/index.js +29 -0
- package/dist/src/components/drawer/index.js.map +1 -0
- package/dist/src/components/dropdown/index.d.ts +101 -0
- package/dist/src/components/dropdown/index.js +104 -0
- package/dist/src/components/dropdown/index.js.map +1 -0
- package/dist/src/components/forms/index.d.ts +58 -0
- package/dist/src/components/forms/index.js +62 -0
- package/dist/src/components/forms/index.js.map +1 -0
- package/dist/src/components/index.d.ts +1228 -0
- package/dist/src/components/index.js +64 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/components/layout/index.d.ts +28 -0
- package/dist/src/components/layout/index.js +33 -0
- package/dist/src/components/layout/index.js.map +1 -0
- package/dist/src/components/list/index.d.ts +65 -0
- package/dist/src/components/list/index.js +68 -0
- package/dist/src/components/list/index.js.map +1 -0
- package/dist/src/components/popover/index.d.ts +79 -0
- package/dist/src/components/popover/index.js +82 -0
- package/dist/src/components/popover/index.js.map +1 -0
- package/dist/src/components/radio/index.d.ts +77 -0
- package/dist/src/components/radio/index.js +80 -0
- package/dist/src/components/radio/index.js.map +1 -0
- package/dist/src/components/select/index.d.ts +102 -0
- package/dist/src/components/select/index.js +105 -0
- package/dist/src/components/select/index.js.map +1 -0
- package/dist/src/components/sidenav/index.d.ts +98 -0
- package/dist/src/components/sidenav/index.js +101 -0
- package/dist/src/components/sidenav/index.js.map +1 -0
- package/dist/src/components/table/index.d.ts +95 -0
- package/dist/src/components/table/index.js +98 -0
- package/dist/src/components/table/index.js.map +1 -0
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/constants.js +29 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/css-ast.d.ts +48 -0
- package/dist/src/css-ast.js +2 -0
- package/dist/src/css-ast.js.map +1 -0
- package/dist/src/css-generator.d.ts +29 -0
- package/dist/src/css-generator.js +104 -0
- package/dist/src/css-generator.js.map +1 -0
- package/dist/src/css-helpers.d.ts +76 -0
- package/dist/src/css-helpers.js +272 -0
- package/dist/src/css-helpers.js.map +1 -0
- package/dist/src/css-lexer.d.ts +48 -0
- package/dist/src/css-lexer.js +255 -0
- package/dist/src/css-lexer.js.map +1 -0
- package/dist/src/css-parser.cjs +2047 -0
- package/dist/src/css-parser.cjs.map +1 -0
- package/dist/src/css-parser.d.ts +100 -0
- package/dist/src/css-parser.js +1098 -0
- package/dist/src/css-parser.js.map +1 -0
- package/dist/src/css-parser.mjs +2028 -0
- package/dist/src/css-parser.mjs.map +1 -0
- package/dist/src/design-system.d.ts +210 -0
- package/dist/src/design-system.js +1034 -0
- package/dist/src/design-system.js.map +1 -0
- package/dist/src/engine/ast.d.ts +44 -0
- package/dist/src/engine/ast.js +92 -0
- package/dist/src/engine/ast.js.map +1 -0
- package/dist/src/engine/atom.d.ts +74 -0
- package/dist/src/engine/atom.js +227 -0
- package/dist/src/engine/atom.js.map +1 -0
- package/dist/src/engine/compile.d.ts +5 -0
- package/dist/src/engine/compile.js +79 -0
- package/dist/src/engine/compile.js.map +1 -0
- package/dist/src/engine/defaults.d.ts +2 -0
- package/dist/src/engine/defaults.js +14 -0
- package/dist/src/engine/defaults.js.map +1 -0
- package/dist/src/engine/directives.d.ts +2 -0
- package/dist/src/engine/directives.js +191 -0
- package/dist/src/engine/directives.js.map +1 -0
- package/dist/src/engine/index.d.ts +41 -0
- package/dist/src/engine/index.js +88 -0
- package/dist/src/engine/index.js.map +1 -0
- package/dist/src/engine/registry.d.ts +46 -0
- package/dist/src/engine/registry.js +49 -0
- package/dist/src/engine/registry.js.map +1 -0
- package/dist/src/engine/scanner.d.ts +1 -0
- package/dist/src/engine/scanner.js +45 -0
- package/dist/src/engine/scanner.js.map +1 -0
- package/dist/src/engine/source.d.ts +12 -0
- package/dist/src/engine/source.js +81 -0
- package/dist/src/engine/source.js.map +1 -0
- package/dist/src/engine/theme-defaults.d.ts +2 -0
- package/dist/src/engine/theme-defaults.js +54 -0
- package/dist/src/engine/theme-defaults.js.map +1 -0
- package/dist/src/engine/theme-source.d.ts +5 -0
- package/dist/src/engine/theme-source.js +71 -0
- package/dist/src/engine/theme-source.js.map +1 -0
- package/dist/src/engine/theme.d.ts +10 -0
- package/dist/src/engine/theme.js +42 -0
- package/dist/src/engine/theme.js.map +1 -0
- package/dist/src/engine/transform.d.ts +25 -0
- package/dist/src/engine/transform.js +91 -0
- package/dist/src/engine/transform.js.map +1 -0
- package/dist/src/engine/ui-preset.d.ts +4 -0
- package/dist/src/engine/ui-preset.js +56 -0
- package/dist/src/engine/ui-preset.js.map +1 -0
- package/dist/src/engine/utilities/backgrounds.d.ts +2 -0
- package/dist/src/engine/utilities/backgrounds.js +32 -0
- package/dist/src/engine/utilities/backgrounds.js.map +1 -0
- package/dist/src/engine/utilities/borders.d.ts +2 -0
- package/dist/src/engine/utilities/borders.js +95 -0
- package/dist/src/engine/utilities/borders.js.map +1 -0
- package/dist/src/engine/utilities/effects.d.ts +2 -0
- package/dist/src/engine/utilities/effects.js +61 -0
- package/dist/src/engine/utilities/effects.js.map +1 -0
- package/dist/src/engine/utilities/flexgrid.d.ts +2 -0
- package/dist/src/engine/utilities/flexgrid.js +125 -0
- package/dist/src/engine/utilities/flexgrid.js.map +1 -0
- package/dist/src/engine/utilities/index.d.ts +3 -0
- package/dist/src/engine/utilities/index.js +20 -0
- package/dist/src/engine/utilities/index.js.map +1 -0
- package/dist/src/engine/utilities/layout.d.ts +2 -0
- package/dist/src/engine/utilities/layout.js +84 -0
- package/dist/src/engine/utilities/layout.js.map +1 -0
- package/dist/src/engine/utilities/sizing.d.ts +2 -0
- package/dist/src/engine/utilities/sizing.js +21 -0
- package/dist/src/engine/utilities/sizing.js.map +1 -0
- package/dist/src/engine/utilities/spacing.d.ts +2 -0
- package/dist/src/engine/utilities/spacing.js +39 -0
- package/dist/src/engine/utilities/spacing.js.map +1 -0
- package/dist/src/engine/utilities/typography.d.ts +2 -0
- package/dist/src/engine/utilities/typography.js +120 -0
- package/dist/src/engine/utilities/typography.js.map +1 -0
- package/dist/src/engine/utilities/values.d.ts +16 -0
- package/dist/src/engine/utilities/values.js +91 -0
- package/dist/src/engine/utilities/values.js.map +1 -0
- package/dist/src/engine/variants.d.ts +2 -0
- package/dist/src/engine/variants.js +99 -0
- package/dist/src/engine/variants.js.map +1 -0
- package/dist/src/extractor.d.ts +146 -0
- package/dist/src/extractor.js +3862 -0
- package/dist/src/extractor.js.map +1 -0
- package/dist/src/index.cjs +4518 -0
- package/dist/src/index.cjs.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs +4480 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/src/keyframes.cjs +367 -0
- package/dist/src/keyframes.cjs.map +1 -0
- package/dist/src/keyframes.d.ts +27 -0
- package/dist/src/keyframes.js +188 -0
- package/dist/src/keyframes.js.map +1 -0
- package/dist/src/keyframes.mjs +362 -0
- package/dist/src/keyframes.mjs.map +1 -0
- package/dist/src/logger.d.ts +2 -0
- package/dist/src/logger.js +31 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/plugin.cjs +43 -0
- package/dist/src/plugin.cjs.map +1 -0
- package/dist/src/plugin.d.ts +12 -0
- package/dist/src/plugin.js +39 -0
- package/dist/src/plugin.js.map +1 -0
- package/dist/src/plugin.mjs +41 -0
- package/dist/src/plugin.mjs.map +1 -0
- package/dist/src/presets-plugins.cjs +99 -0
- package/dist/src/presets-plugins.cjs.map +1 -0
- package/dist/src/presets-plugins.d.ts +1 -0
- package/dist/src/presets-plugins.js +56 -0
- package/dist/src/presets-plugins.js.map +1 -0
- package/dist/src/presets-plugins.mjs +97 -0
- package/dist/src/presets-plugins.mjs.map +1 -0
- package/dist/src/state.d.ts +76 -0
- package/dist/src/state.js +314 -0
- package/dist/src/state.js.map +1 -0
- package/dist/src/theme/constants.d.ts +22 -0
- package/dist/src/theme/constants.js +17 -0
- package/dist/src/theme/constants.js.map +1 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/theme/index.js +48 -0
- package/dist/src/theme/index.js.map +1 -0
- package/dist/src/theme/types.d.ts +13 -0
- package/dist/src/theme/types.js +2 -0
- package/dist/src/theme/types.js.map +1 -0
- package/dist/src/types/ast.d.ts +23 -0
- package/dist/src/types/ast.js +2 -0
- package/dist/src/types/ast.js.map +1 -0
- package/dist/src/types/base-types.d.ts +53 -0
- package/dist/src/types/base-types.js +2 -0
- package/dist/src/types/base-types.js.map +1 -0
- package/dist/src/types/components-types.d.ts +28 -0
- package/dist/src/types/components-types.js +2 -0
- package/dist/src/types/components-types.js.map +1 -0
- package/dist/src/types/config.d.ts +90 -0
- package/dist/src/types/config.js +3 -0
- package/dist/src/types/config.js.map +1 -0
- package/dist/src/types/css-parser.d.ts +361 -0
- package/dist/src/types/css-parser.js +2 -0
- package/dist/src/types/css-parser.js.map +1 -0
- package/dist/src/types/keyframes-type.d.ts +47 -0
- package/dist/src/types/keyframes-type.js +2 -0
- package/dist/src/types/keyframes-type.js.map +1 -0
- package/dist/src/types/plugin.d.ts +10 -0
- package/dist/src/types/plugin.js +2 -0
- package/dist/src/types/plugin.js.map +1 -0
- package/dist/src/types/screens-types.d.ts +47 -0
- package/dist/src/types/screens-types.js +2 -0
- package/dist/src/types/screens-types.js.map +1 -0
- package/dist/src/types/utilities-types.d.ts +147 -0
- package/dist/src/types/utilities-types.js +2 -0
- package/dist/src/types/utilities-types.js.map +1 -0
- package/dist/src/types.d.ts +77 -0
- package/dist/src/types.js +12 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/units/constants.d.ts +35 -0
- package/dist/src/units/constants.js +9 -0
- package/dist/src/units/constants.js.map +1 -0
- package/dist/src/units/index.d.ts +15 -0
- package/dist/src/units/index.js +7 -0
- package/dist/src/units/index.js.map +1 -0
- package/dist/src/units/types.d.ts +9 -0
- package/dist/src/units/types.js +2 -0
- package/dist/src/units/types.js.map +1 -0
- package/dist/src/utilities/backgrounds/constants.d.ts +2810 -0
- package/dist/src/utilities/backgrounds/constants.js +119 -0
- package/dist/src/utilities/backgrounds/constants.js.map +1 -0
- package/dist/src/utilities/backgrounds/index.d.ts +1 -0
- package/dist/src/utilities/backgrounds/index.js +2 -0
- package/dist/src/utilities/backgrounds/index.js.map +1 -0
- package/dist/src/utilities/borders/constants.d.ts +10586 -0
- package/dist/src/utilities/borders/constants.js +309 -0
- package/dist/src/utilities/borders/constants.js.map +1 -0
- package/dist/src/utilities/borders/index.d.ts +1 -0
- package/dist/src/utilities/borders/index.js +2 -0
- package/dist/src/utilities/borders/index.js.map +1 -0
- package/dist/src/utilities/breakpoints/constants.d.ts +330 -0
- package/dist/src/utilities/breakpoints/constants.js +269 -0
- package/dist/src/utilities/breakpoints/constants.js.map +1 -0
- package/dist/src/utilities/breakpoints/index.d.ts +2 -0
- package/dist/src/utilities/breakpoints/index.js +3 -0
- package/dist/src/utilities/breakpoints/index.js.map +1 -0
- package/dist/src/utilities/breakpoints/types.d.ts +8 -0
- package/dist/src/utilities/breakpoints/types.js +2 -0
- package/dist/src/utilities/breakpoints/types.js.map +1 -0
- package/dist/src/utilities/colors/base.d.ts +778 -0
- package/dist/src/utilities/colors/base.js +872 -0
- package/dist/src/utilities/colors/base.js.map +1 -0
- package/dist/src/utilities/colors/color.d.ts +1122 -0
- package/dist/src/utilities/colors/color.js +957 -0
- package/dist/src/utilities/colors/color.js.map +1 -0
- package/dist/src/utilities/colors/constants.d.ts +1 -0
- package/dist/src/utilities/colors/constants.js +2 -0
- package/dist/src/utilities/colors/constants.js.map +1 -0
- package/dist/src/utilities/colors/index.d.ts +4 -0
- package/dist/src/utilities/colors/index.js +29 -0
- package/dist/src/utilities/colors/index.js.map +1 -0
- package/dist/src/utilities/colors/types.d.ts +3 -0
- package/dist/src/utilities/colors/types.js +2 -0
- package/dist/src/utilities/colors/types.js.map +1 -0
- package/dist/src/utilities/effects/constants.d.ts +641 -0
- package/dist/src/utilities/effects/constants.js +83 -0
- package/dist/src/utilities/effects/constants.js.map +1 -0
- package/dist/src/utilities/effects/index.d.ts +1 -0
- package/dist/src/utilities/effects/index.js +2 -0
- package/dist/src/utilities/effects/index.js.map +1 -0
- package/dist/src/utilities/filters/constants.d.ts +406 -0
- package/dist/src/utilities/filters/constants.js +206 -0
- package/dist/src/utilities/filters/constants.js.map +1 -0
- package/dist/src/utilities/filters/index.d.ts +1 -0
- package/dist/src/utilities/filters/index.js +2 -0
- package/dist/src/utilities/filters/index.js.map +1 -0
- package/dist/src/utilities/flex/constants.d.ts +934 -0
- package/dist/src/utilities/flex/constants.js +221 -0
- package/dist/src/utilities/flex/constants.js.map +1 -0
- package/dist/src/utilities/flex/index.d.ts +1 -0
- package/dist/src/utilities/flex/index.js +2 -0
- package/dist/src/utilities/flex/index.js.map +1 -0
- package/dist/src/utilities/flex/types.d.ts +0 -0
- package/dist/src/utilities/flex/types.js +4 -0
- package/dist/src/utilities/flex/types.js.map +1 -0
- package/dist/src/utilities/index.d.ts +31338 -0
- package/dist/src/utilities/index.js +333 -0
- package/dist/src/utilities/index.js.map +1 -0
- package/dist/src/utilities/interactivity/constants.d.ts +1244 -0
- package/dist/src/utilities/interactivity/constants.js +165 -0
- package/dist/src/utilities/interactivity/constants.js.map +1 -0
- package/dist/src/utilities/interactivity/index.d.ts +1 -0
- package/dist/src/utilities/interactivity/index.js +2 -0
- package/dist/src/utilities/interactivity/index.js.map +1 -0
- package/dist/src/utilities/layout/constants.d.ts +837 -0
- package/dist/src/utilities/layout/constants.js +159 -0
- package/dist/src/utilities/layout/constants.js.map +1 -0
- package/dist/src/utilities/layout/index.d.ts +1 -0
- package/dist/src/utilities/layout/index.js +2 -0
- package/dist/src/utilities/layout/index.js.map +1 -0
- package/dist/src/utilities/layout/types.d.ts +0 -0
- package/dist/src/utilities/layout/types.js +2 -0
- package/dist/src/utilities/layout/types.js.map +1 -0
- package/dist/src/utilities/sizing/constants.d.ts +989 -0
- package/dist/src/utilities/sizing/constants.js +53 -0
- package/dist/src/utilities/sizing/constants.js.map +1 -0
- package/dist/src/utilities/sizing/index.d.ts +2 -0
- package/dist/src/utilities/sizing/index.js +3 -0
- package/dist/src/utilities/sizing/index.js.map +1 -0
- package/dist/src/utilities/sizing/types.d.ts +10 -0
- package/dist/src/utilities/sizing/types.js +2 -0
- package/dist/src/utilities/sizing/types.js.map +1 -0
- package/dist/src/utilities/spacing/constants.d.ts +1779 -0
- package/dist/src/utilities/spacing/constants.js +142 -0
- package/dist/src/utilities/spacing/constants.js.map +1 -0
- package/dist/src/utilities/spacing/index.d.ts +2 -0
- package/dist/src/utilities/spacing/index.js +3 -0
- package/dist/src/utilities/spacing/index.js.map +1 -0
- package/dist/src/utilities/spacing/types.d.ts +15 -0
- package/dist/src/utilities/spacing/types.js +8 -0
- package/dist/src/utilities/spacing/types.js.map +1 -0
- package/dist/src/utilities/svg/constants.d.ts +1062 -0
- package/dist/src/utilities/svg/constants.js +34 -0
- package/dist/src/utilities/svg/constants.js.map +1 -0
- package/dist/src/utilities/transforms/constants.d.ts +247 -0
- package/dist/src/utilities/transforms/constants.js +74 -0
- package/dist/src/utilities/transforms/constants.js.map +1 -0
- package/dist/src/utilities/transforms/index.d.ts +1 -0
- package/dist/src/utilities/transforms/index.js +2 -0
- package/dist/src/utilities/transforms/index.js.map +1 -0
- package/dist/src/utilities/transitions/constants.d.ts +116 -0
- package/dist/src/utilities/transitions/constants.js +91 -0
- package/dist/src/utilities/transitions/constants.js.map +1 -0
- package/dist/src/utilities/transitions/index.d.ts +1 -0
- package/dist/src/utilities/transitions/index.js +2 -0
- package/dist/src/utilities/transitions/index.js.map +1 -0
- package/dist/src/utilities/typography/constants.d.ts +2401 -0
- package/dist/src/utilities/typography/constants.js +401 -0
- package/dist/src/utilities/typography/constants.js.map +1 -0
- package/dist/src/utilities/typography/index.d.ts +1 -0
- package/dist/src/utilities/typography/index.js +2 -0
- package/dist/src/utilities/typography/index.js.map +1 -0
- package/dist/src/utils.d.ts +18 -0
- package/dist/src/utils.js +282 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/src/watcher.d.ts +15 -0
- package/dist/src/watcher.js +62 -0
- package/dist/src/watcher.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utilities.css +1 -0
- package/index.css +2 -0
- package/package.json +139 -0
- package/reset.css +168 -0
- package/utilities.css +1 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
export interface AstImport {
|
|
2
|
+
parent?: string;
|
|
3
|
+
node: string;
|
|
4
|
+
file: string;
|
|
5
|
+
source: any;
|
|
6
|
+
atImport?: StyleSheet;
|
|
7
|
+
match?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LocationPosition {
|
|
10
|
+
line: number;
|
|
11
|
+
column: number;
|
|
12
|
+
offset: number;
|
|
13
|
+
}
|
|
14
|
+
export interface Location {
|
|
15
|
+
start: LocationPosition;
|
|
16
|
+
end: LocationPosition;
|
|
17
|
+
source?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CssValue {
|
|
20
|
+
type: 'value' | 'function' | 'dimension' | 'percentage' | 'number' | 'string' | 'color' | 'url' | 'identifier' | 'operator' | 'white-space' | 'comma' | 'parentheses' | 'brackets' | 'braces';
|
|
21
|
+
value: string | number;
|
|
22
|
+
unit?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
args?: CssValue[];
|
|
25
|
+
loc?: Location;
|
|
26
|
+
}
|
|
27
|
+
export interface CssSelector {
|
|
28
|
+
type: 'selector' | 'class' | 'id' | 'type' | 'attribute' | 'pseudo-class' | 'pseudo-element' | 'combinator' | 'universal';
|
|
29
|
+
value: string;
|
|
30
|
+
loc?: Location;
|
|
31
|
+
children?: CssSelector[];
|
|
32
|
+
operator?: string;
|
|
33
|
+
attribute?: {
|
|
34
|
+
name: string;
|
|
35
|
+
operator?: string;
|
|
36
|
+
value?: string;
|
|
37
|
+
flags?: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface CssDeclaration {
|
|
41
|
+
type: 'declaration';
|
|
42
|
+
property: string;
|
|
43
|
+
value: CssValue[];
|
|
44
|
+
/** Raw unparsed value string — preferred for serialization */
|
|
45
|
+
rawValue?: string;
|
|
46
|
+
important: boolean;
|
|
47
|
+
loc?: Location;
|
|
48
|
+
vendorPrefix?: string;
|
|
49
|
+
customProperty?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface CssRule {
|
|
52
|
+
type: 'rule';
|
|
53
|
+
selectors: CssSelector[];
|
|
54
|
+
declarations: CssDeclaration[];
|
|
55
|
+
/** Raw selector text as it appeared in the source */
|
|
56
|
+
rawSelector?: string;
|
|
57
|
+
/** Nested rules / at-rules (CSS nesting) */
|
|
58
|
+
children?: (CssRule | CssAtRule)[];
|
|
59
|
+
loc?: Location;
|
|
60
|
+
specificity?: {
|
|
61
|
+
ids: number;
|
|
62
|
+
classes: number;
|
|
63
|
+
elements: number;
|
|
64
|
+
total: number;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface CssAtRule {
|
|
68
|
+
type: 'atrule';
|
|
69
|
+
name: string;
|
|
70
|
+
prelude?: CssValue[];
|
|
71
|
+
/** Raw prelude text as it appeared in the source */
|
|
72
|
+
preludeText?: string;
|
|
73
|
+
block?: {
|
|
74
|
+
type: 'block';
|
|
75
|
+
children: (CssRule | CssAtRule | CssDeclaration | CssComment | CssKeyframe)[];
|
|
76
|
+
loc?: Location;
|
|
77
|
+
};
|
|
78
|
+
loc?: Location;
|
|
79
|
+
vendorPrefix?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface GenerateOptions {
|
|
82
|
+
/** Remove all whitespace and newlines. Default: false */
|
|
83
|
+
minify?: boolean;
|
|
84
|
+
/** Indentation string. Default: ' ' */
|
|
85
|
+
indent?: string;
|
|
86
|
+
/** Newline string. Default: '\n' */
|
|
87
|
+
newline?: string;
|
|
88
|
+
/** Include comments in output. Default: true */
|
|
89
|
+
comments?: boolean;
|
|
90
|
+
/** Called after a rule is serialized. Return a modified string or the original. */
|
|
91
|
+
onRule?: (rule: CssRule, css: string) => string;
|
|
92
|
+
/** Called after an at-rule is serialized. Return a modified string or the original. */
|
|
93
|
+
onAtRule?: (atRule: CssAtRule, css: string) => string;
|
|
94
|
+
/** Called after a declaration is serialized. Return a modified string or the original. */
|
|
95
|
+
onDeclaration?: (decl: CssDeclaration, css: string) => string;
|
|
96
|
+
/** Called after a comment is serialized. Return a modified string or the original. */
|
|
97
|
+
onComment?: (comment: CssComment, css: string) => string;
|
|
98
|
+
/** Called after a keyframe stop is serialized. Return a modified string or the original. */
|
|
99
|
+
onKeyframe?: (keyframe: CssKeyframe, css: string) => string;
|
|
100
|
+
}
|
|
101
|
+
export interface CssComment {
|
|
102
|
+
type: 'comment';
|
|
103
|
+
value: string;
|
|
104
|
+
loc?: Location;
|
|
105
|
+
style?: 'single-line' | 'multi-line';
|
|
106
|
+
}
|
|
107
|
+
export interface CssMediaQuery {
|
|
108
|
+
type: 'media-query';
|
|
109
|
+
media: string;
|
|
110
|
+
features: Array<{
|
|
111
|
+
name: string;
|
|
112
|
+
value?: string;
|
|
113
|
+
operator?: string;
|
|
114
|
+
}>;
|
|
115
|
+
loc?: Location;
|
|
116
|
+
}
|
|
117
|
+
export interface CssKeyframe {
|
|
118
|
+
type: 'keyframe';
|
|
119
|
+
selector: string;
|
|
120
|
+
declarations: CssDeclaration[];
|
|
121
|
+
loc?: Location;
|
|
122
|
+
}
|
|
123
|
+
export interface CssKeyframesRule extends CssAtRule {
|
|
124
|
+
type: 'atrule';
|
|
125
|
+
name: 'keyframes' | '-webkit-keyframes' | '-moz-keyframes' | '-o-keyframes';
|
|
126
|
+
keyframes: CssKeyframe[];
|
|
127
|
+
}
|
|
128
|
+
export interface CssFontFaceRule extends CssAtRule {
|
|
129
|
+
type: 'atrule';
|
|
130
|
+
name: 'font-face';
|
|
131
|
+
declarations: CssDeclaration[];
|
|
132
|
+
}
|
|
133
|
+
export interface CssImportRule extends CssAtRule {
|
|
134
|
+
type: 'atrule';
|
|
135
|
+
name: 'import';
|
|
136
|
+
url: string;
|
|
137
|
+
media?: string;
|
|
138
|
+
layer?: string;
|
|
139
|
+
supports?: string;
|
|
140
|
+
}
|
|
141
|
+
export interface CssNamespaceRule extends CssAtRule {
|
|
142
|
+
type: 'atrule';
|
|
143
|
+
name: 'namespace';
|
|
144
|
+
prefix?: string;
|
|
145
|
+
url: string;
|
|
146
|
+
}
|
|
147
|
+
export interface CssLayerRule extends CssAtRule {
|
|
148
|
+
type: 'atrule';
|
|
149
|
+
name: 'layer';
|
|
150
|
+
layerName?: string;
|
|
151
|
+
rules: (CssRule | CssAtRule)[];
|
|
152
|
+
}
|
|
153
|
+
export interface CssContainerRule extends CssAtRule {
|
|
154
|
+
type: 'atrule';
|
|
155
|
+
name: 'container';
|
|
156
|
+
containerName?: string;
|
|
157
|
+
containerQuery?: string;
|
|
158
|
+
rules: (CssRule | CssAtRule)[];
|
|
159
|
+
}
|
|
160
|
+
export interface CssSupportsRule extends CssAtRule {
|
|
161
|
+
type: 'atrule';
|
|
162
|
+
name: 'supports';
|
|
163
|
+
condition: string;
|
|
164
|
+
rules: (CssRule | CssAtRule)[];
|
|
165
|
+
}
|
|
166
|
+
export interface CssDocumentRule extends CssAtRule {
|
|
167
|
+
type: 'atrule';
|
|
168
|
+
name: 'document';
|
|
169
|
+
functions: string[];
|
|
170
|
+
rules: (CssRule | CssAtRule)[];
|
|
171
|
+
}
|
|
172
|
+
export interface CssPageRule extends CssAtRule {
|
|
173
|
+
type: 'atrule';
|
|
174
|
+
name: 'page';
|
|
175
|
+
selector?: string;
|
|
176
|
+
pseudoPage?: string;
|
|
177
|
+
declarations: CssDeclaration[];
|
|
178
|
+
}
|
|
179
|
+
export interface CssCounterStyleRule extends CssAtRule {
|
|
180
|
+
type: 'atrule';
|
|
181
|
+
name: 'counter-style';
|
|
182
|
+
declarations: CssDeclaration[];
|
|
183
|
+
}
|
|
184
|
+
export interface CssFontFeatureValuesRule extends CssAtRule {
|
|
185
|
+
type: 'atrule';
|
|
186
|
+
name: 'font-feature-values';
|
|
187
|
+
fontFamily: string;
|
|
188
|
+
featureValues: Array<{
|
|
189
|
+
type: 'feature-type';
|
|
190
|
+
name: string;
|
|
191
|
+
values: Array<{
|
|
192
|
+
type: 'value';
|
|
193
|
+
value: string;
|
|
194
|
+
}>;
|
|
195
|
+
}>;
|
|
196
|
+
}
|
|
197
|
+
export interface CssViewportRule extends CssAtRule {
|
|
198
|
+
type: 'atrule';
|
|
199
|
+
name: 'viewport';
|
|
200
|
+
declarations: CssDeclaration[];
|
|
201
|
+
}
|
|
202
|
+
export interface CssCharsetRule extends CssAtRule {
|
|
203
|
+
type: 'atrule';
|
|
204
|
+
name: 'charset';
|
|
205
|
+
encoding: string;
|
|
206
|
+
}
|
|
207
|
+
export type CssAstNode = CssStylesheet | CssRule | CssAtRule | CssDeclaration | CssComment | CssSelector | CssValue | CssKeyframe | CssKeyframesRule | CssFontFaceRule | CssImportRule | CssNamespaceRule | CssLayerRule | CssContainerRule | CssSupportsRule | CssDocumentRule | CssPageRule | CssCounterStyleRule | CssFontFeatureValuesRule | CssViewportRule | CssCharsetRule;
|
|
208
|
+
export interface CssStylesheet {
|
|
209
|
+
type: 'stylesheet';
|
|
210
|
+
children: CssAstNode[];
|
|
211
|
+
loc?: Location;
|
|
212
|
+
source?: string;
|
|
213
|
+
charset?: string;
|
|
214
|
+
imports: CssImportRule[];
|
|
215
|
+
namespaces: CssNamespaceRule[];
|
|
216
|
+
mediaQueries: CssMediaQuery[];
|
|
217
|
+
keyframes: CssKeyframesRule[];
|
|
218
|
+
fontFaces: CssFontFaceRule[];
|
|
219
|
+
layers: CssLayerRule[];
|
|
220
|
+
containers: CssContainerRule[];
|
|
221
|
+
supports: CssSupportsRule[];
|
|
222
|
+
documents: CssDocumentRule[];
|
|
223
|
+
pages: CssPageRule[];
|
|
224
|
+
counterStyles: CssCounterStyleRule[];
|
|
225
|
+
fontFeatureValues: CssFontFeatureValuesRule[];
|
|
226
|
+
viewports: CssViewportRule[];
|
|
227
|
+
charsets: CssCharsetRule[];
|
|
228
|
+
}
|
|
229
|
+
/** Context passed to walk callbacks. */
|
|
230
|
+
export interface WalkContext {
|
|
231
|
+
/** The parent node, or null at the top level. */
|
|
232
|
+
parent: CssAstNode | null;
|
|
233
|
+
/** Index of this node within the parent's children array. */
|
|
234
|
+
index: number;
|
|
235
|
+
/** Depth from root (stylesheet = 0). */
|
|
236
|
+
depth: number;
|
|
237
|
+
/** Stop walking entirely. */
|
|
238
|
+
stop(): void;
|
|
239
|
+
/** Remove this node from its parent. */
|
|
240
|
+
remove(): void;
|
|
241
|
+
/** Replace this node with another. */
|
|
242
|
+
replace(node: CssAstNode): void;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Visitor map for typed walk().
|
|
246
|
+
* Each handler receives the node and a WalkContext.
|
|
247
|
+
* Return value is ignored — use ctx.replace() / ctx.remove() / ctx.stop() instead.
|
|
248
|
+
*/
|
|
249
|
+
export interface WalkVisitor {
|
|
250
|
+
stylesheet?: (node: CssStylesheet, ctx: WalkContext) => void;
|
|
251
|
+
rule?: (node: CssRule, ctx: WalkContext) => void;
|
|
252
|
+
atrule?: (node: CssAtRule, ctx: WalkContext) => void;
|
|
253
|
+
declaration?: (node: CssDeclaration, ctx: WalkContext) => void;
|
|
254
|
+
comment?: (node: CssComment, ctx: WalkContext) => void;
|
|
255
|
+
keyframe?: (node: CssKeyframe, ctx: WalkContext) => void;
|
|
256
|
+
/** Catch-all called for every node (after the typed handler, if any). */
|
|
257
|
+
enter?: (node: CssAstNode, ctx: WalkContext) => void;
|
|
258
|
+
/** Called after all children have been visited. */
|
|
259
|
+
leave?: (node: CssAstNode, ctx: WalkContext) => void;
|
|
260
|
+
}
|
|
261
|
+
export interface CssParserOptions {
|
|
262
|
+
parseAtrulePrelude?: boolean;
|
|
263
|
+
parseValue?: boolean;
|
|
264
|
+
parseCustomProperty?: boolean;
|
|
265
|
+
parseRulePrelude?: boolean;
|
|
266
|
+
parseSelector?: boolean;
|
|
267
|
+
includeComments?: boolean;
|
|
268
|
+
includeSourceMaps?: boolean;
|
|
269
|
+
includeSpecificity?: boolean;
|
|
270
|
+
includeVendorPrefixes?: boolean;
|
|
271
|
+
onError?: (error: CssParseError) => void;
|
|
272
|
+
onWarning?: (warning: CssParseWarning) => void;
|
|
273
|
+
maxDepth?: number;
|
|
274
|
+
maxNodes?: number;
|
|
275
|
+
enableNesting?: boolean;
|
|
276
|
+
enableCustomProperties?: boolean;
|
|
277
|
+
enableLogicalProperties?: boolean;
|
|
278
|
+
enableContainerQueries?: boolean;
|
|
279
|
+
enableLayerQueries?: boolean;
|
|
280
|
+
enableSupportsQueries?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Called after a rule is parsed.
|
|
283
|
+
* Return a modified/new rule, null to drop it, or void to keep as-is.
|
|
284
|
+
*/
|
|
285
|
+
onRule?: (rule: CssRule) => CssRule | null | void;
|
|
286
|
+
/**
|
|
287
|
+
* Called after an at-rule is parsed.
|
|
288
|
+
* Return a modified/new at-rule, null to drop it, or void to keep as-is.
|
|
289
|
+
*/
|
|
290
|
+
onAtRule?: (atRule: CssAtRule) => CssAtRule | null | void;
|
|
291
|
+
/**
|
|
292
|
+
* Called after a declaration is parsed.
|
|
293
|
+
* Return a modified/new declaration, null to drop it, or void to keep as-is.
|
|
294
|
+
*/
|
|
295
|
+
onDeclaration?: (decl: CssDeclaration) => CssDeclaration | null | void;
|
|
296
|
+
/**
|
|
297
|
+
* Called after a comment node is parsed.
|
|
298
|
+
* Return a modified/new comment, null to drop it, or void to keep as-is.
|
|
299
|
+
*/
|
|
300
|
+
onComment?: (comment: CssComment) => CssComment | null | void;
|
|
301
|
+
/**
|
|
302
|
+
* Called after a keyframe stop is parsed.
|
|
303
|
+
* Return a modified/new keyframe, null to drop it, or void to keep as-is.
|
|
304
|
+
*/
|
|
305
|
+
onKeyframe?: (keyframe: CssKeyframe) => CssKeyframe | null | void;
|
|
306
|
+
}
|
|
307
|
+
export interface CssParseError {
|
|
308
|
+
type: 'parse-error';
|
|
309
|
+
message: string;
|
|
310
|
+
loc?: Location;
|
|
311
|
+
code: string;
|
|
312
|
+
severity: 'error' | 'warning' | 'info';
|
|
313
|
+
suggestion?: string;
|
|
314
|
+
}
|
|
315
|
+
export interface CssParseWarning {
|
|
316
|
+
type: 'parse-warning';
|
|
317
|
+
message: string;
|
|
318
|
+
loc?: Location;
|
|
319
|
+
code: string;
|
|
320
|
+
suggestion?: string;
|
|
321
|
+
}
|
|
322
|
+
export interface CssParserStats {
|
|
323
|
+
totalNodes: number;
|
|
324
|
+
totalRules: number;
|
|
325
|
+
totalDeclarations: number;
|
|
326
|
+
totalAtRules: number;
|
|
327
|
+
totalComments: number;
|
|
328
|
+
totalSelectors: number;
|
|
329
|
+
totalValues: number;
|
|
330
|
+
parseTime: number;
|
|
331
|
+
memoryUsage: number;
|
|
332
|
+
errors: number;
|
|
333
|
+
warnings: number;
|
|
334
|
+
}
|
|
335
|
+
export interface AstNode {
|
|
336
|
+
kind: 'rule' | 'atrule' | 'decl' | 'comment' | 'other';
|
|
337
|
+
name?: string;
|
|
338
|
+
value?: string;
|
|
339
|
+
important?: boolean | string;
|
|
340
|
+
children?: AstNode[];
|
|
341
|
+
loc: any;
|
|
342
|
+
node: string;
|
|
343
|
+
cssNode: any;
|
|
344
|
+
parents: string[];
|
|
345
|
+
selectors?: (Omit<AstNode, 'kind'> & {
|
|
346
|
+
kind: 'rule';
|
|
347
|
+
})[];
|
|
348
|
+
}
|
|
349
|
+
export interface AstImport {
|
|
350
|
+
parent?: string;
|
|
351
|
+
node: string;
|
|
352
|
+
file: string;
|
|
353
|
+
source: any;
|
|
354
|
+
atImport?: StyleSheet;
|
|
355
|
+
match?: string;
|
|
356
|
+
resolved?: boolean;
|
|
357
|
+
dependencies?: string[];
|
|
358
|
+
media?: string;
|
|
359
|
+
layer?: string;
|
|
360
|
+
supports?: string;
|
|
361
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-parser.js","sourceRoot":"","sources":["../../../src/types/css-parser.ts"],"names":[],"mappings":"","sourcesContent":["export interface AstImport {\n parent?: string,\n node: string,\n file: string,\n source: any,\n atImport?: StyleSheet,\n match?: string\n}\n\nexport interface LocationPosition{\n line: number;\n column: number;\n offset: number;\n}\n\n// Enhanced location interface\nexport interface Location {\n start: LocationPosition;\n end: LocationPosition;\n source?: string;\n}\n\n// CSS Value types\nexport interface CssValue {\n type: 'value' | 'function' | 'dimension' | 'percentage' | 'number' | 'string' | 'color' | 'url' | 'identifier' | 'operator' | 'white-space' | 'comma' | 'parentheses' | 'brackets' | 'braces';\n value: string | number;\n unit?: string;\n name?: string;\n args?: CssValue[];\n loc?: Location;\n}\n\n// CSS Selector types\nexport interface CssSelector {\n type: 'selector' | 'class' | 'id' | 'type' | 'attribute' | 'pseudo-class' | 'pseudo-element' | 'combinator' | 'universal';\n value: string;\n loc?: Location;\n children?: CssSelector[];\n operator?: string;\n attribute?: {\n name: string;\n operator?: string;\n value?: string;\n flags?: string;\n };\n}\n\n// CSS Declaration types\nexport interface CssDeclaration {\n type: 'declaration';\n property: string;\n value: CssValue[];\n /** Raw unparsed value string — preferred for serialization */\n rawValue?: string;\n important: boolean;\n loc?: Location;\n vendorPrefix?: string;\n customProperty?: boolean;\n}\n\n// CSS Rule types\nexport interface CssRule {\n type: 'rule';\n selectors: CssSelector[];\n declarations: CssDeclaration[];\n /** Raw selector text as it appeared in the source */\n rawSelector?: string;\n /** Nested rules / at-rules (CSS nesting) */\n children?: (CssRule | CssAtRule)[];\n loc?: Location;\n specificity?: {\n ids: number;\n classes: number;\n elements: number;\n total: number;\n };\n}\n\n// CSS At-rule types\nexport interface CssAtRule {\n type: 'atrule';\n name: string;\n prelude?: CssValue[];\n /** Raw prelude text as it appeared in the source */\n preludeText?: string;\n block?: {\n type: 'block';\n children: (CssRule | CssAtRule | CssDeclaration | CssComment | CssKeyframe)[];\n loc?: Location;\n };\n loc?: Location;\n vendorPrefix?: string;\n}\n\n// CSS generator options\nexport interface GenerateOptions {\n /** Remove all whitespace and newlines. Default: false */\n minify?: boolean;\n /** Indentation string. Default: ' ' */\n indent?: string;\n /** Newline string. Default: '\\n' */\n newline?: string;\n /** Include comments in output. Default: true */\n comments?: boolean;\n\n // ── Generator middleware ──────────────────────────────────────────────────\n /** Called after a rule is serialized. Return a modified string or the original. */\n onRule?: (rule: CssRule, css: string) => string;\n /** Called after an at-rule is serialized. Return a modified string or the original. */\n onAtRule?: (atRule: CssAtRule, css: string) => string;\n /** Called after a declaration is serialized. Return a modified string or the original. */\n onDeclaration?: (decl: CssDeclaration, css: string) => string;\n /** Called after a comment is serialized. Return a modified string or the original. */\n onComment?: (comment: CssComment, css: string) => string;\n /** Called after a keyframe stop is serialized. Return a modified string or the original. */\n onKeyframe?: (keyframe: CssKeyframe, css: string) => string;\n}\n\n// CSS Comment types\nexport interface CssComment {\n type: 'comment';\n value: string;\n loc?: Location;\n style?: 'single-line' | 'multi-line';\n}\n\n// CSS Media Query types\nexport interface CssMediaQuery {\n type: 'media-query';\n media: string;\n features: Array<{\n name: string;\n value?: string;\n operator?: string;\n }>;\n loc?: Location;\n}\n\n// CSS Keyframe types\nexport interface CssKeyframe {\n type: 'keyframe';\n selector: string;\n declarations: CssDeclaration[];\n loc?: Location;\n}\n\n// CSS Keyframes at-rule\nexport interface CssKeyframesRule extends CssAtRule {\n type: 'atrule';\n name: 'keyframes' | '-webkit-keyframes' | '-moz-keyframes' | '-o-keyframes';\n keyframes: CssKeyframe[];\n}\n\n// CSS Font-face at-rule\nexport interface CssFontFaceRule extends CssAtRule {\n type: 'atrule';\n name: 'font-face';\n declarations: CssDeclaration[];\n}\n\n// CSS Import at-rule\nexport interface CssImportRule extends CssAtRule {\n type: 'atrule';\n name: 'import';\n url: string;\n media?: string;\n layer?: string;\n supports?: string;\n}\n\n// CSS Namespace at-rule\nexport interface CssNamespaceRule extends CssAtRule {\n type: 'atrule';\n name: 'namespace';\n prefix?: string;\n url: string;\n}\n\n// CSS Layer at-rule\nexport interface CssLayerRule extends CssAtRule {\n type: 'atrule';\n name: 'layer';\n layerName?: string;\n rules: (CssRule | CssAtRule)[];\n}\n\n// CSS Container at-rule\nexport interface CssContainerRule extends CssAtRule {\n type: 'atrule';\n name: 'container';\n containerName?: string;\n containerQuery?: string;\n rules: (CssRule | CssAtRule)[];\n}\n\n// CSS Supports at-rule\nexport interface CssSupportsRule extends CssAtRule {\n type: 'atrule';\n name: 'supports';\n condition: string;\n rules: (CssRule | CssAtRule)[];\n}\n\n// CSS Document at-rule\nexport interface CssDocumentRule extends CssAtRule {\n type: 'atrule';\n name: 'document';\n functions: string[];\n rules: (CssRule | CssAtRule)[];\n}\n\n// CSS Page at-rule\nexport interface CssPageRule extends CssAtRule {\n type: 'atrule';\n name: 'page';\n selector?: string;\n pseudoPage?: string;\n declarations: CssDeclaration[];\n}\n\n// CSS Counter-style at-rule\nexport interface CssCounterStyleRule extends CssAtRule {\n type: 'atrule';\n name: 'counter-style';\n declarations: CssDeclaration[];\n}\n\n// CSS Font-feature-values at-rule\nexport interface CssFontFeatureValuesRule extends CssAtRule {\n type: 'atrule';\n name: 'font-feature-values';\n fontFamily: string;\n featureValues: Array<{\n type: 'feature-type';\n name: string;\n values: Array<{\n type: 'value';\n value: string;\n }>;\n }>;\n}\n\n// CSS Viewport at-rule\nexport interface CssViewportRule extends CssAtRule {\n type: 'atrule';\n name: 'viewport';\n declarations: CssDeclaration[];\n}\n\n// CSS Charset at-rule\nexport interface CssCharsetRule extends CssAtRule {\n type: 'atrule';\n name: 'charset';\n encoding: string;\n}\n\n// CSS Stylesheet\n\n\n// Union type for all CSS nodes\nexport type CssAstNode = \n | CssStylesheet\n | CssRule\n | CssAtRule\n | CssDeclaration\n | CssComment\n | CssSelector\n | CssValue\n | CssKeyframe\n | CssKeyframesRule\n | CssFontFaceRule\n | CssImportRule\n | CssNamespaceRule\n | CssLayerRule\n | CssContainerRule\n | CssSupportsRule\n | CssDocumentRule\n | CssPageRule\n | CssCounterStyleRule\n | CssFontFeatureValuesRule\n | CssViewportRule\n | CssCharsetRule;\n\nexport interface CssStylesheet {\n type: 'stylesheet';\n children: CssAstNode[];\n loc?: Location;\n source?: string;\n charset?: string;\n imports: CssImportRule[];\n namespaces: CssNamespaceRule[];\n mediaQueries: CssMediaQuery[];\n keyframes: CssKeyframesRule[];\n fontFaces: CssFontFaceRule[];\n layers: CssLayerRule[];\n containers: CssContainerRule[];\n supports: CssSupportsRule[];\n documents: CssDocumentRule[];\n pages: CssPageRule[];\n counterStyles: CssCounterStyleRule[];\n fontFeatureValues: CssFontFeatureValuesRule[];\n viewports: CssViewportRule[];\n charsets: CssCharsetRule[];\n}\n\n// ── AST walker ───────────────────────────────────────────────────────────────\n\n/** Context passed to walk callbacks. */\nexport interface WalkContext {\n /** The parent node, or null at the top level. */\n parent: CssAstNode | null;\n /** Index of this node within the parent's children array. */\n index: number;\n /** Depth from root (stylesheet = 0). */\n depth: number;\n /** Stop walking entirely. */\n stop(): void;\n /** Remove this node from its parent. */\n remove(): void;\n /** Replace this node with another. */\n replace(node: CssAstNode): void;\n}\n\n/**\n * Visitor map for typed walk().\n * Each handler receives the node and a WalkContext.\n * Return value is ignored — use ctx.replace() / ctx.remove() / ctx.stop() instead.\n */\nexport interface WalkVisitor {\n stylesheet?: (node: CssStylesheet, ctx: WalkContext) => void;\n rule?: (node: CssRule, ctx: WalkContext) => void;\n atrule?: (node: CssAtRule, ctx: WalkContext) => void;\n declaration?: (node: CssDeclaration, ctx: WalkContext) => void;\n comment?: (node: CssComment, ctx: WalkContext) => void;\n keyframe?: (node: CssKeyframe, ctx: WalkContext) => void;\n /** Catch-all called for every node (after the typed handler, if any). */\n enter?: (node: CssAstNode, ctx: WalkContext) => void;\n /** Called after all children have been visited. */\n leave?: (node: CssAstNode, ctx: WalkContext) => void;\n}\n\n// Parser options\nexport interface CssParserOptions {\n // Parse options\n parseAtrulePrelude?: boolean;\n parseValue?: boolean;\n parseCustomProperty?: boolean;\n parseRulePrelude?: boolean;\n parseSelector?: boolean;\n\n // Output options\n includeComments?: boolean;\n includeSourceMaps?: boolean;\n includeSpecificity?: boolean;\n includeVendorPrefixes?: boolean;\n\n // Error handling\n onError?: (error: CssParseError) => void;\n onWarning?: (warning: CssParseWarning) => void;\n\n // Performance options\n maxDepth?: number;\n maxNodes?: number;\n\n // Feature flags\n enableNesting?: boolean;\n enableCustomProperties?: boolean;\n enableLogicalProperties?: boolean;\n enableContainerQueries?: boolean;\n enableLayerQueries?: boolean;\n enableSupportsQueries?: boolean;\n\n // ── Parser middleware ─────────────────────────────────────────────────────\n /**\n * Called after a rule is parsed.\n * Return a modified/new rule, null to drop it, or void to keep as-is.\n */\n onRule?: (rule: CssRule) => CssRule | null | void;\n /**\n * Called after an at-rule is parsed.\n * Return a modified/new at-rule, null to drop it, or void to keep as-is.\n */\n onAtRule?: (atRule: CssAtRule) => CssAtRule | null | void;\n /**\n * Called after a declaration is parsed.\n * Return a modified/new declaration, null to drop it, or void to keep as-is.\n */\n onDeclaration?: (decl: CssDeclaration) => CssDeclaration | null | void;\n /**\n * Called after a comment node is parsed.\n * Return a modified/new comment, null to drop it, or void to keep as-is.\n */\n onComment?: (comment: CssComment) => CssComment | null | void;\n /**\n * Called after a keyframe stop is parsed.\n * Return a modified/new keyframe, null to drop it, or void to keep as-is.\n */\n onKeyframe?: (keyframe: CssKeyframe) => CssKeyframe | null | void;\n}\n\n// Parse error\nexport interface CssParseError {\n type: 'parse-error';\n message: string;\n loc?: Location;\n code: string;\n severity: 'error' | 'warning' | 'info';\n suggestion?: string;\n}\n\n// Parse warning\nexport interface CssParseWarning {\n type: 'parse-warning';\n message: string;\n loc?: Location;\n code: string;\n suggestion?: string;\n}\n\n// Parser statistics\nexport interface CssParserStats {\n totalNodes: number;\n totalRules: number;\n totalDeclarations: number;\n totalAtRules: number;\n totalComments: number;\n totalSelectors: number;\n totalValues: number;\n parseTime: number;\n memoryUsage: number;\n errors: number;\n warnings: number;\n}\n\n// Legacy AstNode interface for backward compatibility\nexport interface AstNode {\n kind: 'rule' | 'atrule' | 'decl' | 'comment' | 'other'\n name?: string;\n value?: string;\n important?: boolean | string;\n children?: AstNode[];\n loc: any;\n node: string;\n cssNode: any;\n parents: string[];\n selectors?: (Omit<AstNode, 'kind'> & {\n kind: 'rule'\n })[]\n}\n\n// Enhanced AstImport interface\nexport interface AstImport {\n parent?: string;\n node: string;\n file: string;\n source: any;\n atImport?: StyleSheet;\n match?: string;\n resolved?: boolean;\n dependencies?: string[];\n media?: string;\n layer?: string;\n supports?: string;\n}"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type KeyframeValue = string | number;
|
|
2
|
+
export interface KeyframeStyles {
|
|
3
|
+
[property: string]: KeyframeValue;
|
|
4
|
+
}
|
|
5
|
+
export interface KeyframeDefinition {
|
|
6
|
+
from?: KeyframeStyles;
|
|
7
|
+
to?: KeyframeStyles;
|
|
8
|
+
[percentage: `${number}%`]: KeyframeStyles;
|
|
9
|
+
[selector: `${string}, ${string}`]: KeyframeStyles;
|
|
10
|
+
}
|
|
11
|
+
export interface KeyframesConfig {
|
|
12
|
+
'spin': KeyframeDefinition;
|
|
13
|
+
'ping': KeyframeDefinition;
|
|
14
|
+
'pulse': KeyframeDefinition;
|
|
15
|
+
'bounce': KeyframeDefinition;
|
|
16
|
+
'fade-in': KeyframeDefinition;
|
|
17
|
+
'fade-out': KeyframeDefinition;
|
|
18
|
+
'slide-in': KeyframeDefinition;
|
|
19
|
+
'slide-out': KeyframeDefinition;
|
|
20
|
+
'scale-in': KeyframeDefinition;
|
|
21
|
+
'scale-out': KeyframeDefinition;
|
|
22
|
+
'rotate': KeyframeDefinition;
|
|
23
|
+
'shake': KeyframeDefinition;
|
|
24
|
+
'wiggle': KeyframeDefinition;
|
|
25
|
+
'float': KeyframeDefinition;
|
|
26
|
+
'blink': KeyframeDefinition;
|
|
27
|
+
'flash': KeyframeDefinition;
|
|
28
|
+
'jello': KeyframeDefinition;
|
|
29
|
+
'rubber-band': KeyframeDefinition;
|
|
30
|
+
'swing': KeyframeDefinition;
|
|
31
|
+
'tada': KeyframeDefinition;
|
|
32
|
+
[name: string]: KeyframeDefinition;
|
|
33
|
+
}
|
|
34
|
+
export interface KeyframesOptions {
|
|
35
|
+
prefix?: string;
|
|
36
|
+
useRawValues?: boolean;
|
|
37
|
+
transformValues?: boolean;
|
|
38
|
+
includeDefaults?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export type KeyframesExtension = Partial<KeyframesConfig>;
|
|
41
|
+
export type KeyframeAnimationName = keyof KeyframesConfig;
|
|
42
|
+
export interface KeyframesThemeConfig {
|
|
43
|
+
keyframes: KeyframesConfig & {
|
|
44
|
+
extend?: KeyframesExtension;
|
|
45
|
+
options?: KeyframesOptions;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyframes-type.js","sourceRoot":"","sources":["../../../src/types/keyframes-type.ts"],"names":[],"mappings":"","sourcesContent":["export type KeyframeValue = string | number;\n\nexport interface KeyframeStyles {\n [property: string]: KeyframeValue;\n}\n\nexport interface KeyframeDefinition {\n from?: KeyframeStyles;\n to?: KeyframeStyles;\n [percentage: `${number}%`]: KeyframeStyles;\n [selector: `${string}, ${string}`]: KeyframeStyles;\n}\n\nexport interface KeyframesConfig {\n // Animation utilities\n 'spin': KeyframeDefinition;\n 'ping': KeyframeDefinition;\n 'pulse': KeyframeDefinition;\n 'bounce': KeyframeDefinition;\n 'fade-in': KeyframeDefinition;\n 'fade-out': KeyframeDefinition;\n 'slide-in': KeyframeDefinition;\n 'slide-out': KeyframeDefinition;\n 'scale-in': KeyframeDefinition;\n 'scale-out': KeyframeDefinition;\n\n // Common animations\n 'rotate': KeyframeDefinition;\n 'shake': KeyframeDefinition;\n 'wiggle': KeyframeDefinition;\n 'float': KeyframeDefinition;\n 'blink': KeyframeDefinition;\n 'flash': KeyframeDefinition;\n 'jello': KeyframeDefinition;\n 'rubber-band': KeyframeDefinition;\n 'swing': KeyframeDefinition;\n 'tada': KeyframeDefinition;\n\n // Allow custom keyframes\n [name: string]: KeyframeDefinition;\n}\n\nexport interface KeyframesOptions {\n prefix?: string;\n useRawValues?: boolean;\n transformValues?: boolean;\n includeDefaults?: boolean;\n}\n\n// Helper types\nexport type KeyframesExtension = Partial<KeyframesConfig>;\nexport type KeyframeAnimationName = keyof KeyframesConfig;\n\n// Update config types\nexport interface KeyframesThemeConfig {\n keyframes: KeyframesConfig & {\n extend?: KeyframesExtension;\n options?: KeyframesOptions;\n };\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ThemeGetter = (path: string) => any;
|
|
2
|
+
interface PluginHelpers {
|
|
3
|
+
addBase?: (styles: Record<string, any>) => void;
|
|
4
|
+
addComponents?: (styles: Record<string, any>) => void;
|
|
5
|
+
addUtilities: (styles: Record<string, any>) => void;
|
|
6
|
+
addVariant?: (name: string, value: string | string[]) => void;
|
|
7
|
+
theme?: ThemeGetter;
|
|
8
|
+
}
|
|
9
|
+
export type PluginFunction = (helpers: PluginHelpers) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/types/plugin.ts"],"names":[],"mappings":"","sourcesContent":["\nexport type ThemeGetter = (path: string) => any;\n\ninterface PluginHelpers {\n addBase?: (styles: Record<string, any>) => void;\n addComponents?: (styles: Record<string, any>) => void;\n addUtilities: (styles: Record<string, any>) => void;\n addVariant?: (name: string,value: string | string[]) => void;\n theme?: ThemeGetter;\n}\n\nexport type PluginFunction = (helpers: PluginHelpers) => void;"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type ScreenValue = string | {
|
|
2
|
+
min?: string;
|
|
3
|
+
max?: string;
|
|
4
|
+
};
|
|
5
|
+
export interface ScreenConfig {
|
|
6
|
+
raw?: string;
|
|
7
|
+
min?: string;
|
|
8
|
+
max?: string;
|
|
9
|
+
breakpoint?: string;
|
|
10
|
+
mediaQuery?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ScreensConfig {
|
|
13
|
+
'sm': ScreenValue;
|
|
14
|
+
'md': ScreenValue;
|
|
15
|
+
'lg': ScreenValue;
|
|
16
|
+
'xl': ScreenValue;
|
|
17
|
+
'2xl': ScreenValue;
|
|
18
|
+
'xs'?: ScreenValue;
|
|
19
|
+
'3xl'?: ScreenValue;
|
|
20
|
+
'4xl'?: ScreenValue;
|
|
21
|
+
'mobile'?: ScreenValue;
|
|
22
|
+
'tablet'?: ScreenValue;
|
|
23
|
+
'laptop'?: ScreenValue;
|
|
24
|
+
'desktop'?: ScreenValue;
|
|
25
|
+
'portrait'?: ScreenConfig;
|
|
26
|
+
'landscape'?: ScreenConfig;
|
|
27
|
+
'print'?: ScreenConfig;
|
|
28
|
+
'dark'?: ScreenConfig;
|
|
29
|
+
'retina'?: ScreenConfig;
|
|
30
|
+
'touch'?: ScreenConfig;
|
|
31
|
+
[key: string]: ScreenValue | ScreenConfig | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface ScreensOptions {
|
|
34
|
+
strategy?: 'mobile-first' | 'desktop-first';
|
|
35
|
+
unit?: 'px' | 'em' | 'rem';
|
|
36
|
+
baseline?: number;
|
|
37
|
+
includeMediaQuery?: boolean;
|
|
38
|
+
separator?: string;
|
|
39
|
+
}
|
|
40
|
+
export type ScreensExtension = Partial<ScreensConfig>;
|
|
41
|
+
export type ScreenBreakpoint = keyof ScreensConfig;
|
|
42
|
+
export interface ScreensThemeConfig {
|
|
43
|
+
screens: ScreensConfig & {
|
|
44
|
+
extend?: ScreensExtension;
|
|
45
|
+
options?: ScreensOptions;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screens-types.js","sourceRoot":"","sources":["../../../src/types/screens-types.ts"],"names":[],"mappings":"","sourcesContent":["export type ScreenValue = string | { min?: string; max?: string };\n\nexport interface ScreenConfig {\n raw?: string;\n min?: string;\n max?: string;\n breakpoint?: string;\n mediaQuery?: string;\n}\n\nexport interface ScreensConfig {\n // Common breakpoints\n 'sm': ScreenValue;\n 'md': ScreenValue;\n 'lg': ScreenValue;\n 'xl': ScreenValue;\n '2xl': ScreenValue;\n\n // Optional mobile-first breakpoints\n 'xs'?: ScreenValue;\n '3xl'?: ScreenValue;\n '4xl'?: ScreenValue;\n\n // Device-specific breakpoints\n 'mobile'?: ScreenValue;\n 'tablet'?: ScreenValue;\n 'laptop'?: ScreenValue;\n 'desktop'?: ScreenValue;\n\n // Orientation-based breakpoints\n 'portrait'?: ScreenConfig;\n 'landscape'?: ScreenConfig;\n\n // Special breakpoints\n 'print'?: ScreenConfig;\n 'dark'?: ScreenConfig;\n 'retina'?: ScreenConfig;\n 'touch'?: ScreenConfig;\n\n // Allow custom breakpoints\n [key: string]: ScreenValue | ScreenConfig | undefined;\n}\n\nexport interface ScreensOptions {\n strategy?: 'mobile-first' | 'desktop-first';\n unit?: 'px' | 'em' | 'rem';\n baseline?: number;\n includeMediaQuery?: boolean;\n separator?: string;\n}\n\n// Helper types\nexport type ScreensExtension = Partial<ScreensConfig>;\nexport type ScreenBreakpoint = keyof ScreensConfig;\n\n// Update config types\nexport interface ScreensThemeConfig {\n screens: ScreensConfig & {\n extend?: ScreensExtension;\n options?: ScreensOptions;\n };\n}"]}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { DeepPartial } from "../commons/types.js";
|
|
2
|
+
export interface UtilityConfig {
|
|
3
|
+
[key: string]: string | number;
|
|
4
|
+
}
|
|
5
|
+
export interface UtilitiesConfig {
|
|
6
|
+
display?: UtilityConfig;
|
|
7
|
+
position?: UtilityConfig;
|
|
8
|
+
float?: UtilityConfig;
|
|
9
|
+
clear?: UtilityConfig;
|
|
10
|
+
isolation?: UtilityConfig;
|
|
11
|
+
zIndex?: UtilityConfig;
|
|
12
|
+
columns?: UtilityConfig;
|
|
13
|
+
oversrollBehavior?: UtilityConfig;
|
|
14
|
+
topRightBottomLeft?: UtilityConfig;
|
|
15
|
+
inset?: UtilityConfig;
|
|
16
|
+
overflow?: UtilityConfig;
|
|
17
|
+
visibility?: UtilityConfig;
|
|
18
|
+
objectFit?: UtilityConfig;
|
|
19
|
+
objectPosition?: UtilityConfig;
|
|
20
|
+
aspectRatio?: UtilityConfig;
|
|
21
|
+
flex?: UtilityConfig;
|
|
22
|
+
flexDirection?: UtilityConfig;
|
|
23
|
+
flexWrap?: UtilityConfig;
|
|
24
|
+
flexGrow?: UtilityConfig;
|
|
25
|
+
flexShrink?: UtilityConfig;
|
|
26
|
+
gap?: UtilityConfig;
|
|
27
|
+
gridTemplate?: UtilityConfig;
|
|
28
|
+
gridTemplateColumns?: UtilityConfig;
|
|
29
|
+
gridTemplateRows?: UtilityConfig;
|
|
30
|
+
gridRow?: UtilityConfig;
|
|
31
|
+
gridRowStart?: UtilityConfig;
|
|
32
|
+
gridRowEnd?: UtilityConfig;
|
|
33
|
+
gridColumn?: UtilityConfig;
|
|
34
|
+
gridAutoFlow?: UtilityConfig;
|
|
35
|
+
gridAutoRows?: UtilityConfig;
|
|
36
|
+
gridAutoColumns?: UtilityConfig;
|
|
37
|
+
margin?: UtilityConfig;
|
|
38
|
+
padding?: UtilityConfig;
|
|
39
|
+
space?: UtilityConfig;
|
|
40
|
+
width?: UtilityConfig;
|
|
41
|
+
height?: UtilityConfig;
|
|
42
|
+
minWidth?: UtilityConfig;
|
|
43
|
+
minHeight?: UtilityConfig;
|
|
44
|
+
maxWidth?: UtilityConfig;
|
|
45
|
+
maxHeight?: UtilityConfig;
|
|
46
|
+
size?: UtilityConfig;
|
|
47
|
+
fontSize?: UtilityConfig;
|
|
48
|
+
fontWeight?: UtilityConfig;
|
|
49
|
+
lineHeight?: UtilityConfig;
|
|
50
|
+
textColor?: UtilityConfig;
|
|
51
|
+
textDecoration?: UtilityConfig;
|
|
52
|
+
textTransform?: UtilityConfig;
|
|
53
|
+
fontFamily?: UtilityConfig;
|
|
54
|
+
fontSmoothing?: UtilityConfig;
|
|
55
|
+
letterSpacing?: UtilityConfig;
|
|
56
|
+
lineClamp?: UtilityConfig;
|
|
57
|
+
listStylePosition?: UtilityConfig;
|
|
58
|
+
listStyleType?: UtilityConfig;
|
|
59
|
+
listImage?: UtilityConfig;
|
|
60
|
+
textAlign?: UtilityConfig;
|
|
61
|
+
textOpacity?: UtilityConfig;
|
|
62
|
+
textShadow?: UtilityConfig;
|
|
63
|
+
textStroke?: UtilityConfig;
|
|
64
|
+
textStrokeWidth?: UtilityConfig;
|
|
65
|
+
textUnderlineOffset?: UtilityConfig;
|
|
66
|
+
textDecorationColor?: UtilityConfig;
|
|
67
|
+
textDecorationThickness?: UtilityConfig;
|
|
68
|
+
textDecorationStyle?: UtilityConfig;
|
|
69
|
+
textWrap?: UtilityConfig;
|
|
70
|
+
textIndent?: UtilityConfig;
|
|
71
|
+
verticalAlign?: UtilityConfig;
|
|
72
|
+
whiteSpace?: UtilityConfig;
|
|
73
|
+
wordBreak?: UtilityConfig;
|
|
74
|
+
hyphens?: UtilityConfig;
|
|
75
|
+
content?: UtilityConfig;
|
|
76
|
+
placeholderColor?: UtilityConfig;
|
|
77
|
+
placeholderOpacity?: UtilityConfig;
|
|
78
|
+
color?: UtilityConfig;
|
|
79
|
+
backgroundColor?: UtilityConfig;
|
|
80
|
+
backgroundImage?: UtilityConfig;
|
|
81
|
+
backgroundSize?: UtilityConfig;
|
|
82
|
+
backgroundPosition?: UtilityConfig;
|
|
83
|
+
border?: UtilityConfig;
|
|
84
|
+
borderColor?: UtilityConfig;
|
|
85
|
+
borderRadius?: UtilityConfig;
|
|
86
|
+
borderWidth?: UtilityConfig;
|
|
87
|
+
borderStyle?: UtilityConfig;
|
|
88
|
+
outline?: UtilityConfig;
|
|
89
|
+
outlineColor?: UtilityConfig;
|
|
90
|
+
outlineWidth?: UtilityConfig;
|
|
91
|
+
outlineStyle?: UtilityConfig;
|
|
92
|
+
outlineOffset?: UtilityConfig;
|
|
93
|
+
boxSizing?: UtilityConfig;
|
|
94
|
+
ringWidth?: UtilityConfig;
|
|
95
|
+
ringColor?: UtilityConfig;
|
|
96
|
+
ringOffsetWidth?: UtilityConfig;
|
|
97
|
+
ringOffsetColor?: UtilityConfig;
|
|
98
|
+
ringOpacity?: UtilityConfig;
|
|
99
|
+
opacity?: UtilityConfig;
|
|
100
|
+
boxShadow?: UtilityConfig;
|
|
101
|
+
shadowColor?: UtilityConfig;
|
|
102
|
+
backgroundBlendMode?: UtilityConfig;
|
|
103
|
+
mixBlendMode?: UtilityConfig;
|
|
104
|
+
transition?: UtilityConfig;
|
|
105
|
+
animation?: UtilityConfig;
|
|
106
|
+
cursor?: UtilityConfig;
|
|
107
|
+
pointerEvents?: UtilityConfig;
|
|
108
|
+
userSelect?: UtilityConfig;
|
|
109
|
+
accentColor?: UtilityConfig;
|
|
110
|
+
appearance?: UtilityConfig;
|
|
111
|
+
caretColor?: UtilityConfig;
|
|
112
|
+
resize?: UtilityConfig;
|
|
113
|
+
scrollBehavior?: UtilityConfig;
|
|
114
|
+
scrollSnapAlign?: UtilityConfig;
|
|
115
|
+
scrollSnapStop?: UtilityConfig;
|
|
116
|
+
touchAction?: UtilityConfig;
|
|
117
|
+
willChange?: UtilityConfig;
|
|
118
|
+
blur?: UtilityConfig;
|
|
119
|
+
brightness?: UtilityConfig;
|
|
120
|
+
contrast?: UtilityConfig;
|
|
121
|
+
dropShadow?: UtilityConfig;
|
|
122
|
+
grayscale?: UtilityConfig;
|
|
123
|
+
hueRotate?: UtilityConfig;
|
|
124
|
+
invert?: UtilityConfig;
|
|
125
|
+
saturate?: UtilityConfig;
|
|
126
|
+
sepia?: UtilityConfig;
|
|
127
|
+
backdropBlur?: UtilityConfig;
|
|
128
|
+
backdropBrightness?: UtilityConfig;
|
|
129
|
+
backdropContrast?: UtilityConfig;
|
|
130
|
+
backdropGrayscale?: UtilityConfig;
|
|
131
|
+
backdropHueRotate?: UtilityConfig;
|
|
132
|
+
backdropInvert?: UtilityConfig;
|
|
133
|
+
backdropSaturate?: UtilityConfig;
|
|
134
|
+
backdropSepia?: UtilityConfig;
|
|
135
|
+
backdropOpacity?: UtilityConfig;
|
|
136
|
+
transform?: UtilityConfig;
|
|
137
|
+
scale?: UtilityConfig;
|
|
138
|
+
rotate?: UtilityConfig;
|
|
139
|
+
skew?: UtilityConfig;
|
|
140
|
+
translate?: UtilityConfig;
|
|
141
|
+
transformOrigin?: UtilityConfig;
|
|
142
|
+
fill?: UtilityConfig;
|
|
143
|
+
stroke?: UtilityConfig;
|
|
144
|
+
strokeWidth?: UtilityConfig;
|
|
145
|
+
}
|
|
146
|
+
export type UtilitiesExtension = DeepPartial<UtilitiesConfig>;
|
|
147
|
+
export type UtilityExtension<T extends keyof UtilitiesConfig> = DeepPartial<UtilitiesConfig[T]>;
|