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.
@@ -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 { BreadcrumpItems } from '../../types';
2
- type BreadcrumbProps = {
2
+ export type BreadcrumbProps = {
3
3
  items: BreadcrumpItems[];
4
4
  };
5
5
  export declare function Breadcrumb({ items }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -8,7 +8,7 @@ declare const variants: {
8
8
  grayOutline: string;
9
9
  tab: string;
10
10
  };
11
- type ButtonProps = {
11
+ export type ButtonProps = {
12
12
  variant: keyof typeof variants;
13
13
  selected?: boolean;
14
14
  rightIcon?: string;
@@ -1,6 +1,5 @@
1
- type CardProp = {
1
+ export type CardProp = {
2
2
  children: React.ReactNode;
3
3
  className?: string;
4
4
  };
5
5
  export declare function Card({ children, className }: CardProp): import("react/jsx-runtime").JSX.Element;
6
- 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 {};
@@ -6,7 +6,7 @@ declare const variants: {
6
6
  button: string;
7
7
  };
8
8
  };
9
- type FilterButtonProps = {
9
+ export type FilterButtonProps = {
10
10
  filterOptions: Option[];
11
11
  setOption: (option: Option | null) => void;
12
12
  option: Option | null;
@@ -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 {};
@@ -3,7 +3,7 @@ declare const variants: {
3
3
  border: string;
4
4
  shadow: string;
5
5
  };
6
- type ButtonProps = {
6
+ export type ButtonProps = {
7
7
  variant: keyof typeof variants;
8
8
  icon: string;
9
9
  } & PrimeButtonProps;
@@ -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,7 +1,6 @@
1
- interface LinkProps {
1
+ export type LinkProps = {
2
2
  href: string;
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
- }
5
+ };
6
6
  export declare function Link({ href, children, className }: LinkProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,6 +1,5 @@
1
1
  import { MegaMenuItems } from '../../types';
2
- type MegaMenuProps = {
2
+ export type MegaMenuProps = {
3
3
  items: MegaMenuItems[];
4
4
  };
5
5
  export declare function MegaMenu({ items }: MegaMenuProps): 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
- interface RadioButtonProps {
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,4 +1,4 @@
1
- type SpinnerProps = {
1
+ export type SpinnerProps = {
2
2
  size?: keyof typeof sizeVariants;
3
3
  color?: keyof typeof colorVariants;
4
4
  };
@@ -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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karsten-design-system",
3
3
  "description": "Kasrten Design System Components",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",