@prosperitainova/mirage-ui 1.0.42 → 1.0.45

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.
@@ -14,6 +14,7 @@ export type ButtonMoreDetailsProps = ButtonHTMLAttributes<HTMLButtonElement> & {
14
14
  icon?: string;
15
15
  value?: string;
16
16
  options?: DropdownOptions[];
17
+ open?: boolean;
17
18
  };
18
19
  declare const ButtonMoreDetails: (props: ButtonMoreDetailsProps & DropContainerProps) => JSX.Element;
19
20
  export default ButtonMoreDetails;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { ButtonMoreDetailsProps } from "./ButtonMoreDetails";
3
+ import { Story } from "@storybook/react";
4
+ declare const ButtonMoreDetailsStories: {
5
+ title: string;
6
+ component: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ onClick?: (() => void) | undefined;
8
+ icon?: string | undefined;
9
+ value?: string | undefined;
10
+ options?: import("./ButtonMoreDetails").DropdownOptions[] | undefined;
11
+ open?: boolean | undefined;
12
+ } & {
13
+ open?: boolean | undefined;
14
+ }) => JSX.Element;
15
+ };
16
+ export default ButtonMoreDetailsStories;
17
+ export declare const ButtonMoreDetailsStory: Story<ButtonMoreDetailsProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./ButtonMoreDetails";
@@ -1,10 +1,13 @@
1
+ import React, { InputHTMLAttributes } from "react";
1
2
  import "../../../src/theme/fonts/ProximaNova.css";
2
- export type CheckboxProps = {
3
+ export type CheckboxProps = InputHTMLAttributes<HTMLInputElement> & {
3
4
  label?: string;
4
5
  disabled?: boolean;
5
6
  checked?: boolean;
6
7
  position?: "top" | "bottom" | "left" | "right";
7
- onChange?: (value: boolean) => void;
8
+ name?: string;
9
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
8
11
  };
9
12
  declare const Checkbox: ({ onChange, ...props }: CheckboxProps) => JSX.Element;
10
13
  export default Checkbox;
@@ -26,3 +26,4 @@ export { default as SummaryPanel } from "./SummaryPanel";
26
26
  export { default as Pagination } from "./Pagination";
27
27
  export { default as BalanceAlert } from "./BalanceAlert";
28
28
  export { default as ParcelSelector } from "./ParcelSelector";
29
+ export { default as ButtonMoreDetails } from "./ButtonMoreDetails";