@bolttech/atoms-date-input 0.1.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.
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@bolttech/atoms-date-input",
3
+ "version": "0.1.0",
4
+ "peerDependencies": {
5
+ "@bolttech/atoms-input": "^0.26.1"
6
+ },
7
+ "module": "./index.esm.js",
8
+ "type": "module",
9
+ "main": "./index.esm.js",
10
+ "dependencies": {
11
+ "react": "18.2.0",
12
+ "styled-components": "5.3.11"
13
+ }
14
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/date-input';
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ declare const DateInput: import("react").ForwardRefExoticComponent<import("@bolttech/ui-utils").DefaultProps & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "className"> & {
3
+ label?: string | undefined;
4
+ errorMessage?: string | undefined;
5
+ helperMessage?: string | undefined;
6
+ variant?: import("@bolttech/atoms-input/src/lib/atoms-input.type").InputVariants | undefined;
7
+ dataTestId?: string | undefined;
8
+ icon?: string | undefined;
9
+ required?: boolean | undefined;
10
+ onClickIcon?: (() => void) | undefined;
11
+ onBlur?: ((value: unknown) => void) | ((evt: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
12
+ onFocus?: ((value: unknown) => void) | ((evt: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
13
+ onChange?: ((value: unknown) => void) | ((evt: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
14
+ } & import("react").RefAttributes<HTMLInputElement>>;
15
+ export default DateInput;
16
+ export { DateInput };
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { InputVariants } from '@bolttech/atoms-input/src/lib/atoms-input.type';
3
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
4
+ $required: boolean;
5
+ $variant: InputVariants;
6
+ }>> & string;
7
+ export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
+ disabled: boolean;
9
+ $variant: InputVariants;
10
+ }>> & string;
11
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
12
+ $hasError: boolean;
13
+ $hasValue: boolean;
14
+ $variant: InputVariants;
15
+ }>> & string;
16
+ export declare const LeftContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
+ $direction?: string | undefined;
18
+ $variant?: InputVariants | undefined;
19
+ $before: boolean;
20
+ }>> & string;
21
+ export declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
22
+ $variant: InputVariants;
23
+ $width?: string | undefined;
24
+ }>> & string;
25
+ export declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
26
+ $hasError: boolean;
27
+ $variant: InputVariants;
28
+ }>> & string;
29
+ export declare const Error: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
30
+ $variant: InputVariants;
31
+ }>> & string;