@invana/forms 0.0.21 → 0.0.22
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/dist/index.cjs +19 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -299,7 +299,17 @@ interface IconInputProps {
|
|
|
299
299
|
*/
|
|
300
300
|
declare const IconInput: React$1.FC<IconInputProps>;
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
/**
|
|
303
|
+
* `sm` (26px) is the application field — a property editor, a settings row, a
|
|
304
|
+
* form inside a 420px panel. `default` (40px) stays the form-page size.
|
|
305
|
+
*
|
|
306
|
+
* Named `inputSize` because `size` is already an `<input>` attribute meaning
|
|
307
|
+
* "how many characters wide", and shadowing it would silently drop that.
|
|
308
|
+
*/
|
|
309
|
+
type InputSize = "default" | "sm";
|
|
310
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLInputElement> & React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
311
|
+
inputSize?: InputSize;
|
|
312
|
+
}, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
303
313
|
|
|
304
314
|
type PasswordInputProps = Omit<React$1.ComponentProps<"input">, "type"> & {
|
|
305
315
|
/** Controls visibility in a controlled fashion. Omit for self-managed toggle. */
|
|
@@ -313,12 +323,18 @@ type PasswordInputProps = Omit<React$1.ComponentProps<"input">, "type"> & {
|
|
|
313
323
|
*/
|
|
314
324
|
declare const PasswordInput: React$1.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
315
325
|
|
|
316
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
326
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLTextAreaElement> & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
327
|
+
/** Matches `Input`'s `inputSize`. `sm` tightens padding and the floor. */
|
|
328
|
+
inputSize?: "default" | "sm";
|
|
329
|
+
}, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
317
330
|
|
|
318
331
|
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
319
332
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
320
333
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
321
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
334
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
335
|
+
/** Matches `Input`'s `inputSize` — `sm` is the 26px application field. */
|
|
336
|
+
triggerSize?: "default" | "sm";
|
|
337
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
322
338
|
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
323
339
|
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
324
340
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -361,11 +377,11 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
361
377
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
362
378
|
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
363
379
|
declare const inputGroupButtonVariants: (props?: ({
|
|
364
|
-
size?: "
|
|
380
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
365
381
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
366
382
|
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React$1.JSX.Element;
|
|
367
383
|
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
368
384
|
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
369
385
|
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
370
386
|
|
|
371
|
-
export { type BooleanControl, BooleanField, Checkbox, CheckboxGroupField, ColorField, type ColorPreset, ColorSwatches, Field, type FieldBadge, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, type FieldSize, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type GroupConfig, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, PasswordField, PasswordInput, type PasswordInputProps, RadioField, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SettingsPanel, type SettingsPanelProps, Slider, SliderNumber, Switch, Textarea, TextareaField, useFormField };
|
|
387
|
+
export { type BooleanControl, BooleanField, Checkbox, CheckboxGroupField, ColorField, type ColorPreset, ColorSwatches, Field, type FieldBadge, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, type FieldSize, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type GroupConfig, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputSize, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, PasswordField, PasswordInput, type PasswordInputProps, RadioField, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SettingsPanel, type SettingsPanelProps, Slider, SliderNumber, Switch, Textarea, TextareaField, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -299,7 +299,17 @@ interface IconInputProps {
|
|
|
299
299
|
*/
|
|
300
300
|
declare const IconInput: React$1.FC<IconInputProps>;
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
/**
|
|
303
|
+
* `sm` (26px) is the application field — a property editor, a settings row, a
|
|
304
|
+
* form inside a 420px panel. `default` (40px) stays the form-page size.
|
|
305
|
+
*
|
|
306
|
+
* Named `inputSize` because `size` is already an `<input>` attribute meaning
|
|
307
|
+
* "how many characters wide", and shadowing it would silently drop that.
|
|
308
|
+
*/
|
|
309
|
+
type InputSize = "default" | "sm";
|
|
310
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLInputElement> & React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
311
|
+
inputSize?: InputSize;
|
|
312
|
+
}, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
303
313
|
|
|
304
314
|
type PasswordInputProps = Omit<React$1.ComponentProps<"input">, "type"> & {
|
|
305
315
|
/** Controls visibility in a controlled fashion. Omit for self-managed toggle. */
|
|
@@ -313,12 +323,18 @@ type PasswordInputProps = Omit<React$1.ComponentProps<"input">, "type"> & {
|
|
|
313
323
|
*/
|
|
314
324
|
declare const PasswordInput: React$1.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
315
325
|
|
|
316
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
326
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLTextAreaElement> & React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
327
|
+
/** Matches `Input`'s `inputSize`. `sm` tightens padding and the floor. */
|
|
328
|
+
inputSize?: "default" | "sm";
|
|
329
|
+
}, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
317
330
|
|
|
318
331
|
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
319
332
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
320
333
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
321
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
334
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
335
|
+
/** Matches `Input`'s `inputSize` — `sm` is the 26px application field. */
|
|
336
|
+
triggerSize?: "default" | "sm";
|
|
337
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
322
338
|
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
323
339
|
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
324
340
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -361,11 +377,11 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
361
377
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
362
378
|
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
363
379
|
declare const inputGroupButtonVariants: (props?: ({
|
|
364
|
-
size?: "
|
|
380
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
365
381
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
366
382
|
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React$1.JSX.Element;
|
|
367
383
|
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
368
384
|
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
369
385
|
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
370
386
|
|
|
371
|
-
export { type BooleanControl, BooleanField, Checkbox, CheckboxGroupField, ColorField, type ColorPreset, ColorSwatches, Field, type FieldBadge, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, type FieldSize, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type GroupConfig, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, PasswordField, PasswordInput, type PasswordInputProps, RadioField, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SettingsPanel, type SettingsPanelProps, Slider, SliderNumber, Switch, Textarea, TextareaField, useFormField };
|
|
387
|
+
export { type BooleanControl, BooleanField, Checkbox, CheckboxGroupField, ColorField, type ColorPreset, ColorSwatches, Field, type FieldBadge, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldOrientation, FieldSeparator, FieldSet, type FieldSize, FieldTitle, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type GroupConfig, IconField, IconInput, Input, InputField, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputSize, Label, type LabelPosition, NumberField, ObjectField, type ObjectFieldProps, PasswordField, PasswordInput, type PasswordInputProps, RadioField, RadioGroup, RadioGroupItem, type RowConfig, Select, SelectContent, SelectField, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SettingsPanel, type SettingsPanelProps, Slider, SliderNumber, Switch, Textarea, TextareaField, useFormField };
|
package/dist/index.js
CHANGED
|
@@ -120,13 +120,14 @@ var FormMessage = React2.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
120
120
|
});
|
|
121
121
|
FormMessage.displayName = "FormMessage";
|
|
122
122
|
var Input = React2.forwardRef(
|
|
123
|
-
({ className, type, ...props }, ref) => {
|
|
123
|
+
({ className, type, inputSize = "default", ...props }, ref) => {
|
|
124
124
|
return /* @__PURE__ */ jsx(
|
|
125
125
|
"input",
|
|
126
126
|
{
|
|
127
127
|
type,
|
|
128
128
|
className: cn(
|
|
129
|
-
|
|
129
|
+
inputSize === "sm" ? "h-[26px] px-2 py-0" : "h-10 px-3 py-2",
|
|
130
|
+
"flex w-full rounded-control border border-input bg-background text-base ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
130
131
|
className
|
|
131
132
|
),
|
|
132
133
|
ref,
|
|
@@ -174,12 +175,13 @@ var PasswordInput = React2.forwardRef(
|
|
|
174
175
|
}
|
|
175
176
|
);
|
|
176
177
|
PasswordInput.displayName = "PasswordInput";
|
|
177
|
-
var Textarea = React2.forwardRef(({ className, ...props }, ref) => {
|
|
178
|
+
var Textarea = React2.forwardRef(({ className, inputSize = "default", ...props }, ref) => {
|
|
178
179
|
return /* @__PURE__ */ jsx(
|
|
179
180
|
"textarea",
|
|
180
181
|
{
|
|
181
182
|
className: cn(
|
|
182
|
-
"
|
|
183
|
+
inputSize === "sm" ? "min-h-[52px] px-2 py-1" : "min-h-[80px] px-3 py-2",
|
|
184
|
+
"flex w-full rounded-control border border-input bg-background text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
183
185
|
className
|
|
184
186
|
),
|
|
185
187
|
ref,
|
|
@@ -256,12 +258,13 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
|
256
258
|
var Select = SelectPrimitive.Root;
|
|
257
259
|
var SelectGroup = SelectPrimitive.Group;
|
|
258
260
|
var SelectValue = SelectPrimitive.Value;
|
|
259
|
-
var SelectTrigger = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
261
|
+
var SelectTrigger = React2.forwardRef(({ className, children, triggerSize = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
260
262
|
SelectPrimitive.Trigger,
|
|
261
263
|
{
|
|
262
264
|
ref,
|
|
263
265
|
className: cn(
|
|
264
|
-
|
|
266
|
+
triggerSize === "sm" ? "h-[26px] px-2 py-0" : "h-9 px-3 py-2",
|
|
267
|
+
"flex w-full items-center justify-between whitespace-nowrap rounded-control border border-input bg-transparent shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
265
268
|
className
|
|
266
269
|
),
|
|
267
270
|
...props,
|
|
@@ -330,7 +333,7 @@ var SelectLabel = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
330
333
|
SelectPrimitive.Label,
|
|
331
334
|
{
|
|
332
335
|
ref,
|
|
333
|
-
className: cn("px-2 py-1.5
|
|
336
|
+
className: cn("px-2 py-1.5 font-semibold", className),
|
|
334
337
|
...props
|
|
335
338
|
}
|
|
336
339
|
));
|
|
@@ -493,7 +496,7 @@ var SliderNumber = ({
|
|
|
493
496
|
};
|
|
494
497
|
var IconInput = ({ value, onChange }) => {
|
|
495
498
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
496
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-control border bg-muted
|
|
499
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-control border bg-muted", children: value ? value.slice(0, 2) : "\u2013" }),
|
|
497
500
|
/* @__PURE__ */ jsx(
|
|
498
501
|
Input,
|
|
499
502
|
{
|
|
@@ -501,7 +504,7 @@ var IconInput = ({ value, onChange }) => {
|
|
|
501
504
|
value: value ?? "",
|
|
502
505
|
onChange: (e) => onChange?.(e.target.value),
|
|
503
506
|
placeholder: "icon name",
|
|
504
|
-
className: "h-8
|
|
507
|
+
className: "h-8"
|
|
505
508
|
}
|
|
506
509
|
)
|
|
507
510
|
] });
|
|
@@ -1219,7 +1222,6 @@ function FieldLegend({
|
|
|
1219
1222
|
className: cn(
|
|
1220
1223
|
"mb-3 font-medium",
|
|
1221
1224
|
"data-[variant=legend]:text-base",
|
|
1222
|
-
"data-[variant=label]:text-sm",
|
|
1223
1225
|
className
|
|
1224
1226
|
),
|
|
1225
1227
|
...props
|
|
@@ -1299,7 +1301,7 @@ function FieldTitle({ className, ...props }) {
|
|
|
1299
1301
|
{
|
|
1300
1302
|
"data-slot": "field-label",
|
|
1301
1303
|
className: cn(
|
|
1302
|
-
"flex w-fit items-center gap-2
|
|
1304
|
+
"flex w-fit items-center gap-2 font-medium leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
1303
1305
|
className
|
|
1304
1306
|
),
|
|
1305
1307
|
...props
|
|
@@ -1312,7 +1314,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
1312
1314
|
{
|
|
1313
1315
|
"data-slot": "field-description",
|
|
1314
1316
|
className: cn(
|
|
1315
|
-
"text-muted-foreground
|
|
1317
|
+
"text-muted-foreground font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
1316
1318
|
"nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5",
|
|
1317
1319
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
1318
1320
|
className
|
|
@@ -1332,7 +1334,7 @@ function FieldSeparator({
|
|
|
1332
1334
|
"data-slot": "field-separator",
|
|
1333
1335
|
"data-content": !!children,
|
|
1334
1336
|
className: cn(
|
|
1335
|
-
"relative -my-2 h-5
|
|
1337
|
+
"relative -my-2 h-5 group-data-[variant=outline]/field-group:-mb-2",
|
|
1336
1338
|
className
|
|
1337
1339
|
),
|
|
1338
1340
|
...props,
|
|
@@ -1378,7 +1380,7 @@ function FieldError({
|
|
|
1378
1380
|
{
|
|
1379
1381
|
role: "alert",
|
|
1380
1382
|
"data-slot": "field-error",
|
|
1381
|
-
className: cn("text-destructive
|
|
1383
|
+
className: cn("text-destructive font-normal", className),
|
|
1382
1384
|
...props,
|
|
1383
1385
|
children: content
|
|
1384
1386
|
}
|
|
@@ -1409,7 +1411,7 @@ function InputGroup({ className, ...props }) {
|
|
|
1409
1411
|
);
|
|
1410
1412
|
}
|
|
1411
1413
|
var inputGroupAddonVariants = cva(
|
|
1412
|
-
"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5
|
|
1414
|
+
"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-control [&>svg:not([class*='size-'])]:size-4",
|
|
1413
1415
|
{
|
|
1414
1416
|
variants: {
|
|
1415
1417
|
align: {
|
|
@@ -1447,7 +1449,7 @@ function InputGroupAddon({
|
|
|
1447
1449
|
);
|
|
1448
1450
|
}
|
|
1449
1451
|
var inputGroupButtonVariants = cva(
|
|
1450
|
-
"flex items-center gap-2
|
|
1452
|
+
"flex items-center gap-2 shadow-none",
|
|
1451
1453
|
{
|
|
1452
1454
|
variants: {
|
|
1453
1455
|
size: {
|
|
@@ -1485,7 +1487,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
1485
1487
|
"span",
|
|
1486
1488
|
{
|
|
1487
1489
|
className: cn(
|
|
1488
|
-
"text-muted-foreground flex items-center gap-2
|
|
1490
|
+
"text-muted-foreground flex items-center gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
|
|
1489
1491
|
className
|
|
1490
1492
|
),
|
|
1491
1493
|
...props
|