|
| 1 | +import { style } from "@vanilla-extract/css"; |
| 2 | +import { recipe } from "@vanilla-extract/recipes"; |
| 3 | + |
| 4 | +import { radius, semantic, typography } from "@/styles"; |
| 5 | + |
| 6 | +export const wrapper = style({ |
| 7 | + display: "flex", |
| 8 | + flexDirection: "column", |
| 9 | + gap: "8px", |
| 10 | +}); |
| 11 | + |
| 12 | +export const title = style({ |
| 13 | + ...typography.label1, |
| 14 | + fontWeight: 600, |
| 15 | + color: semantic.text.alternative, |
| 16 | +}); |
| 17 | + |
| 18 | +export const input = recipe({ |
| 19 | + base: { |
| 20 | + width: "100%", |
| 21 | + height: "52px", |
| 22 | + padding: "14px 12px", |
| 23 | + ...typography.body1, |
| 24 | + fontWeight: "500", |
| 25 | + border: "none", |
| 26 | + borderRadius: radius[160], |
| 27 | + outline: "none", |
| 28 | + }, |
| 29 | + variants: { |
| 30 | + status: { |
| 31 | + inactive: { |
| 32 | + backgroundColor: semantic.surface.gray, |
| 33 | + color: semantic.text.disabled, |
| 34 | + |
| 35 | + selectors: { |
| 36 | + "&:focus": { |
| 37 | + backgroundColor: semantic.surface.white, |
| 38 | + color: semantic.text.normal, |
| 39 | + caretColor: semantic.border.pressed, |
| 40 | + border: `1px solid ${semantic.border.pressed}`, |
| 41 | + outline: "none", |
| 42 | + }, |
| 43 | + "&:disabled": { |
| 44 | + backgroundColor: semantic.surface.disabled, |
| 45 | + color: semantic.text.disabled, |
| 46 | + cursor: "not-allowed", |
| 47 | + }, |
| 48 | + "&:not(:placeholder-shown):not(:focus)": { |
| 49 | + backgroundColor: semantic.surface.gray, |
| 50 | + color: semantic.text.normal, |
| 51 | + }, |
| 52 | + }, |
| 53 | + }, |
| 54 | + negative: { |
| 55 | + backgroundColor: semantic.surface.white, |
| 56 | + color: semantic.text.normal, |
| 57 | + border: `1px solid ${semantic.status.negative}`, |
| 58 | + }, |
| 59 | + }, |
| 60 | + }, |
| 61 | + defaultVariants: { |
| 62 | + status: "inactive", |
| 63 | + }, |
| 64 | +}); |
| 65 | + |
| 66 | +export const helperText = recipe({ |
| 67 | + base: { |
| 68 | + ...typography.caption1, |
| 69 | + fontWeight: "500", |
| 70 | + color: semantic.text.alternative, |
| 71 | + }, |
| 72 | + variants: { |
| 73 | + status: { |
| 74 | + inactive: {}, |
| 75 | + focus: {}, |
| 76 | + filled: {}, |
| 77 | + disabled: {}, |
| 78 | + negative: { color: semantic.status.negative }, |
| 79 | + }, |
| 80 | + }, |
| 81 | + defaultVariants: { |
| 82 | + status: "inactive", |
| 83 | + }, |
| 84 | +}); |
0 commit comments