@clicktap/ui 0.7.0 → 0.8.0

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>>;
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;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { RadioRenderProps, RadioProps as UiRadioProps } from 'react-aria-components';
3
+ interface RadioSlots {
4
+ control?: ReactNode | ((values: RadioRenderProps) => ReactNode);
5
+ }
6
+ export interface RadioProps extends UiRadioProps {
7
+ children?: ReactNode | ((values: RadioRenderProps) => ReactNode);
8
+ slots?: RadioSlots;
9
+ }
10
+ export declare function Radio({ children, slots, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace Radio {
12
+ var defaultProps: {
13
+ children: undefined;
14
+ slots: undefined;
15
+ };
16
+ }
17
+ export default Radio;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Control: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
3
+ export declare const Indicator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ export declare const StyledRadio: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react-aria-components").RadioProps & import("react").RefAttributes<HTMLLabelElement>, never>> & Omit<(props: import("react-aria-components").RadioProps & import("react").RefAttributes<HTMLLabelElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, keyof import("react").Component<any, {}, any>>;
package/index.d.ts CHANGED
@@ -15,6 +15,8 @@ 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';
20
22
  export * from './Divider/types';
@@ -28,6 +30,7 @@ export * from './Drawer/Drawer';
28
30
  export * from './NumberInput/NumberInput';
29
31
  export * from './PinInput/PinInput';
30
32
  export * from './Progressbar';
33
+ export * from './Radio/Radio';
31
34
  export * from './Select/Option';
32
35
  export * from './Select/Select';
33
36
  export * from './Slider/Slider';