@npm_leadtech/legal-lib-components 2.10.1 → 2.10.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.
@@ -2885,7 +2885,7 @@ html[data-theme='uslawdistricts'] {
2885
2885
  .box--form {
2886
2886
  background: var(--others-white);
2887
2887
  border-radius: 4px;
2888
- box-shadow: 0 2px 6px 0 rgba(var(--primary-main-dark-1), 0.25);
2888
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
2889
2889
  padding-left: 1.5rem;
2890
2890
  padding-right: 1.5rem; }
2891
2891
  @media (min-width: 1200px) {
@@ -1,13 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import { type FC } from 'react';
2
2
  import { type DatePickerCustomProps } from './DatePickerCustomProps.types';
3
3
  import 'react-datepicker/dist/react-datepicker.css';
4
4
  import './DatePickerCustom.scss';
5
- declare class DatePickerCustom extends Component<DatePickerCustomProps> {
6
- constructor(props: DatePickerCustomProps);
7
- componentDidMount(): void;
8
- returnYears: (currentYear: number) => React.JSX.Element[];
9
- handleChange: (date: Date) => void;
10
- addDays: (date: any, days: any) => Date;
11
- render(): React.JSX.Element;
12
- }
5
+ declare const DatePickerCustom: FC<DatePickerCustomProps>;
13
6
  export default DatePickerCustom;
@@ -11,5 +11,6 @@ export interface DatePickerCustomProps {
11
11
  isStartDate?: boolean;
12
12
  relatedDate?: Date;
13
13
  type?: string;
14
+ dateFormat?: string;
14
15
  onChange?: (dateObject: any) => void;
15
16
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { FC, Component, ReactNode, MouseEventHandler, RefObject } from 'react';
2
+ import React$1, { FC, ReactNode, MouseEventHandler, RefObject } from 'react';
3
3
  import { IGatsbyImageData } from 'gatsby-plugin-image';
4
4
 
5
5
  interface AddButtonProps {
@@ -125,17 +125,11 @@ interface DatePickerCustomProps {
125
125
  isStartDate?: boolean;
126
126
  relatedDate?: Date;
127
127
  type?: string;
128
+ dateFormat?: string;
128
129
  onChange?: (dateObject: any) => void;
129
130
  }
130
131
 
131
- declare class DatePickerCustom extends Component<DatePickerCustomProps> {
132
- constructor(props: DatePickerCustomProps);
133
- componentDidMount(): void;
134
- returnYears: (currentYear: number) => React$1.JSX.Element[];
135
- handleChange: (date: Date) => void;
136
- addDays: (date: any, days: any) => Date;
137
- render(): React$1.JSX.Element;
138
- }
132
+ declare const DatePickerCustom: FC<DatePickerCustomProps>;
139
133
 
140
134
  interface DialogMenuIconProps {
141
135
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",