kelt-ui-kit-react 1.7.9 → 1.8.0
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/package.json +1 -1
- package/src/sidebar/Sidebar.tsx +21 -2
- package/src/sidebar/sidebar.css +12 -1
- package/dist/App.d.ts +0 -3
- package/dist/App.menu.d.ts +0 -10
- package/dist/App.routes.d.ts +0 -1
- package/dist/_core/hooks/HistoryProvider.d.ts +0 -5
- package/dist/_core/hooks/ImageChecker.d.ts +0 -7
- package/dist/_core/hooks/imageExist.d.ts +0 -7
- package/dist/_core/hooks/isEAN13.d.ts +0 -1
- package/dist/_core/hooks/objectToQueryParams.d.ts +0 -1
- package/dist/_core/hooks/useCurrency.d.ts +0 -3
- package/dist/_core/hooks/useDateutils.d.ts +0 -4
- package/dist/_core/hooks/useIsMobile.d.ts +0 -1
- package/dist/_core/hooks/useToken.d.ts +0 -3
- package/dist/_core/hooks/useValidate.d.ts +0 -5
- package/dist/_core/hooks/widgetSupport.d.ts +0 -1
- package/dist/action/Action.view.d.ts +0 -1
- package/dist/action/ButtonAction.d.ts +0 -10
- package/dist/badge/Badge.d.ts +0 -10
- package/dist/badge/Badge.view.d.ts +0 -1
- package/dist/button/Button.d.ts +0 -3
- package/dist/button/Button.view.d.ts +0 -1
- package/dist/button/button.interface.d.ts +0 -21
- package/dist/button/buttonActions/ButtonActions.d.ts +0 -14
- package/dist/button/buttonFile/ButtonFile.d.ts +0 -9
- package/dist/button/buttonFile/ButtonFile.view.d.ts +0 -1
- package/dist/button/buttonFilters/ButtonFilters.d.ts +0 -19
- package/dist/card/Card.d.ts +0 -16
- package/dist/card/Card.view.d.ts +0 -1
- package/dist/card/card.interface.d.ts +0 -10
- package/dist/card/cardAction/CardAction.d.ts +0 -16
- package/dist/card/cardAction.interface.d.ts +0 -10
- package/dist/card/hook/useCardInteractions.d.ts +0 -8
- package/dist/carousel/Carousel.d.ts +0 -16
- package/dist/carousel/Carousel.view.d.ts +0 -1
- package/dist/damier/Damier.d.ts +0 -11
- package/dist/damier/Damier.view.d.ts +0 -1
- package/dist/damier/damierCell/DamierCell.d.ts +0 -8
- package/dist/damier/damierCell/damierCell.interface.d.ts +0 -6
- package/dist/dataTable/DataTable.d.ts +0 -23
- package/dist/dataTable/DataTable.view.d.ts +0 -1
- package/dist/dataTable/dataTable.interface.d.ts +0 -33
- package/dist/dataTable/dataTableActions/DataTableAction.d.ts +0 -9
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +0 -9
- package/dist/dataTable/dataTableLoading/DataTableLoading.d.ts +0 -7
- package/dist/dataTable/dataTableRow/DataTableRow.d.ts +0 -9
- package/dist/datePicker/DatePicker.d.ts +0 -9
- package/dist/datePicker/DatePicker.view.d.ts +0 -1
- package/dist/expands/Expands.d.ts +0 -11
- package/dist/expands/Expands.view.d.ts +0 -1
- package/dist/expands/expand/expand.d.ts +0 -10
- package/dist/expands/expand/expand.interface.d.ts +0 -9
- package/dist/favicon.ico +0 -0
- package/dist/filAriane/FilAriane.d.ts +0 -10
- package/dist/filAriane/FilAriane.view.d.ts +0 -1
- package/dist/filAriane/filAriane.interface.d.ts +0 -6
- package/dist/form/Form.d.ts +0 -31
- package/dist/form/Form.view.d.ts +0 -1
- package/dist/form/form.enum.d.ts +0 -13
- package/dist/form/form.interface.d.ts +0 -36
- package/dist/form/input/Input.d.ts +0 -26
- package/dist/form/inputNumber/InputNumber.d.ts +0 -22
- package/dist/form/inputNumber/InputNumber.view.d.ts +0 -1
- package/dist/form/inputPrice/InputPrice.d.ts +0 -16
- package/dist/form/inputPrice/InputPrice.view.d.ts +0 -1
- package/dist/form/textArea/TextArea.d.ts +0 -15
- package/dist/form/textArea/TextArea.view.d.ts +0 -1
- package/dist/grid/Grid.d.ts +0 -9
- package/dist/grid/Grid.view.d.ts +0 -1
- package/dist/grid/col/Col.d.ts +0 -10
- package/dist/grid/col/colStyled/ColStyled.d.ts +0 -9
- package/dist/grid/container/Container.d.ts +0 -7
- package/dist/grid/grid.interface.d.ts +0 -8
- package/dist/grid/row/Row.d.ts +0 -8
- package/dist/header/Header.d.ts +0 -3
- package/dist/header/Header.view.d.ts +0 -1
- package/dist/header/header.interface.d.ts +0 -11
- package/dist/home/Home.d.ts +0 -1
- package/dist/icon/Icon.d.ts +0 -3
- package/dist/icon/Icons.view.d.ts +0 -1
- package/dist/icon/icon.interface.d.ts +0 -6
- package/dist/icon/iconSize.enum.d.ts +0 -7
- package/dist/index.d.ts +0 -49
- package/dist/index.html +0 -18
- package/dist/index.js +0 -5325
- package/dist/loader/Loader.d.ts +0 -9
- package/dist/loader/Loader.view.d.ts +0 -1
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/main.d.ts +0 -1
- package/dist/manifest.json +0 -25
- package/dist/menus/Menus.d.ts +0 -7
- package/dist/menus/Menus.view.d.ts +0 -1
- package/dist/menus/menu/Menu.d.ts +0 -8
- package/dist/menus/menu/menu.interface.d.ts +0 -10
- package/dist/message/Message.d.ts +0 -7
- package/dist/message/Message.view.d.ts +0 -1
- package/dist/modal/Modal.d.ts +0 -15
- package/dist/modal/Modal.view.d.ts +0 -1
- package/dist/notFound/NotFound.d.ts +0 -1
- package/dist/overlayPanel/OverlayPanel.d.ts +0 -21
- package/dist/overlayPanel/OverlayPanel.view.d.ts +0 -1
- package/dist/overlayPanel/overlay.context.d.ts +0 -11
- package/dist/overlayPanel/overlayPanelStyled/OverlayPanelStyled.d.ts +0 -7
- package/dist/pdfViewer/PdfViewer.d.ts +0 -12
- package/dist/pdfViewer/PdfViewer.view.d.ts +0 -1
- package/dist/quantity/Quantity.d.ts +0 -12
- package/dist/quantity/Quantity.view.d.ts +0 -0
- package/dist/robots.txt +0 -3
- package/dist/search/Search.d.ts +0 -23
- package/dist/search/Search.view.d.ts +0 -1
- package/dist/select/Select.d.ts +0 -19
- package/dist/select/Select.view.d.ts +0 -1
- package/dist/select/selectOption.interface.d.ts +0 -4
- package/dist/sidebar/Sidebar.d.ts +0 -13
- package/dist/sidebar/Sidebar.view.d.ts +0 -1
- package/dist/sidebarData/SidebarData.d.ts +0 -8
- package/dist/sidebarData/SidebarData.view.d.ts +0 -1
- package/dist/style.css +0 -5
- package/dist/tabs/Tabs.d.ts +0 -18
- package/dist/tabs/Tabs.view.d.ts +0 -1
- package/dist/toaster/Toaster.d.ts +0 -2
- package/dist/toaster/Toaster.view.d.ts +0 -1
- package/dist/toaster/store/useToasterStore.d.ts +0 -19
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TypeInputEnum } from './form.enum';
|
|
2
|
-
|
|
3
|
-
export type FormValuesInterface<T extends {
|
|
4
|
-
[key: string]: string | number | boolean | Date | string[];
|
|
5
|
-
}> = Partial<{
|
|
6
|
-
[K in keyof T]: T[K];
|
|
7
|
-
}>;
|
|
8
|
-
export interface FormCondition {
|
|
9
|
-
errorMessage: string;
|
|
10
|
-
regex: string;
|
|
11
|
-
}
|
|
12
|
-
export interface FormInterface {
|
|
13
|
-
value: string | number | boolean | Date;
|
|
14
|
-
id?: string;
|
|
15
|
-
label?: string;
|
|
16
|
-
focus?: boolean;
|
|
17
|
-
type: TypeInputEnum;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
name: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
required?: boolean;
|
|
22
|
-
condition?: FormCondition;
|
|
23
|
-
icon?: string;
|
|
24
|
-
multiple?: boolean;
|
|
25
|
-
options?: {
|
|
26
|
-
value: string;
|
|
27
|
-
label: string;
|
|
28
|
-
}[];
|
|
29
|
-
className?: string;
|
|
30
|
-
autoComplete?: string;
|
|
31
|
-
step?: string;
|
|
32
|
-
onChange?: (value: string | number | boolean | Date | string[], name?: string) => void;
|
|
33
|
-
onRequired?: (value: string | number | boolean | Date) => boolean;
|
|
34
|
-
onDisabled?: (value: string | number | boolean | Date) => boolean;
|
|
35
|
-
onInvalid?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TypeInputEnum } from '../form.enum';
|
|
2
|
-
|
|
3
|
-
export interface InputProps {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
type?: TypeInputEnum;
|
|
7
|
-
onInvalid?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
inputMode?: "text" | "numeric" | "decimal" | "email" | "tel" | "search";
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
autoFocus?: boolean;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
minLength?: number;
|
|
16
|
-
maxLength?: number;
|
|
17
|
-
autoComplete?: string;
|
|
18
|
-
step?: string;
|
|
19
|
-
tabIndex?: number;
|
|
20
|
-
checked?: boolean;
|
|
21
|
-
handleKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
22
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
24
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export type InputNumberProps = {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
pattern?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
inputMode?: "numeric" | "decimal";
|
|
12
|
-
autoFocus?: boolean;
|
|
13
|
-
maxLength?: number;
|
|
14
|
-
autoComplete?: string;
|
|
15
|
-
tabIndex?: number;
|
|
16
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
17
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>, valueFormat?: string) => void;
|
|
18
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
20
|
-
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
21
|
-
};
|
|
22
|
-
export declare const InputNumber: import('react').ForwardRefExoticComponent<InputNumberProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const InputNumberView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps } from '../inputNumber/InputNumber';
|
|
2
|
-
|
|
3
|
-
export type InputPriceProps = Omit<InputNumberProps, "onChange"> & {
|
|
4
|
-
locale?: string;
|
|
5
|
-
currency?: string;
|
|
6
|
-
allowDecimals?: boolean;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
value?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const InputPrice: import('react').ForwardRefExoticComponent<Omit<InputNumberProps, "onChange"> & {
|
|
11
|
-
locale?: string | undefined;
|
|
12
|
-
currency?: string | undefined;
|
|
13
|
-
allowDecimals?: boolean | undefined;
|
|
14
|
-
onChange?: ((value: string) => void) | undefined;
|
|
15
|
-
value?: string | undefined;
|
|
16
|
-
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const InputPriceView: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export type TextAreaProps = {
|
|
3
|
-
name: string;
|
|
4
|
-
id?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
width?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
onChange?: (value: string, name: string) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
rows?: number;
|
|
12
|
-
cols?: number;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const TextArea: ({ name, id, value, disabled, width, className, onChange, placeholder, cols, rows, required, }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TextAreaView: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/grid/Grid.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GridInterface } from './grid.interface';
|
|
2
|
-
|
|
3
|
-
type GridProps = {
|
|
4
|
-
items: GridInterface[];
|
|
5
|
-
className?: string;
|
|
6
|
-
scroll?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const Grid: ({ items, className, scroll }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
package/dist/grid/Grid.view.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GridView: () => JSX.Element;
|
package/dist/grid/col/Col.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type ColStyledProps = {
|
|
3
|
-
$xs?: number;
|
|
4
|
-
$sm?: number;
|
|
5
|
-
$md?: number;
|
|
6
|
-
$lg?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const ColStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColStyledProps>> & string;
|
|
9
|
-
export {};
|
package/dist/grid/row/Row.d.ts
DELETED
package/dist/header/Header.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HeaderView: () => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface HeaderInterface {
|
|
3
|
-
logo?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
positionFixed?: boolean;
|
|
6
|
-
onClickMenu?: () => void;
|
|
7
|
-
userChildren?: React.ReactNode;
|
|
8
|
-
onClickLogo?: () => void;
|
|
9
|
-
showBackNavigation?: boolean;
|
|
10
|
-
onClickBackNavigation?: () => void;
|
|
11
|
-
}
|
package/dist/home/Home.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Home: () => JSX.Element;
|
package/dist/icon/Icon.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconsView: () => JSX.Element;
|
package/dist/index.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export { HistoryProvider, useHistoryDepth, } from './_core/hooks/HistoryProvider';
|
|
3
|
-
export { ImageChecker } from './_core/hooks/ImageChecker';
|
|
4
|
-
export { ImageExist } from './_core/hooks/imageExist';
|
|
5
|
-
export { isValidEAN13 } from './_core/hooks/isEAN13';
|
|
6
|
-
export { objectToQueryParams } from './_core/hooks/objectToQueryParams';
|
|
7
|
-
export { useCurrency } from './_core/hooks/useCurrency';
|
|
8
|
-
export { FormatDate, localDateEndToUTC, localDateStartToUTC, LocalDateStringToUTC, } from './_core/hooks/useDateutils';
|
|
9
|
-
export { useIsMobile } from './_core/hooks/useIsMobile';
|
|
10
|
-
export { useToken } from './_core/hooks/useToken';
|
|
11
|
-
export { useValidate } from './_core/hooks/useValidate';
|
|
12
|
-
export { WidgetSupport } from './_core/hooks/widgetSupport';
|
|
13
|
-
export { ButtonAction } from './action/ButtonAction';
|
|
14
|
-
export { Badge } from './badge/Badge';
|
|
15
|
-
export { Button } from './button/Button';
|
|
16
|
-
export { ButtonActions } from './button/buttonActions/ButtonActions';
|
|
17
|
-
export { ButtonFile } from './button/buttonFile/ButtonFile';
|
|
18
|
-
export { Card } from './card/Card';
|
|
19
|
-
export { Carousel } from './carousel/Carousel';
|
|
20
|
-
export { Damier } from './damier/Damier';
|
|
21
|
-
export { DataTable } from './dataTable/DataTable';
|
|
22
|
-
export { DatePicker } from './datePicker/DatePicker';
|
|
23
|
-
export { Expands } from './expands/Expands';
|
|
24
|
-
export { FilAriane } from './filAriane/FilAriane';
|
|
25
|
-
export { DynamicForm } from './form/Form';
|
|
26
|
-
export { TypeInputEnum } from './form/form.enum';
|
|
27
|
-
export { Input } from './form/input/Input';
|
|
28
|
-
export { InputNumber } from './form/inputNumber/InputNumber';
|
|
29
|
-
export { InputPrice } from './form/inputPrice/InputPrice';
|
|
30
|
-
export { TextArea } from './form/textArea/TextArea';
|
|
31
|
-
export { Grid } from './grid/Grid';
|
|
32
|
-
export { Header } from './header/Header';
|
|
33
|
-
export { Icon } from './icon/Icon';
|
|
34
|
-
export { IconSizeEnum } from './icon/iconSize.enum';
|
|
35
|
-
export { Loader } from './loader/Loader';
|
|
36
|
-
export { Menus } from './menus/Menus';
|
|
37
|
-
export { Message } from './message/Message';
|
|
38
|
-
export { Modal } from './modal/Modal';
|
|
39
|
-
export { OverlayProvider } from './overlayPanel/overlay.context';
|
|
40
|
-
export { OverlayPanel } from './overlayPanel/OverlayPanel';
|
|
41
|
-
export { PdfViewer } from './pdfViewer/PdfViewer';
|
|
42
|
-
export { Quantity } from './quantity/Quantity';
|
|
43
|
-
export { Search } from './search/Search';
|
|
44
|
-
export { Select } from './select/Select';
|
|
45
|
-
export { Sidebar } from './sidebar/Sidebar';
|
|
46
|
-
export { SidebarData } from './sidebarData/SidebarData';
|
|
47
|
-
export { Tabs } from './tabs/Tabs';
|
|
48
|
-
export { useToasterStore } from './toaster/store/useToasterStore';
|
|
49
|
-
export { Toaster } from './toaster/Toaster';
|
package/dist/index.html
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta name="description" content="Web site created using Vite" />
|
|
9
|
-
<link rel="apple-touch-icon" href="/logo192.png" />
|
|
10
|
-
<link rel="manifest" href="/manifest.json" />
|
|
11
|
-
<title>Vite App</title>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
15
|
-
<div id="root"></div>
|
|
16
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|