@clicktap/ui 0.6.0 → 0.7.1

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,17 @@
1
+ import { TextFieldProps, ValidationResult } from 'react-aria-components';
2
+ interface CreditCardExpirationInputProps extends TextFieldProps {
3
+ label?: string;
4
+ description?: string;
5
+ errorMessage?: string | ((validation: ValidationResult) => string);
6
+ placeholder?: string;
7
+ }
8
+ export declare function CreditCardExpirationInput({ label, description, errorMessage, placeholder, ...props }: CreditCardExpirationInputProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare namespace CreditCardExpirationInput {
10
+ var defaultProps: {
11
+ label: undefined;
12
+ description: undefined;
13
+ errorMessage: undefined;
14
+ placeholder: undefined;
15
+ };
16
+ }
17
+ export default CreditCardExpirationInput;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").InputProps & import("react").RefAttributes<HTMLInputElement>, never>> & Omit<(props: import("react-aria-components").InputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
3
+ export declare const StyledLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").LabelProps & import("react").RefAttributes<HTMLLabelElement>, never>> & Omit<(props: import("react-aria-components").LabelProps & import("react").RefAttributes<HTMLLabelElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
4
+ export declare const StyledTextField: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").TextFieldProps & import("react").RefAttributes<HTMLDivElement>, never>> & Omit<(props: import("react-aria-components").TextFieldProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
5
+ export declare const StyledFieldError: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").FieldErrorProps & import("react").RefAttributes<HTMLElement>, never>> & Omit<import("react").ForwardRefExoticComponent<import("react-aria-components").FieldErrorProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
6
+ export declare const StyledText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").TextProps & import("react").RefAttributes<HTMLElement>, never>> & Omit<import("react").ForwardRefExoticComponent<import("react-aria-components").TextProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,21 @@
1
+ import { TextFieldProps, ValidationResult } from 'react-aria-components';
2
+ interface CreditCardInputProps extends TextFieldProps {
3
+ label?: string;
4
+ description?: string;
5
+ errorMessage?: string | ((validation: ValidationResult) => string);
6
+ placeholder?: string;
7
+ value?: string;
8
+ onChange?: (value: string) => void;
9
+ }
10
+ export declare function CreditCardInput({ label, description, errorMessage, placeholder, value, onChange, ...props }: CreditCardInputProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace CreditCardInput {
12
+ var defaultProps: {
13
+ label: undefined;
14
+ description: undefined;
15
+ errorMessage: undefined;
16
+ placeholder: undefined;
17
+ value: undefined;
18
+ onChange: () => void;
19
+ };
20
+ }
21
+ export default CreditCardInput;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").InputProps & import("react").RefAttributes<HTMLInputElement>, never>> & Omit<(props: import("react-aria-components").InputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
3
+ export declare const StyledLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").LabelProps & import("react").RefAttributes<HTMLLabelElement>, never>> & Omit<(props: import("react-aria-components").LabelProps & import("react").RefAttributes<HTMLLabelElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
4
+ export declare const StyledTextField: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").TextFieldProps & import("react").RefAttributes<HTMLDivElement>, never>> & Omit<(props: import("react-aria-components").TextFieldProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
5
+ export declare const StyledFieldError: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").FieldErrorProps & import("react").RefAttributes<HTMLElement>, never>> & Omit<import("react").ForwardRefExoticComponent<import("react-aria-components").FieldErrorProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
6
+ export declare const StyledText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").TextProps & import("react").RefAttributes<HTMLElement>, never>> & Omit<import("react").ForwardRefExoticComponent<import("react-aria-components").TextProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
@@ -1,3 +1,3 @@
1
1
  import { DividerProps } from './types';
2
- export declare function Divider(props: DividerProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Divider({ orientation, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default Divider;
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const Root: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
2
+ import { Orientation } from 'react-aria';
3
+ export declare const Root: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ orientation: Orientation;
5
+ }>>;
3
6
  export default Root;
package/Input/Input.d.ts CHANGED
@@ -3,13 +3,15 @@ interface MyTextFieldProps extends TextFieldProps {
3
3
  label?: string;
4
4
  description?: string;
5
5
  errorMessage?: string | ((validation: ValidationResult) => string);
6
+ placeholder?: string;
6
7
  }
7
- export declare function Input({ label, description, errorMessage, ...props }: MyTextFieldProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Input({ label, description, errorMessage, placeholder, ...props }: MyTextFieldProps): import("react/jsx-runtime").JSX.Element;
8
9
  export declare namespace Input {
9
10
  var defaultProps: {
10
11
  label: undefined;
11
12
  description: undefined;
12
13
  errorMessage: undefined;
14
+ placeholder: undefined;
13
15
  };
14
16
  }
15
17
  export default Input;
package/index.d.ts CHANGED
@@ -15,8 +15,11 @@ export * from './Collapsible/CollapsibleTrigger';
15
15
  export * from './Collapsible/Collapsible';
16
16
  export * from './Container/Container';
17
17
  export * from './ContextMenu/ContextMenu';
18
+ export * from './CreditCardExpirationInput/CreditCardExpirationInput';
19
+ export * from './CreditCardInput/CreditCardInput';
18
20
  export * from './DateInput/DateInput';
19
21
  export * from './Divider/Divider';
22
+ export * from './Divider/types';
20
23
  export * from './Input/Input';
21
24
  export * from './Link/Link';
22
25
  export * from './Meter/Meter';