@prosperitainova/mirage-ui 1.0.4 → 1.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.
Files changed (42) hide show
  1. package/README.md +22 -36
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/src/lib/Button/Button.d.ts +5 -3
  5. package/dist/cjs/types/src/lib/Button/Button.stories.d.ts +1 -1
  6. package/dist/cjs/types/src/lib/InteractiveModal/InteractiveModal.d.ts +1 -1
  7. package/dist/cjs/types/src/lib/LateralModal/LateralModal.d.ts +1 -1
  8. package/dist/cjs/types/src/lib/Radio/Radio.d.ts +4 -4
  9. package/dist/cjs/types/src/lib/Radio/Radio.stories.d.ts +9 -0
  10. package/dist/cjs/types/src/lib/Radio/index.d.ts +1 -0
  11. package/dist/cjs/types/src/lib/RadioGroup/Radio.d.ts +11 -0
  12. package/dist/cjs/types/src/lib/RadioGroup/RadioGroup.d.ts +1 -1
  13. package/dist/cjs/types/src/lib/index.d.ts +1 -0
  14. package/dist/esm/index.js +2 -2
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/src/lib/Button/Button.d.ts +5 -3
  17. package/dist/esm/types/src/lib/Button/Button.stories.d.ts +1 -1
  18. package/dist/esm/types/src/lib/InteractiveModal/InteractiveModal.d.ts +1 -1
  19. package/dist/esm/types/src/lib/LateralModal/LateralModal.d.ts +1 -1
  20. package/dist/esm/types/src/lib/Radio/Radio.d.ts +4 -4
  21. package/dist/esm/types/src/lib/Radio/Radio.stories.d.ts +9 -0
  22. package/dist/esm/types/src/lib/Radio/index.d.ts +1 -0
  23. package/dist/esm/types/src/lib/RadioGroup/Radio.d.ts +11 -0
  24. package/dist/esm/types/src/lib/RadioGroup/RadioGroup.d.ts +1 -1
  25. package/dist/esm/types/src/lib/index.d.ts +1 -0
  26. package/dist/index.d.ts +14 -4
  27. package/package.json +5 -1
  28. package/README.old.md +0 -29
  29. package/dist/cjs/assets/asset-01ba4719 +0 -1
  30. package/dist/cjs/assets/asset-1f5f3d97 +0 -5
  31. package/dist/cjs/assets/asset-90a77f27 +0 -83
  32. package/dist/cjs/assets/asset-d29508fd +0 -2
  33. package/dist/cjs/assets/asset-e29ddd46 +0 -1
  34. package/dist/cjs/types/src/App.d.ts +0 -4
  35. package/dist/cjs/types/src/reportWebVitals.d.ts +0 -3
  36. package/dist/esm/assets/asset-01ba4719 +0 -1
  37. package/dist/esm/assets/asset-1f5f3d97 +0 -5
  38. package/dist/esm/assets/asset-90a77f27 +0 -83
  39. package/dist/esm/assets/asset-d29508fd +0 -2
  40. package/dist/esm/assets/asset-e29ddd46 +0 -1
  41. package/dist/esm/types/src/App.d.ts +0 -4
  42. package/dist/esm/types/src/reportWebVitals.d.ts +0 -3
@@ -1,6 +1,6 @@
1
- import { ButtonHTMLAttributes } from "react";
1
+ import React, { ButtonHTMLAttributes } from "react";
2
2
  import "../../../src/theme/fonts/ProximaNova.css";
3
- export declare const AppButton: import("styled-components").StyledComponent<"button", any, ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ export declare const AppButton: import("styled-components").StyledComponent<"button", any, React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
4
  mode: "main" | "border" | "phantom";
5
5
  link?: boolean | undefined;
6
6
  icon?: string | undefined;
@@ -12,6 +12,7 @@ export declare const AppButton: import("styled-components").StyledComponent<"but
12
12
  label?: string | undefined;
13
13
  value?: string | undefined;
14
14
  type?: string | undefined;
15
+ full?: boolean | undefined;
15
16
  children?: JSX.Element | undefined;
16
17
  }, never>;
17
18
  export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -26,7 +27,8 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
26
27
  label?: string;
27
28
  value?: string;
28
29
  type?: string;
30
+ full?: boolean;
29
31
  children?: JSX.Element;
30
32
  };
31
- declare const Button: (props: ButtonProps) => JSX.Element;
33
+ declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
32
34
  export default Button;
@@ -3,7 +3,7 @@ import { ButtonProps } from "./Button";
3
3
  import { Story } from "@storybook/react";
4
4
  declare const ButtonStories: {
5
5
  title: string;
6
- component: (props: ButtonProps) => JSX.Element;
6
+ component: ({ onClick, ...props }: ButtonProps) => JSX.Element;
7
7
  };
8
8
  export default ButtonStories;
9
9
  export declare const Main: Story<ButtonProps>;
@@ -3,7 +3,7 @@ import "../../../src/theme/fonts/ProximaNova.css";
3
3
  export type ModalProps = HTMLAttributes<HTMLDivElement> & {
4
4
  open?: boolean;
5
5
  header?: boolean;
6
- title: string;
6
+ title?: string;
7
7
  children?: JSX.Element;
8
8
  size: "md" | "lg";
9
9
  };
@@ -3,7 +3,7 @@ import "../../../src/theme/fonts/ProximaNova.css";
3
3
  export type ModalProps = HTMLAttributes<HTMLDivElement> & {
4
4
  open?: boolean;
5
5
  header?: boolean;
6
- title: string;
6
+ title?: string;
7
7
  children?: JSX.Element;
8
8
  };
9
9
  declare const lateralModal: (props: ModalProps) => JSX.Element;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import "../../../src/theme/fonts/ProximaNova.css";
2
3
  export type RadioProps = {
3
- label: string;
4
+ label?: string;
4
5
  disabled?: boolean;
5
6
  checked?: boolean;
6
7
  position?: "top" | "bottom" | "left" | "right";
7
- value: string;
8
- onClick?: (value: string) => void;
8
+ onChange?: (value: boolean) => void;
9
9
  };
10
- declare const Radio: ({ onClick, ...props }: RadioProps) => JSX.Element;
10
+ declare const Radio: ({ onChange, ...props }: RadioProps) => JSX.Element;
11
11
  export default Radio;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { RadioProps } from "./Radio";
3
+ import { Story } from "@storybook/react";
4
+ declare const RadioStories: {
5
+ title: string;
6
+ component: ({ onChange, ...props }: RadioProps) => JSX.Element;
7
+ };
8
+ export default RadioStories;
9
+ export declare const RadioStory: Story<RadioProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./Radio";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export type RadioProps = {
3
+ label: string;
4
+ disabled?: boolean;
5
+ checked?: boolean;
6
+ position?: "top" | "bottom" | "left" | "right";
7
+ value: string;
8
+ onClick?: (value: string) => void;
9
+ };
10
+ declare const Radio: ({ onClick, ...props }: RadioProps) => JSX.Element;
11
+ export default Radio;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from "react";
2
- import { RadioProps } from "../Radio/Radio";
2
+ import { RadioProps } from "../RadioGroup/Radio";
3
3
  import "../../../src/theme/fonts/ProximaNova.css";
4
4
  export type RadioGroupProps = HTMLAttributes<HTMLDivElement> & {
5
5
  display: "row" | "column";
@@ -8,6 +8,7 @@ export { default as InteractiveModal } from "./InteractiveModal";
8
8
  export { default as LateralModal } from "./LateralModal";
9
9
  export { default as Menudropdown } from "./MenuDropdown";
10
10
  export { default as NotificationsBar } from "./NotificationsBar";
11
+ export { default as Radio } from "./Radio";
11
12
  export { default as RadioGroup } from "./RadioGroup";
12
13
  export { default as Search } from "./Search";
13
14
  export { default as Sellect } from "./Sellect";
package/dist/index.d.ts CHANGED
@@ -24,9 +24,10 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
24
24
  label?: string;
25
25
  value?: string;
26
26
  type?: string;
27
+ full?: boolean;
27
28
  children?: JSX.Element;
28
29
  };
29
- declare const Button: (props: ButtonProps) => JSX.Element;
30
+ declare const Button: ({ onClick, ...props }: ButtonProps) => JSX.Element;
30
31
 
31
32
  type DropdownOptions = {
32
33
  value: string;
@@ -73,7 +74,7 @@ declare const Input: (props: InputProps) => JSX.Element;
73
74
  type ModalProps$1 = HTMLAttributes<HTMLDivElement> & {
74
75
  open?: boolean;
75
76
  header?: boolean;
76
- title: string;
77
+ title?: string;
77
78
  children?: JSX.Element;
78
79
  size: "md" | "lg";
79
80
  };
@@ -82,7 +83,7 @@ declare const InteractiveModal: (props: ModalProps$1) => JSX.Element;
82
83
  type ModalProps = HTMLAttributes<HTMLDivElement> & {
83
84
  open?: boolean;
84
85
  header?: boolean;
85
- title: string;
86
+ title?: string;
86
87
  children?: JSX.Element;
87
88
  };
88
89
  declare const lateralModal: (props: ModalProps) => JSX.Element;
@@ -112,6 +113,15 @@ type NotificationsBarProps = {
112
113
  };
113
114
  declare const NotificationBar: (props: NotificationsBarProps) => JSX.Element;
114
115
 
116
+ type RadioProps$1 = {
117
+ label?: string;
118
+ disabled?: boolean;
119
+ checked?: boolean;
120
+ position?: "top" | "bottom" | "left" | "right";
121
+ onChange?: (value: boolean) => void;
122
+ };
123
+ declare const Radio: ({ onChange, ...props }: RadioProps$1) => JSX.Element;
124
+
115
125
  type RadioProps = {
116
126
  label: string;
117
127
  disabled?: boolean;
@@ -197,4 +207,4 @@ type ToggleProps = {
197
207
  };
198
208
  declare const Toggle: (props: ToggleProps) => JSX.Element;
199
209
 
200
- export { Breadcrumb, Button, ButtonDropdown, Checkbox, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, RadioGroup, Search, AppSelect as Sellect, SideBar, Spacer, TabMenu as Table, Toast, Toggle };
210
+ export { Breadcrumb, Button, ButtonDropdown, Checkbox, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Radio, RadioGroup, Search, AppSelect as Sellect, SideBar, Spacer, TabMenu as Table, Toast, Toggle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -59,6 +59,7 @@
59
59
  "@rollup/plugin-commonjs": "^24.0.0",
60
60
  "@rollup/plugin-node-resolve": "^15.0.1",
61
61
  "@rollup/plugin-typescript": "^11.0.0",
62
+ "@rollup/plugin-url": "^8.0.1",
62
63
  "@storybook/addon-actions": "^6.5.14",
63
64
  "@storybook/addon-essentials": "^6.5.14",
64
65
  "@storybook/addon-interactions": "^6.5.14",
@@ -76,6 +77,9 @@
76
77
  "postcss": "^8.4.21",
77
78
  "postcss-assets": "^6.0.0",
78
79
  "prop-types": "^15.8.1",
80
+ "react": "^18.2.0",
81
+ "react-dom": "^18.2.0",
82
+ "react-scripts": "^5.0.1",
79
83
  "rollup": "^3.10.0",
80
84
  "rollup-plugin-dts": "^5.1.1",
81
85
  "rollup-plugin-peer-deps-external": "^2.2.4",
package/README.old.md DELETED
@@ -1,29 +0,0 @@
1
- # README #
2
-
3
- This README would normally document whatever steps are necessary to get your application up and running.
4
-
5
- ### What is this repository for? ###
6
-
7
- * Quick summary
8
- * Version
9
- * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
-
11
- ### How do I get set up? ###
12
-
13
- * Summary of set up
14
- * Configuration
15
- * Dependencies
16
- * Database configuration
17
- * How to run tests
18
- * Deployment instructions
19
-
20
- ### Contribution guidelines ###
21
-
22
- * Writing tests
23
- * Code review
24
- * Other guidelines
25
-
26
- ### Who do I talk to? ###
27
-
28
- * Repo owner or admin
29
- * Other community or team contact
@@ -1 +0,0 @@
1
-