@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,159 @@
|
|
|
1
|
+
import { FullMap, POSITIONS_DATA, POSITIONS_DATA_Y, StylesVariants } from "../../commons/constants.js";
|
|
2
|
+
import { PercentMap, Zero_100_Map_Rem, buildModelMap, createMutable, dynamicPick, generateRange, kebabObjectKeys, objectKeys, omitFilter, valueToArray } from "../../commons/helper.js";
|
|
3
|
+
import { CssProperties } from "../../commons/properties.js";
|
|
4
|
+
const i = ['inherit', 'initial', '[prop:column-width]', '[prop:column-count]'];
|
|
5
|
+
const s = ['inline-start', 'inline-end'];
|
|
6
|
+
export const DISPLAYS = omitFilter([...CssProperties.display.values, 'flow-root'], [...i]);
|
|
7
|
+
const FLOATS = omitFilter([...CssProperties.float.values, ...s], [...i]);
|
|
8
|
+
const BOX_SIZING = omitFilter([...CssProperties["box-sizing"].values], [...i]);
|
|
9
|
+
const OBJECT_FITS = omitFilter([...CssProperties["object-fit"].values], [...i]);
|
|
10
|
+
const OVERFLOWS = omitFilter([...CssProperties.overflow.values], [...i]);
|
|
11
|
+
const SCROLL_BEHAVIORS = omitFilter([...CssProperties["scroll-behavior"].values], [...i]);
|
|
12
|
+
const OVERSCROLL_BEHAVIORS = omitFilter([...CssProperties["overscroll-behavior"].values], [...i]);
|
|
13
|
+
const POSITIONS = omitFilter([...CssProperties.position.values], [...i]);
|
|
14
|
+
const VISIBILIY = omitFilter([...CssProperties.visibility.values, ...['invisible']], [...i, ...['hidden']]);
|
|
15
|
+
const OBJECT_POSITIONS = [...POSITIONS_DATA];
|
|
16
|
+
const ISOLATIONS = omitFilter([...CssProperties.isolation.values], [...i]);
|
|
17
|
+
const CLEARS = omitFilter([...CssProperties.clear.values], [...i]);
|
|
18
|
+
const Z_INDEXES = generateRange(0, 50, 10);
|
|
19
|
+
const COLUMNS = generateRange(0, 12, 1);
|
|
20
|
+
const COLUMNS_MAP = ["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl", "9xl", "10xl"];
|
|
21
|
+
export const OverflowProps = {
|
|
22
|
+
values: Object.assign({}, buildModelMap(OVERFLOWS, '')),
|
|
23
|
+
shorthands: { "overflow": ["overflow"], "overflow-x": ["overflowX"], "overflow-y": ["overflowY"] },
|
|
24
|
+
variants: StylesVariants.overflow
|
|
25
|
+
};
|
|
26
|
+
export const DisplayProps = {
|
|
27
|
+
values: DISPLAYS.slice().map(v => v === 'none' ? 'hidden:none' : v),
|
|
28
|
+
// {
|
|
29
|
+
// ...kebabObjectKeys(buildModelMap(DISPLAYS, ''))
|
|
30
|
+
// },
|
|
31
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(buildModelMap(DISPLAYS, ''))), 'display')),
|
|
32
|
+
variants: StylesVariants.display
|
|
33
|
+
// shorthands: {"display": ["display"]}
|
|
34
|
+
};
|
|
35
|
+
export const PositionProps = {
|
|
36
|
+
values: POSITIONS,
|
|
37
|
+
// {
|
|
38
|
+
// ...buildModelMap(POSITIONS, '')
|
|
39
|
+
// },
|
|
40
|
+
// shorthands: {"position": ["position"]}
|
|
41
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, buildModelMap(POSITIONS, '')), 'position')),
|
|
42
|
+
variants: StylesVariants.position
|
|
43
|
+
};
|
|
44
|
+
export const FloatProps = {
|
|
45
|
+
values: Object.assign({}, buildModelMap(FLOATS, '')),
|
|
46
|
+
shorthands: { "float": ["float"] },
|
|
47
|
+
variants: StylesVariants.float
|
|
48
|
+
};
|
|
49
|
+
export const BoxSizingProps = {
|
|
50
|
+
values: {
|
|
51
|
+
"border": "border-box",
|
|
52
|
+
"content": "content-box"
|
|
53
|
+
},
|
|
54
|
+
shorthands: { "box": ["boxSizing"] },
|
|
55
|
+
variants: StylesVariants.boxSizing
|
|
56
|
+
};
|
|
57
|
+
export const ObjectFitProps = {
|
|
58
|
+
values: Object.assign({}, buildModelMap(OBJECT_FITS, '', '', '')),
|
|
59
|
+
shorthands: { "object": ["objectFit"] },
|
|
60
|
+
variants: StylesVariants.objectFit
|
|
61
|
+
};
|
|
62
|
+
export const ObjectPositionsProps = {
|
|
63
|
+
values: Object.assign(Object.assign(Object.assign(Object.assign({}, buildModelMap([...OBJECT_POSITIONS])), buildModelMap([...POSITIONS_DATA_Y], '', '', 'right-', true)), buildModelMap([...POSITIONS_DATA_Y], '', '', 'left-', true)), buildModelMap([...POSITIONS_DATA_Y], '', '', 'center-', true)),
|
|
64
|
+
shorthands: { "object": ["objectPosition"] },
|
|
65
|
+
variants: StylesVariants.objectPosition
|
|
66
|
+
};
|
|
67
|
+
export const VisibilityProps = {
|
|
68
|
+
values: ["invisible:hidden", "visible", "collapse"],
|
|
69
|
+
// {
|
|
70
|
+
// ...buildModelMap(VISIBILIY)
|
|
71
|
+
// },
|
|
72
|
+
// shorthands: {"visibility": ["visibility"]},
|
|
73
|
+
shorthands: Object.assign({}, valueToArray(Object.assign({}, kebabObjectKeys(buildModelMap(VISIBILIY, ''))), 'visibility')),
|
|
74
|
+
variants: StylesVariants.visibility
|
|
75
|
+
};
|
|
76
|
+
export const IsolationProps = {
|
|
77
|
+
values: ISOLATIONS,
|
|
78
|
+
// {
|
|
79
|
+
// ...buildModelMap(ISOLATIONS)
|
|
80
|
+
// },
|
|
81
|
+
shorthands: { "isolate": ["isolation"] },
|
|
82
|
+
variants: StylesVariants.isolation
|
|
83
|
+
};
|
|
84
|
+
export const ClearProps = {
|
|
85
|
+
values: Object.assign({}, buildModelMap(CLEARS)),
|
|
86
|
+
shorthands: { "clear": ["clear"] },
|
|
87
|
+
variants: StylesVariants.clear
|
|
88
|
+
};
|
|
89
|
+
export const ZindexProps = {
|
|
90
|
+
values: Object.assign({}, buildModelMap(Z_INDEXES, '')),
|
|
91
|
+
shorthands: { "z": ["zIndex"] },
|
|
92
|
+
variants: StylesVariants.zIndex
|
|
93
|
+
};
|
|
94
|
+
export const TopRightBottomLeftProps = {
|
|
95
|
+
values: Object.assign(Object.assign(Object.assign({}, Zero_100_Map_Rem), PercentMap), FullMap),
|
|
96
|
+
shorthands: {
|
|
97
|
+
"top": ["top"],
|
|
98
|
+
"right": ["right"],
|
|
99
|
+
"bottom": ["bottom"],
|
|
100
|
+
"left": ["left"],
|
|
101
|
+
},
|
|
102
|
+
variants: StylesVariants.position
|
|
103
|
+
};
|
|
104
|
+
export const InsetProps = {
|
|
105
|
+
values: Object.assign(Object.assign(Object.assign({}, Zero_100_Map_Rem), PercentMap), FullMap),
|
|
106
|
+
shorthands: {
|
|
107
|
+
"inset": ["inset"]
|
|
108
|
+
},
|
|
109
|
+
variants: StylesVariants.position
|
|
110
|
+
};
|
|
111
|
+
export const ColumnsProps = {
|
|
112
|
+
values: Object.assign({}, buildModelMap([...COLUMNS, ...COLUMNS_MAP], '', '', '')),
|
|
113
|
+
shorthands: { "columns": ["columns"] },
|
|
114
|
+
variants: StylesVariants.gridColumn
|
|
115
|
+
};
|
|
116
|
+
export const ScrollBehaviorProps = {
|
|
117
|
+
values: Object.assign({}, buildModelMap(SCROLL_BEHAVIORS, '')),
|
|
118
|
+
shorthands: { "scrollbehavior": ["scrollBehavior"] },
|
|
119
|
+
variants: []
|
|
120
|
+
};
|
|
121
|
+
export const OverscrollBehaviorProps = {
|
|
122
|
+
values: Object.assign({}, buildModelMap(OVERSCROLL_BEHAVIORS, '')),
|
|
123
|
+
shorthands: { "overscroll": ["overscrollBehavior"] },
|
|
124
|
+
variants: []
|
|
125
|
+
};
|
|
126
|
+
export const LayoutProperties = {
|
|
127
|
+
aspectRatio: {
|
|
128
|
+
values: {
|
|
129
|
+
'auto': 'auto',
|
|
130
|
+
'square': '1 / 1',
|
|
131
|
+
'landscape': '16 / 9',
|
|
132
|
+
'portait': '9 / 16',
|
|
133
|
+
},
|
|
134
|
+
shorthands: {
|
|
135
|
+
"aspect": ["aspectRatio"]
|
|
136
|
+
},
|
|
137
|
+
variants: []
|
|
138
|
+
},
|
|
139
|
+
display: Object.assign({}, DisplayProps),
|
|
140
|
+
overflow: Object.assign({}, OverflowProps),
|
|
141
|
+
float: Object.assign({}, FloatProps),
|
|
142
|
+
position: Object.assign({}, PositionProps),
|
|
143
|
+
boxSizing: Object.assign({}, BoxSizingProps),
|
|
144
|
+
objectFit: Object.assign({}, ObjectFitProps),
|
|
145
|
+
objectPosition: Object.assign({}, ObjectPositionsProps),
|
|
146
|
+
visibility: Object.assign({}, VisibilityProps),
|
|
147
|
+
isolation: Object.assign({}, IsolationProps),
|
|
148
|
+
clear: Object.assign({}, ClearProps),
|
|
149
|
+
zIndex: Object.assign({}, ZindexProps),
|
|
150
|
+
columns: Object.assign({}, ColumnsProps),
|
|
151
|
+
// scrollBehavior: {...ScrollBehaviorProps},
|
|
152
|
+
oversrollBehavior: Object.assign({}, OverscrollBehaviorProps),
|
|
153
|
+
topRightBottomLeft: Object.assign({}, TopRightBottomLeftProps),
|
|
154
|
+
inset: Object.assign({}, InsetProps)
|
|
155
|
+
};
|
|
156
|
+
export const LayoutProps = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['values']));
|
|
157
|
+
export const LayoutVariants = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['variants']));
|
|
158
|
+
export const LayoutShorthands = Object.assign({}, dynamicPick(Object.assign({}, createMutable(LayoutProperties)), objectKeys(LayoutProperties), true, false, ['shorthands'], true));
|
|
159
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utilities/layout/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,cAAc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CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAU,CAAC;AAClJ,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,CAAC,CAAU,CAAC;AACvJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAI,WAAW,mBAAK,aAAa,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAU,CAAC","sourcesContent":["import {FullMap, POSITIONS_DATA, POSITIONS_DATA_Y, StylesVariants } from \"../../commons/constants.js\";\nimport { Five_12_Map, Fourteen_32_Map, PercentMap, ThirtySix_100_Map, Zero_100_Map_Rem, Zero_4_Map, buildModelMap, createMutable, dynamicPick, generateRange, kebabObjectKeys, objectKeys, omitFilter, valueToArray } from \"../../commons/helper.js\";\nimport { CssProperties } from \"../../commons/properties.js\";\n\nconst i = <const>['inherit', 'initial', '[prop:column-width]', '[prop:column-count]'];\nconst s = <const>['inline-start', 'inline-end'];\nexport const DISPLAYS = omitFilter([...CssProperties.display.values, 'flow-root' as const], [...i]);\n\nconst FLOATS = omitFilter([...CssProperties.float.values, ...s], [...i]);\nconst BOX_SIZING = omitFilter([...CssProperties[\"box-sizing\"].values], [...i]);\nconst OBJECT_FITS = omitFilter([...CssProperties[\"object-fit\"].values], [...i]);\nconst OVERFLOWS = omitFilter([...CssProperties.overflow.values], [...i]);\nconst SCROLL_BEHAVIORS = omitFilter([...CssProperties[\"scroll-behavior\"].values], [...i]);\nconst OVERSCROLL_BEHAVIORS = omitFilter([...CssProperties[\"overscroll-behavior\"].values], [...i]);\nconst POSITIONS = omitFilter([...CssProperties.position.values], [...i]);\nconst VISIBILIY = omitFilter([...CssProperties.visibility.values, ...['invisible'] as const], [...i, ...['hidden'] as const]);\nconst OBJECT_POSITIONS = [...POSITIONS_DATA] as const;\nconst ISOLATIONS = omitFilter([...CssProperties.isolation.values], [...i]);\nconst CLEARS = omitFilter([...CssProperties.clear.values], [...i]);\n\n\n\nconst Z_INDEXES = generateRange(0, 50, 10);\nconst COLUMNS = generateRange(0, 12, 1);\nconst COLUMNS_MAP = <const>[\"3xs\",\"2xs\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\",\"2xl\",\"3xl\",\"4xl\",\"5xl\",\"6xl\", \"7xl\",\"8xl\",\"9xl\",\"10xl\"]\n\n\n\nexport const OverflowProps = {\n values: {\n ...buildModelMap(OVERFLOWS, '')\n },\n shorthands: {\"overflow\": [\"overflow\"], \"overflow-x\": [\"overflowX\"], \"overflow-y\": [\"overflowY\"]},\n variants: StylesVariants.overflow\n} as const;\n\nexport const DisplayProps = {\n values: DISPLAYS.slice().map(v=> v=== 'none' ? 'hidden:none' :v),\n // {\n // ...kebabObjectKeys(buildModelMap(DISPLAYS, ''))\n // },\n shorthands: {...valueToArray({...kebabObjectKeys(buildModelMap(DISPLAYS, ''))}, 'display' as const)},\n variants: StylesVariants.display\n // shorthands: {\"display\": [\"display\"]}\n} as const;\nexport const PositionProps = {\n values: POSITIONS,\n // {\n // ...buildModelMap(POSITIONS, '')\n // },\n // shorthands: {\"position\": [\"position\"]}\n shorthands: {...valueToArray({...buildModelMap(POSITIONS, '')}, 'position' as const)},\n variants: StylesVariants.position\n} as const;\nexport const FloatProps = {\n values: {\n ...buildModelMap(FLOATS, '')\n },\n shorthands: {\"float\": [\"float\"]},\n variants: StylesVariants.float\n} as const;\nexport const BoxSizingProps = {\n values: {\n \"border\": \"border-box\",\n \"content\": \"content-box\"\n },\n shorthands: {\"box\": [\"boxSizing\"]},\n variants: StylesVariants.boxSizing\n} as const;\nexport const ObjectFitProps = {\n values: {\n ...buildModelMap(OBJECT_FITS, '', '', '')\n },\n shorthands: {\"object\": [\"objectFit\"]},\n variants: StylesVariants.objectFit\n} as const;\nexport const ObjectPositionsProps = {\n values: {\n ...buildModelMap([...OBJECT_POSITIONS]),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'right-', true),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'left-', true),\n ...buildModelMap([...POSITIONS_DATA_Y],'', '', 'center-', true),\n },\n shorthands: {\"object\": [\"objectPosition\"]},\n variants: StylesVariants.objectPosition\n} as const;\nexport const VisibilityProps = {\n values: [\"invisible:hidden\", \"visible\", \"collapse\"],\n // {\n // ...buildModelMap(VISIBILIY)\n // },\n // shorthands: {\"visibility\": [\"visibility\"]},\n shorthands: {...valueToArray({...kebabObjectKeys(buildModelMap(VISIBILIY, ''))}, 'visibility' as const)},\n variants: StylesVariants.visibility\n} as const;\nexport const IsolationProps = {\n values: ISOLATIONS,\n // {\n // ...buildModelMap(ISOLATIONS)\n // },\n shorthands: {\"isolate\": [\"isolation\"]},\n variants: StylesVariants.isolation\n} as const;\nexport const ClearProps = {\n values: {\n ...buildModelMap(CLEARS)\n },\n shorthands: {\"clear\": [\"clear\"]},\n variants: StylesVariants.clear\n} as const;\nexport const ZindexProps = {\n values: {\n ...buildModelMap(Z_INDEXES, '')\n },\n shorthands: {\"z\": [\"zIndex\"]},\n variants: StylesVariants.zIndex\n} as const;\nexport const TopRightBottomLeftProps = {\n values: {\n ...Zero_100_Map_Rem,\n ...PercentMap,\n ...FullMap,\n },\n shorthands: {\n \"top\": [\"top\"],\n \"right\": [\"right\"],\n \"bottom\": [\"bottom\"],\n \"left\": [\"left\"],\n },\n variants: StylesVariants.position\n} as const;\nexport const InsetProps = {\n values: {\n ...Zero_100_Map_Rem,\n ...PercentMap,\n ...FullMap,\n },\n shorthands: {\n \"inset\": [\"inset\"]\n },\n variants: StylesVariants.position\n} as const;\nexport const ColumnsProps = {\n values: {\n ...buildModelMap([...COLUMNS, ...COLUMNS_MAP], '', '', ''),\n },\n shorthands: {\"columns\": [\"columns\"]},\n variants: StylesVariants.gridColumn\n} as const;\nexport const ScrollBehaviorProps = {\n values: {\n ...buildModelMap(SCROLL_BEHAVIORS, '')\n },\n shorthands: {\"scrollbehavior\": [\"scrollBehavior\"]},\n variants: []\n} as const;\nexport const OverscrollBehaviorProps = {\n values: {\n ...buildModelMap(OVERSCROLL_BEHAVIORS, '')\n },\n shorthands: {\"overscroll\": [\"overscrollBehavior\"]},\n variants: []\n} as const;\n\n\nexport const LayoutProperties = {\n aspectRatio: {\n values: {\n 'auto': 'auto',\n 'square': '1 / 1',\n 'landscape': '16 / 9',\n 'portait': '9 / 16',\n },\n shorthands: {\n \"aspect\": [\"aspectRatio\"]\n },\n variants: []\n },\n display: {...DisplayProps},\n overflow: {...OverflowProps},\n float: {...FloatProps},\n position: {...PositionProps},\n boxSizing: {...BoxSizingProps},\n objectFit: {...ObjectFitProps},\n objectPosition: {...ObjectPositionsProps},\n visibility: {...VisibilityProps},\n isolation: {...IsolationProps},\n clear: {...ClearProps},\n zIndex: {...ZindexProps},\n columns: {...ColumnsProps},\n // scrollBehavior: {...ScrollBehaviorProps},\n oversrollBehavior: {...OverscrollBehaviorProps},\n topRightBottomLeft: {...TopRightBottomLeftProps},\n inset: {...InsetProps}\n} as const;\n\nexport const LayoutProps = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['values'])} as const;\nexport const LayoutVariants = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['variants'])} as const;\nexport const LayoutShorthands = {...dynamicPick({...createMutable(LayoutProperties)}, objectKeys(LayoutProperties), true, false, ['shorthands'], true)} as const;"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './constants.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './constants.js';"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/utilities/layout/types.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|