idea-react 3.0.0-rc.1 → 3.0.0-rc.2
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 +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +13 -13
- package/dist/index.mjs +12 -12
- package/package.json +4 -4
- package/source/Base/Button.tsx +1 -1
- package/source/Base/Placeholder.tsx +8 -22
- package/source/Content/Tables.tsx +21 -7
- package/source/Form/Chip.tsx +4 -16
package/dist/index.d.mts
CHANGED
|
@@ -696,10 +696,6 @@ export interface PlaceholderProps extends ComponentPropsWithRef<'span'> {
|
|
|
696
696
|
width?: CSSProperties['width'];
|
|
697
697
|
}
|
|
698
698
|
export declare const Placeholder: PolymorphicComponent<PlaceholderProps>;
|
|
699
|
-
export interface PlaceholderAnimationProps extends ComponentPropsWithRef<'div'> {
|
|
700
|
-
animation?: PlaceholderProps['animation'];
|
|
701
|
-
}
|
|
702
|
-
export declare const PlaceholderAnimation: PolymorphicComponent<PlaceholderAnimationProps>;
|
|
703
699
|
export type PlaceholderButtonProps = ButtonProps;
|
|
704
700
|
export declare const PlaceholderButton: PolymorphicComponent<ButtonProps>;
|
|
705
701
|
export interface PopoverProps extends Omit<OverlayTriggerProps, 'title'> {
|
|
@@ -722,7 +718,7 @@ declare class ScrollSpyModel {
|
|
|
722
718
|
accessor guides: (Record<'top' | 'left' | 'width' | 'height' | 'line', number> & {
|
|
723
719
|
atBottom: boolean;
|
|
724
720
|
}) | undefined;
|
|
725
|
-
setGuides: (guides: ScrollSpyModel["guides"]) => (Record<"line" | "
|
|
721
|
+
setGuides: (guides: ScrollSpyModel["guides"]) => (Record<"line" | "height" | "width" | "left" | "top", number> & {
|
|
726
722
|
atBottom: boolean;
|
|
727
723
|
}) | undefined;
|
|
728
724
|
setActiveId: (id: string) => string;
|
|
@@ -756,7 +752,7 @@ export declare class ScrollSpy<T extends ElementType | undefined = 'div'> extend
|
|
|
756
752
|
componentWillUnmount(): void;
|
|
757
753
|
refresh: () => void;
|
|
758
754
|
handleResize: () => void;
|
|
759
|
-
handleScroll: () => (Record<"line" | "
|
|
755
|
+
handleScroll: () => (Record<"line" | "height" | "width" | "left" | "top", number> & {
|
|
760
756
|
atBottom: boolean;
|
|
761
757
|
}) | undefined;
|
|
762
758
|
private getRootHeight;
|
|
@@ -921,8 +917,12 @@ export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
|
921
917
|
hover?: boolean;
|
|
922
918
|
bordered?: boolean;
|
|
923
919
|
borderless?: boolean;
|
|
920
|
+
card?: boolean;
|
|
924
921
|
small?: boolean;
|
|
925
922
|
responsive?: boolean | Breakpoint;
|
|
923
|
+
stacked?: boolean | Breakpoint;
|
|
924
|
+
verticalAlign?: 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom';
|
|
925
|
+
captionTop?: boolean;
|
|
926
926
|
}
|
|
927
927
|
export declare const Table: PolymorphicComponent<TableProps>;
|
|
928
928
|
export type ClickBoundaryProps = PropsWithChildren<{
|
|
@@ -1251,16 +1251,15 @@ export declare const Checkbox: PolymorphicComponent<Omit<Omit<import("react").De
|
|
|
1251
1251
|
} & {
|
|
1252
1252
|
ref?: Ref<HTMLInputElement>;
|
|
1253
1253
|
}>;
|
|
1254
|
-
export type ChipProps = ComponentPropsWithRef<'
|
|
1254
|
+
export type ChipProps = ComponentPropsWithRef<'span'> & {
|
|
1255
1255
|
active?: boolean;
|
|
1256
1256
|
theme?: ComponentTheme;
|
|
1257
|
+
type?: ComponentPropsWithRef<'button'>['type'];
|
|
1257
1258
|
};
|
|
1258
1259
|
export declare const Chip: PolymorphicComponent<ChipProps>;
|
|
1259
1260
|
export declare const ChipIcon: PolymorphicComponent<IconProps>;
|
|
1260
1261
|
export declare const ChipImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
1261
1262
|
export declare const ChipDismiss: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
1262
|
-
export type ChipTokenProps = ComponentPropsWithRef<'span'> & Pick<ChipProps, 'active' | 'theme'>;
|
|
1263
|
-
export declare const ChipToken: PolymorphicComponent<ChipTokenProps>;
|
|
1264
1263
|
export type ChipInputProps = ComponentPropsWithoutRef<'div'> & FormValidationProps & {
|
|
1265
1264
|
theme?: ComponentTheme;
|
|
1266
1265
|
separator?: string | null;
|
|
@@ -1441,7 +1440,7 @@ export type OTPInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'ma
|
|
|
1441
1440
|
onComplete?: (value: string) => unknown;
|
|
1442
1441
|
onValueChange?: (value: string) => unknown;
|
|
1443
1442
|
};
|
|
1444
|
-
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "
|
|
1443
|
+
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "maxLength" | "type"> & FormValidationProps & {
|
|
1445
1444
|
length: number;
|
|
1446
1445
|
type?: "numeric" | "alphanumeric" | "alpha";
|
|
1447
1446
|
mask?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -696,10 +696,6 @@ export interface PlaceholderProps extends ComponentPropsWithRef<'span'> {
|
|
|
696
696
|
width?: CSSProperties['width'];
|
|
697
697
|
}
|
|
698
698
|
export declare const Placeholder: PolymorphicComponent<PlaceholderProps>;
|
|
699
|
-
export interface PlaceholderAnimationProps extends ComponentPropsWithRef<'div'> {
|
|
700
|
-
animation?: PlaceholderProps['animation'];
|
|
701
|
-
}
|
|
702
|
-
export declare const PlaceholderAnimation: PolymorphicComponent<PlaceholderAnimationProps>;
|
|
703
699
|
export type PlaceholderButtonProps = ButtonProps;
|
|
704
700
|
export declare const PlaceholderButton: PolymorphicComponent<ButtonProps>;
|
|
705
701
|
export interface PopoverProps extends Omit<OverlayTriggerProps, 'title'> {
|
|
@@ -722,7 +718,7 @@ declare class ScrollSpyModel {
|
|
|
722
718
|
accessor guides: (Record<'top' | 'left' | 'width' | 'height' | 'line', number> & {
|
|
723
719
|
atBottom: boolean;
|
|
724
720
|
}) | undefined;
|
|
725
|
-
setGuides: (guides: ScrollSpyModel["guides"]) => (Record<"line" | "
|
|
721
|
+
setGuides: (guides: ScrollSpyModel["guides"]) => (Record<"line" | "height" | "width" | "left" | "top", number> & {
|
|
726
722
|
atBottom: boolean;
|
|
727
723
|
}) | undefined;
|
|
728
724
|
setActiveId: (id: string) => string;
|
|
@@ -756,7 +752,7 @@ export declare class ScrollSpy<T extends ElementType | undefined = 'div'> extend
|
|
|
756
752
|
componentWillUnmount(): void;
|
|
757
753
|
refresh: () => void;
|
|
758
754
|
handleResize: () => void;
|
|
759
|
-
handleScroll: () => (Record<"line" | "
|
|
755
|
+
handleScroll: () => (Record<"line" | "height" | "width" | "left" | "top", number> & {
|
|
760
756
|
atBottom: boolean;
|
|
761
757
|
}) | undefined;
|
|
762
758
|
private getRootHeight;
|
|
@@ -921,8 +917,12 @@ export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
|
921
917
|
hover?: boolean;
|
|
922
918
|
bordered?: boolean;
|
|
923
919
|
borderless?: boolean;
|
|
920
|
+
card?: boolean;
|
|
924
921
|
small?: boolean;
|
|
925
922
|
responsive?: boolean | Breakpoint;
|
|
923
|
+
stacked?: boolean | Breakpoint;
|
|
924
|
+
verticalAlign?: 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom';
|
|
925
|
+
captionTop?: boolean;
|
|
926
926
|
}
|
|
927
927
|
export declare const Table: PolymorphicComponent<TableProps>;
|
|
928
928
|
export type ClickBoundaryProps = PropsWithChildren<{
|
|
@@ -1251,16 +1251,15 @@ export declare const Checkbox: PolymorphicComponent<Omit<Omit<import("react").De
|
|
|
1251
1251
|
} & {
|
|
1252
1252
|
ref?: Ref<HTMLInputElement>;
|
|
1253
1253
|
}>;
|
|
1254
|
-
export type ChipProps = ComponentPropsWithRef<'
|
|
1254
|
+
export type ChipProps = ComponentPropsWithRef<'span'> & {
|
|
1255
1255
|
active?: boolean;
|
|
1256
1256
|
theme?: ComponentTheme;
|
|
1257
|
+
type?: ComponentPropsWithRef<'button'>['type'];
|
|
1257
1258
|
};
|
|
1258
1259
|
export declare const Chip: PolymorphicComponent<ChipProps>;
|
|
1259
1260
|
export declare const ChipIcon: PolymorphicComponent<IconProps>;
|
|
1260
1261
|
export declare const ChipImage: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
1261
1262
|
export declare const ChipDismiss: PolymorphicComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
1262
|
-
export type ChipTokenProps = ComponentPropsWithRef<'span'> & Pick<ChipProps, 'active' | 'theme'>;
|
|
1263
|
-
export declare const ChipToken: PolymorphicComponent<ChipTokenProps>;
|
|
1264
1263
|
export type ChipInputProps = ComponentPropsWithoutRef<'div'> & FormValidationProps & {
|
|
1265
1264
|
theme?: ComponentTheme;
|
|
1266
1265
|
separator?: string | null;
|
|
@@ -1441,7 +1440,7 @@ export type OTPInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'ma
|
|
|
1441
1440
|
onComplete?: (value: string) => unknown;
|
|
1442
1441
|
onValueChange?: (value: string) => unknown;
|
|
1443
1442
|
};
|
|
1444
|
-
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "
|
|
1443
|
+
export declare const OTPInput: PolymorphicComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "maxLength" | "type"> & FormValidationProps & {
|
|
1445
1444
|
length: number;
|
|
1446
1445
|
type?: "numeric" | "alphanumeric" | "alpha";
|
|
1447
1446
|
mask?: boolean;
|