@npm_leadtech/legal-lib-components 2.1.6 → 2.1.8

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,10 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export interface ButtonProps {
3
- label: string;
3
+ label?: string;
4
4
  dataQa?: string;
5
5
  labelMobile?: string;
6
6
  link?: string;
7
- LinkComponent?: any;
8
7
  noLink?: boolean;
9
8
  noLinkNoFunc?: boolean;
10
9
  onClick?: (functionParameters?: any) => void;
@@ -1,7 +1,7 @@
1
1
  export interface SnackbarProps {
2
- type?: 'welcome' | 'success' | 'error' | 'reminder';
2
+ type: 'welcome' | 'success' | 'error' | 'reminder';
3
3
  title?: string;
4
- text?: string;
4
+ text: string;
5
5
  button?: {
6
6
  label: string;
7
7
  onClick: () => void;
package/dist/index.d.ts CHANGED
@@ -47,11 +47,10 @@ interface BreadcrumItemProps {
47
47
  declare const BreadcrumItem: FC<BreadcrumItemProps>;
48
48
 
49
49
  interface ButtonProps {
50
- label: string;
50
+ label?: string;
51
51
  dataQa?: string;
52
52
  labelMobile?: string;
53
53
  link?: string;
54
- LinkComponent?: any;
55
54
  noLink?: boolean;
56
55
  noLinkNoFunc?: boolean;
57
56
  onClick?: (functionParameters?: any) => void;
@@ -514,9 +513,9 @@ interface PricingCardProps {
514
513
  declare const PricingCard: FC<PricingCardProps>;
515
514
 
516
515
  interface SnackbarProps {
517
- type?: 'welcome' | 'success' | 'error' | 'reminder';
516
+ type: 'welcome' | 'success' | 'error' | 'reminder';
518
517
  title?: string;
519
- text?: string;
518
+ text: string;
520
519
  button?: {
521
520
  label: string;
522
521
  onClick: () => void;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",
7
+ "eslint-plugin-react-refresh": "^0.4.0",
7
8
  "postcss-url": "^10.1.3",
8
9
  "react-datepicker": "^4.11.0",
9
10
  "react-input-mask": "^2.0.4",