@npm_leadtech/legal-lib-components 2.1.11 → 2.1.12

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.
@@ -1,13 +1,12 @@
1
- import { type ChangeEventHandler } from 'react';
2
1
  export interface CheckboxProps {
3
2
  id?: string;
4
3
  name?: string;
5
4
  className?: string;
6
- value?: string;
5
+ value?: boolean;
7
6
  validate?: boolean;
8
7
  tooltip?: string;
9
8
  isValidGroup?: boolean;
10
9
  label?: string;
11
- onChange?: ChangeEventHandler<HTMLInputElement>;
10
+ onChange?: (e: any) => void;
12
11
  disabled?: boolean;
13
12
  }
@@ -4,3 +4,8 @@ declare const meta: Meta<typeof Checkbox>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Checkbox>;
6
6
  export declare const Default: Story;
7
+ export declare const Checked: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const Invalid: Story;
10
+ export declare const InvalidGroup: Story;
11
+ export declare const WithTooltip: Story;
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
1
+ import { type MouseEventHandler } from 'react';
2
2
  export interface SideMenuTabProps {
3
3
  text?: string;
4
4
  active?: boolean;
5
5
  mobile?: boolean;
6
6
  menu?: any;
7
- onClick?: () => void;
7
+ onClick?: MouseEventHandler<HTMLButtonElement>;
8
8
  image?: React.ReactNode;
9
9
  children?: React.ReactNode;
10
10
  }
@@ -1,8 +1,8 @@
1
- import { type FC } from 'react';
1
+ import { type FC, type MouseEventHandler } from 'react';
2
2
  export interface PageStepsProps {
3
3
  activePage: number;
4
4
  totalPages: number;
5
- onClick: (page: number) => void;
5
+ onClick: MouseEventHandler<HTMLSpanElement>;
6
6
  ellipsisControls?: string;
7
7
  extendedMaxSteps?: number;
8
8
  }
@@ -6,9 +6,10 @@ interface InputProps {
6
6
  value: any;
7
7
  type: 'password' | 'text';
8
8
  disabled: boolean;
9
+ className: string;
9
10
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
11
  onClick: (e: React.MouseEvent<HTMLInputElement>) => void;
11
12
  onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
12
13
  }
13
- export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<unknown>>;
14
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
14
15
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type TextInputProps } from './TextInputProps.types';
3
- import './textInput.scss';
4
- declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<unknown>>;
3
+ import './TextInput.scss';
4
+ declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
5
5
  export default TextInput;
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import './textInput.scss';
2
+ import './TextInput.scss';
3
3
  interface TextInputLabelProps {
4
4
  label?: string;
5
5
  htmlFor?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { FC, ChangeEventHandler, Component, ReactNode } from 'react';
2
+ import React$1, { FC, Component, ReactNode, MouseEventHandler } from 'react';
3
3
  import { IGatsbyImageData } from 'gatsby-plugin-image';
4
4
 
5
5
  interface AddButtonProps {
@@ -101,12 +101,12 @@ interface CheckboxProps {
101
101
  id?: string;
102
102
  name?: string;
103
103
  className?: string;
104
- value?: string;
104
+ value?: boolean;
105
105
  validate?: boolean;
106
106
  tooltip?: string;
107
107
  isValidGroup?: boolean;
108
108
  label?: string;
109
- onChange?: ChangeEventHandler<HTMLInputElement>;
109
+ onChange?: (e: any) => void;
110
110
  disabled?: boolean;
111
111
  }
112
112
 
@@ -318,7 +318,7 @@ interface SideMenuTabProps {
318
318
  active?: boolean;
319
319
  mobile?: boolean;
320
320
  menu?: any;
321
- onClick?: () => void;
321
+ onClick?: MouseEventHandler<HTMLButtonElement>;
322
322
  image?: React.ReactNode;
323
323
  children?: React.ReactNode;
324
324
  }
@@ -568,7 +568,7 @@ interface TextInputProps {
568
568
  children?: React.ReactNode;
569
569
  }
570
570
 
571
- declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<unknown>>;
571
+ declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<HTMLInputElement>>;
572
572
 
573
573
  interface TooltipMenuProps {
574
574
  options: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",