@bolttech/atoms-date-input 0.1.0 → 0.1.2

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,14 +1,16 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-date-input",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "peerDependencies": {
5
- "@bolttech/atoms-input": "^0.26.1"
5
+ "@bolttech/atoms-input": "^0.26.1",
6
+ "@bolttech/molecules-calendar": "^0.25.1",
7
+ "@bolttech/ui-utils": "^0.5.0"
6
8
  },
7
- "module": "./index.esm.js",
8
- "type": "module",
9
- "main": "./index.esm.js",
9
+ "main": "./index.cjs.js",
10
+ "type": "commonjs",
10
11
  "dependencies": {
11
12
  "react": "18.2.0",
12
- "styled-components": "5.3.11"
13
+ "react-dom": "18.2.0",
14
+ "styled-components": "6.1.13"
13
15
  }
14
16
  }
package/src/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './lib/date-input';
2
+ export type { DateInputProps } from './lib/date-input.type';
@@ -1,16 +1,5 @@
1
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>>;
2
+ import { DateInputProps } from './date-input.type';
3
+ declare const DateInput: React.ForwardRefExoticComponent<React.PropsWithoutRef<DateInputProps> & React.RefAttributes<HTMLInputElement>>;
15
4
  export default DateInput;
16
5
  export { DateInput };
@@ -29,3 +29,7 @@ export declare const Icon: import("styled-components/dist/types").IStyledCompone
29
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
30
  $variant: InputVariants;
31
31
  }>> & string;
32
+ export declare const DatePickerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
33
+ disabled?: boolean | undefined;
34
+ }>> & string;
35
+ export declare const CalendarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,10 @@
1
+ import { InputProps } from '@bolttech/atoms-input';
2
+ export type DateInputProps = InputProps & {
3
+ max: Date;
4
+ min: Date;
5
+ value: string | undefined;
6
+ locale: string;
7
+ showDatepicker?: boolean;
8
+ cancel?: string;
9
+ confirm?: string;
10
+ };
File without changes