UNPKG

fui-fancyui

Version:
34 lines (31 loc) 741 B
import { styled as r, css as t } from "styled-components"; const s = r.label` display: flex; gap: ${({ theme: e }) => e.spacing.xs}; justify-content: ${({ $align: e }) => { switch (e) { case "left": return "flex-start"; case "right": return "flex-end"; case "center": return "center"; } }}; ${({ $externalStyle: e }) => e} .description { margin-left: ${({ theme: e }) => parseInt(e.spacing.xxs) - 2 + "px"}; } `, p = r.div` margin-top: ${({ theme: e }) => parseInt(e.spacing.xxs) - 2 + "px"}; height: fit-content; ${({ $alignInput: e }) => e === "right" ? t` order: 1; ` : t` order: -1; `}; `; export { p as InputWrapper, s as LabelWrapper };