@vincentgraul/react-components 1.0.70 → 1.0.71

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 CHANGED
@@ -17,7 +17,6 @@
17
17
  | Loader | React component used to display a loader |
18
18
  | Select | React component used to display a select |
19
19
  | CountrySelector | React component used to display a country selector |
20
- | useBreadcrumb | React hook used to handle a breadcrumb |
21
20
  | Breadcrumb | React component used to display a breadcrumb |
22
21
  | Input | React component used to display an input |
23
22
  | Wizard | React component used to display a wizard |
@@ -1,6 +1,8 @@
1
- import { BreadcrumbType, BreadcrumbElementType } from '..';
1
+ import { BreadcrumbType, BreadcrumbElementType } from './breadcrumb.types';
2
2
  export type BreadcrumbProps = BreadcrumbType & {
3
3
  onClick: (element: BreadcrumbElementType) => void;
4
+ icon?: string;
5
+ iconSize?: number;
4
6
  className?: string;
5
7
  };
6
- export declare const Breadcrumb: (props: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Breadcrumb: ({ className, onClick, icon, iconSize, url, mapping, }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1 @@
1
1
  export * from './breadcrumb';
2
- export * from '../use-breadcrumb/use-breadcrumb.types';
3
- export * from '../use-breadcrumb/use-breadcrumb';
@@ -1,2 +1,2 @@
1
- import { BreadcrumbType, BreadcrumbElementType } from './use-breadcrumb.types';
1
+ import { BreadcrumbType, BreadcrumbElementType } from './breadcrumb.types';
2
2
  export declare const useBreadcrumb: ({ url, mapping, }: BreadcrumbType) => BreadcrumbElementType[];
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, ReactNode } from 'react';
2
- type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
2
+ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
3
  children: ReactNode;
4
4
  color?: string;
5
5
  width?: number;
@@ -16,4 +16,3 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
16
16
  className?: string;
17
17
  };
18
18
  export declare const Button: ({ className, children, width, height, alignSelf, fontSize, fontWeight, borderRadius, borderWidth, padding, color, backgroundColor, borderColor, hoverOpacity, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,4 +1,4 @@
1
- type DropZoneProps = {
1
+ export type DropZoneProps = {
2
2
  onFileChanged: (file: File | undefined) => void;
3
3
  label?: string;
4
4
  labelSize?: number;
@@ -22,4 +22,3 @@ type DropZoneProps = {
22
22
  className?: string;
23
23
  };
24
24
  export declare const DropZone: ({ onFileChanged, label, labelSize, labelWeight, labelGap, previewIcon, previewIconSize, removeIcon, removeIconSize, text, textSize, textWeight, width, height, gap, padding, borderSize, borderColor, borderStyle, removeAriaLabel, className, }: DropZoneProps) => import("react/jsx-runtime").JSX.Element;
25
- export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './breadcrumb';
2
- export * from './use-breadcrumb';
3
2
  export * from './country-selector';
4
3
  export * from './input';
5
4
  export * from './loader';
@@ -1,13 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { PaginationData, PaginationColors } from '..';
3
- export declare enum ArrowPosition {
4
- LEFT = 0,
5
- RIGHT = 1
6
- }
7
3
  export type PaginationProps = PaginationData & {
8
4
  colors?: PaginationColors;
9
- renderSingleArrow?: (position: ArrowPosition) => ReactNode;
10
- renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
5
+ renderSingleArrow?: (position: "left" | "right") => ReactNode;
6
+ renderDoubleArrow?: (position: "left" | "right") => ReactNode;
11
7
  className?: string;
12
8
  };
13
9
  export declare const Pagination: ({ className, page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;