@npm_leadtech/legal-lib-components 2.11.0 → 2.11.1

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.
@@ -1815,7 +1815,16 @@ html[data-theme='uslawdistricts'] {
1815
1815
  border-radius: 4px;
1816
1816
  padding: 0.25rem 0.5rem; }
1817
1817
  .menu-items__item svg {
1818
- vertical-align: bottom; }
1818
+ vertical-align: bottom;
1819
+ width: 1.5rem;
1820
+ margin-right: 0.5rem; }
1821
+ @media (min-width: 575px) {
1822
+ .menu-items__item svg {
1823
+ width: 1rem; } }
1824
+ .menu-items__item svg > g > g {
1825
+ fill: var(--neutral-neutral-1); }
1826
+ .menu-items__item svg #color-bin {
1827
+ fill: var(--neutral-neutral-1); }
1819
1828
  .menu-items__item.active {
1820
1829
  color: var(--primary-main-light-1);
1821
1830
  font-weight: 700;
@@ -1835,16 +1844,6 @@ html[data-theme='uslawdistricts'] {
1835
1844
  fill: var(--primary-main); }
1836
1845
  .menu-items__item a {
1837
1846
  display: flex; }
1838
- .menu-items__item svg {
1839
- width: 1.5rem;
1840
- margin-right: 0.5rem; }
1841
- @media (min-width: 575px) {
1842
- .menu-items__item svg {
1843
- width: 1rem; } }
1844
- .menu-items__item svg > g > g {
1845
- fill: var(--neutral-neutral-1); }
1846
- .menu-items__item svg #color-bin {
1847
- fill: var(--neutral-neutral-1); }
1848
1847
 
1849
1848
  .e-message-error {
1850
1849
  box-shadow: 0 0 0 1px #d63837;
@@ -2899,7 +2898,7 @@ html[data-theme='uslawdistricts'] {
2899
2898
  .box--form {
2900
2899
  background: var(--others-white);
2901
2900
  border-radius: 4px;
2902
- box-shadow: 0 2px 6px 0 rgba(var(--primary-main-dark-1), 0.25);
2901
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
2903
2902
  padding-left: 1.5rem;
2904
2903
  padding-right: 1.5rem; }
2905
2904
  @media (min-width: 1200px) {
@@ -3937,7 +3936,7 @@ html[data-theme='uslawdistricts'] {
3937
3936
  color: var(--neutral-neutral-2);
3938
3937
  text-align: center;
3939
3938
  font-size: 32px;
3940
- font-family: Lora;
3939
+ font-family: "Lora", serif;
3941
3940
  font-style: normal;
3942
3941
  font-weight: 400;
3943
3942
  line-height: 42px;
@@ -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
  }
@@ -9,7 +9,7 @@ export interface TooltipProps {
9
9
  hideOnClick?: boolean | 'toggle';
10
10
  position?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
11
11
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover';
12
- content?: React.ReactNode | string | any;
12
+ content?: any;
13
13
  children?: React.ReactElement<any>;
14
14
  onClick?: () => void;
15
15
  onClickOutside?: () => void;
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 {
@@ -131,17 +131,11 @@ interface DatePickerCustomProps {
131
131
  isStartDate?: boolean;
132
132
  relatedDate?: Date;
133
133
  type?: string;
134
+ dateFormat?: string;
134
135
  onChange?: (dateObject: any) => void;
135
136
  }
136
137
 
137
- declare class DatePickerCustom extends Component<DatePickerCustomProps> {
138
- constructor(props: DatePickerCustomProps);
139
- componentDidMount(): void;
140
- returnYears: (currentYear: number) => React$1.JSX.Element[];
141
- handleChange: (date: Date) => void;
142
- addDays: (date: any, days: any) => Date;
143
- render(): React$1.JSX.Element;
144
- }
138
+ declare const DatePickerCustom: FC<DatePickerCustomProps>;
145
139
 
146
140
  interface DialogMenuIconProps {
147
141
  title?: string;
@@ -392,7 +386,7 @@ interface TooltipProps {
392
386
  hideOnClick?: boolean | 'toggle';
393
387
  position?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
394
388
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover';
395
- content?: React.ReactNode | string | any;
389
+ content?: any;
396
390
  children?: React.ReactElement<any>;
397
391
  onClick?: () => void;
398
392
  onClickOutside?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",
@@ -142,5 +142,10 @@
142
142
  "reportPath": "coverage",
143
143
  "reportFile": "test-reporter.xml",
144
144
  "indent": 4
145
+ },
146
+ "resolutions": {
147
+ "strip-ansi": "^6.0.1",
148
+ "string-width": "^4.2.2",
149
+ "wrap-ansi": "^7.0.0"
145
150
  }
146
151
  }