@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";
package/dist/index.d.ts CHANGED
@@ -29,6 +29,11 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
29
29
  };
30
30
  declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
31
31
 
32
+ type ReturnButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
33
+ label: string;
34
+ };
35
+ declare const ReturnButton: (props: ReturnButtonProps) => JSX.Element;
36
+
32
37
  type DropdownOptions = {
33
38
  value: string;
34
39
  label: string;
@@ -135,11 +140,13 @@ type RadioProps$1 = {
135
140
  declare const Radio: ({ onChange, ...props }: RadioProps$1) => JSX.Element;
136
141
 
137
142
  type RadioProps = {
138
- label: string;
143
+ label?: string;
144
+ title?: string;
139
145
  disabled?: boolean;
140
146
  checked?: boolean;
141
147
  position?: "top" | "bottom" | "left" | "right";
142
148
  value: string;
149
+ description?: string;
143
150
  onClick?: (value: string) => void;
144
151
  };
145
152
 
@@ -148,8 +155,12 @@ type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
148
155
  options: RadioProps[];
149
156
  value: string;
150
157
  onChange?: (value: string) => void;
158
+ wrap?: boolean;
159
+ title?: string;
160
+ description?: string;
161
+ active?: boolean;
151
162
  };
152
- declare const RadioGroup: ({ options, value, onChange, ...props }: RadioGroupProps) => JSX.Element;
163
+ declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
153
164
 
154
165
  type ResultsProps = {
155
166
  value: string;
@@ -233,7 +244,8 @@ declare function InputToken({ inputsNumber: numberOfInputs }: InputTokenProps):
233
244
  type TableColumn<T = any> = {
234
245
  label: string;
235
246
  key: string;
236
- render?: (data: T, index: number) => JSX.Element;
247
+ renderColumn?: (data: T, index: number) => JSX.Element;
248
+ renderData?: (data: T, index: number) => JSX.Element;
237
249
  };
238
250
  type TableProps = {
239
251
  columns: TableColumn<any>[];
@@ -254,4 +266,18 @@ type InputCurrencyProps = {
254
266
  };
255
267
  declare const InputCurrency: (props: InputCurrencyProps) => JSX.Element;
256
268
 
257
- export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, Search, SideBar, Spacer, TabMenu, Table, Toast, Toggle };
269
+ type panelProps = {
270
+ label?: string;
271
+ balance?: string;
272
+ currency?: string;
273
+ value?: string;
274
+ toggleBalance?: boolean;
275
+ render?: () => JSX.Element;
276
+ secondaryRender?: () => JSX.Element;
277
+ };
278
+ type SummaryPanelProps = {
279
+ panel: panelProps[];
280
+ };
281
+ declare const SummaryPanel: (props: SummaryPanelProps) => JSX.Element;
282
+
283
+ export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InputCurrency, InputToken, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, ProgressBar, Radio, RadioGroup, ReturnButton, Search, SideBar, Spacer, SummaryPanel, TabMenu, Table, Toast, Toggle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {