karsten-design-system 1.0.3 → 1.0.4
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/index.js.map +1 -1
- package/dist/stories/components/accordion.d.ts +1 -2
- package/dist/stories/components/autoComplete.d.ts +1 -2
- package/dist/stories/components/breadcrumb.d.ts +1 -2
- package/dist/stories/components/button.d.ts +1 -1
- package/dist/stories/components/card.d.ts +1 -2
- package/dist/stories/components/dateInput.d.ts +1 -2
- package/dist/stories/components/dialog.d.ts +1 -2
- package/dist/stories/components/filterButton.d.ts +1 -1
- package/dist/stories/components/header.d.ts +1 -2
- package/dist/stories/components/iconButton.d.ts +1 -1
- package/dist/stories/components/infoCard.d.ts +1 -2
- package/dist/stories/components/internalMenu.d.ts +1 -2
- package/dist/stories/components/link.d.ts +2 -3
- package/dist/stories/components/megaMenu.d.ts +1 -2
- package/dist/stories/components/notification.d.ts +1 -2
- package/dist/stories/components/radioButton.d.ts +2 -2
- package/dist/stories/components/select.d.ts +1 -2
- package/dist/stories/components/sidebar.d.ts +1 -2
- package/dist/stories/components/spinner.d.ts +1 -1
- package/dist/stories/components/table.d.ts +1 -2
- package/package.json +1 -1
- package/dist/index.esm.js +0 -8150
- package/dist/index.esm.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type AccordionProps = {
|
|
2
|
+
export type AccordionProps = {
|
|
3
3
|
tabsChindren: ReactNode[];
|
|
4
4
|
headers: string[];
|
|
5
5
|
multiple?: boolean;
|
|
@@ -7,4 +7,3 @@ type AccordionProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare function Accordion({ tabsChindren, headers, multiple, activeIndex, className, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { InputTextProps } from 'primereact/inputtext';
|
|
2
|
-
type AutoCompleteProps = {
|
|
2
|
+
export type AutoCompleteProps = {
|
|
3
3
|
items: string[];
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
error?: string;
|
|
6
6
|
} & Omit<InputTextProps, 'onChange'>;
|
|
7
7
|
export declare function AutoComplete({ items, onChange, error, ...props }: AutoCompleteProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CalendarProps } from 'primereact/calendar';
|
|
2
|
-
type DateInputProps = {
|
|
2
|
+
export type DateInputProps = {
|
|
3
3
|
error?: boolean;
|
|
4
4
|
} & CalendarProps;
|
|
5
5
|
export declare function DateInput({ error, ...props }: DateInputProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type DialogProps = {
|
|
1
|
+
export type DialogProps = {
|
|
2
2
|
title: string | undefined;
|
|
3
3
|
description: string | undefined;
|
|
4
4
|
labelConfirmButton: string | undefined;
|
|
@@ -6,4 +6,3 @@ type DialogProps = {
|
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
};
|
|
8
8
|
export declare function Dialog({ title, description, labelConfirmButton, onClose, onClick, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { InternalMenuItems } from '../../types/internalMenu';
|
|
2
|
-
type MenubarProps = {
|
|
2
|
+
export type MenubarProps = {
|
|
3
3
|
sidebarItems: InternalMenuItems[];
|
|
4
4
|
userConfigItems: InternalMenuItems[];
|
|
5
5
|
username: string;
|
|
6
6
|
setOpenNotifications: (value: boolean) => void;
|
|
7
7
|
};
|
|
8
8
|
export declare function Header({ sidebarItems, username, userConfigItems, setOpenNotifications, }: MenubarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type InfoCardProps = {
|
|
2
|
+
export type InfoCardProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
icon?: ReactNode;
|
|
@@ -7,4 +7,3 @@ type InfoCardProps = {
|
|
|
7
7
|
titleClassName?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare function InfoCard({ title, children, icon, className, titleClassName, }: InfoCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InternalMenuItems } from '../../types/internalMenu';
|
|
2
|
-
type InternalMenuProp = {
|
|
2
|
+
export type InternalMenuProp = {
|
|
3
3
|
item: InternalMenuItems[];
|
|
4
4
|
};
|
|
5
5
|
export declare function InternalMenu({ item }: InternalMenuProp): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from '../../types';
|
|
2
2
|
import { NotificationType } from '../../types/notification';
|
|
3
|
-
type NotificationProps = {
|
|
3
|
+
export type NotificationProps = {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onReadAll: () => void;
|
|
6
6
|
onDeleteNotificationbyId: (id: string) => void;
|
|
@@ -13,4 +13,3 @@ type NotificationProps = {
|
|
|
13
13
|
filterOptions: Option[];
|
|
14
14
|
};
|
|
15
15
|
export declare function Notification({ onClose, onReadAll, onDeleteNotificationbyId, onClickNotification, notifications, setFilter, filter, setInputValue, inputValue, filterOptions, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -2,7 +2,7 @@ declare const variants: {
|
|
|
2
2
|
white: string;
|
|
3
3
|
secondary: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
export type RadioButtonProps = {
|
|
6
6
|
variant?: keyof typeof variants;
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
@@ -10,6 +10,6 @@ interface RadioButtonProps {
|
|
|
10
10
|
onChange: () => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
error?: boolean;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
export declare function RadioButton({ label, value, checked, onChange, disabled, error, variant, }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from '../../types';
|
|
2
|
-
type SelectProps = {
|
|
2
|
+
export type SelectProps = {
|
|
3
3
|
options: Option[];
|
|
4
4
|
value: Option | null;
|
|
5
5
|
onChange: (option: Option) => void;
|
|
@@ -8,4 +8,3 @@ type SelectProps = {
|
|
|
8
8
|
error?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare function Select({ options, value, onChange, placeholder, disabled, error, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InternalMenuItems } from '../../types/internalMenu';
|
|
2
|
-
type sidebarProps = {
|
|
2
|
+
export type sidebarProps = {
|
|
3
3
|
item?: InternalMenuItems[];
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
};
|
|
6
6
|
export declare function Sidebar({ item, onClose }: sidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnStyle, TableData } from '../../types/table';
|
|
2
|
-
type tableProps = {
|
|
2
|
+
export type tableProps = {
|
|
3
3
|
columns: string[];
|
|
4
4
|
columnStyles?: ColumnStyle[];
|
|
5
5
|
data: TableData[];
|
|
@@ -8,4 +8,3 @@ type tableProps = {
|
|
|
8
8
|
onExport: (index: number) => void;
|
|
9
9
|
};
|
|
10
10
|
export declare function Table({ columns, data, onDelete, onEdit, onExport, columnStyles, }: tableProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|