@medway-ui/core 1.16.2 → 1.16.3
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.d.mts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -372,21 +372,17 @@ declare function DatePicker({ value, defaultValue, onValueChange, placeholder, d
|
|
|
372
372
|
declare function DateRangePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
373
373
|
|
|
374
374
|
type InputType = "text" | "email" | "numeric" | "password";
|
|
375
|
-
|
|
376
|
-
interface InputProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
375
|
+
interface InputProps extends Omit<ComponentProps<"input">, "type" | "size">, VariantProps<typeof inputVariants> {
|
|
377
376
|
type?: InputType;
|
|
378
|
-
size?: InputSize;
|
|
379
377
|
invalid?: boolean;
|
|
380
378
|
iconLeft?: ReactElement;
|
|
381
379
|
iconRight?: ReactElement;
|
|
382
380
|
}
|
|
383
|
-
interface InputPasswordProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
381
|
+
interface InputPasswordProps extends Omit<ComponentProps<"input">, "type" | "size">, VariantProps<typeof inputVariants> {
|
|
384
382
|
invalid?: boolean;
|
|
385
|
-
size?: InputSize;
|
|
386
383
|
}
|
|
387
|
-
interface InputNumericProps extends Omit<ComponentProps<"input">, "type" | "onChange" | "size"> {
|
|
384
|
+
interface InputNumericProps extends Omit<ComponentProps<"input">, "type" | "onChange" | "size">, VariantProps<typeof inputVariants> {
|
|
388
385
|
invalid?: boolean;
|
|
389
|
-
size?: InputSize;
|
|
390
386
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
391
387
|
iconLeft?: ReactElement;
|
|
392
388
|
}
|
|
@@ -403,7 +399,10 @@ declare function InputText({ className, invalid, ...props }: InputTextProps): re
|
|
|
403
399
|
declare function InputAdornment({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
404
400
|
declare function InputStartIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
405
401
|
declare function InputEndIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
406
|
-
declare
|
|
402
|
+
declare const inputVariants: (props?: ({
|
|
403
|
+
size?: "md" | "lg" | null | undefined;
|
|
404
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
405
|
+
declare function applyInputIconSize(icon: ReactElement, size?: VariantProps<typeof inputVariants>["size"]): ReactElement;
|
|
407
406
|
declare function InputPassword({ className, invalid, size, disabled, ...props }: InputPasswordProps): react_jsx_runtime.JSX.Element;
|
|
408
407
|
declare function InputNumeric({ className, invalid, size, iconLeft, min, value, defaultValue, onChange, disabled, ...props }: InputNumericProps): react_jsx_runtime.JSX.Element;
|
|
409
408
|
declare function Input({ className, type, size, invalid, iconLeft, iconRight, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
@@ -597,10 +596,12 @@ declare function Rating({ value, onChange, maxStars, readOnly, labels, size, cla
|
|
|
597
596
|
declare function ScrollArea({ className, children, ...props }: ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
|
|
598
597
|
declare function ScrollBar({ className, orientation, ...props }: ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
599
598
|
|
|
599
|
+
type SelectSize = "md" | "lg";
|
|
600
600
|
interface SelectProps extends ComponentProps<typeof Select$1.Root> {
|
|
601
601
|
invalid?: boolean;
|
|
602
|
+
size?: SelectSize;
|
|
602
603
|
}
|
|
603
|
-
declare function Select({ invalid, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
604
|
+
declare function Select({ invalid, size, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
604
605
|
interface SelectLabelProps extends HTMLAttributes<HTMLLabelElement> {
|
|
605
606
|
htmlFor?: string;
|
|
606
607
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -372,21 +372,17 @@ declare function DatePicker({ value, defaultValue, onValueChange, placeholder, d
|
|
|
372
372
|
declare function DateRangePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
373
373
|
|
|
374
374
|
type InputType = "text" | "email" | "numeric" | "password";
|
|
375
|
-
|
|
376
|
-
interface InputProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
375
|
+
interface InputProps extends Omit<ComponentProps<"input">, "type" | "size">, VariantProps<typeof inputVariants> {
|
|
377
376
|
type?: InputType;
|
|
378
|
-
size?: InputSize;
|
|
379
377
|
invalid?: boolean;
|
|
380
378
|
iconLeft?: ReactElement;
|
|
381
379
|
iconRight?: ReactElement;
|
|
382
380
|
}
|
|
383
|
-
interface InputPasswordProps extends Omit<ComponentProps<"input">, "type" | "size"> {
|
|
381
|
+
interface InputPasswordProps extends Omit<ComponentProps<"input">, "type" | "size">, VariantProps<typeof inputVariants> {
|
|
384
382
|
invalid?: boolean;
|
|
385
|
-
size?: InputSize;
|
|
386
383
|
}
|
|
387
|
-
interface InputNumericProps extends Omit<ComponentProps<"input">, "type" | "onChange" | "size"> {
|
|
384
|
+
interface InputNumericProps extends Omit<ComponentProps<"input">, "type" | "onChange" | "size">, VariantProps<typeof inputVariants> {
|
|
388
385
|
invalid?: boolean;
|
|
389
|
-
size?: InputSize;
|
|
390
386
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
391
387
|
iconLeft?: ReactElement;
|
|
392
388
|
}
|
|
@@ -403,7 +399,10 @@ declare function InputText({ className, invalid, ...props }: InputTextProps): re
|
|
|
403
399
|
declare function InputAdornment({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
404
400
|
declare function InputStartIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
405
401
|
declare function InputEndIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
406
|
-
declare
|
|
402
|
+
declare const inputVariants: (props?: ({
|
|
403
|
+
size?: "md" | "lg" | null | undefined;
|
|
404
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
405
|
+
declare function applyInputIconSize(icon: ReactElement, size?: VariantProps<typeof inputVariants>["size"]): ReactElement;
|
|
407
406
|
declare function InputPassword({ className, invalid, size, disabled, ...props }: InputPasswordProps): react_jsx_runtime.JSX.Element;
|
|
408
407
|
declare function InputNumeric({ className, invalid, size, iconLeft, min, value, defaultValue, onChange, disabled, ...props }: InputNumericProps): react_jsx_runtime.JSX.Element;
|
|
409
408
|
declare function Input({ className, type, size, invalid, iconLeft, iconRight, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
@@ -597,10 +596,12 @@ declare function Rating({ value, onChange, maxStars, readOnly, labels, size, cla
|
|
|
597
596
|
declare function ScrollArea({ className, children, ...props }: ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
|
|
598
597
|
declare function ScrollBar({ className, orientation, ...props }: ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
599
598
|
|
|
599
|
+
type SelectSize = "md" | "lg";
|
|
600
600
|
interface SelectProps extends ComponentProps<typeof Select$1.Root> {
|
|
601
601
|
invalid?: boolean;
|
|
602
|
+
size?: SelectSize;
|
|
602
603
|
}
|
|
603
|
-
declare function Select({ invalid, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
604
|
+
declare function Select({ invalid, size, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
604
605
|
interface SelectLabelProps extends HTMLAttributes<HTMLLabelElement> {
|
|
605
606
|
htmlFor?: string;
|
|
606
607
|
}
|