@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,401 @@
|
|
|
1
|
+
import { LightColors } from "../colors/color.js";
|
|
2
|
+
import { StylesVariants } from "../../commons/constants.js";
|
|
3
|
+
import { OpacityMap, Zero_100_Map, createMutable, dynamicPick, kebabObjectKeys, objectKeys, projectKeys, valueToArray } from "../../commons/helper.js";
|
|
4
|
+
export const FONTS_FAMILY = {
|
|
5
|
+
sans: 'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
|
|
6
|
+
serif: 'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',
|
|
7
|
+
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
|
|
8
|
+
};
|
|
9
|
+
// export const FONTS_SIZE = {
|
|
10
|
+
// "xs": "0.75rem",
|
|
11
|
+
// "sm": "0.875rem",
|
|
12
|
+
// "md": "1rem",
|
|
13
|
+
// "lg": "1.125rem",
|
|
14
|
+
// "xl": "1.25rem",
|
|
15
|
+
// "2xl": "1.5rem",
|
|
16
|
+
// "3xl": "1.875rem",
|
|
17
|
+
// "4xl": "2.25rem",
|
|
18
|
+
// "5xl": "3rem",
|
|
19
|
+
// "6xl": "3.75rem",
|
|
20
|
+
// "7xl": "4.5rem",
|
|
21
|
+
// "8xl": "6rem",
|
|
22
|
+
// "9xl": "7rem",
|
|
23
|
+
// "10xl": "8rem",
|
|
24
|
+
// } as const;
|
|
25
|
+
export const FONTS_SIZE = {
|
|
26
|
+
"xs": ["0.75rem", "1rem"],
|
|
27
|
+
"sm": ["0.875rem", "1.25rem"],
|
|
28
|
+
"base": ["1rem", "1.5rem"],
|
|
29
|
+
"lg": ["1.125rem", "1.75rem"],
|
|
30
|
+
"xl": ["1.25rem", "1.75rem"],
|
|
31
|
+
"2xl": ["1.5rem", "2rem"],
|
|
32
|
+
"3xl": ["1.875rem", "2.25rem"],
|
|
33
|
+
"4xl": ["2.25rem", "2.5rem"],
|
|
34
|
+
"5xl": ["3rem", "1"],
|
|
35
|
+
"6xl": ["3.75rem", "1"],
|
|
36
|
+
"7xl": ["4.5rem", "1"],
|
|
37
|
+
"8xl": ["6rem", "1"],
|
|
38
|
+
"9xl": ["7rem", "1"],
|
|
39
|
+
"10xl": ["8rem", "1"],
|
|
40
|
+
};
|
|
41
|
+
// export const FONTS_SIZE_LINE_HEIGHT = {
|
|
42
|
+
// "xs": "1rem",
|
|
43
|
+
// "sm": "1.25rem",
|
|
44
|
+
// "md": "1.5rem",
|
|
45
|
+
// "lg": "1.75rem",
|
|
46
|
+
// "xl": "1.75rem",
|
|
47
|
+
// "2xl": "2rem",
|
|
48
|
+
// "3xl": "2.25rem",
|
|
49
|
+
// "4xl": "2.5rem",
|
|
50
|
+
// "5xl": "1",
|
|
51
|
+
// "6xl": "1",
|
|
52
|
+
// "7xl": "1",
|
|
53
|
+
// "8xl": "1",
|
|
54
|
+
// "9xl": "1",
|
|
55
|
+
// "10xl": "1",
|
|
56
|
+
// } as const;
|
|
57
|
+
export const FONTS_SMOOTHING = {
|
|
58
|
+
"antialiased": ["antialiased", "grayscale"],
|
|
59
|
+
"subpixel-antialiased": ["auto", "auto"]
|
|
60
|
+
};
|
|
61
|
+
// type tt = ProjectKeys<typeof FONTS_SMOOTHING, "-webkitFontSmoothing", "-mozOsxFontSmoothing">
|
|
62
|
+
export const FONTS_STYLE = {
|
|
63
|
+
"italic": "italic",
|
|
64
|
+
"not-italic": "normal"
|
|
65
|
+
};
|
|
66
|
+
export const FONTS_WEIGHT = {
|
|
67
|
+
"thin": "100",
|
|
68
|
+
"extralight": "200",
|
|
69
|
+
"light": "300",
|
|
70
|
+
"normal": "400",
|
|
71
|
+
"medium": "500",
|
|
72
|
+
"semibold": "600",
|
|
73
|
+
"bold": "700",
|
|
74
|
+
"extrabold": "800",
|
|
75
|
+
"dark": "900",
|
|
76
|
+
};
|
|
77
|
+
export const LETTER_SPACING = {
|
|
78
|
+
"xs": " -0.05em",
|
|
79
|
+
"sm": "-0.025em",
|
|
80
|
+
"md": "0",
|
|
81
|
+
"lg": "0.025em",
|
|
82
|
+
"xl": "0.05em",
|
|
83
|
+
"2xl": "0.1em",
|
|
84
|
+
};
|
|
85
|
+
export const LINE_HEIGHT = {
|
|
86
|
+
"1": ".75rem",
|
|
87
|
+
"2": "1rem",
|
|
88
|
+
"3": "1.25rem",
|
|
89
|
+
"4": "1.5rem",
|
|
90
|
+
"5": "1.75rem",
|
|
91
|
+
"6": "2rem",
|
|
92
|
+
"7": "2.25rem",
|
|
93
|
+
"8": "2.5rem",
|
|
94
|
+
"none": "1",
|
|
95
|
+
"xs": "1.25",
|
|
96
|
+
"sm": "1.375",
|
|
97
|
+
"md": "1.5",
|
|
98
|
+
"lg": "1.625",
|
|
99
|
+
"xl": "2",
|
|
100
|
+
};
|
|
101
|
+
export const LINE_CLAMPS = {
|
|
102
|
+
"1": ["hidden", "-webkit-box", "vertical", "1"],
|
|
103
|
+
"2": ["hidden", "-webkit-box", "vertical", "2"],
|
|
104
|
+
"3": ["hidden", "-webkit-box", "vertical", "3"],
|
|
105
|
+
"4": ["hidden", "-webkit-box", "vertical", "4"],
|
|
106
|
+
"5": ["hidden", "-webkit-box", "vertical", "5"],
|
|
107
|
+
"6": ["hidden", "-webkit-box", "vertical", "6"],
|
|
108
|
+
"none": ["visible", "block", "horizontal", "none"],
|
|
109
|
+
};
|
|
110
|
+
export const LIST_IMAGE = {
|
|
111
|
+
"none": "none"
|
|
112
|
+
};
|
|
113
|
+
export const LIST_POSITION = {
|
|
114
|
+
"inside": "inside",
|
|
115
|
+
"outside": "outside"
|
|
116
|
+
};
|
|
117
|
+
export const LIST_TYPE = {
|
|
118
|
+
"none": "none",
|
|
119
|
+
"disc": "disc",
|
|
120
|
+
"decimal": "decimal",
|
|
121
|
+
};
|
|
122
|
+
export const TEXT_ALIGN = {
|
|
123
|
+
"left": "left",
|
|
124
|
+
"center": "center",
|
|
125
|
+
"right": "right",
|
|
126
|
+
"justify": "justify",
|
|
127
|
+
"start": "start",
|
|
128
|
+
"end": "end"
|
|
129
|
+
};
|
|
130
|
+
export const TEXT_OVERFLOWS = {
|
|
131
|
+
"truncate": ["ellipsis", "hidden", "nowrap"],
|
|
132
|
+
"ellipsis": ["ellipsis"],
|
|
133
|
+
"clip": ["clip"],
|
|
134
|
+
};
|
|
135
|
+
export const TEXT_DECORATION = {
|
|
136
|
+
"underline": "underline",
|
|
137
|
+
"overlive": "overline",
|
|
138
|
+
"line-through": "line-through",
|
|
139
|
+
"no-underline": "none"
|
|
140
|
+
};
|
|
141
|
+
export const TEXT_DECORATION_STYLE = {
|
|
142
|
+
"solid": "solid",
|
|
143
|
+
"double": "double",
|
|
144
|
+
"dotted": "dotted",
|
|
145
|
+
"dashed": "dashed",
|
|
146
|
+
"wavy": "wavy"
|
|
147
|
+
};
|
|
148
|
+
export const TEXT_DECORATION_THICKNESS = {
|
|
149
|
+
"auto": "auto",
|
|
150
|
+
"from-font": "from-font",
|
|
151
|
+
"0": "0",
|
|
152
|
+
"1": "1px",
|
|
153
|
+
"2": "2px",
|
|
154
|
+
"4": "4px",
|
|
155
|
+
"8": "8px"
|
|
156
|
+
};
|
|
157
|
+
export const TEXT_UNDERLINE_OFFSET = {
|
|
158
|
+
"auto": "auto",
|
|
159
|
+
"0": "0",
|
|
160
|
+
"1": "1px",
|
|
161
|
+
"2": "2px",
|
|
162
|
+
"4": "4px",
|
|
163
|
+
"8": "8px"
|
|
164
|
+
};
|
|
165
|
+
export const TEXT_TRANSFORM = {
|
|
166
|
+
"uppercase": "uppercase",
|
|
167
|
+
"lowercase": "lowercase",
|
|
168
|
+
"capitalize": "capitalize",
|
|
169
|
+
"none": "none"
|
|
170
|
+
};
|
|
171
|
+
export const TEXT_WRAP = {
|
|
172
|
+
"wrap": "wrap",
|
|
173
|
+
"nowrap": "nowrap",
|
|
174
|
+
"balance": "balance",
|
|
175
|
+
"pretty": "pretty"
|
|
176
|
+
};
|
|
177
|
+
export const TEXT_INDENT = Object.assign({}, Zero_100_Map);
|
|
178
|
+
export const VERTICAL_ALIGN = {
|
|
179
|
+
"baseline": "baseline",
|
|
180
|
+
"top": "top",
|
|
181
|
+
"middle": "middle",
|
|
182
|
+
"bottom": "bottom",
|
|
183
|
+
"text-top": "text-top",
|
|
184
|
+
"text-bottom": "text-bottom",
|
|
185
|
+
"sub": "sub",
|
|
186
|
+
"super": "super"
|
|
187
|
+
};
|
|
188
|
+
export const WHITE_SPACE = {
|
|
189
|
+
"wrap": "wrap",
|
|
190
|
+
"nowrap": "nowrap",
|
|
191
|
+
"pre": "pre",
|
|
192
|
+
"pre-line": "pre-line",
|
|
193
|
+
"pre-wrap": "pre-wrap",
|
|
194
|
+
"break-spaces": "break-spaces"
|
|
195
|
+
};
|
|
196
|
+
export const HYPHENS = {
|
|
197
|
+
"none": "none",
|
|
198
|
+
"manual": "manual",
|
|
199
|
+
"auto": "auto"
|
|
200
|
+
};
|
|
201
|
+
// console.log('fs', projectKeys(FONTS_SIZE, "fontSize", "lineHeight"))
|
|
202
|
+
const textOverflowData = projectKeys(TEXT_OVERFLOWS, "textOverflow", "overflow", "whiteSpace");
|
|
203
|
+
export const TypographyProperties = {
|
|
204
|
+
fontFamily: {
|
|
205
|
+
values: Object.assign({}, FONTS_FAMILY),
|
|
206
|
+
shorthands: { "font": ["fontFamily"] },
|
|
207
|
+
variants: StylesVariants.fontFamily
|
|
208
|
+
},
|
|
209
|
+
fontSize: {
|
|
210
|
+
values: projectKeys(FONTS_SIZE, "fontSize", "lineHeight"),
|
|
211
|
+
shorthands: { "text": ["fontSize"] },
|
|
212
|
+
variants: StylesVariants.fontSize
|
|
213
|
+
},
|
|
214
|
+
fontSmoothing: {
|
|
215
|
+
values: projectKeys(FONTS_SMOOTHING, "-webkitFontSmoothing", "-mozOsxFontSmoothing"),
|
|
216
|
+
// shorthands: {"font-smoothing": ["fontSmoothing"]},
|
|
217
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(FONTS_SMOOTHING)), 'fontSmoothing')),
|
|
218
|
+
variants: StylesVariants.fontSmoothing
|
|
219
|
+
},
|
|
220
|
+
fontStyle: {
|
|
221
|
+
values: ["italic", "not-italic:normal"],
|
|
222
|
+
// {...FONTS_STYLE},
|
|
223
|
+
// shorthands: {"fst": ["fontStyle"]},
|
|
224
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(FONTS_STYLE)), 'font')),
|
|
225
|
+
variants: StylesVariants.fontStyle
|
|
226
|
+
},
|
|
227
|
+
fontWeight: {
|
|
228
|
+
values: Object.assign({}, FONTS_WEIGHT),
|
|
229
|
+
shorthands: { "font": ["fontWeight"] },
|
|
230
|
+
variants: StylesVariants.fontWeight
|
|
231
|
+
},
|
|
232
|
+
letterSpacing: {
|
|
233
|
+
values: Object.assign({}, LETTER_SPACING),
|
|
234
|
+
shorthands: { "letter": ["letterSpacing"] },
|
|
235
|
+
variants: StylesVariants.letterSpacing
|
|
236
|
+
},
|
|
237
|
+
lineHeight: {
|
|
238
|
+
values: Object.assign({}, LINE_HEIGHT),
|
|
239
|
+
shorthands: { "line": ["lineHeight"] },
|
|
240
|
+
variants: StylesVariants.lineHeight
|
|
241
|
+
},
|
|
242
|
+
lineClamp: {
|
|
243
|
+
values: projectKeys(LINE_CLAMPS, "overflow", "display", "-webkitBoxOrient", "-webkitLineclamp"),
|
|
244
|
+
shorthands: { "line-clamp": ["-webkitLineclamp"] },
|
|
245
|
+
variants: []
|
|
246
|
+
},
|
|
247
|
+
listStylePostion: {
|
|
248
|
+
values: Object.assign({}, LIST_POSITION),
|
|
249
|
+
shorthands: { "list": ["listStylePosition"] },
|
|
250
|
+
// shorthands: {
|
|
251
|
+
// // ...wrapValues(prefixObjectKeys(LIST_POSITION, 'list', false, false), ['listStylePosition'])
|
|
252
|
+
// ...prefixObjectKeys(valueToArray({...LIST_POSITION}, 'listStylePosition' as const), 'list', false, false),
|
|
253
|
+
// },
|
|
254
|
+
variants: StylesVariants.listStylePosition
|
|
255
|
+
},
|
|
256
|
+
listStyleType: {
|
|
257
|
+
values: Object.assign({}, LIST_TYPE),
|
|
258
|
+
shorthands: { "list": ["listStyleType"] },
|
|
259
|
+
// shorthands: {
|
|
260
|
+
// // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])
|
|
261
|
+
// ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),
|
|
262
|
+
// },
|
|
263
|
+
variants: StylesVariants.listStyleType
|
|
264
|
+
},
|
|
265
|
+
listImage: {
|
|
266
|
+
values: { "none": "none" },
|
|
267
|
+
shorthands: { "list-image": ["listStyleImage"] },
|
|
268
|
+
// shorthands: {
|
|
269
|
+
// // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])
|
|
270
|
+
// ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),
|
|
271
|
+
// },
|
|
272
|
+
variants: StylesVariants.listStyleType
|
|
273
|
+
},
|
|
274
|
+
textAlign: {
|
|
275
|
+
values: Object.assign({}, TEXT_ALIGN),
|
|
276
|
+
shorthands: { "text": ["textAlign"] },
|
|
277
|
+
// shorthands: {
|
|
278
|
+
// // ...wrapValues(prefixObjectKeys(TEXT_ALIGN, 'text', false, false), ['textAlign'])
|
|
279
|
+
// ...prefixObjectKeys(valueToArray({...TEXT_ALIGN}, 'textAlign' as const), 'text', false, false),
|
|
280
|
+
// },
|
|
281
|
+
variants: StylesVariants.textAlign
|
|
282
|
+
},
|
|
283
|
+
textOverflow: {
|
|
284
|
+
values: Object.assign({}, textOverflowData),
|
|
285
|
+
shorthands: { "text": ["textOverflow"] },
|
|
286
|
+
// shorthands: {
|
|
287
|
+
// // ...prefixObjectKeys(textOverflowData, 'text', false, false)
|
|
288
|
+
// ...prefixObjectKeys(valueToArray({...textOverflowData}, 'textOverflow' as const), 'text', false, false),
|
|
289
|
+
// },
|
|
290
|
+
variants: StylesVariants.textOverflow
|
|
291
|
+
},
|
|
292
|
+
color: {
|
|
293
|
+
values: Object.assign({}, LightColors),
|
|
294
|
+
shorthands: { "text": ["color"] },
|
|
295
|
+
variants: StylesVariants.textColor
|
|
296
|
+
},
|
|
297
|
+
textDecorationColor: {
|
|
298
|
+
values: Object.assign({}, LightColors),
|
|
299
|
+
shorthands: { "text-decoration": ["textDecorationColor"] },
|
|
300
|
+
variants: StylesVariants.textDecoration
|
|
301
|
+
},
|
|
302
|
+
textDecoration: {
|
|
303
|
+
values: ["underline", "overline", "line-through", "no-underline:none"],
|
|
304
|
+
// {...TEXT_DECORATION},
|
|
305
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, TEXT_DECORATION), 'textDecoration')
|
|
306
|
+
// ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])
|
|
307
|
+
// ...prefixObjectKeys(valueToArray({...TEXT_DECORATION}, 'textDecoration' as const), '', false, false),
|
|
308
|
+
),
|
|
309
|
+
variants: []
|
|
310
|
+
},
|
|
311
|
+
textDecorationStyle: {
|
|
312
|
+
values: Object.assign({}, TEXT_DECORATION_STYLE),
|
|
313
|
+
shorthands: { "text-decoration": ["textDecorationStyle"] },
|
|
314
|
+
// shorthands: {
|
|
315
|
+
// // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])
|
|
316
|
+
// ...prefixObjectKeys(valueToArray({...TEXT_DECORATION_STYLE}, 'textDecorationStyle' as const), 'text', false, false),
|
|
317
|
+
// },
|
|
318
|
+
variants: []
|
|
319
|
+
},
|
|
320
|
+
textDecorationThickness: {
|
|
321
|
+
values: Object.assign({}, TEXT_DECORATION_THICKNESS),
|
|
322
|
+
shorthands: { "text-decoration": ["textDecorationThickness"] },
|
|
323
|
+
variants: []
|
|
324
|
+
},
|
|
325
|
+
textUnderlineOffset: {
|
|
326
|
+
values: Object.assign({}, TEXT_UNDERLINE_OFFSET),
|
|
327
|
+
shorthands: { "underline-offset": ["textUnderlineOffset"] },
|
|
328
|
+
variants: []
|
|
329
|
+
},
|
|
330
|
+
textTransform: {
|
|
331
|
+
values: Object.assign({}, TEXT_TRANSFORM),
|
|
332
|
+
// shorthands: {"text-trf": ["textTransform"]},
|
|
333
|
+
// shorthands: {...wrapValues(prefixObjectKeys(TEXT_TRANSFORM, 'text', false, false), ['textTransform'])},
|
|
334
|
+
shorthands: {
|
|
335
|
+
text: ["textTransform"]
|
|
336
|
+
// ...prefixObjectKeys(valueToArray({...TEXT_TRANSFORM}, 'textTransform' as const), 'text', false, false),
|
|
337
|
+
},
|
|
338
|
+
variants: StylesVariants.textTransform
|
|
339
|
+
},
|
|
340
|
+
textWrap: {
|
|
341
|
+
values: Object.assign({}, TEXT_WRAP),
|
|
342
|
+
shorthands: { "text": ["textWrap"] },
|
|
343
|
+
// shorthands: {...wrapValues(prefixObjectKeys(TEXT_WRAP, 'text', false, false), ['textWrap'])},
|
|
344
|
+
variants: []
|
|
345
|
+
},
|
|
346
|
+
textIndent: {
|
|
347
|
+
values: Object.assign({}, TEXT_INDENT),
|
|
348
|
+
shorthands: { "indent": ["textIndent"] },
|
|
349
|
+
variants: []
|
|
350
|
+
},
|
|
351
|
+
vericalAlign: {
|
|
352
|
+
values: Object.assign({}, VERTICAL_ALIGN),
|
|
353
|
+
shorthands: { "align": ["verticalAlign"] },
|
|
354
|
+
variants: StylesVariants.verticalAlign
|
|
355
|
+
},
|
|
356
|
+
whiteSpace: {
|
|
357
|
+
values: Object.assign({}, WHITE_SPACE),
|
|
358
|
+
shorthands: { "whitespace": ["whiteSpace"] },
|
|
359
|
+
variants: StylesVariants.whitespace
|
|
360
|
+
},
|
|
361
|
+
hyphens: {
|
|
362
|
+
values: Object.assign({}, HYPHENS),
|
|
363
|
+
shorthands: { "hyphens": ["hyphens"] },
|
|
364
|
+
variants: []
|
|
365
|
+
},
|
|
366
|
+
wordbreak: {
|
|
367
|
+
values: {
|
|
368
|
+
normal: { overflowWrap: "normal", wordBreak: "normal" },
|
|
369
|
+
words: { overflowWrap: "break-word" },
|
|
370
|
+
all: { overflowWrap: "break-all" },
|
|
371
|
+
keep: { overflowWrap: "keep-all" },
|
|
372
|
+
},
|
|
373
|
+
shorthands: {
|
|
374
|
+
"break": ["overflowWrap"]
|
|
375
|
+
},
|
|
376
|
+
variants: StylesVariants.wordBreak
|
|
377
|
+
},
|
|
378
|
+
content: {
|
|
379
|
+
values: {
|
|
380
|
+
none: "none"
|
|
381
|
+
},
|
|
382
|
+
shorthands: {
|
|
383
|
+
"content": ["content"]
|
|
384
|
+
},
|
|
385
|
+
variants: []
|
|
386
|
+
},
|
|
387
|
+
placeholderColor: {
|
|
388
|
+
values: Object.assign({}, LightColors),
|
|
389
|
+
shorthands: { "placeholder": ["placeholderColor"] },
|
|
390
|
+
variants: StylesVariants.placeholderOpacity
|
|
391
|
+
},
|
|
392
|
+
placeholderOpacity: {
|
|
393
|
+
values: Object.assign({}, OpacityMap),
|
|
394
|
+
shorthands: { "placeholder-opacity": ["placeholderOpacity"] },
|
|
395
|
+
variants: StylesVariants.placeholderOpacity
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
export const TypographyProps = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["values"]));
|
|
399
|
+
export const TypographyVariants = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["variants"]));
|
|
400
|
+
export const TypographyShorthands = Object.assign({}, dynamicPick(Object.assign({}, createMutable(TypographyProperties)), objectKeys(TypographyProperties), true, false, ["shorthands"]));
|
|
401
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utilities/typography/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAG,eAAe,EAAE,UAAU,EAAoB,WAAW,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAGzK,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,oHAAoH;IAC1H,KAAK,EAAE,6DAA6D;IACpE,IAAI,EAAE,oGAAoG;CACpG,CAAC;AAEX,8BAA8B;AAC9B,uBAAuB;AACvB,wBAAwB;AACxB,oBAAoB;AACpB,wBAAwB;AACxB,uBAAuB;AACvB,uBAAuB;AACvB,yBAAyB;AACzB,wBAAwB;AACxB,qBAAqB;AACrB,wBAAwB;AACxB,uBAAuB;AACvB,qBAAqB;AACrB,qBAAqB;AACrB,sBAAsB;AACtB,cAAc;AACd,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;IAC7B,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IAC5B,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;IAC9B,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC5B,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC;IACpB,KAAK,EAAE,CAA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AkB;KAC9C;CACK,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAU,CAAC;AAC9J,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,CAAC,CAAU,CAAC;AACnK,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,CAAC,CAAU,CAAC","sourcesContent":["import { LightColors } from \"../colors/color.js\";\nimport { StylesVariants } from \"../../commons/constants.js\";\nimport { OpacityMap, Zero_100_Map, createMutable, dynamicPick , kebabObjectKeys, objectKeys, prefixObjectKeys, projectKeys, valueToArray} from \"../../commons/helper.js\";\nimport { ProjectKeys } from \"../../commons/types.js\";\n\nexport const FONTS_FAMILY = {\n sans: 'ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n serif: 'ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif',\n mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace'\n} as const;\n\n// export const FONTS_SIZE = {\n// \"xs\": \"0.75rem\",\n// \"sm\": \"0.875rem\",\n// \"md\": \"1rem\",\n// \"lg\": \"1.125rem\",\n// \"xl\": \"1.25rem\",\n// \"2xl\": \"1.5rem\",\n// \"3xl\": \"1.875rem\",\n// \"4xl\": \"2.25rem\",\n// \"5xl\": \"3rem\",\n// \"6xl\": \"3.75rem\",\n// \"7xl\": \"4.5rem\",\n// \"8xl\": \"6rem\",\n// \"9xl\": \"7rem\",\n// \"10xl\": \"8rem\",\n// } as const;\nexport const FONTS_SIZE = {\n \"xs\": [\"0.75rem\", \"1rem\"],\n \"sm\": [\"0.875rem\", \"1.25rem\"],\n \"base\": [\"1rem\", \"1.5rem\"],\n \"lg\": [\"1.125rem\", \"1.75rem\"],\n \"xl\": [\"1.25rem\", \"1.75rem\"],\n \"2xl\": [\"1.5rem\", \"2rem\"],\n \"3xl\": [\"1.875rem\", \"2.25rem\"],\n \"4xl\": [\"2.25rem\", \"2.5rem\"],\n \"5xl\": [\"3rem\", \"1\"],\n \"6xl\": [\"3.75rem\", \"1\"],\n \"7xl\": [\"4.5rem\", \"1\"],\n \"8xl\": [\"6rem\", \"1\"],\n \"9xl\": [\"7rem\", \"1\"],\n \"10xl\": [\"8rem\", \"1\"],\n} as const;\n// export const FONTS_SIZE_LINE_HEIGHT = {\n// \"xs\": \"1rem\",\n// \"sm\": \"1.25rem\",\n// \"md\": \"1.5rem\",\n// \"lg\": \"1.75rem\",\n// \"xl\": \"1.75rem\",\n// \"2xl\": \"2rem\",\n// \"3xl\": \"2.25rem\",\n// \"4xl\": \"2.5rem\",\n// \"5xl\": \"1\",\n// \"6xl\": \"1\",\n// \"7xl\": \"1\",\n// \"8xl\": \"1\",\n// \"9xl\": \"1\",\n// \"10xl\": \"1\",\n// } as const;\n\n\nexport const FONTS_SMOOTHING = {\n \"antialiased\": [\"antialiased\", \"grayscale\"],\n \"subpixel-antialiased\": [\"auto\", \"auto\"]\n} as const;\n// type tt = ProjectKeys<typeof FONTS_SMOOTHING, \"-webkitFontSmoothing\", \"-mozOsxFontSmoothing\">\n\n\n\n\nexport const FONTS_STYLE = {\n \"italic\": \"italic\",\n \"not-italic\": \"normal\"\n} as const;\n\nexport const FONTS_WEIGHT = {\n \"thin\": \"100\",\n \"extralight\": \"200\",\n \"light\": \"300\",\n \"normal\": \"400\",\n \"medium\": \"500\",\n \"semibold\": \"600\",\n \"bold\": \"700\",\n \"extrabold\": \"800\",\n \"dark\": \"900\",\n} as const;\n\nexport const LETTER_SPACING = {\n \"xs\": \" -0.05em\",\n \"sm\": \"-0.025em\",\n \"md\": \"0\",\n \"lg\": \"0.025em\",\n \"xl\": \"0.05em\",\n \"2xl\": \"0.1em\",\n} as const;\n\nexport const LINE_HEIGHT = {\n \"1\": \".75rem\",\n \"2\": \"1rem\",\n \"3\": \"1.25rem\",\n \"4\": \"1.5rem\",\n \"5\": \"1.75rem\",\n \"6\": \"2rem\",\n \"7\": \"2.25rem\",\n \"8\": \"2.5rem\",\n \"none\": \"1\",\n \"xs\": \"1.25\",\n \"sm\": \"1.375\",\n \"md\": \"1.5\",\n \"lg\": \"1.625\",\n \"xl\": \"2\",\n} as const;\n\nexport const LINE_CLAMPS = {\n \"1\": [\"hidden\", \"-webkit-box\", \"vertical\", \"1\"],\n \"2\": [\"hidden\", \"-webkit-box\", \"vertical\", \"2\"],\n \"3\": [\"hidden\", \"-webkit-box\", \"vertical\", \"3\"],\n \"4\": [\"hidden\", \"-webkit-box\", \"vertical\", \"4\"],\n \"5\": [\"hidden\", \"-webkit-box\", \"vertical\", \"5\"],\n \"6\": [\"hidden\", \"-webkit-box\", \"vertical\", \"6\"],\n \"none\": [\"visible\", \"block\", \"horizontal\", \"none\"],\n} as const;\nexport const LIST_IMAGE = {\n \"none\": \"none\"\n} as const;\n\nexport const LIST_POSITION = {\n \"inside\": \"inside\",\n \"outside\": \"outside\"\n} as const;\nexport const LIST_TYPE = {\n \"none\": \"none\",\n \"disc\": \"disc\",\n \"decimal\": \"decimal\",\n} as const;\n\n\nexport const TEXT_ALIGN = {\n \"left\": \"left\",\n \"center\": \"center\",\n \"right\": \"right\",\n \"justify\": \"justify\",\n \"start\": \"start\",\n \"end\": \"end\"\n} as const;\nexport const TEXT_OVERFLOWS = {\n \"truncate\": [\"ellipsis\", \"hidden\", \"nowrap\"],\n \"ellipsis\": [\"ellipsis\"],\n \"clip\": [\"clip\"],\n} as const;\n\nexport const TEXT_DECORATION = {\n \"underline\": \"underline\",\n \"overlive\": \"overline\",\n \"line-through\": \"line-through\",\n \"no-underline\": \"none\"\n} as const;\nexport const TEXT_DECORATION_STYLE = {\n \"solid\": \"solid\",\n \"double\": \"double\",\n \"dotted\": \"dotted\",\n \"dashed\": \"dashed\",\n \"wavy\": \"wavy\"\n} as const;\n\nexport const TEXT_DECORATION_THICKNESS = {\n \"auto\": \"auto\",\n \"from-font\": \"from-font\",\n \"0\": \"0\",\n \"1\": \"1px\",\n \"2\": \"2px\",\n \"4\": \"4px\",\n \"8\": \"8px\"\n} as const;\nexport const TEXT_UNDERLINE_OFFSET = {\n \"auto\": \"auto\",\n \"0\": \"0\",\n \"1\": \"1px\",\n \"2\": \"2px\",\n \"4\": \"4px\",\n \"8\": \"8px\"\n} as const;\n\nexport const TEXT_TRANSFORM = {\n \"uppercase\": \"uppercase\",\n \"lowercase\": \"lowercase\",\n \"capitalize\": \"capitalize\",\n \"none\": \"none\"\n} as const;\n\nexport const TEXT_WRAP = {\n \"wrap\": \"wrap\",\n \"nowrap\": \"nowrap\",\n \"balance\": \"balance\",\n \"pretty\": \"pretty\"\n} as const\n\n\nexport const TEXT_INDENT = {...Zero_100_Map} as const;\n\nexport const VERTICAL_ALIGN = {\n \"baseline\": \"baseline\",\n \"top\": \"top\",\n \"middle\": \"middle\",\n \"bottom\": \"bottom\",\n \"text-top\": \"text-top\",\n \"text-bottom\": \"text-bottom\",\n \"sub\": \"sub\",\n \"super\": \"super\"\n} as const;\n\nexport const WHITE_SPACE = {\n \"wrap\": \"wrap\",\n \"nowrap\": \"nowrap\",\n \"pre\": \"pre\",\n \"pre-line\": \"pre-line\",\n \"pre-wrap\": \"pre-wrap\",\n \"break-spaces\": \"break-spaces\"\n} as const;\n\nexport const HYPHENS = {\n \"none\": \"none\",\n \"manual\": \"manual\",\n \"auto\": \"auto\"\n} as const;\n\n// console.log('fs', projectKeys(FONTS_SIZE, \"fontSize\", \"lineHeight\"))\nconst textOverflowData = projectKeys(TEXT_OVERFLOWS, \"textOverflow\", \"overflow\", \"whiteSpace\");\nexport const TypographyProperties = {\n fontFamily: {\n values: {...FONTS_FAMILY},\n shorthands: {\"font\": [\"fontFamily\"]},\n variants: StylesVariants.fontFamily\n },\n fontSize: {\n values: projectKeys(FONTS_SIZE, \"fontSize\", \"lineHeight\"),\n shorthands: {\"text\": [\"fontSize\"]},\n variants: StylesVariants.fontSize\n },\n fontSmoothing: {\n values: projectKeys(FONTS_SMOOTHING, \"-webkitFontSmoothing\", \"-mozOsxFontSmoothing\"),\n // shorthands: {\"font-smoothing\": [\"fontSmoothing\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(FONTS_SMOOTHING)}, 'fontSmoothing' as const)},\n variants: StylesVariants.fontSmoothing\n },\n fontStyle: {\n values: [\"italic\", \"not-italic:normal\"],\n // {...FONTS_STYLE},\n // shorthands: {\"fst\": [\"fontStyle\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(FONTS_STYLE)}, 'font' as const)},\n variants: StylesVariants.fontStyle\n },\n fontWeight: {\n values: {...FONTS_WEIGHT},\n shorthands: {\"font\": [\"fontWeight\"]},\n variants: StylesVariants.fontWeight\n },\n letterSpacing: {\n values: {...LETTER_SPACING},\n shorthands: {\"letter\": [\"letterSpacing\"]},\n variants: StylesVariants.letterSpacing\n },\n lineHeight: {\n values: {...LINE_HEIGHT},\n shorthands: {\"line\": [\"lineHeight\"]},\n variants: StylesVariants.lineHeight\n },\n lineClamp: {\n values: projectKeys(LINE_CLAMPS, \"overflow\", \"display\", \"-webkitBoxOrient\", \"-webkitLineclamp\"),\n shorthands: {\"line-clamp\": [\"-webkitLineclamp\"]},\n variants: []\n },\n listStylePostion: {\n values: {...LIST_POSITION},\n shorthands: {\"list\": [\"listStylePosition\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_POSITION, 'list', false, false), ['listStylePosition'])\n // ...prefixObjectKeys(valueToArray({...LIST_POSITION}, 'listStylePosition' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStylePosition\n },\n listStyleType: {\n values: {...LIST_TYPE},\n shorthands: {\"list\": [\"listStyleType\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])\n // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStyleType\n },\n listImage: {\n values: {\"none\": \"none\"},\n shorthands: {\"list-image\": [\"listStyleImage\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(LIST_TYPE, 'list', false, false), ['listStyleType'])\n // ...prefixObjectKeys(valueToArray({...LIST_TYPE}, 'listStyleType' as const), 'list', false, false),\n // },\n variants: StylesVariants.listStyleType\n },\n textAlign: {\n values: {...TEXT_ALIGN},\n shorthands: {\"text\": [\"textAlign\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(TEXT_ALIGN, 'text', false, false), ['textAlign'])\n // ...prefixObjectKeys(valueToArray({...TEXT_ALIGN}, 'textAlign' as const), 'text', false, false),\n // },\n variants: StylesVariants.textAlign\n },\n textOverflow: {\n values: {...textOverflowData},\n shorthands: {\"text\": [\"textOverflow\"]},\n // shorthands: {\n // // ...prefixObjectKeys(textOverflowData, 'text', false, false)\n // ...prefixObjectKeys(valueToArray({...textOverflowData}, 'textOverflow' as const), 'text', false, false),\n // },\n variants: StylesVariants.textOverflow\n },\n color: {\n values: {...LightColors},\n shorthands: {\"text\": [\"color\"]},\n variants: StylesVariants.textColor\n },\n textDecorationColor: {\n values: {...LightColors},\n shorthands: {\"text-decoration\": [\"textDecorationColor\"]},\n variants: StylesVariants.textDecoration\n },\n textDecoration: {\n values: [\"underline\", \"overline\", \"line-through\", \"no-underline:none\"],\n // {...TEXT_DECORATION},\n shorthands: {\n ...valueToArray({...TEXT_DECORATION}, 'textDecoration' as const)\n // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])\n // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION}, 'textDecoration' as const), '', false, false),\n },\n variants: []\n },\n textDecorationStyle: {\n values: {...TEXT_DECORATION_STYLE},\n shorthands: {\"text-decoration\": [\"textDecorationStyle\"]},\n // shorthands: {\n // // ...wrapValues(prefixObjectKeys(TEXT_DECORATION_STYLE, 'text', false, false), ['textDecorationStyle'])\n // ...prefixObjectKeys(valueToArray({...TEXT_DECORATION_STYLE}, 'textDecorationStyle' as const), 'text', false, false),\n // },\n variants: []\n },\n textDecorationThickness: {\n values: {...TEXT_DECORATION_THICKNESS},\n shorthands: {\"text-decoration\": [\"textDecorationThickness\"]},\n variants: []\n },\n textUnderlineOffset: {\n values: {...TEXT_UNDERLINE_OFFSET},\n shorthands: {\"underline-offset\": [\"textUnderlineOffset\"]},\n variants: []\n },\n textTransform: {\n values: {...TEXT_TRANSFORM},\n // shorthands: {\"text-trf\": [\"textTransform\"]},\n // shorthands: {...wrapValues(prefixObjectKeys(TEXT_TRANSFORM, 'text', false, false), ['textTransform'])},\n shorthands: {\n text: [\"textTransform\"]\n // ...prefixObjectKeys(valueToArray({...TEXT_TRANSFORM}, 'textTransform' as const), 'text', false, false),\n },\n variants: StylesVariants.textTransform\n },\n textWrap: {\n values: {...TEXT_WRAP},\n shorthands: {\"text\": [\"textWrap\"]},\n // shorthands: {...wrapValues(prefixObjectKeys(TEXT_WRAP, 'text', false, false), ['textWrap'])},\n variants: []\n },\n textIndent: {\n values: {...TEXT_INDENT},\n shorthands: {\"indent\": [\"textIndent\"]},\n variants: []\n },\n vericalAlign: {\n values: {...VERTICAL_ALIGN},\n shorthands: {\"align\": [\"verticalAlign\"]},\n variants: StylesVariants.verticalAlign\n },\n whiteSpace: {\n values: {...WHITE_SPACE},\n shorthands: {\"whitespace\": [\"whiteSpace\"]},\n variants: StylesVariants.whitespace\n },\n hyphens: {\n values: {...HYPHENS},\n shorthands: {\"hyphens\": [\"hyphens\"]},\n variants: []\n },\n wordbreak: {\n values: {\n normal: {overflowWrap: \"normal\", wordBreak: \"normal\"},\n words: {overflowWrap: \"break-word\"},\n all: {overflowWrap: \"break-all\"},\n keep: {overflowWrap: \"keep-all\"},\n },\n shorthands: {\n \"break\": [\"overflowWrap\"]\n },\n variants: StylesVariants.wordBreak\n },\n content: {\n values: {\n none: \"none\"\n },\n shorthands: {\n \"content\": [\"content\"]\n },\n variants: []\n },\n placeholderColor: {\n values: {...LightColors},\n shorthands: {\"placeholder\": [\"placeholderColor\"]},\n variants: StylesVariants.placeholderOpacity\n },\n placeholderOpacity: {\n values: {...OpacityMap},\n shorthands: {\"placeholder-opacity\": [\"placeholderOpacity\"]},\n variants: StylesVariants.placeholderOpacity\n },\n} as const;\n\nexport const TypographyProps = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"values\"])} as const;\nexport const TypographyVariants = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"variants\"])} as const;\nexport const TypographyShorthands = {...dynamicPick({...createMutable(TypographyProperties)}, objectKeys(TypographyProperties), true, false, [\"shorthands\"])} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./constants.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./constants.js\";"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function detectImportType(content: string, path: string): 'require' | 'import';
|
|
2
|
+
export declare function detectModuleType(path: string): Promise<"module" | "commonjs">;
|
|
3
|
+
export declare function loadTypeScriptFile(content: string, filename: string): Promise<any>;
|
|
4
|
+
export declare function filePathToUrl(path: string): string;
|
|
5
|
+
export declare function findPackageJson(path: string): {
|
|
6
|
+
path: string;
|
|
7
|
+
content: any;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare function importWithFallbacks(path: string, logger?: any): Promise<{
|
|
10
|
+
value: any;
|
|
11
|
+
path: string;
|
|
12
|
+
} | null>;
|
|
13
|
+
export declare function normalizeFilePath(path: string): string;
|
|
14
|
+
export declare const getAbsPath: (relativeFilePath: string, directory?: string) => string | null;
|
|
15
|
+
export declare const getRelativePath: (dir1: string, dir2?: string) => string | null;
|
|
16
|
+
export declare const getFilePath: (filename: string) => string;
|
|
17
|
+
export declare const matchLiteralString: (content: string) => string[];
|
|
18
|
+
export declare const matchLiteralStringA: (content: string) => string[];
|