Commit 6319b21
committed
refactor: simplify InputGroup components and remove backward compatibility
Complete refactor focusing purely on the new InputGroup implementation
without backward compatibility concerns.
Changes:
- Removed deprecated FieldPrefix and FieldSuffix components entirely
- Simplified InputGroup wrapper to just focus-within ring
- Rewrote InputGroupAddon with simple 'start'/'end' alignment (not inline-start/inline-end)
- Removed CVA variants in favor of simple conditional logic (isPrefix/isSuffix)
- Fixed height to h-10 for proper alignment with inputs
- Explicitly remove borders on connecting sides (border-r-0 for prefix, border-l-0 for suffix)
- Simplified InputGroupText to just whitespace-nowrap
- TextField explicitly passes rounded-l-none/border-l-0 for prefix and rounded-r-none/border-r-0 for suffix
Result: Clean, simple implementation matching the original Lambda Curry design
with proper border/radius coordination between addons and input.
Requested by: Jake Ruesink1 parent 7dd128b commit 6319b21
2 files changed
Lines changed: 20 additions & 90 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 28 | | |
57 | 29 | | |
58 | | - | |
| 30 | + | |
59 | 31 | | |
60 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
61 | 36 | | |
62 | | - | |
63 | | - | |
64 | 37 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
75 | 48 | | |
76 | 49 | | |
77 | 50 | | |
| |||
110 | 83 | | |
111 | 84 | | |
112 | 85 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 86 | + | |
123 | 87 | | |
124 | 88 | | |
125 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 16 | | |
51 | 17 | | |
52 | 18 | | |
| |||
92 | 58 | | |
93 | 59 | | |
94 | 60 | | |
95 | | - | |
| 61 | + | |
96 | 62 | | |
97 | 63 | | |
98 | 64 | | |
| |||
107 | 73 | | |
108 | 74 | | |
109 | 75 | | |
110 | | - | |
| 76 | + | |
111 | 77 | | |
112 | 78 | | |
113 | 79 | | |
| |||
0 commit comments