@mahatisystems/mahati-ui-components 5.2.1 → 5.3.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/dist/index.d.mts CHANGED
@@ -3,15 +3,30 @@ import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { ChartData } from 'chart.js';
5
5
 
6
- interface AccordionProps {
6
+ interface AccordionItem {
7
7
  title: string;
8
+ content: React__default.ReactNode;
9
+ disabled?: boolean;
10
+ }
11
+ interface AccordionProps {
12
+ title?: string;
8
13
  children?: React__default.ReactNode;
14
+ items?: AccordionItem[];
15
+ defaultOpenIndex?: number | null;
9
16
  defaultOpen?: boolean;
17
+ className?: string;
18
+ headerClassName?: string;
19
+ contentClassName?: string;
20
+ icon?: React__default.ReactNode;
21
+ iconPosition?: "left" | "right";
22
+ onToggle?: (index: number | null) => void;
10
23
  accordionTestId?: string;
24
+ activeClassName?: string;
25
+ multipleOpen?: boolean;
11
26
  headerTestId?: string;
12
27
  contentTestId?: string;
13
28
  }
14
- declare function Accordion({ title, children, defaultOpen, accordionTestId, headerTestId, contentTestId, }: AccordionProps): react_jsx_runtime.JSX.Element;
29
+ declare function Accordion({ title, children, items, defaultOpenIndex, defaultOpen, className, headerClassName, contentClassName, icon, iconPosition, multipleOpen, onToggle, accordionTestId, headerTestId, contentTestId, }: AccordionProps): react_jsx_runtime.JSX.Element;
15
30
  declare namespace Accordion {
16
31
  var displayName: string;
17
32
  }
@@ -101,7 +116,7 @@ interface CalendarProps {
101
116
  onRangeChange?: (range: CalendarDateRange) => void;
102
117
  enableTimeSelection?: boolean;
103
118
  timeValue?: CalendarTime | null;
104
- onTimeChange?: (time: CalendarTime) => void;
119
+ onTimeChange?: (time: CalendarTime | null) => void;
105
120
  showTimeFormatToggle?: boolean;
106
121
  timeFormat?: "12h" | "24h";
107
122
  onTimeFormatChange?: (format: "12h" | "24h") => void;
@@ -594,6 +609,12 @@ interface ActionButton {
594
609
  borderRadius?: string;
595
610
  }
596
611
  interface ToastMessageProps extends React__default.HTMLAttributes<HTMLDivElement> {
612
+ iconPaths?: {
613
+ success?: string;
614
+ error?: string;
615
+ warning?: string;
616
+ notifications?: string;
617
+ };
597
618
  type?: ToastType;
598
619
  title?: string;
599
620
  message?: string;
package/dist/index.d.ts CHANGED
@@ -3,15 +3,30 @@ import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { ChartData } from 'chart.js';
5
5
 
6
- interface AccordionProps {
6
+ interface AccordionItem {
7
7
  title: string;
8
+ content: React__default.ReactNode;
9
+ disabled?: boolean;
10
+ }
11
+ interface AccordionProps {
12
+ title?: string;
8
13
  children?: React__default.ReactNode;
14
+ items?: AccordionItem[];
15
+ defaultOpenIndex?: number | null;
9
16
  defaultOpen?: boolean;
17
+ className?: string;
18
+ headerClassName?: string;
19
+ contentClassName?: string;
20
+ icon?: React__default.ReactNode;
21
+ iconPosition?: "left" | "right";
22
+ onToggle?: (index: number | null) => void;
10
23
  accordionTestId?: string;
24
+ activeClassName?: string;
25
+ multipleOpen?: boolean;
11
26
  headerTestId?: string;
12
27
  contentTestId?: string;
13
28
  }
14
- declare function Accordion({ title, children, defaultOpen, accordionTestId, headerTestId, contentTestId, }: AccordionProps): react_jsx_runtime.JSX.Element;
29
+ declare function Accordion({ title, children, items, defaultOpenIndex, defaultOpen, className, headerClassName, contentClassName, icon, iconPosition, multipleOpen, onToggle, accordionTestId, headerTestId, contentTestId, }: AccordionProps): react_jsx_runtime.JSX.Element;
15
30
  declare namespace Accordion {
16
31
  var displayName: string;
17
32
  }
@@ -101,7 +116,7 @@ interface CalendarProps {
101
116
  onRangeChange?: (range: CalendarDateRange) => void;
102
117
  enableTimeSelection?: boolean;
103
118
  timeValue?: CalendarTime | null;
104
- onTimeChange?: (time: CalendarTime) => void;
119
+ onTimeChange?: (time: CalendarTime | null) => void;
105
120
  showTimeFormatToggle?: boolean;
106
121
  timeFormat?: "12h" | "24h";
107
122
  onTimeFormatChange?: (format: "12h" | "24h") => void;
@@ -594,6 +609,12 @@ interface ActionButton {
594
609
  borderRadius?: string;
595
610
  }
596
611
  interface ToastMessageProps extends React__default.HTMLAttributes<HTMLDivElement> {
612
+ iconPaths?: {
613
+ success?: string;
614
+ error?: string;
615
+ warning?: string;
616
+ notifications?: string;
617
+ };
597
618
  type?: ToastType;
598
619
  title?: string;
599
620
  message?: string;