@vincentgraul/react-components 1.0.45 → 1.0.47
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/README.md +3 -2
- package/dist/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/country-selector/country-selector.d.ts +1 -0
- package/dist/input/input.d.ts +2 -1
- package/dist/loader/loader.d.ts +2 -0
- package/dist/modal/modal.d.ts +2 -1
- package/dist/pagination/pagination.d.ts +2 -1
- package/dist/react-components.mjs +2251 -2236
- package/dist/select/select.d.ts +2 -1
- package/dist/table/table.d.ts +2 -1
- package/dist/wizard/wizard.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
## Hooks and UI components
|
|
4
4
|
|
|
5
5
|
| Component | Description |
|
|
6
|
-
|
|
6
|
+
|--------------------|-------------------------------------------------------------------------------------|
|
|
7
7
|
| useVisible | React hook to know if an element is visible |
|
|
8
8
|
| useMatchResolution | React hook to detect the resolution (desktop, laptop, tablet, mobile...) |
|
|
9
9
|
| useMatchDevice | React hook to detect the device (mobile, tablet or desktop) based on the user agent |
|
|
10
10
|
| useScrollTo | React hook to scroll to an element |
|
|
11
11
|
| usePagination | React hook to manage pagination |
|
|
12
12
|
| Table | React component used to display a data table |
|
|
13
|
-
| Pagination
|
|
13
|
+
| Pagination | React component used to display a pagination (with numbers) |
|
|
14
14
|
| mountReactHook | React hook to mount a hook in an unit test |
|
|
15
15
|
| useOutsideAlerter | React hook to know if an click has been triggered outside an element |
|
|
16
16
|
| Modal | React component used to display a modal |
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
| Breadcrumb | React component used to display a breadcrumb |
|
|
22
22
|
| Input | React component used to display an input |
|
|
23
23
|
| Wizard | React component used to display a wizard |
|
|
24
|
+
| Flex | React component used to display a flex layout |
|
|
24
25
|
|
|
25
26
|
## License
|
|
26
27
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BreadcrumbType, BreadcrumbElementType } from '..';
|
|
2
2
|
type Props = BreadcrumbType & {
|
|
3
3
|
onClick: (element: BreadcrumbElementType) => void;
|
|
4
|
+
className?: string;
|
|
4
5
|
};
|
|
5
6
|
export declare const Breadcrumb: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
package/dist/input/input.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ type Props = Exclude<React.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
|
6
6
|
colors?: InputColors;
|
|
7
7
|
status?: InputStatus;
|
|
8
8
|
message?: string;
|
|
9
|
+
className?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const Input: ({ label, message, colors, status, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const Input: ({ className, label, message, colors, status, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
package/dist/loader/loader.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
type LoaderProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
4
5
|
};
|
|
5
6
|
type LoaderWithImageProps = {
|
|
6
7
|
src: string;
|
|
7
8
|
text: string;
|
|
9
|
+
className?: string;
|
|
8
10
|
};
|
|
9
11
|
export declare const Loader: (props: LoaderProps | LoaderWithImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
package/dist/modal/modal.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
onClickedOutside?: () => void;
|
|
5
|
+
className?: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const Modal: ({ children, onClickedOutside }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Modal: ({ className, children, onClickedOutside }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -8,6 +8,7 @@ type Props = PaginationData & {
|
|
|
8
8
|
colors?: PaginationColors;
|
|
9
9
|
renderSingleArrow?: (position: ArrowPosition) => ReactNode;
|
|
10
10
|
renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
|
|
11
|
+
className?: string;
|
|
11
12
|
};
|
|
12
|
-
export declare const Pagination: ({ page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Pagination: ({ className, page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|