@prosperitainova/mirage-ui 1.0.29 → 1.0.31

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.
Files changed (32) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/LateralModal/TesterLateralModal.d.ts +0 -1
  4. package/dist/cjs/types/lib/RadioGroup/Radio.d.ts +3 -2
  5. package/dist/cjs/types/lib/RadioGroup/RadioGroup.d.ts +5 -1
  6. package/dist/cjs/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -2
  7. package/dist/cjs/types/lib/ReturnButton/ReturnButton.d.ts +6 -0
  8. package/dist/cjs/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -0
  9. package/dist/cjs/types/lib/ReturnButton/index.d.ts +1 -0
  10. package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -0
  11. package/dist/cjs/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -0
  12. package/dist/cjs/types/lib/SummaryPanel/index.d.ts +1 -0
  13. package/dist/cjs/types/lib/Table/Table.d.ts +2 -1
  14. package/dist/cjs/types/lib/Table/Table.stories.d.ts +0 -1
  15. package/dist/cjs/types/lib/index.d.ts +2 -0
  16. package/dist/esm/index.js +2 -2
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/types/lib/LateralModal/TesterLateralModal.d.ts +0 -1
  19. package/dist/esm/types/lib/RadioGroup/Radio.d.ts +3 -2
  20. package/dist/esm/types/lib/RadioGroup/RadioGroup.d.ts +5 -1
  21. package/dist/esm/types/lib/RadioGroup/RadioGroup.stories.d.ts +1 -2
  22. package/dist/esm/types/lib/ReturnButton/ReturnButton.d.ts +6 -0
  23. package/dist/esm/types/lib/ReturnButton/ReturnButton.stories.d.ts +8 -0
  24. package/dist/esm/types/lib/ReturnButton/index.d.ts +1 -0
  25. package/dist/esm/types/lib/SummaryPanel/SummaryPanel.d.ts +16 -0
  26. package/dist/esm/types/lib/SummaryPanel/SummaryPanel.stories.d.ts +8 -0
  27. package/dist/esm/types/lib/SummaryPanel/index.d.ts +1 -0
  28. package/dist/esm/types/lib/Table/Table.d.ts +2 -1
  29. package/dist/esm/types/lib/Table/Table.stories.d.ts +0 -1
  30. package/dist/esm/types/lib/index.d.ts +2 -0
  31. package/dist/index.d.ts +30 -4
  32. package/package.json +1 -1
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TesterLateralModal: () => JSX.Element;
3
2
  export default TesterLateralModal;
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
2
1
  export type RadioProps = {
3
- label: string;
2
+ label?: string;
3
+ title?: string;
4
4
  disabled?: boolean;
5
5
  checked?: boolean;
6
6
  position?: "top" | "bottom" | "left" | "right";
7
7
  value: string;
8
+ description?: string;
8
9
  onClick?: (value: string) => void;
9
10
  };
10
11
  declare const Radio: ({ onClick, ...props }: RadioProps) => JSX.Element;
@@ -7,6 +7,10 @@ export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
7
7
  options: RadioProps[];
8
8
  value: string;
9
9
  onChange?: (value: string) => void;
10
+ wrap?: boolean;
11
+ title?: string;
12
+ description?: string;
13
+ active?: boolean;
10
14
  };
11
- declare const RadioGroup: ({ options, value, onChange, ...props }: RadioGroupProps) => JSX.Element;
15
+ declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
12
16
  export default RadioGroup;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { Story } from "@storybook/react";
3
2
  import { RadioGroupProps } from "./RadioGroup";
4
3
  declare const RadioGroupStories: {
5
4
  title: string;
6
- component: ({ options, value, onChange, ...props }: RadioGroupProps) => JSX.Element;
5
+ component: (props: RadioGroupProps) => JSX.Element;
7
6
  };
8
7
  export default RadioGroupStories;
9
8
  export declare const Group: Story<RadioGroupProps>;
@@ -0,0 +1,6 @@
1
+ import { ButtonHTMLAttributes } from "react";
2
+ export type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ label: string;
4
+ };
5
+ declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
6
+ export default ReturnButton;
@@ -0,0 +1,8 @@
1
+ import { ReturnButtonProps } from "./ReturnButton";
2
+ import { Story } from "@storybook/react";
3
+ declare const ButtonStories: {
4
+ title: string;
5
+ component: (props: ReturnButtonProps) => JSX.Element;
6
+ };
7
+ export default ButtonStories;
8
+ export declare const Main: Story<ReturnButtonProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./ReturnButton";
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import "bootstrap/dist/css/bootstrap.min.css";
3
+ type panelProps = {
4
+ label?: string;
5
+ balance?: string;
6
+ currency?: string;
7
+ value?: string;
8
+ toggleBalance?: boolean;
9
+ render?: () => JSX.Element;
10
+ secondaryRender?: () => JSX.Element;
11
+ };
12
+ export type SummaryPanelProps = {
13
+ panel: panelProps[];
14
+ };
15
+ declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
16
+ export default SummaryPanel;
@@ -0,0 +1,8 @@
1
+ import { Story } from "@storybook/react";
2
+ import { SummaryPanelProps } from "./SummaryPanel";
3
+ declare const TabMenuStories: {
4
+ title: string;
5
+ component: (props: SummaryPanelProps) => JSX.Element;
6
+ };
7
+ export default TabMenuStories;
8
+ export declare const primary: Story<SummaryPanelProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./SummaryPanel";
@@ -3,7 +3,8 @@ import "../../../src/theme/fonts/ProximaNova.css";
3
3
  export type TableColumn<T = any> = {
4
4
  label: string;
5
5
  key: string;
6
- render?: (data: T, index: number) => JSX.Element;
6
+ renderColumn?: (data: T, index: number) => JSX.Element;
7
+ renderData?: (data: T, index: number) => JSX.Element;
7
8
  };
8
9
  export type TableProps = {
9
10
  columns: TableColumn<any>[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from "./Table";
3
2
  import { Story } from "@storybook/react";
4
3
  declare const TableStories: {
@@ -1,5 +1,6 @@
1
1
  export { default as Breadcrumb } from "./Breadcrumb";
2
2
  export { default as Button } from "./Button";
3
+ export { default as ReturnButton } from "./ReturnButton";
3
4
  export { default as ButtonDropdown } from "./ButtonDropdown";
4
5
  export { default as Checkbox } from "./Checkbox";
5
6
  export { default as Dropzone } from "./Dropzone";
@@ -21,3 +22,4 @@ export { default as ProgressBar } from "./ProgressBar";
21
22
  export { default as InputToken } from "./InputToken";
22
23
  export { default as Table } from "./Table";
23
24
  export { default as InputCurrency } from "./InputCurrency";
25
+ export { default as SummaryPanel } from "./SummaryPanel";