@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,74 @@
|
|
|
1
|
+
export const DialogStyles = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
font: {
|
|
4
|
+
size: `theme(${'fontSize.base'})`,
|
|
5
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
6
|
+
},
|
|
7
|
+
backdrop: {
|
|
8
|
+
bg: {
|
|
9
|
+
light: `theme(${'backgroundColor.black/[10%]'})`,
|
|
10
|
+
dark: `theme(${'backgroundColor.black/[70%]'})`,
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
height: `auto`,
|
|
14
|
+
bg: {
|
|
15
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
16
|
+
dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
|
|
17
|
+
},
|
|
18
|
+
menu: {
|
|
19
|
+
px: `theme(${'padding.1'})`,
|
|
20
|
+
py: `theme(${'padding.1'})`,
|
|
21
|
+
bg: {
|
|
22
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
23
|
+
dark: `theme(${'backgroundColor.basic.tonal.dark'})`,
|
|
24
|
+
},
|
|
25
|
+
border: {
|
|
26
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
27
|
+
color: {
|
|
28
|
+
light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
|
|
29
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`
|
|
30
|
+
},
|
|
31
|
+
radius: `theme(${'borderRadius.2xl'})`,
|
|
32
|
+
},
|
|
33
|
+
width: 'auto',
|
|
34
|
+
minWidth: '11rem',
|
|
35
|
+
minHeight: '20px',
|
|
36
|
+
maxHeight: '100%',
|
|
37
|
+
},
|
|
38
|
+
border: {
|
|
39
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
40
|
+
color: {
|
|
41
|
+
light: `theme(${'borderColor.basic.border.DEFAULT'})`,
|
|
42
|
+
dark: `theme(${'borderColor.basic.border.dark'})`
|
|
43
|
+
},
|
|
44
|
+
radius: `theme(${'borderRadius.2xl'})`,
|
|
45
|
+
},
|
|
46
|
+
boxShadow: `theme(${'boxShadow.DEFAULT'})`,
|
|
47
|
+
maxWidth: `theme(${'maxWidth.2xl'})`,
|
|
48
|
+
color: {
|
|
49
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
50
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
51
|
+
},
|
|
52
|
+
header: {
|
|
53
|
+
px: `theme(${'padding.2'})`,
|
|
54
|
+
py: `theme(${'padding.2'})`,
|
|
55
|
+
title: {
|
|
56
|
+
font: {
|
|
57
|
+
size: `theme(${'fontSize.md'})`,
|
|
58
|
+
weight: `theme(${'fontWeight.semibold'})`,
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
height: '0px'
|
|
62
|
+
},
|
|
63
|
+
body: {
|
|
64
|
+
px: `theme(${'padding.3'})`,
|
|
65
|
+
py: `theme(${'padding.2'})`,
|
|
66
|
+
},
|
|
67
|
+
footer: {
|
|
68
|
+
px: `theme(${'padding.2'})`,
|
|
69
|
+
py: `theme(${'padding.2'})`,
|
|
70
|
+
height: '0px'
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC3C,OAAO;QACH,IAAI,EAAE;YACF,IAAI,EAAE,SAAS,eAAe,GAAG;YACjC,MA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E,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE;gBACH,IAAI,EAAE;oBACF,IAAI,EAAE,SAAS,aAAa,GAAG;oBAC/B,MAAM,EAAE,SAAS,qBAAqB,GAAG;iBAC5C;aACJ;YACD,MAAM,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":["import { UtilitiesData } from \"../../utilities\"\n\nexport const DialogStyles = (styles:any = {})=>{\n return {\n font: {\n size: `theme(${'fontSize.base'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n backdrop:{\n bg: {\n light: `theme(${'backgroundColor.black/[10%]'})`,\n dark: `theme(${'backgroundColor.black/[70%]'})`,\n }\n },\n height: `auto`,\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.tonal.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.2xl'})`,\n },\n width: 'auto',\n minWidth: '11rem',\n minHeight: '20px',\n maxHeight: '100%',\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'borderColor.basic.border.DEFAULT'})`,\n dark: `theme(${'borderColor.basic.border.dark'})`\n },\n radius: `theme(${'borderRadius.2xl'})`,\n },\n boxShadow: `theme(${'boxShadow.DEFAULT'})`,\n maxWidth: `theme(${'maxWidth.2xl'})`,\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,26 @@
|
|
|
1
|
+
export declare const DrawerStyles: (styles?: any) => {
|
|
2
|
+
font: {
|
|
3
|
+
size: string;
|
|
4
|
+
weight: string;
|
|
5
|
+
};
|
|
6
|
+
px: string;
|
|
7
|
+
py: string;
|
|
8
|
+
mx: string;
|
|
9
|
+
my: string;
|
|
10
|
+
bg: {
|
|
11
|
+
light: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
};
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
content: {
|
|
17
|
+
px: string;
|
|
18
|
+
py: string;
|
|
19
|
+
width: string;
|
|
20
|
+
height: string;
|
|
21
|
+
};
|
|
22
|
+
header: {
|
|
23
|
+
position: string;
|
|
24
|
+
top: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const DrawerStyles = (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
|
+
mx: `theme(${'margin.0'})`,
|
|
10
|
+
my: `theme(${'margin.0'})`,
|
|
11
|
+
bg: {
|
|
12
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
13
|
+
dark: `theme(${'backgroundColor.basic.dark'})`,
|
|
14
|
+
},
|
|
15
|
+
width: '100%',
|
|
16
|
+
height: '100vh',
|
|
17
|
+
content: {
|
|
18
|
+
px: `theme(${'padding.3'})`,
|
|
19
|
+
py: `theme(${'padding.2'})`,
|
|
20
|
+
width: '100%',
|
|
21
|
+
height: '100%',
|
|
22
|
+
},
|
|
23
|
+
header: {
|
|
24
|
+
position: 'sticky',
|
|
25
|
+
top: '0',
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC3C,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,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,MAAM;QACb,MAAM,EAAE,OAAO;QACf,OAAO,EAAE;YACL,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,EAAE,EAAE,SAAS,WAAW,GAAG;YAC3B,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;SACjB;QACD,MAAM,EAAE;YACJ,QAAQ,EAAE,QAAQ;YAClB,GAAG,EAAE,GAAG;SACX;KACJ,CAAA;AACL,CAAC,CAAA","sourcesContent":["export const DrawerStyles = (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 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 width: '100%',\n height: '100vh',\n content: {\n px: `theme(${'padding.3'})`,\n py: `theme(${'padding.2'})`,\n width: '100%', \n height: '100%', \n },\n header: {\n position: 'sticky',\n top: '0',\n }\n }\n}"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const DropdownStyles: (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
|
+
divider: {
|
|
56
|
+
width: string;
|
|
57
|
+
color: {
|
|
58
|
+
light: string;
|
|
59
|
+
dark: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
border: {
|
|
63
|
+
width: string;
|
|
64
|
+
color: {
|
|
65
|
+
light: string;
|
|
66
|
+
dark: string;
|
|
67
|
+
};
|
|
68
|
+
radius: string;
|
|
69
|
+
};
|
|
70
|
+
color: {
|
|
71
|
+
light: string;
|
|
72
|
+
dark: string;
|
|
73
|
+
};
|
|
74
|
+
header: {
|
|
75
|
+
px: string;
|
|
76
|
+
py: string;
|
|
77
|
+
title: {
|
|
78
|
+
font: {
|
|
79
|
+
size: string;
|
|
80
|
+
weight: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
height: string;
|
|
84
|
+
};
|
|
85
|
+
body: {
|
|
86
|
+
px: string;
|
|
87
|
+
py: string;
|
|
88
|
+
};
|
|
89
|
+
footer: {
|
|
90
|
+
px: string;
|
|
91
|
+
py: string;
|
|
92
|
+
height: string;
|
|
93
|
+
};
|
|
94
|
+
position: string;
|
|
95
|
+
backdrop: {
|
|
96
|
+
bg: {
|
|
97
|
+
light: string;
|
|
98
|
+
dark: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export const DropdownStyles = (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.tonal.dark'})`,
|
|
19
|
+
},
|
|
20
|
+
border: {
|
|
21
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
22
|
+
color: {
|
|
23
|
+
light: `theme(${'backgroundColor.basic.border.soft.DEFAULT'})`,
|
|
24
|
+
dark: `theme(${'backgroundColor.basic.border.soft.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.1'})`,
|
|
37
|
+
hover: {
|
|
38
|
+
bg: {
|
|
39
|
+
light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,
|
|
40
|
+
dark: `theme(${'backgroundColor.basic.soft.dark'})`,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
45
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
46
|
+
},
|
|
47
|
+
border: {
|
|
48
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
49
|
+
color: {
|
|
50
|
+
light: `transparent`,
|
|
51
|
+
dark: `transparent`
|
|
52
|
+
},
|
|
53
|
+
radius: `calc(var(--flx-dropdown-menu-border-radius) - .1rem)`,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
divider: {
|
|
57
|
+
width: `theme(${'borderWidth.xs'})`,
|
|
58
|
+
color: {
|
|
59
|
+
light: `theme(${'color.basic.border.DEFAULT'})`,
|
|
60
|
+
dark: `theme(${'color.basic.border.dark'})`
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
border: {
|
|
64
|
+
width: `theme(${'borderWidth.DEFAULT'})`,
|
|
65
|
+
color: {
|
|
66
|
+
light: `theme(${'backgroundColor.basic.border.DEFAULT'})`,
|
|
67
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`
|
|
68
|
+
},
|
|
69
|
+
radius: `theme(${'borderRadius.2xl'})`,
|
|
70
|
+
},
|
|
71
|
+
color: {
|
|
72
|
+
light: `theme(${'color.basic.text.DEFAULT'})`,
|
|
73
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
74
|
+
},
|
|
75
|
+
header: {
|
|
76
|
+
px: `theme(${'padding.0'})`,
|
|
77
|
+
py: `theme(${'padding.0'})`,
|
|
78
|
+
title: {
|
|
79
|
+
font: {
|
|
80
|
+
size: `theme(${'fontSize.md'})`,
|
|
81
|
+
weight: `theme(${'fontWeight.semibold'})`,
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
height: '0px'
|
|
85
|
+
},
|
|
86
|
+
body: {
|
|
87
|
+
px: `theme(${'padding.0'})`,
|
|
88
|
+
py: `theme(${'padding.0'})`,
|
|
89
|
+
},
|
|
90
|
+
footer: {
|
|
91
|
+
px: `theme(${'padding.0'})`,
|
|
92
|
+
py: `theme(${'padding.0'})`,
|
|
93
|
+
height: '0px'
|
|
94
|
+
},
|
|
95
|
+
position: 'fixed',
|
|
96
|
+
backdrop: {
|
|
97
|
+
bg: {
|
|
98
|
+
light: `theme(${'backgroundColor.black/[10%]'})`,
|
|
99
|
+
dark: `theme(${'backgroundColor.black/[70%]'})`,
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IAC7C,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;YAC3B,EAAE,EAAE;gBACA,KAAK,EAAE,SAAS,qCAAqC,GAAG;gBACxD,IAAI,EAAE,SAAS,kCAAkC,GAAG;aACvD;YACD,MAAM,EAAE;gBACJ,KAAK,EAAE,SAAS,qBAAqB,GAAG;gBACxC,KAAK,EAAE;oBACH,KAAK,EAAE,SAAS,2CAA2C,GAAG;oBAC9D,IAAI,EAAE,SAAS,wCAAwC,GAAG;iBAC7D;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,SA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S,WAAW,GAAG;YAC3B,MAAM,EAAE,KAAK;SAChB;QACD,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 DropdownStyles = (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.tonal.dark'})`,\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `theme(${'backgroundColor.basic.border.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.border.soft.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.1'})`, \n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.soft.DEFAULT'})`,\n dark: `theme(${'backgroundColor.basic.soft.dark'})`,\n },\n },\n color: {\n light: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n border: {\n width: `theme(${'borderWidth.DEFAULT'})`,\n color: {\n light: `transparent`,\n dark: `transparent`\n },\n radius: `calc(var(--flx-dropdown-menu-border-radius) - .1rem)`,\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 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 header: {\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\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.0'})`,\n py: `theme(${'padding.0'})`,\n },\n footer: {\n px: `theme(${'padding.0'})`,\n py: `theme(${'padding.0'})`,\n height: '0px'\n },\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,58 @@
|
|
|
1
|
+
export declare const FormField: (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
|
+
border: {
|
|
13
|
+
width: string;
|
|
14
|
+
color: {
|
|
15
|
+
DEFAULT: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
valid: {
|
|
18
|
+
light: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
};
|
|
21
|
+
invalid: {
|
|
22
|
+
light: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
radius: string;
|
|
27
|
+
};
|
|
28
|
+
color: {
|
|
29
|
+
DEFAULT: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
font: {
|
|
34
|
+
size: string;
|
|
35
|
+
weight: string;
|
|
36
|
+
};
|
|
37
|
+
color: {
|
|
38
|
+
light: string;
|
|
39
|
+
dark: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
placeholder: {
|
|
43
|
+
font: {
|
|
44
|
+
size: string;
|
|
45
|
+
weight: string;
|
|
46
|
+
};
|
|
47
|
+
color: {
|
|
48
|
+
light: string;
|
|
49
|
+
dark: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
hover: {
|
|
53
|
+
bg: {
|
|
54
|
+
light: string;
|
|
55
|
+
dark: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const FormField = (styles = {}) => {
|
|
2
|
+
return {
|
|
3
|
+
font: {
|
|
4
|
+
size: `theme(${'fontSize.base'})`,
|
|
5
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
6
|
+
},
|
|
7
|
+
px: `theme(${'padding.2'})`,
|
|
8
|
+
py: `theme(${'padding.2'})`,
|
|
9
|
+
bg: {
|
|
10
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULT'})`,
|
|
11
|
+
dark: `theme(${'backgroundColor.basic.dark'})`,
|
|
12
|
+
},
|
|
13
|
+
border: {
|
|
14
|
+
width: `1px`,
|
|
15
|
+
color: {
|
|
16
|
+
DEFAULT: `rgb(242, 242, 242)`,
|
|
17
|
+
dark: `theme(${'backgroundColor.basic.border.dark'})`,
|
|
18
|
+
// dark: `#878788`,
|
|
19
|
+
valid: {
|
|
20
|
+
light: `theme(${'borderColor.primary.DEFAULT'})`,
|
|
21
|
+
dark: `theme(${'borderColor.primary.dark'})`,
|
|
22
|
+
},
|
|
23
|
+
invalid: {
|
|
24
|
+
light: `theme(${'borderColor.red.500'})`,
|
|
25
|
+
dark: `theme(${'borderColor.red.500'})`,
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
radius: `theme(${'borderRadius.md'})`,
|
|
29
|
+
},
|
|
30
|
+
color: {
|
|
31
|
+
DEFAULT: `theme(${'color.basic.text.DEFAULT'})`,
|
|
32
|
+
dark: `theme(${'color.basic.text.dark'})`
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
font: {
|
|
36
|
+
size: `theme(${'fontSize.sm'})`,
|
|
37
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
38
|
+
},
|
|
39
|
+
color: {
|
|
40
|
+
light: `theme(${'color.gray.600'})`,
|
|
41
|
+
dark: `theme(${'color.gray.400'})`
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
placeholder: {
|
|
45
|
+
font: {
|
|
46
|
+
size: `theme(${'fontSize.sm'})`,
|
|
47
|
+
weight: `theme(${'fontWeight.normal'})`,
|
|
48
|
+
},
|
|
49
|
+
color: {
|
|
50
|
+
light: `theme(${'color.gray.600'})`,
|
|
51
|
+
dark: `theme(${'color.gray.400'})`
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
hover: {
|
|
55
|
+
bg: {
|
|
56
|
+
light: `theme(${'backgroundColor.basic.tonal.DEFAULTer.light'})`,
|
|
57
|
+
dark: `theme(${'backgroundColor.basic.darker.dark'})`,
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAa,EAAE,EAAC,EAAE;IACxC,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;QAC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{\n return {\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.dark'})`,\n },\n border: {\n width: `1px`,\n color: {\n DEFAULT: `rgb(242, 242, 242)`,\n dark: `theme(${'backgroundColor.basic.border.dark'})`,\n // dark: `#878788`,\n valid: {\n light: `theme(${'borderColor.primary.DEFAULT'})`,\n dark: `theme(${'borderColor.primary.dark'})`,\n },\n invalid: {\n light: `theme(${'borderColor.red.500'})`,\n dark: `theme(${'borderColor.red.500'})`,\n }\n },\n radius: `theme(${'borderRadius.md'})`,\n },\n color: {\n DEFAULT: `theme(${'color.basic.text.DEFAULT'})`,\n dark: `theme(${'color.basic.text.dark'})`\n },\n label: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.gray.600'})`,\n dark: `theme(${'color.gray.400'})`\n },\n },\n placeholder: {\n font: {\n size: `theme(${'fontSize.sm'})`,\n weight: `theme(${'fontWeight.normal'})`,\n },\n color: {\n light: `theme(${'color.gray.600'})`,\n dark: `theme(${'color.gray.400'})`\n },\n },\n hover: {\n bg: {\n light: `theme(${'backgroundColor.basic.tonal.DEFAULTer.light'})`,\n dark: `theme(${'backgroundColor.basic.darker.dark'})`,\n },\n }\n }\n}"]}
|