@vincentgraul/react-components 1.0.50 → 1.0.52
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/breadcrumb/breadcrumb.d.ts +2 -3
- package/dist/country-selector/country-selector.d.ts +2 -3
- package/dist/flex/flex.d.ts +2 -3
- package/dist/input/input.d.ts +2 -3
- package/dist/loader/loader.d.ts +2 -3
- package/dist/modal/modal.d.ts +2 -3
- package/dist/pagination/pagination.d.ts +2 -3
- package/dist/react-components.css +1 -0
- package/dist/react-components.mjs +40274 -13469
- package/dist/select/select.d.ts +2 -3
- package/dist/table/table.d.ts +2 -3
- package/dist/use-outside-alerter/use-outside-alerter.d.ts +1 -1
- package/dist/use-pagination/use-pagination.d.ts +2 -3
- package/dist/wizard/wizard.d.ts +2 -3
- package/package.json +34 -36
- package/dist/style.css +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BreadcrumbType, BreadcrumbElementType } from '..';
|
|
2
|
-
type
|
|
2
|
+
export type BreadcrumbProps = BreadcrumbType & {
|
|
3
3
|
onClick: (element: BreadcrumbElementType) => void;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const Breadcrumb: (props:
|
|
7
|
-
export {};
|
|
6
|
+
export declare const Breadcrumb: (props: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CountrySelectorOption } from './country-selector.types';
|
|
2
|
-
type
|
|
2
|
+
export type CountrySelectorProps = {
|
|
3
3
|
languages: string[];
|
|
4
4
|
value?: string;
|
|
5
5
|
onChange?: (option: CountrySelectorOption) => void;
|
|
6
6
|
flagWidth?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const CountrySelector: (props:
|
|
10
|
-
export {};
|
|
9
|
+
export declare const CountrySelector: (props: CountrySelectorProps) => import("react/jsx-runtime").JSX.Element | null;
|
package/dist/flex/flex.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Sides } from './flex.types';
|
|
3
|
-
type
|
|
3
|
+
export type FlexProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
direction?: "row" | "column";
|
|
6
6
|
justify?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
@@ -12,5 +12,4 @@ type Props = {
|
|
|
12
12
|
padding?: Sides | string;
|
|
13
13
|
className?: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const Flex: ({ className, children, direction, justify, align, wrap, width, height, margin, padding, }:
|
|
16
|
-
export {};
|
|
15
|
+
export declare const Flex: ({ className, children, direction, justify, align, wrap, width, height, margin, padding, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/input/input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { InputType, InputColors, InputStatus } from './input.types';
|
|
3
|
-
type
|
|
3
|
+
export type InputProps = Exclude<React.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
4
4
|
label: string;
|
|
5
5
|
type: InputType;
|
|
6
6
|
colors?: InputColors;
|
|
@@ -10,5 +10,4 @@ type Props = Exclude<React.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
|
10
10
|
height?: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const Input: ({ className, label, message, colors, status, width, height, ...rest }:
|
|
14
|
-
export {};
|
|
13
|
+
export declare const Input: ({ className, label, message, colors, status, width, height, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/loader/loader.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type LoaderProps = {
|
|
2
|
+
export type LoaderProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
type LoaderWithImageProps = {
|
|
6
|
+
export type LoaderWithImageProps = {
|
|
7
7
|
src: string;
|
|
8
8
|
text: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const Loader: (props: LoaderProps | LoaderWithImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
package/dist/modal/modal.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type
|
|
2
|
+
export type ModalProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
onClickedOutside?: () => void;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const Modal: ({ className, children, onClickedOutside }:
|
|
8
|
-
export {};
|
|
7
|
+
export declare const Modal: ({ className, children, onClickedOutside }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,10 @@ export declare enum ArrowPosition {
|
|
|
4
4
|
LEFT = 0,
|
|
5
5
|
RIGHT = 1
|
|
6
6
|
}
|
|
7
|
-
type
|
|
7
|
+
export type PaginationProps = PaginationData & {
|
|
8
8
|
colors?: PaginationColors;
|
|
9
9
|
renderSingleArrow?: (position: ArrowPosition) => ReactNode;
|
|
10
10
|
renderDoubleArrow?: (position: ArrowPosition) => ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const Pagination: ({ className, page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }:
|
|
14
|
-
export {};
|
|
13
|
+
export declare const Pagination: ({ className, page, total, items, colors, goToFirst, goToLeft, goToRight, goToLast, goToPage, renderSingleArrow, renderDoubleArrow, }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1mzhz_1{display:flex;align-items:center;align-self:flex-start;margin:0 0 2rem 2rem}._link_1mzhz_8{color:#fff;font-size:2rem;text-decoration:none}._arrow_1mzhz_14{margin:0 1rem;width:1rem}._flag_1ci92_1{display:block;margin:auto;border-radius:2px}._container_lfodr_1{--success-color: green;--warning-color: orange;--error-color: red;--focus-color: blue;position:relative}._input-container_lfodr_10{display:inline-flex;align-items:center;position:relative;width:100%;height:100%}._input_lfodr_10{width:100%;height:100%;padding:10px;border:0;background-color:transparent;outline:none;z-index:1;color:#000}._input_lfodr_10:focus+._fieldset_lfodr_28{border-width:2px}._input_lfodr_10:focus+._fieldset_lfodr_28:not(.success,.warning,.error){border-color:var(--focus-color)}._fieldset_lfodr_28{border:1px solid black;border-radius:5px;position:absolute;inset:-8.5px 0 0;font-size:15px;margin:0}._fieldset_lfodr_28.success{border-color:var(--success-color);color:var(--success-color)}._fieldset_lfodr_28.warning{border-color:var(--warning-color);color:var(--warning-color)}._fieldset_lfodr_28.error{border-color:var(--error-color);color:var(--error-color)}._legend_lfodr_61{padding:0 5px}._message-container_lfodr_65{display:flex;align-items:center;gap:5px;margin-top:5px}._message_lfodr_65{font-size:14px}._overlay_1va7j_1{position:fixed;inset:0;background-color:#000c;overflow-y:auto;z-index:2}._container_1va7j_12{position:absolute;top:50%;left:50%;transform:translate(-50%);width:50%;color:#f9fbff}._image-container_1va7j_21{display:flex;flex-flow:column;align-items:center}@keyframes _loading_1va7j_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._image_1va7j_21{animation:_loading_1va7j_1 3s linear infinite;margin-bottom:2rem}._container_e4hb2_1{position:absolute;top:0;left:50%;transform:translate(-50%);background-color:#f9fbff;border-radius:.5rem;padding:1rem;z-index:1;margin:5rem 0}._overlay_e4hb2_13{position:fixed;inset:0;background-color:#00000080;overflow-y:auto;z-index:1}._container_12891_1{--hover-background-color: lightgrey;--hover-text-color: black;--selected-background-color: black;--selected-text-color: white;display:flex}._item_12891_10{border-style:solid;border-width:1px 1px 1px 0;padding:.5rem 1rem;display:flex;align-items:center;cursor:pointer}._item_12891_10:first-child{border-width:1px 1px 1px 1px}._item_12891_10:hover:not(._selected_12891_22){background-color:var(--hover-background-color);color:var(--hover-text-color)}._item_12891_10._selected_12891_22{background-color:var(--selected-background-color);color:var(--selected-text-color)}._container_1syfi_1{width:fit-content}._selected-option-container_1syfi_5{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px;background-color:#fff;border-radius:5px}._selected-option-text_1syfi_15{padding-right:10px;border-right:1px solid black}._selected-option-arrow_1syfi_20{width:15px;margin-left:10px}._options-list_1syfi_25{width:100%;list-style:none;padding:0;margin:10px 0 0;-webkit-user-select:none;user-select:none;background-color:#fff;border-radius:5px}._option_1syfi_25{padding:10px;cursor:pointer}._option_1syfi_25:hover{background-color:#ecf0f1}._option_1syfi_25:hover:first-child{border-radius:5px 5px 0 0}._option_1syfi_25:hover:last-child{border-radius:0 0 5px 5px}._option_1syfi_25:hover:only-child{border-radius:5px}._container_cds7q_1{display:flex;flex-flow:column}._main_cds7q_6{width:100%;table-layout:fixed;border-collapse:collapse}._tbody_cds7q_12{-webkit-user-select:text;user-select:text}._tbody_cds7q_12 tr:last-child{border:none}._th_cds7q_19{padding:2rem 1rem 1rem 0;word-wrap:break-word;white-space:nowrap}._tr_cds7q_25{text-align:center;border-bottom:2px solid black}._td_cds7q_30{padding:2rem 1rem 1rem 0;word-wrap:break-word}._container_1qatf_1{display:flex}._direction-row_1qatf_5{flex-direction:row}._direction-column_1qatf_9{flex-direction:column}._justify-start_1qatf_13{justify-content:start}._justify-center_1qatf_17{justify-content:center}._justify-end_1qatf_21{justify-content:end}._justify-space-between_1qatf_25{justify-content:space-between}._justify-space-around_1qatf_29{justify-content:space-around}._justify-space-evenly_1qatf_33{justify-content:space-evenly}._justify-stretch_1qatf_37{justify-content:stretch}._align-start_1qatf_41{align-items:start}._align-center_1qatf_45{align-items:center}._align-end_1qatf_49{align-items:end}._align-stretch_1qatf_53{align-items:stretch}._wrap-nowrap_1qatf_57{flex-wrap:nowrap}._wrap-wrap_1qatf_61{flex-wrap:wrap}._wrap-wrap-reverse_1qatf_65{flex-wrap:wrap-reverse}
|