@prosperitainova/mirage-ui 1.0.15 → 1.0.17

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.
@@ -0,0 +1,11 @@
1
+ import { Props as ReactSelectProps } from "react-select";
2
+ import "../../../src/theme/fonts/ProximaNova.css";
3
+ export type SelectProps = Omit<ReactSelectProps, "onChange"> & {
4
+ onChange?: (e: any) => void;
5
+ error?: string;
6
+ success?: boolean;
7
+ helper?: string;
8
+ label?: string;
9
+ };
10
+ declare const CustomSelect: (props: SelectProps) => JSX.Element;
11
+ export default CustomSelect;
@@ -0,0 +1,5 @@
1
+ import { SelectProps } from "./CustomSelect";
2
+ import { Story, Meta } from "@storybook/react";
3
+ declare const SelectStories: Meta<SelectProps>;
4
+ export default SelectStories;
5
+ export declare const Primary: Story<SelectProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./CustomSelect";
@@ -0,0 +1,3 @@
1
+ import { StylesConfig } from "react-select";
2
+ declare const ReactSelectStyles: StylesConfig;
3
+ export default ReactSelectStyles;
@@ -11,7 +11,7 @@ export { default as NotificationsBar } from "./NotificationsBar";
11
11
  export { default as Radio } from "./Radio";
12
12
  export { default as RadioGroup } from "./RadioGroup";
13
13
  export { default as Search } from "./Search";
14
- export { default as Sellect } from "./Sellect";
14
+ export { default as CustomSelect } from "./CustomSelect";
15
15
  export { default as SideBar } from "./SideBar";
16
16
  export { default as Spacer } from "./Spacer";
17
17
  export { default as TabMenu } from "./TabMenu";
package/dist/index.d.ts CHANGED
@@ -154,13 +154,14 @@ type SearchProps = InputHTMLAttributes<HTMLInputElement> & {
154
154
  };
155
155
  declare const Search: (props: SearchProps) => JSX.Element;
156
156
 
157
- type SelectProps = Props & {
157
+ type SelectProps = Omit<Props, "onChange"> & {
158
+ onChange?: (e: any) => void;
158
159
  error?: string;
159
160
  success?: boolean;
160
161
  helper?: string;
161
162
  label?: string;
162
163
  };
163
- declare const AppSelect: (props: SelectProps) => JSX.Element;
164
+ declare const CustomSelect: (props: SelectProps) => JSX.Element;
164
165
 
165
166
  type MenuItem = {
166
167
  icon: string;
@@ -212,4 +213,4 @@ type ToggleProps = {
212
213
  };
213
214
  declare const Toggle: (props: ToggleProps) => JSX.Element;
214
215
 
215
- 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, Toast, Toggle };
216
+ export { Breadcrumb, Button, ButtonDropdown, Checkbox, CustomSelect, Dropzone, Input, InteractiveModal, lateralModal as LateralModal, MenuDropdown as Menudropdown, NotificationBar as NotificationsBar, Radio, RadioGroup, Search, SideBar, Spacer, TabMenu, Toast, Toggle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosperitainova/mirage-ui",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {