@c-rex/ui 0.3.0-build.40 → 0.3.0-build.42
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/package.json +1 -1
- package/src/input-group.tsx +8 -5
package/package.json
CHANGED
package/src/input-group.tsx
CHANGED
|
@@ -147,13 +147,14 @@ function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
|
|
|
147
147
|
)
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
150
|
+
const InputGroupInput = React.forwardRef<
|
|
151
|
+
HTMLInputElement,
|
|
152
|
+
React.ComponentProps<typeof Input>
|
|
153
|
+
>(({ className, ...props }, ref) => {
|
|
154
154
|
return (
|
|
155
155
|
<Input
|
|
156
156
|
data-slot="input-group-control"
|
|
157
|
+
ref={ref}
|
|
157
158
|
className={cn(
|
|
158
159
|
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
159
160
|
className
|
|
@@ -161,7 +162,9 @@ function InputGroupInput({
|
|
|
161
162
|
{...props}
|
|
162
163
|
/>
|
|
163
164
|
)
|
|
164
|
-
}
|
|
165
|
+
})
|
|
166
|
+
InputGroupInput.displayName = "InputGroupInput"
|
|
167
|
+
|
|
165
168
|
|
|
166
169
|
function InputGroupTextarea({
|
|
167
170
|
className,
|