kelt-ui-kit-react 1.8.0 → 1.8.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/App.d.ts +3 -0
- package/dist/App.menu.d.ts +10 -0
- package/dist/App.routes.d.ts +1 -0
- package/dist/_core/hooks/HistoryProvider.d.ts +5 -0
- package/dist/_core/hooks/ImageChecker.d.ts +7 -0
- package/dist/_core/hooks/imageExist.d.ts +7 -0
- package/dist/_core/hooks/isEAN13.d.ts +1 -0
- package/dist/_core/hooks/objectToQueryParams.d.ts +1 -0
- package/dist/_core/hooks/useCurrency.d.ts +3 -0
- package/dist/_core/hooks/useDateutils.d.ts +4 -0
- package/dist/_core/hooks/useIsMobile.d.ts +1 -0
- package/dist/_core/hooks/useToken.d.ts +3 -0
- package/dist/_core/hooks/useValidate.d.ts +5 -0
- package/dist/_core/hooks/widgetSupport.d.ts +1 -0
- package/dist/action/Action.view.d.ts +1 -0
- package/dist/action/ButtonAction.d.ts +10 -0
- package/dist/badge/Badge.d.ts +10 -0
- package/dist/badge/Badge.view.d.ts +1 -0
- package/dist/button/Button.d.ts +3 -0
- package/dist/button/Button.view.d.ts +1 -0
- package/dist/button/button.interface.d.ts +21 -0
- package/dist/button/buttonActions/ButtonActions.d.ts +14 -0
- package/dist/button/buttonFile/ButtonFile.d.ts +9 -0
- package/dist/button/buttonFile/ButtonFile.view.d.ts +1 -0
- package/dist/button/buttonFilters/ButtonFilters.d.ts +19 -0
- package/dist/card/Card.d.ts +16 -0
- package/dist/card/Card.view.d.ts +1 -0
- package/dist/card/card.interface.d.ts +10 -0
- package/dist/card/cardAction/CardAction.d.ts +16 -0
- package/dist/card/cardAction.interface.d.ts +10 -0
- package/dist/card/hook/useCardInteractions.d.ts +8 -0
- package/dist/carousel/Carousel.d.ts +16 -0
- package/dist/carousel/Carousel.view.d.ts +1 -0
- package/dist/damier/Damier.d.ts +11 -0
- package/dist/damier/Damier.view.d.ts +1 -0
- package/dist/damier/damierCell/DamierCell.d.ts +8 -0
- package/dist/damier/damierCell/damierCell.interface.d.ts +6 -0
- package/dist/dataTable/DataTable.d.ts +23 -0
- package/dist/dataTable/DataTable.view.d.ts +1 -0
- package/dist/dataTable/dataTable.interface.d.ts +33 -0
- package/dist/dataTable/dataTableActions/DataTableAction.d.ts +9 -0
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +9 -0
- package/dist/dataTable/dataTableLoading/DataTableLoading.d.ts +7 -0
- package/dist/dataTable/dataTableRow/DataTableRow.d.ts +9 -0
- package/dist/datePicker/DatePicker.d.ts +9 -0
- package/dist/datePicker/DatePicker.view.d.ts +1 -0
- package/dist/expands/Expands.d.ts +11 -0
- package/dist/expands/Expands.view.d.ts +1 -0
- package/dist/expands/expand/expand.d.ts +10 -0
- package/dist/expands/expand/expand.interface.d.ts +9 -0
- package/dist/favicon.ico +0 -0
- package/dist/filAriane/FilAriane.d.ts +10 -0
- package/dist/filAriane/FilAriane.view.d.ts +1 -0
- package/dist/filAriane/filAriane.interface.d.ts +6 -0
- package/dist/form/Form.d.ts +31 -0
- package/dist/form/Form.view.d.ts +1 -0
- package/dist/form/form.enum.d.ts +13 -0
- package/dist/form/form.interface.d.ts +36 -0
- package/dist/form/input/Input.d.ts +26 -0
- package/dist/form/inputNumber/InputNumber.d.ts +22 -0
- package/dist/form/inputNumber/InputNumber.view.d.ts +1 -0
- package/dist/form/inputPrice/InputPrice.d.ts +16 -0
- package/dist/form/inputPrice/InputPrice.view.d.ts +1 -0
- package/dist/form/textArea/TextArea.d.ts +15 -0
- package/dist/form/textArea/TextArea.view.d.ts +1 -0
- package/dist/grid/Grid.d.ts +9 -0
- package/dist/grid/Grid.view.d.ts +1 -0
- package/dist/grid/col/Col.d.ts +10 -0
- package/dist/grid/col/colStyled/ColStyled.d.ts +9 -0
- package/dist/grid/container/Container.d.ts +7 -0
- package/dist/grid/grid.interface.d.ts +8 -0
- package/dist/grid/row/Row.d.ts +8 -0
- package/dist/header/Header.d.ts +3 -0
- package/dist/header/Header.view.d.ts +1 -0
- package/dist/header/header.interface.d.ts +11 -0
- package/dist/home/Home.d.ts +1 -0
- package/dist/icon/Icon.d.ts +3 -0
- package/dist/icon/Icons.view.d.ts +1 -0
- package/dist/icon/icon.interface.d.ts +6 -0
- package/dist/icon/iconSize.enum.d.ts +7 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.html +18 -0
- package/dist/index.js +5354 -0
- package/dist/loader/Loader.d.ts +9 -0
- package/dist/loader/Loader.view.d.ts +1 -0
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/main.d.ts +1 -0
- package/dist/manifest.json +25 -0
- package/dist/menus/Menus.d.ts +7 -0
- package/dist/menus/Menus.view.d.ts +1 -0
- package/dist/menus/menu/Menu.d.ts +8 -0
- package/dist/menus/menu/menu.interface.d.ts +10 -0
- package/dist/message/Message.d.ts +7 -0
- package/dist/message/Message.view.d.ts +1 -0
- package/dist/modal/Modal.d.ts +15 -0
- package/dist/modal/Modal.view.d.ts +1 -0
- package/dist/notFound/NotFound.d.ts +1 -0
- package/dist/overlayPanel/OverlayPanel.d.ts +21 -0
- package/dist/overlayPanel/OverlayPanel.view.d.ts +1 -0
- package/dist/overlayPanel/overlay.context.d.ts +11 -0
- package/dist/overlayPanel/overlayPanelStyled/OverlayPanelStyled.d.ts +7 -0
- package/dist/pdfViewer/PdfViewer.d.ts +12 -0
- package/dist/pdfViewer/PdfViewer.view.d.ts +1 -0
- package/dist/quantity/Quantity.d.ts +12 -0
- package/dist/quantity/Quantity.view.d.ts +0 -0
- package/dist/robots.txt +3 -0
- package/dist/search/Search.d.ts +23 -0
- package/dist/search/Search.view.d.ts +1 -0
- package/dist/select/Select.d.ts +19 -0
- package/dist/select/Select.view.d.ts +1 -0
- package/dist/select/selectOption.interface.d.ts +4 -0
- package/dist/sidebar/Sidebar.d.ts +13 -0
- package/dist/sidebar/Sidebar.view.d.ts +1 -0
- package/dist/sidebarData/SidebarData.d.ts +8 -0
- package/dist/sidebarData/SidebarData.view.d.ts +1 -0
- package/dist/style.css +5 -0
- package/dist/tabs/Tabs.d.ts +18 -0
- package/dist/tabs/Tabs.view.d.ts +1 -0
- package/dist/toaster/Toaster.d.ts +2 -0
- package/dist/toaster/Toaster.view.d.ts +1 -0
- package/dist/toaster/store/useToasterStore.d.ts +19 -0
- package/package.json +1 -1
- package/src/sidebar/Sidebar.tsx +59 -7
- package/src/sidebar/sidebar.css +6 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconSizeEnum } from '../icon/iconSize.enum';
|
|
2
|
+
|
|
3
|
+
export type LoaderProps = {
|
|
4
|
+
display: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
size?: IconSizeEnum;
|
|
7
|
+
full?: true;
|
|
8
|
+
};
|
|
9
|
+
export declare const Loader: ({ display, full, message }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoaderView: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/logo192.png
ADDED
|
Binary file
|
package/dist/logo512.png
ADDED
|
Binary file
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenusView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MessageView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSubmit?: () => void;
|
|
7
|
+
titleButton?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
title?: string;
|
|
10
|
+
styleContainer?: React.CSSProperties;
|
|
11
|
+
classNameContainer?: string;
|
|
12
|
+
closeOnOverlayClick?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModalView: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NotFound: () => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PositionOverlay = "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
4
|
+
export type OverlayPanelProps = {
|
|
5
|
+
referenceElement?: HTMLElement;
|
|
6
|
+
coordonnees?: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
};
|
|
10
|
+
position?: PositionOverlay;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
show?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
closeOverlay?: (close: boolean) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const OverlayPanel: React.ForwardRefExoticComponent<OverlayPanelProps & React.RefAttributes<{
|
|
17
|
+
setCoords?: ((coords: {
|
|
18
|
+
top: number;
|
|
19
|
+
left: number;
|
|
20
|
+
}) => void) | undefined;
|
|
21
|
+
}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverlayPanelView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface OverlayContextType {
|
|
4
|
+
activeOverlayId: string | null;
|
|
5
|
+
setActiveOverlay: (id: string | null) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OverlayProvider: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const useOverlayContext: () => OverlayContextType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface OverlayPanelStyledProps {
|
|
3
|
+
$top?: number;
|
|
4
|
+
$left?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const OverlayPanelStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, OverlayPanelStyledProps>> & string;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type PdfViewerProps = {
|
|
3
|
+
arrayBuffer: ArrayBuffer;
|
|
4
|
+
displayToolBar?: boolean;
|
|
5
|
+
height?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
ref?: React.Ref<HTMLIFrameElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare const PdfViewer: import('react').ForwardRefExoticComponent<Omit<PdfViewerProps, "ref"> & import('react').RefAttributes<HTMLIFrameElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PdfViewerView: () => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CardInterface } from '../card/card.interface';
|
|
2
|
+
|
|
3
|
+
export interface QuantityProps {
|
|
4
|
+
setQuantity?: (item: CardInterface, qte: number) => void;
|
|
5
|
+
item: CardInterface;
|
|
6
|
+
onClickQuantity?: (item: CardInterface) => void;
|
|
7
|
+
pas: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
disabledPlus?: boolean;
|
|
10
|
+
disabledMinus?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Quantity: ({ setQuantity, item, onClickQuantity, disabled, disabledPlus, disabledMinus, pas, }: QuantityProps) => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
package/dist/robots.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormValuesInterface } from '../form/form.interface';
|
|
2
|
+
|
|
3
|
+
interface SearchProps {
|
|
4
|
+
children?: JSX.Element;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
isVisible?: boolean;
|
|
7
|
+
focus?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
debounceTime?: number;
|
|
11
|
+
handleChange?: (values: FormValuesInterface<FormData>) => void;
|
|
12
|
+
setIsVisible?: (visible: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
interface FormData {
|
|
15
|
+
recherche: string;
|
|
16
|
+
[key: string]: string | number | boolean | Date | string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const Search: import('react').ForwardRefExoticComponent<SearchProps & import('react').RefAttributes<{
|
|
19
|
+
clearInput: (name: string) => void;
|
|
20
|
+
resetForm: () => void;
|
|
21
|
+
focusInitialElement: () => void;
|
|
22
|
+
}>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SearchView: () => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SelectOptionInterface } from './selectOption.interface';
|
|
2
|
+
|
|
3
|
+
export interface SelectProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
defaultValue?: string | string[];
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
value?: string | string[];
|
|
13
|
+
className?: string;
|
|
14
|
+
options: SelectOptionInterface[];
|
|
15
|
+
onChangeMultiple?: (value: string[]) => void;
|
|
16
|
+
onChange?: (value: string) => void;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Select: ({ id, label, options, className, disabled, multiple, required, defaultValue, name, onChange, onChangeMultiple, value, placeholder, }: SelectProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
export interface SidebarProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
title?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
width?: string;
|
|
9
|
+
displayOverlay?: boolean;
|
|
10
|
+
closeOnClickOutside?: boolean;
|
|
11
|
+
onClose?: (close: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const Sidebar: ({ open, children, title, onClose, className, id, width, closeOnClickOutside, displayOverlay, }: SidebarProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SidebarView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SidebarProps } from '../sidebar/Sidebar';
|
|
2
|
+
|
|
3
|
+
interface SidebarDataProps extends SidebarProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
classNameContent?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SidebarData: (props: SidebarDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SidebarDataView: () => import("react/jsx-runtime").JSX.Element;
|