@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,64 @@
|
|
|
1
|
+
import { AvatarStyles } from "./avatar";
|
|
2
|
+
import { ButtonStyles } from "./button";
|
|
3
|
+
import { CardStyles } from "./card";
|
|
4
|
+
import { CheckboxStyles } from "./checkbox";
|
|
5
|
+
import { DateRangePickerStyles } from "./daterangepicker";
|
|
6
|
+
import { DialogStyles } from "./dialog";
|
|
7
|
+
import { DrawerStyles } from "./drawer";
|
|
8
|
+
import { DropdownStyles } from "./dropdown";
|
|
9
|
+
import { FormField } from "./forms";
|
|
10
|
+
import { BodyStyles, ResetStyles } from "./layout";
|
|
11
|
+
import { ListStyles } from "./list";
|
|
12
|
+
import { RadioStyles } from "./radio";
|
|
13
|
+
import { SelectStyles } from "./select";
|
|
14
|
+
import { SidenavStyles } from "./sidenav";
|
|
15
|
+
import { TableStyles } from "./table";
|
|
16
|
+
import { PopoverStyles } from "./popover";
|
|
17
|
+
export const Components = (styles = {}) => {
|
|
18
|
+
return {
|
|
19
|
+
avatar: AvatarStyles(styles.avatar),
|
|
20
|
+
body: BodyStyles(styles.body),
|
|
21
|
+
reset: ResetStyles(styles.reset),
|
|
22
|
+
btn: ButtonStyles(styles.btn),
|
|
23
|
+
card: CardStyles(styles.card),
|
|
24
|
+
dialog: DialogStyles(styles.dialog),
|
|
25
|
+
formField: FormField(styles.formField),
|
|
26
|
+
list: ListStyles(styles.list),
|
|
27
|
+
checkbox: CheckboxStyles(styles.checkbox),
|
|
28
|
+
radio: RadioStyles(styles.radio),
|
|
29
|
+
sidenav: SidenavStyles(styles.sidenav),
|
|
30
|
+
drawer: DrawerStyles(styles.drawer),
|
|
31
|
+
dropdown: DropdownStyles(styles.dropdown),
|
|
32
|
+
table: TableStyles(styles.table),
|
|
33
|
+
grid: TableStyles(styles.table),
|
|
34
|
+
select: SelectStyles(styles.select),
|
|
35
|
+
daterangepicker: DateRangePickerStyles(styles.daterangepicker),
|
|
36
|
+
popover: PopoverStyles(styles.popover)
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export const getComponentsInfos = () => {
|
|
40
|
+
return [
|
|
41
|
+
{ name: '.flx-card', 'key': 'card' },
|
|
42
|
+
{ name: '.flx-dialog', 'key': 'dialog' },
|
|
43
|
+
{ name: '.flx-form-field', 'key': 'formField' },
|
|
44
|
+
{ name: '.flx-btn', 'key': 'btn' },
|
|
45
|
+
{ name: 'body', 'key': 'body' },
|
|
46
|
+
{ name: 'reset', 'key': '' },
|
|
47
|
+
{ name: '.flx-avatar', 'key': 'avatar' },
|
|
48
|
+
{ name: '.flx-list', 'key': 'list' },
|
|
49
|
+
{ name: '.flx-checkbox', 'key': 'checkbox' },
|
|
50
|
+
{ name: '.flx-radio', 'key': 'radio' },
|
|
51
|
+
{ name: '.flx-radio', 'key': 'radio' },
|
|
52
|
+
{ name: '.flx-alert', 'key': 'alert' },
|
|
53
|
+
{ name: '.flx-dropdown', 'key': 'dropdown' },
|
|
54
|
+
{ name: '.flx-icon', 'key': 'icon' },
|
|
55
|
+
{ name: '.flx-sidenav', 'key': 'sidenav' },
|
|
56
|
+
{ name: '.flx-drawer', 'key': 'drawer' },
|
|
57
|
+
{ name: '.flx-dropdown', 'key': 'dropdown' },
|
|
58
|
+
{ name: '.flx-table', 'key': 'table' },
|
|
59
|
+
{ name: '.flx-form-select', 'key': 'select' },
|
|
60
|
+
{ name: '.flx-daterangepicker', 'key': 'daterangepicker' },
|
|
61
|
+
{ name: '.flx-popover', 'key': 'popover' }
|
|
62
|
+
];
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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AAC;QAClC,EAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,EAAC;QAC1C,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAC;QACpC,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAC;QACpC,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAC;QACpC,EAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,EAAC;QAC1C,EAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAC;QAClC,EAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAC;QACxC,EAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAC;QACtC,EAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,EAAC;QAC1C,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAC;QACpC,EAAC,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,QAAQ,EAAC;QAC3C,EAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,iBAAiB,EAAC;QACxD,EAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAC;KAC3C,CAAA;AACL,CAAC,CAAA","sourcesContent":["import { AvatarStyles } from \"./avatar\";\nimport { ButtonStyles } from \"./button\";\nimport { CardStyles } from \"./card\";\nimport { CheckboxStyles } from \"./checkbox\";\nimport { DateRangePickerStyles } from \"./daterangepicker\";\nimport { DialogStyles } from \"./dialog\";\nimport { DrawerStyles } from \"./drawer\";\nimport { DropdownStyles } from \"./dropdown\";\nimport { FormField } from \"./forms\";\nimport { BodyStyles, ResetStyles } from \"./layout\";\nimport { ListStyles } from \"./list\";\nimport { RadioStyles } from \"./radio\";\nimport { SelectStyles } from \"./select\";\nimport { SidenavStyles } from \"./sidenav\";\nimport { TableStyles } from \"./table\";\nimport { PopoverStyles } from \"./popover\";\n\n\nexport const Components = (styles: any = {})=>{\n return {\n avatar: AvatarStyles(styles.avatar),\n body: BodyStyles(styles.body),\n reset: ResetStyles(styles.reset),\n btn: ButtonStyles(styles.btn),\n card: CardStyles(styles.card),\n dialog: DialogStyles(styles.dialog),\n formField: FormField(styles.formField),\n list: ListStyles(styles.list),\n checkbox: CheckboxStyles(styles.checkbox),\n radio: RadioStyles(styles.radio),\n sidenav: SidenavStyles(styles.sidenav),\n drawer: DrawerStyles(styles.drawer),\n dropdown: DropdownStyles(styles.dropdown),\n table: TableStyles(styles.table),\n grid: TableStyles(styles.table),\n select: SelectStyles(styles.select),\n daterangepicker: DateRangePickerStyles(styles.daterangepicker),\n popover: PopoverStyles(styles.popover)\n }\n};\n\nexport const getComponentsInfos = ()=>{\n return [\n {name: '.flx-card', 'key': 'card'},\n {name: '.flx-dialog', 'key': 'dialog'}, \n {name: '.flx-form-field', 'key': 'formField'}, \n {name: '.flx-btn', 'key': 'btn'},\n {name: 'body', 'key': 'body'}, \n {name: 'reset', 'key': ''}, \n {name: '.flx-avatar', 'key': 'avatar'}, \n {name: '.flx-list', 'key': 'list'}, \n {name: '.flx-checkbox', 'key': 'checkbox'}, \n {name: '.flx-radio', 'key': 'radio'}, \n {name: '.flx-radio', 'key': 'radio'}, \n {name: '.flx-alert', 'key': 'alert'}, \n {name: '.flx-dropdown', 'key': 'dropdown'}, \n {name: '.flx-icon', 'key': 'icon'},\n {name: '.flx-sidenav', 'key': 'sidenav'},\n {name: '.flx-drawer', 'key': 'drawer'},\n {name: '.flx-dropdown', 'key': 'dropdown'},\n {name: '.flx-table', 'key': 'table'},\n {name: '.flx-form-select', 'key': 'select'},\n {name: '.flx-daterangepicker', 'key': 'daterangepicker'},\n {name: '.flx-popover', 'key': 'popover'}\n ]\n}"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const BodyStyles: (styles?: any) => {
|
|
2
|
+
font: {
|
|
3
|
+
size: string;
|
|
4
|
+
weight: string;
|
|
5
|
+
family: string;
|
|
6
|
+
};
|
|
7
|
+
h: string;
|
|
8
|
+
px: string;
|
|
9
|
+
py: string;
|
|
10
|
+
mx: string;
|
|
11
|
+
my: string;
|
|
12
|
+
bg: {
|
|
13
|
+
light: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
};
|
|
16
|
+
color: {
|
|
17
|
+
light: string;
|
|
18
|
+
dark: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const ResetStyles: (styles?: any) => {
|
|
22
|
+
svg: {
|
|
23
|
+
color: {
|
|
24
|
+
light: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const BodyStyles = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
font: {
|
|
4
|
+
size: `theme(${'fontSize.sm'})`,
|
|
5
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
6
|
+
family: 'system-ui,-apple-system,system-ui,"NotoSans","Poppins","Roboto","Segoe UI", "Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
|
|
7
|
+
},
|
|
8
|
+
h: '100vh',
|
|
9
|
+
px: `theme(${'padding.0'})`,
|
|
10
|
+
py: `theme(${'padding.0'})`,
|
|
11
|
+
mx: `theme(${'margin.0'})`,
|
|
12
|
+
my: `theme(${'margin.0'})`,
|
|
13
|
+
bg: {
|
|
14
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
15
|
+
dark: `theme(${'backgroundColor.basic.dark'})`,
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
19
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export const ResetStyles = (styles = {}) => {
|
|
24
|
+
return {
|
|
25
|
+
svg: {
|
|
26
|
+
color: {
|
|
27
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
28
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IACzC,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,aAAa,GAAG;YAC/B,MAAM,EAAE,SAAS,mBAAmB,GAAG;YACvC,MAAM,EAAE,yLAAyL;SACpM;QACD,CAAC,EAAE,OAAO;QACV,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,UAAU,GAAG;QAC1B,EAAE,EAAE,SAAS,UAAU,GAAG;QAC1B,EAAE,EAAE;YACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;YACxD,IAAI,EAAE,SAAS,4BAA4B,GAAG;SACjD;QACD,KAAK,EAAE;YACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;YAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;SAC5C;KACJ,CAAA;AACL,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC1C,OAAO;QACH,GAAG,EAAE;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;gBAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;aAC5C;SACJ;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const BodyStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n family: 'system-ui,-apple-system,system-ui,\"NotoSans\",\"Poppins\",\"Roboto\",\"Segoe UI\", \"Helvetica Neue\",Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\"'\n },\n h: '100vh',\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n mx: `theme(${'margin.0'})`,\n my: `theme(${'margin.0'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n }\n }\n}\nexport const ResetStyles = (styles:any = {})=>{\n return {\n svg: {\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n }\n }\n }\n}\n\n\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const ListStyles: (styles?: any) => {
|
|
2
|
+
item: {
|
|
3
|
+
px: string;
|
|
4
|
+
py: string;
|
|
5
|
+
hover: {
|
|
6
|
+
bg: {
|
|
7
|
+
light: string;
|
|
8
|
+
dark: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
light: string;
|
|
13
|
+
dark: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
divider: {
|
|
17
|
+
width: string;
|
|
18
|
+
color: {
|
|
19
|
+
light: string;
|
|
20
|
+
dark: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
font: {
|
|
24
|
+
size: string;
|
|
25
|
+
weight: string;
|
|
26
|
+
};
|
|
27
|
+
px: string;
|
|
28
|
+
py: string;
|
|
29
|
+
bg: {
|
|
30
|
+
light: string;
|
|
31
|
+
dark: string;
|
|
32
|
+
};
|
|
33
|
+
border: {
|
|
34
|
+
width: string;
|
|
35
|
+
color: {
|
|
36
|
+
light: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
};
|
|
39
|
+
radius: string;
|
|
40
|
+
};
|
|
41
|
+
color: {
|
|
42
|
+
light: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
};
|
|
45
|
+
header: {
|
|
46
|
+
px: string;
|
|
47
|
+
py: string;
|
|
48
|
+
title: {
|
|
49
|
+
font: {
|
|
50
|
+
size: string;
|
|
51
|
+
weight: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
height: string;
|
|
55
|
+
};
|
|
56
|
+
body: {
|
|
57
|
+
px: string;
|
|
58
|
+
py: string;
|
|
59
|
+
};
|
|
60
|
+
footer: {
|
|
61
|
+
px: string;
|
|
62
|
+
py: string;
|
|
63
|
+
height: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export const ListStyles = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
item: {
|
|
4
|
+
px: `theme(${'padding.3'})`,
|
|
5
|
+
py: `theme(${'padding.2'})`,
|
|
6
|
+
hover: {
|
|
7
|
+
bg: {
|
|
8
|
+
light: `theme(${'backgroundColor.basic.hover.light'})`,
|
|
9
|
+
dark: `theme(${'backgroundColor.basic.hover.dark'})`,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
color: {
|
|
13
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
14
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
divider: {
|
|
18
|
+
width: `theme(${'borderWidth.xs'})`,
|
|
19
|
+
color: {
|
|
20
|
+
light: `theme(${'color.basic.border.DEFAULT'})`,
|
|
21
|
+
dark: `theme(${'color.basic.border.dark'})`
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
font: {
|
|
25
|
+
size: `theme(${'fontSize.base'})`,
|
|
26
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
27
|
+
},
|
|
28
|
+
px: `theme(${'padding.2'})`,
|
|
29
|
+
py: `theme(${'padding.2'})`,
|
|
30
|
+
bg: {
|
|
31
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
32
|
+
dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
|
|
33
|
+
},
|
|
34
|
+
border: {
|
|
35
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
36
|
+
color: {
|
|
37
|
+
light: `transparent`,
|
|
38
|
+
dark: `transparent`
|
|
39
|
+
},
|
|
40
|
+
radius: `theme(${'borderRadius.2xl'})`,
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
44
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
45
|
+
},
|
|
46
|
+
header: {
|
|
47
|
+
px: `theme(${'padding.2'})`,
|
|
48
|
+
py: `theme(${'padding.2'})`,
|
|
49
|
+
title: {
|
|
50
|
+
font: {
|
|
51
|
+
size: `theme(${'fontSize.md'})`,
|
|
52
|
+
weight: `theme(${'fontWeight.semibold'})`,
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
height: '0px'
|
|
56
|
+
},
|
|
57
|
+
body: {
|
|
58
|
+
px: `theme(${'padding.3'})`,
|
|
59
|
+
py: `theme(${'padding.2'})`,
|
|
60
|
+
},
|
|
61
|
+
footer: {
|
|
62
|
+
px: `theme(${'padding.2'})`,
|
|
63
|
+
py: `theme(${'padding.2'})`,
|
|
64
|
+
height: '0px'
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/list/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IACzC,OAAO;QACH,IAAI,EAAE;YACF,EAAE,EA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AM,EAAE,KAAK;SAChB;QACD,IAAI,EAAE;YACF,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;SAC9B;QACD,MAAM,EAAE;YACJ,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,MAAM,EAAE,KAAK;SAChB;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const ListStyles = (styles:any = {})=>{\n return {\n item: { \n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`, \n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.hover.light'})`,\n dark: `theme(${'backgroundColor.basic.hover.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n },\n divider: {\n width: `theme(${'borderWidth.xs'})`,\n color: {\n light: `theme(${'color.basic.border.DEFAULT'})`,\n dark: `theme(${'color.basic.border.dark'})`\n },\n },\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.dark'})`,\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `transparent`,\n dark: `transparent`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n header: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n title: {\n font: {\n size: `theme(${'fontSize.md'})`,\n weight: `theme(${'fontWeight.semibold'})`,\n }\n },\n height: '0px'\n },\n body: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n },\n footer: {\n px: `theme(${'padding.2'})`,\n py: `theme(${'padding.2'})`,\n height: '0px'\n }\n }\n}"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const PopoverStyles: (styles?: any) => {
|
|
2
|
+
font: {
|
|
3
|
+
size: string;
|
|
4
|
+
weight: string;
|
|
5
|
+
};
|
|
6
|
+
px: string;
|
|
7
|
+
py: string;
|
|
8
|
+
bg: {
|
|
9
|
+
light: string;
|
|
10
|
+
dark: string;
|
|
11
|
+
};
|
|
12
|
+
menu: {
|
|
13
|
+
px: string;
|
|
14
|
+
py: string;
|
|
15
|
+
bg: {
|
|
16
|
+
light: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
};
|
|
19
|
+
border: {
|
|
20
|
+
width: string;
|
|
21
|
+
color: {
|
|
22
|
+
light: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
};
|
|
25
|
+
radius: string;
|
|
26
|
+
};
|
|
27
|
+
width: string;
|
|
28
|
+
minWidth: string;
|
|
29
|
+
minHeight: string;
|
|
30
|
+
maxHeight: string;
|
|
31
|
+
};
|
|
32
|
+
item: {
|
|
33
|
+
gap: string;
|
|
34
|
+
px: string;
|
|
35
|
+
py: string;
|
|
36
|
+
hover: {
|
|
37
|
+
bg: {
|
|
38
|
+
light: string;
|
|
39
|
+
dark: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
color: {
|
|
43
|
+
light: string;
|
|
44
|
+
dark: string;
|
|
45
|
+
};
|
|
46
|
+
border: {
|
|
47
|
+
width: string;
|
|
48
|
+
color: {
|
|
49
|
+
light: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
};
|
|
52
|
+
radius: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
gap: string;
|
|
56
|
+
border: {
|
|
57
|
+
width: string;
|
|
58
|
+
color: {
|
|
59
|
+
light: string;
|
|
60
|
+
dark: string;
|
|
61
|
+
};
|
|
62
|
+
radius: string;
|
|
63
|
+
};
|
|
64
|
+
color: {
|
|
65
|
+
light: string;
|
|
66
|
+
dark: string;
|
|
67
|
+
};
|
|
68
|
+
width: string;
|
|
69
|
+
minWidth: string;
|
|
70
|
+
minHeight: string;
|
|
71
|
+
maxHeight: string;
|
|
72
|
+
position: string;
|
|
73
|
+
backdrop: {
|
|
74
|
+
bg: {
|
|
75
|
+
light: string;
|
|
76
|
+
dark: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export const PopoverStyles = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
font: {
|
|
4
|
+
size: `theme(${'fontSize.base'})`,
|
|
5
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
6
|
+
},
|
|
7
|
+
px: `theme(${'padding.1'})`,
|
|
8
|
+
py: `theme(${'padding.1'})`,
|
|
9
|
+
bg: {
|
|
10
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
11
|
+
dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
|
|
12
|
+
},
|
|
13
|
+
menu: {
|
|
14
|
+
px: `theme(${'padding.1'})`,
|
|
15
|
+
py: `theme(${'padding.1'})`,
|
|
16
|
+
bg: {
|
|
17
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
18
|
+
dark: `theme(${'backgroundColor.basic.dark'})`,
|
|
19
|
+
},
|
|
20
|
+
border: {
|
|
21
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
22
|
+
color: {
|
|
23
|
+
light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
|
|
24
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`
|
|
25
|
+
},
|
|
26
|
+
radius: `theme(${'borderRadius.md'})`,
|
|
27
|
+
},
|
|
28
|
+
width: 'auto',
|
|
29
|
+
minWidth: '11rem',
|
|
30
|
+
minHeight: '20px',
|
|
31
|
+
maxHeight: '300px',
|
|
32
|
+
},
|
|
33
|
+
item: {
|
|
34
|
+
gap: `theme(${'gap.1'})`,
|
|
35
|
+
px: `theme(${'padding.3'})`,
|
|
36
|
+
py: `theme(${'padding.2'})`,
|
|
37
|
+
hover: {
|
|
38
|
+
bg: {
|
|
39
|
+
light: `theme(${'backgroundColor.basic.hover.light'})`,
|
|
40
|
+
dark: `theme(${'backgroundColor.basic.hover.dark'})`,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
45
|
+
dark: `theme(${'color.basic.text.darl'})`
|
|
46
|
+
},
|
|
47
|
+
border: {
|
|
48
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
49
|
+
color: {
|
|
50
|
+
light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
|
|
51
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`
|
|
52
|
+
},
|
|
53
|
+
radius: `calc(var(--flx-popover-menu-border-radius) - .1rem)`,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
gap: `theme(${'gap.1'})`,
|
|
57
|
+
border: {
|
|
58
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
59
|
+
color: {
|
|
60
|
+
light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
|
|
61
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`
|
|
62
|
+
},
|
|
63
|
+
radius: `theme(${'borderRadius.2xl'})`,
|
|
64
|
+
},
|
|
65
|
+
color: {
|
|
66
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
67
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
68
|
+
},
|
|
69
|
+
width: 'auto',
|
|
70
|
+
minWidth: '200px',
|
|
71
|
+
minHeight: '20px',
|
|
72
|
+
maxHeight: '300px',
|
|
73
|
+
position: 'fixed',
|
|
74
|
+
backdrop: {
|
|
75
|
+
bg: {
|
|
76
|
+
light: `theme(${'backgroundColor.black/[10%]'})`,
|
|
77
|
+
dark: `theme(${'backgroundColor.black/[70%]'})`,
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC5C,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,mBAAmB,GAAG;SAC1C;QACD,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;QAC3B,EAAE,EAAE;YACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;YACxD,IAAI,EAAE,SAAS,kCAAkC,GAAG;SACvD;QACD,IAAI,EAAE;YACF,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC/B,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;gBACxD,IAAI,EAAE,SAAS,4BAA4B,GAAG;aACjD;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACC,KAAK,EAAE,SAAS,sCAAsC,GAAG;oBACzD,IAAI,EAAE,SAAS,mCAAmC,GAAG;iBACxD;gBACD,MAAM,EAAE,SAAS,iBAAiB,GAAG;aACxC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,OAAO;SACrB;QACD,IAAI,EAAE;YACF,GAAG,EAAE,SAAS,OAAO,GAAG;YACxB,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE;gBACH,EAAE,EAAE;oBACA,KAAK,EAAE,SAAS,mCAAmC,GAAG;oBACtD,IAAI,EAAE,SAAS,kCAAkC,GAAG;iBACvD;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;gBAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;aAC5C;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACH,KAAK,EAAE,SAAS,sCAAsC,GAAG;oBACzD,IAAI,EAAE,SAAS,mCAAmC,GAAG;iBACxD;gBACD,MAAM,EAAE,qDAAqD;aAChE;SACJ;QACD,GAAG,EAAE,SAAS,OAAO,GAAG;QACxB,MAAM,EAAE;YACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;YACxC,KAAK,EAAE;gBACC,KAAK,EAAE,SAAS,sCAAsC,GAAG;gBACzD,IAAI,EAAE,SAAS,mCAAmC,GAAG;aAC5D;YACD,MAAM,EAAE,SAAS,kBAAkB,GAAG;SACzC;QACD,KAAK,EAAE;YACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;YAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;SAC5C;QACD,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,MAAM;QACjB,SAAS,EAAE,OAAO;QAClB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAC;YACL,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,6BAA6B,GAAG;gBAChD,IAAI,EAAE,SAAS,6BAA6B,GAAG;aAClD;SACJ;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const PopoverStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.tonal.dark'})`,\n },\n menu: {\n px: `theme(${'padding.1'})`,\n py: `theme(${'padding.1'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.dark'})`,\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n width: 'auto',\n minWidth: '11rem',\n minHeight: '20px',\n maxHeight: '300px',\n },\n item: { \n gap: `theme(${'gap.1'})`,\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`, \n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.hover.light'})`,\n dark: `theme(${'backgroundColor.basic.hover.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.darl'})`\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`\n },\n radius: `calc(var(--flx-popover-menu-border-radius) - .1rem)`,\n },\n },\n gap: `theme(${'gap.1'})`,\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n width: 'auto',\n minWidth: '200px',\n minHeight: '20px',\n maxHeight: '300px',\n position: 'fixed',\n backdrop:{\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n }\n },\n }\n}"]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const RadioStyles: (styles?: any) => {
|
|
2
|
+
font: {
|
|
3
|
+
size: string;
|
|
4
|
+
weight: string;
|
|
5
|
+
};
|
|
6
|
+
px: string;
|
|
7
|
+
py: string;
|
|
8
|
+
bg: {
|
|
9
|
+
light: string;
|
|
10
|
+
dark: string;
|
|
11
|
+
checked: {
|
|
12
|
+
light: string;
|
|
13
|
+
dark: string;
|
|
14
|
+
outlined: {
|
|
15
|
+
light: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
light: string;
|
|
22
|
+
dark: string;
|
|
23
|
+
checked: {
|
|
24
|
+
light: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
outlined: {
|
|
27
|
+
light: string;
|
|
28
|
+
dark: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
w: string;
|
|
33
|
+
h: string;
|
|
34
|
+
mnw: string;
|
|
35
|
+
border: {
|
|
36
|
+
width: string;
|
|
37
|
+
color: {
|
|
38
|
+
light: string;
|
|
39
|
+
dark: string;
|
|
40
|
+
valid: {
|
|
41
|
+
light: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
};
|
|
44
|
+
invalid: {
|
|
45
|
+
light: string;
|
|
46
|
+
dark: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
radius: string;
|
|
50
|
+
};
|
|
51
|
+
label: {
|
|
52
|
+
font: {
|
|
53
|
+
size: string;
|
|
54
|
+
weight: string;
|
|
55
|
+
};
|
|
56
|
+
color: {
|
|
57
|
+
light: string;
|
|
58
|
+
dark: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
placeholder: {
|
|
62
|
+
font: {
|
|
63
|
+
size: string;
|
|
64
|
+
weight: string;
|
|
65
|
+
};
|
|
66
|
+
color: {
|
|
67
|
+
light: string;
|
|
68
|
+
dark: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
hover: {
|
|
72
|
+
bg: {
|
|
73
|
+
light: string;
|
|
74
|
+
dark: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export const RadioStyles = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
font: {
|
|
4
|
+
size: `theme(${'fontSize.base'})`,
|
|
5
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
6
|
+
},
|
|
7
|
+
px: `theme(${'padding.0'})`,
|
|
8
|
+
py: `theme(${'padding.0'})`,
|
|
9
|
+
bg: {
|
|
10
|
+
light: `theme(${'backgroundColor.basic.muted.DEFAULT'})`,
|
|
11
|
+
dark: `theme(${'backgroundColor.basic.muted.dark'})`,
|
|
12
|
+
checked: {
|
|
13
|
+
light: `theme(${'backgroundColor.secondary.light'})`,
|
|
14
|
+
dark: `theme(${'backgroundColor.secondary.dark'})`,
|
|
15
|
+
outlined: {
|
|
16
|
+
light: `theme(${'backgroundColor.basic.darker.light'})`,
|
|
17
|
+
dark: `theme(${'backgroundColor.basic.darker.dark'})`,
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
23
|
+
dark: `theme(${'color.basic.text.dark'})`,
|
|
24
|
+
checked: {
|
|
25
|
+
light: `#fff`,
|
|
26
|
+
dark: `#fff`,
|
|
27
|
+
outlined: {
|
|
28
|
+
light: `theme(${'color.secondary.light'})`,
|
|
29
|
+
dark: `theme(${'color.secondary.dark'})`,
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
w: `24px`,
|
|
34
|
+
h: `24px`,
|
|
35
|
+
mnw: `24px`,
|
|
36
|
+
border: {
|
|
37
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
38
|
+
color: {
|
|
39
|
+
light: `theme(${'borderColor.basic.border.DEFAULT'})`,
|
|
40
|
+
dark: `theme(${'borderColor.basic.border.dark'})`,
|
|
41
|
+
valid: {
|
|
42
|
+
light: `theme(${'borderColor.secondary.light'})`,
|
|
43
|
+
dark: `theme(${'borderColor.secondary.dark'})`,
|
|
44
|
+
},
|
|
45
|
+
invalid: {
|
|
46
|
+
light: `theme(${'borderColor.error.light'})`,
|
|
47
|
+
dark: `theme(${'borderColor.error.dark'})`,
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
radius: `theme(${'borderRadius.full'})`,
|
|
51
|
+
},
|
|
52
|
+
label: {
|
|
53
|
+
font: {
|
|
54
|
+
size: `theme(${'fontSize.sm'})`,
|
|
55
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
56
|
+
},
|
|
57
|
+
color: {
|
|
58
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
59
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
placeholder: {
|
|
63
|
+
font: {
|
|
64
|
+
size: `theme(${'fontSize.sm'})`,
|
|
65
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
66
|
+
},
|
|
67
|
+
color: {
|
|
68
|
+
light: `theme(${'color.basic.text.muted.light'})`,
|
|
69
|
+
dark: `theme(${'color.basic.text.muted.dark'})`
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
hover: {
|
|
73
|
+
bg: {
|
|
74
|
+
light: `theme(${'backgroundColor.basic.hover.light'})`,
|
|
75
|
+
dark: `theme(${'backgroundColor.basic.hover.dark'})`,
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAc,EAAE,EAAE,EAAE;IAC9C,OAAO;QACL,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MAAM,EAAE,SAAS,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G;gBAC/B,MAAM,EAAE,SAAS,mBAAmB,GAAG;aAC1C;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,0BAA0B,GAAG;gBAC7C,IAAI,EAAE,SAAS,uBAAuB,GAAG;aAC5C;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE;gBACF,IAAI,EAAE,SAAS,aAAa,GAAG;gBAC/B,MAAM,EAAE,SAAS,mBAAmB,GAAG;aAC1C;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS,8BAA8B,GAAG;gBACjD,IAAI,EAAE,SAAS,6BAA6B,GAAG;aAClD;SACJ;QACD,KAAK,EAAE;YACH,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,mCAAmC,GAAG;gBACtD,IAAI,EAAE,SAAS,kCAAkC,GAAG;aACvD;SACJ;KACJ,CAAA;AACD,CAAC,CAAC","sourcesContent":["export const RadioStyles = (styles: any = {}) => {\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n bg: {\n light: `theme(${'backgroundColor.basic.muted.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.muted.dark'})`,\n checked: {\n light: `theme(${'backgroundColor.secondary.light'})`,\n dark: `theme(${'backgroundColor.secondary.dark'})`,\n outlined: {\n light: `theme(${'backgroundColor.basic.darker.light'})`,\n dark: `theme(${'backgroundColor.basic.darker.dark'})`,\n }\n }\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`,\n checked: {\n light: `#fff`,\n dark: `#fff`,\n outlined: {\n light: `theme(${'color.secondary.light'})`,\n dark: `theme(${'color.secondary.dark'})`,\n }\n }\n },\n w: `24px`,\n h: `24px`,\n mnw: `24px`,\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'borderColor.basic.border.DEFAULT'})`,\n dark: `theme(${'borderColor.basic.border.dark'})`,\n valid: {\n light: `theme(${'borderColor.secondary.light'})`,\n dark: `theme(${'borderColor.secondary.dark'})`,\n },\n invalid: {\n light: `theme(${'borderColor.error.light'})`,\n dark: `theme(${'borderColor.error.dark'})`,\n }\n },\n radius: `theme(${'borderRadius.full'})`,\n },\n label: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n },\n placeholder: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.basic.text.muted.light'})`,\n dark: `theme(${'color.basic.text.muted.dark'})`\n },\n },\n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.hover.light'})`,\n dark: `theme(${'backgroundColor.basic.hover.dark'})`,\n },\n }\n}\n};\n"]}
|