@mycause/ui 0.18.1 → 0.18.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.18.1",
3
+ "version": "0.18.4",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- interface InputDefaltProps {
3
- label?: string;
4
- required?: boolean;
5
- placeholder?: string;
6
- onChange?: (value: string) => void;
7
- value?: string | Array<string> | number;
8
- error?: string | null | boolean;
9
- disable?: boolean;
10
- name?: string;
11
- }
12
- declare const Input: ({ label, required, placeholder, value, onChange, error, disable, name, }: InputDefaltProps) => JSX.Element;
13
- export default Input;
@@ -1 +0,0 @@
1
- export { default as Input } from "./InputDefault";
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const InputExample: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
13
- export declare const InputV2: {
14
- (): JSX.Element;
15
- story: {
16
- name: string;
17
- };
18
- };
19
- export declare const InputV3: {
20
- (): JSX.Element;
21
- story: {
22
- name: string;
23
- };
24
- };
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { CountryCode } from "libphonenumber-js";
3
- declare type PhoneInputProps = {
4
- values: {
5
- number: string;
6
- countryCallingCode: string;
7
- country: string;
8
- };
9
- onChange: (value: string, name: string) => void;
10
- label?: React.ReactNode;
11
- error?: string | null;
12
- required?: boolean;
13
- defaultCountry?: CountryCode;
14
- placeholder?: string;
15
- color?: string;
16
- name?: string;
17
- };
18
- declare function PhoneInput({ values, onChange, defaultCountry, label, required, placeholder, error, name, }: PhoneInputProps): JSX.Element;
19
- export default PhoneInput;