moldekit-react 0.0.6 → 0.0.7

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,3 +1,3 @@
1
1
  import { MkAlertProps } from './MkAlert.props.ts';
2
- declare function MkAlert({ className }: MkAlertProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkAlert({ label, state, position, className, }: MkAlertProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkAlert;
@@ -1,3 +1,6 @@
1
1
  export interface MkAlertProps {
2
+ label: string;
3
+ state?: "success" | "warning" | "danger" | "info";
4
+ position?: "top-right" | "top-center" | "bottom-center";
2
5
  className?: string;
3
6
  }
@@ -1,3 +1,3 @@
1
1
  import { MkBarChartProps } from './MkBarChart.props.ts';
2
- declare function MkBarChart({ className }: MkBarChartProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkBarChart({ data, className }: MkBarChartProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkBarChart;
@@ -1,3 +1,8 @@
1
1
  export interface MkBarChartProps {
2
+ data: {
3
+ label: string;
4
+ value: number;
5
+ type: "faded" | "regular" | "no-data";
6
+ }[];
2
7
  className?: string;
3
8
  }
@@ -1,3 +1,3 @@
1
1
  import { MkBarHistoryChartProps } from './MkBarHistoryChart.props.ts';
2
- declare function MkBarHistoryChart({ className }: MkBarHistoryChartProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkBarHistoryChart({ data, className }: MkBarHistoryChartProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkBarHistoryChart;
@@ -1,3 +1,8 @@
1
1
  export interface MkBarHistoryChartProps {
2
+ data: {
3
+ label: string;
4
+ value: number;
5
+ type: "faded" | "regular" | "no-data";
6
+ }[];
2
7
  className?: string;
3
8
  }
@@ -1,3 +1,3 @@
1
1
  import { MkCheckboxProps } from './MkCheckbox.props.ts';
2
- declare function MkCheckbox({ className }: MkCheckboxProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkCheckbox({ label, size, className, checked, disabled, id, onChange, ...props }: MkCheckboxProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkCheckbox;
@@ -1,3 +1,5 @@
1
- export interface MkCheckboxProps {
1
+ export interface MkCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
2
+ label?: string;
3
+ size?: "sm" | "md" | "lg";
2
4
  className?: string;
3
5
  }
@@ -1,3 +1,3 @@
1
1
  import { MkDonutChartProps } from './MkDonutChart.props.ts';
2
- declare function MkDonutChart({ className }: MkDonutChartProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkDonutChart({ data, className, sizePx, thicknessPx, centerLabel, centerValue, }: MkDonutChartProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkDonutChart;
@@ -1,3 +1,11 @@
1
1
  export interface MkDonutChartProps {
2
+ data: {
3
+ label: string;
4
+ value: number;
5
+ }[];
2
6
  className?: string;
7
+ sizePx?: number;
8
+ thicknessPx?: number;
9
+ centerLabel?: string;
10
+ centerValue?: string;
3
11
  }
@@ -1,3 +1,3 @@
1
1
  import { MkRadioButtonProps } from './MkRadioButton.props.ts';
2
- declare function MkRadioButton({ className }: MkRadioButtonProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkRadioButton({ label, value, name, size, className, checked, disabled, id, onChange, ...props }: MkRadioButtonProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkRadioButton;
@@ -1,3 +1,7 @@
1
- export interface MkRadioButtonProps {
1
+ export interface MkRadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
2
+ label?: string;
3
+ name: string;
4
+ value?: string;
5
+ size?: "sm" | "md" | "lg";
2
6
  className?: string;
3
7
  }
@@ -1,3 +1,3 @@
1
1
  import { MkStackedBarChartProps } from './MkStackedBarChart.props.ts';
2
- declare function MkStackedBarChart({ className }: MkStackedBarChartProps): import("react/jsx-runtime").JSX.Element;
2
+ declare function MkStackedBarChart({ data, className }: MkStackedBarChartProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkStackedBarChart;
@@ -1,3 +1,8 @@
1
1
  export interface MkStackedBarChartProps {
2
+ data: {
3
+ label: string;
4
+ values: number[];
5
+ type: "faded" | "regular" | "no-data";
6
+ }[];
2
7
  className?: string;
3
8
  }
@@ -1,3 +1,3 @@
1
- import { MkTagProps } from './MkTag.stories.tsx';
2
- declare function MkTag({ className }: MkTagProps): import("react/jsx-runtime").JSX.Element;
1
+ import { MkTagProps } from './MkTag.props.ts';
2
+ declare function MkTag({ data, onRemove, className }: MkTagProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default MkTag;
@@ -1,3 +1,8 @@
1
1
  export interface MkTagProps {
2
+ data: {
3
+ id: string;
4
+ label: string;
5
+ }[];
2
6
  className?: string;
7
+ onRemove?: (id: string) => void;
3
8
  }