@bolttech/atoms-checkbox 0.3.1 → 0.4.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 CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-checkbox",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@edirect/frontend-foundations": "0.0.55",
8
+ "@edirect/frontend-foundations": "0.0.56",
9
9
  "react": "18.2.0",
10
10
  "styled-components": "5.3.6"
11
11
  },
package/src/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Checkbox } from './lib/atoms-checkbox';
2
- export { CheckboxProps } from './lib/atoms-checkbox.type';
1
+ export { Checkbox } from './lib/atoms-checkbox';
2
+ export { CheckboxProps } from './lib/atoms-checkbox.type';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- import { CheckboxProps } from './atoms-checkbox.type';
3
- export declare function Checkbox({ id, label, disabled, errorMessage, ref, checked, onChange, onBlur, onFocus, }: CheckboxProps): JSX.Element;
1
+ import { CheckboxProps } from './atoms-checkbox.type';
2
+ export declare function Checkbox({ id, label, disabled, errorMessage, ref, checked, onChange, onBlur, onFocus, }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,14 @@
1
- interface LabelProps {
2
- disabled?: boolean;
3
- }
4
- interface InputProps {
5
- error?: string;
6
- }
7
- declare const CheckboxContainer: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
8
- declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
9
- type: "checkbox";
10
- } & InputProps, "type">;
11
- declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
12
- declare const CheckboxContainerError: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
13
- declare const LabelError: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
14
- export { CheckboxContainer, Input, Label, CheckboxContainerError, LabelError };
1
+ interface LabelProps {
2
+ disabled?: boolean;
3
+ }
4
+ interface InputProps {
5
+ error?: string;
6
+ }
7
+ declare const CheckboxContainer: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
8
+ declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
9
+ type: "checkbox";
10
+ } & InputProps, "type">;
11
+ declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
12
+ declare const CheckboxContainerError: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, {}, never>;
13
+ declare const LabelError: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
14
+ export { CheckboxContainer, Input, Label, CheckboxContainerError, LabelError };
@@ -1,12 +1,12 @@
1
- import { ChangeEventHandler } from 'react';
2
- export interface CheckboxProps {
3
- id: string;
4
- label: string;
5
- disabled?: boolean;
6
- errorMessage?: string;
7
- checked?: boolean;
8
- ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
9
- onChange?: ChangeEventHandler<HTMLInputElement>;
10
- onBlur?: ChangeEventHandler<HTMLInputElement>;
11
- onFocus?: ChangeEventHandler<HTMLInputElement>;
12
- }
1
+ import { ChangeEventHandler } from 'react';
2
+ export interface CheckboxProps {
3
+ id: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ errorMessage?: string;
7
+ checked?: boolean;
8
+ ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
9
+ onChange?: ChangeEventHandler<HTMLInputElement>;
10
+ onBlur?: ChangeEventHandler<HTMLInputElement>;
11
+ onFocus?: ChangeEventHandler<HTMLInputElement>;
12
+ }