@npm_leadtech/legal-lib-components 5.1.2 → 5.2.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.
Files changed (159) hide show
  1. package/dist/css/styles.css +9 -27
  2. package/dist/src/components/atoms/Button/Button.tsx +1 -0
  3. package/dist/src/components/atoms/Button/ButtonProps.types.ts +1 -0
  4. package/dist/src/components/atoms/ButtonIcon/ButtonIconProps.types.ts +1 -0
  5. package/dist/src/components/atoms/CardPane/CardPane.tsx +1 -0
  6. package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -0
  7. package/dist/src/components/atoms/Checkbox/CheckboxProps.types.ts +1 -0
  8. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +4 -0
  9. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +4 -0
  10. package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +1 -0
  11. package/dist/src/components/atoms/DatePickerCustom/index.js.map +2 -2
  12. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js +3 -1
  13. package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.tsx +4 -1
  14. package/dist/src/components/atoms/Disclaimer/Disclaimer.js +1 -0
  15. package/dist/src/components/atoms/Disclaimer/Disclaimer.tsx +1 -0
  16. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -0
  17. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +1 -0
  18. package/dist/src/components/atoms/Divider/Divider.tsx +2 -0
  19. package/dist/src/components/atoms/Divider/DividerProps.types.ts +1 -0
  20. package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +1 -0
  21. package/dist/src/components/atoms/IconImage/IconImage.tsx +1 -0
  22. package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColor.tsx +1 -0
  23. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.js +1 -0
  24. package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.tsx +1 -0
  25. package/dist/src/components/atoms/InfoBox/InfoBox.tsx +2 -1
  26. package/dist/src/components/atoms/InfoBox/InfoBoxProps.types.ts +1 -0
  27. package/dist/src/components/atoms/Logo/Logo.tsx +3 -0
  28. package/dist/src/components/atoms/LogoText/LogoTextProps.types.ts +1 -0
  29. package/dist/src/components/atoms/MenuItems/MenuItemProps.types.ts +1 -0
  30. package/dist/src/components/atoms/MenuItems/MenuItems.js +4 -0
  31. package/dist/src/components/atoms/MenuItems/MenuItems.tsx +4 -0
  32. package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +1 -0
  33. package/dist/src/components/atoms/MoreDocsItem/MoreDocsItem.js +1 -1
  34. package/dist/src/components/atoms/MoreDocsItem/MoreDocsItem.tsx +1 -1
  35. package/dist/src/components/atoms/NavMenuItem/NavMenuItemProps.d.ts +2 -2
  36. package/dist/src/components/atoms/NavMenuItem/NavMenuItemProps.ts +2 -2
  37. package/dist/src/components/atoms/PaypalButton/PaypalButton.tsx +1 -0
  38. package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.js +1 -1
  39. package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.tsx +1 -1
  40. package/dist/src/components/atoms/ProgressBar/ProgressBar.tsx +1 -0
  41. package/dist/src/components/atoms/ProgressBar/ProgressBarProps.types.ts +1 -0
  42. package/dist/src/components/atoms/Radio/Radio.js +1 -1
  43. package/dist/src/components/atoms/Radio/Radio.tsx +4 -2
  44. package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +2 -2
  45. package/dist/src/components/atoms/Radio/RadioProps.types.ts +1 -1
  46. package/dist/src/components/atoms/RemoveButton/RemoveButton.tsx +1 -0
  47. package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.tsx +0 -2
  48. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.js +1 -0
  49. package/dist/src/components/atoms/RichTextStrapi/useFormattedText.tsx +1 -0
  50. package/dist/src/components/atoms/SearchSelect/SearchSelect.js +2 -2
  51. package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +8 -3
  52. package/dist/src/components/atoms/SearchSelect/SearchSelectProps.types.ts +1 -0
  53. package/dist/src/components/atoms/SidemenuTab/SideMenuTabProps.types.ts +1 -0
  54. package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -0
  55. package/dist/src/components/atoms/Tag/Tag.scss +0 -4
  56. package/dist/src/components/atoms/TestAB/TestAB.js +4 -1
  57. package/dist/src/components/atoms/TestAB/TestAB.tsx +5 -1
  58. package/dist/src/components/atoms/TextArea/TextArea.tsx +1 -0
  59. package/dist/src/components/atoms/Tooltip/TooltipProps.types.d.ts +1 -1
  60. package/dist/src/components/atoms/Tooltip/TooltipProps.types.ts +2 -1
  61. package/dist/src/components/atoms/WideInfoBar/WideInfoBar.d.ts +1 -1
  62. package/dist/src/components/atoms/WideInfoBar/WideInfoBar.tsx +1 -1
  63. package/dist/src/components/molecules/AccordionItem/AccordionItem.d.ts +2 -1
  64. package/dist/src/components/molecules/AccordionItem/AccordionItem.js +2 -3
  65. package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +3 -4
  66. package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAs.js +1 -1
  67. package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAs.tsx +1 -1
  68. package/dist/src/components/molecules/BaseBoxList/BaseBoxListProps.types.ts +1 -0
  69. package/dist/src/components/molecules/BottomFixedBar/BottomFixedBar.tsx +1 -0
  70. package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +2 -1
  71. package/dist/src/components/molecules/BottomOverlay/BottomOverlay.tsx +2 -1
  72. package/dist/src/components/molecules/BottomOverlay/BottomOverlayProps.types.ts +1 -0
  73. package/dist/src/components/molecules/BoxForm/BoxFormProps.types.ts +1 -0
  74. package/dist/src/components/molecules/Breadcrumb/BreadcrumbProps.types.d.ts +2 -2
  75. package/dist/src/components/molecules/Breadcrumb/BreadcrumbProps.types.ts +1 -1
  76. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +1 -0
  77. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +1 -0
  78. package/dist/src/components/molecules/Feedback/Feedback.js +1 -1
  79. package/dist/src/components/molecules/Feedback/Feedback.tsx +2 -1
  80. package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.tsx +1 -0
  81. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +1 -0
  82. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -0
  83. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -0
  84. package/dist/src/components/molecules/Pagination/PageStepControl.js +1 -0
  85. package/dist/src/components/molecules/Pagination/PageStepControl.tsx +1 -0
  86. package/dist/src/components/molecules/Pagination/PageSteps.tsx +1 -0
  87. package/dist/src/components/molecules/Pagination/Pagination.js +1 -0
  88. package/dist/src/components/molecules/Pagination/Pagination.tsx +1 -0
  89. package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktop.tsx +2 -0
  90. package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobile.tsx +1 -0
  91. package/dist/src/components/molecules/PricingCard/PricingCard.js +3 -2
  92. package/dist/src/components/molecules/PricingCard/PricingCard.tsx +4 -3
  93. package/dist/src/components/molecules/PricingCard/PricingCardProps.types.ts +1 -0
  94. package/dist/src/components/molecules/Snackbar/Snackbar.js +1 -0
  95. package/dist/src/components/molecules/Snackbar/Snackbar.tsx +1 -0
  96. package/dist/src/components/molecules/Snackbar/SnackbarProps.types.ts +1 -0
  97. package/dist/src/components/molecules/TextInput/Input.js +2 -0
  98. package/dist/src/components/molecules/TextInput/Input.tsx +2 -0
  99. package/dist/src/components/molecules/TextInput/TextInput.js +4 -2
  100. package/dist/src/components/molecules/TextInput/TextInput.tsx +3 -2
  101. package/dist/src/components/molecules/TextInput/TextInputMessage.tsx +1 -0
  102. package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +1 -0
  103. package/dist/src/components/molecules/TextInput/TextInputTooltip.tsx +1 -0
  104. package/dist/src/components/molecules/TooltipMenu/TooltipMenuProps.types.d.ts +2 -2
  105. package/dist/src/components/molecules/TooltipMenu/TooltipMenuProps.types.ts +2 -2
  106. package/dist/src/components/molecules/TypeModulesList/TypeModulesList.tsx +1 -0
  107. package/dist/src/components/organisms/Accordion/Accordion.context.d.ts +1 -1
  108. package/dist/src/components/organisms/Accordion/Accordion.context.js +2 -0
  109. package/dist/src/components/organisms/Accordion/Accordion.context.tsx +4 -2
  110. package/dist/src/components/organisms/Accordion/Accordion.d.ts +2 -1
  111. package/dist/src/components/organisms/Accordion/Accordion.js +1 -0
  112. package/dist/src/components/organisms/Accordion/Accordion.tsx +2 -1
  113. package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +1 -0
  114. package/dist/src/components/organisms/CardFuncionality/CardFuncionality.d.ts +3 -0
  115. package/dist/src/components/organisms/CardFuncionality/CardFuncionality.js +6 -0
  116. package/dist/src/components/organisms/{CardFunctionality/CardFunctionality.scss → CardFuncionality/CardFuncionality.scss} +2 -3
  117. package/dist/src/components/organisms/{CardFunctionality/CardFunctionality.tsx → CardFuncionality/CardFuncionality.tsx} +4 -4
  118. package/dist/src/components/organisms/{CardFunctionality/CardFunctionalityProps.d.ts → CardFuncionality/CardFuncionalityProps.d.ts} +1 -2
  119. package/dist/src/components/organisms/{CardFunctionality/CardFunctionalityProps.ts → CardFuncionality/CardFuncionalityProps.ts} +1 -2
  120. package/dist/src/components/organisms/CardFuncionality/index.d.ts +2 -0
  121. package/dist/src/components/organisms/CardFuncionality/index.js +2 -0
  122. package/dist/src/components/organisms/CardFuncionality/index.ts +2 -0
  123. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +1 -0
  124. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +1 -0
  125. package/dist/src/components/organisms/index.d.ts +1 -1
  126. package/dist/src/components/organisms/index.js +1 -1
  127. package/dist/src/components/organisms/index.ts +1 -1
  128. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +1 -0
  129. package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPageProps.types.ts +1 -0
  130. package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPageProps.types.ts +1 -0
  131. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +1 -0
  132. package/dist/src/components/sections/AsideMenuSection/AsideMenuSectionProps.d.ts +2 -2
  133. package/dist/src/components/sections/AsideMenuSection/AsideMenuSectionProps.ts +2 -2
  134. package/dist/src/components/sections/BlogSection/BlogSection.tsx +1 -0
  135. package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +1 -0
  136. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.scss +0 -1
  137. package/dist/src/components/sections/index.d.ts +0 -1
  138. package/dist/src/components/sections/index.js +0 -1
  139. package/dist/src/components/sections/index.ts +0 -1
  140. package/dist/src/custom.d.ts +1 -0
  141. package/dist/src/globalStyles/styles.scss +1 -2
  142. package/dist/tsconfig.build.tsbuildinfo +1 -1
  143. package/package.json +35 -36
  144. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.d.ts +0 -3
  145. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +0 -6
  146. package/dist/src/components/organisms/CardFunctionality/index.d.ts +0 -2
  147. package/dist/src/components/organisms/CardFunctionality/index.js +0 -2
  148. package/dist/src/components/organisms/CardFunctionality/index.ts +0 -2
  149. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.d.ts +0 -3
  150. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +0 -8
  151. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.scss +0 -15
  152. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +0 -17
  153. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.d.ts +0 -4
  154. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.js +0 -1
  155. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.ts +0 -5
  156. package/dist/src/components/sections/FunctionalityCardsSection/index.d.ts +0 -2
  157. package/dist/src/components/sections/FunctionalityCardsSection/index.js +0 -2
  158. package/dist/src/components/sections/FunctionalityCardsSection/index.ts +0 -2
  159. /package/dist/src/components/organisms/{CardFunctionality/CardFunctionalityProps.js → CardFuncionality/CardFuncionalityProps.js} +0 -0
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-argument */
4
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
5
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
6
  /* eslint-disable jsx-a11y/click-events-have-key-events */
5
7
  import { useCallback, useEffect, useRef, useState } from 'react';
@@ -1,4 +1,7 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-argument */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
4
+
2
5
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
3
6
  /* eslint-disable jsx-a11y/click-events-have-key-events */
4
7
  import React, { type FC, useCallback, useEffect, useRef, useState } from 'react'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
3
  import React from 'react';
3
4
  // import './Disclaimer.scss'
4
5
  const Disclaimer = ({ givenClass, text, disclaimerLinks = false, complexCopyRight, complexCopyRightMobile, simpleCopyRight }) => {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type DisclaimerProps } from './DisclaimerProps.types'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
3
  import React from 'react';
3
4
  import { Button } from '../Button';
4
5
  import { ChevronRight } from '../../../../images/componentsSvg/ChevronRight';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React from 'react'
2
3
 
3
4
  import { Button } from '../Button'
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
1
3
  import React, { type FC } from 'react'
2
4
 
3
5
  import { type DividerProps } from './DividerProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface DividerProps {
2
3
  text?: string
3
4
  image?: any
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type GoogleButtonProps } from './GoogleButtonProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type IconImageProps } from './IconImageProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type IconSvgURLWithThemeColorProps } from './IconSvgURLWithThemeColorProps.types'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
3
  import React from 'react';
3
4
  // import './IconTextInfoSection.scss'
4
5
  export const IconTextInfoSection = ({ items, classnames = '' }) => {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React from 'react'
2
3
 
3
4
  import { type IconTextInfoSectionProps } from './IconTextInfoSection.types'
@@ -1,4 +1,5 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
+
2
3
  import React, { type FC } from 'react'
3
4
 
4
5
  import { type InfoBoxProps } from './InfoBoxProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface InfoBoxProps {
2
3
  children: any
3
4
  type?: string
@@ -1,3 +1,6 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
4
  import React, { type FC } from 'react'
2
5
 
3
6
  import { type LogoProps } from './LogoProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface LogoTextProps {
2
3
  logo?: string
3
4
  children?: any
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface MenuItemProps {
2
3
  spacing?: boolean
3
4
  hasBullets?: boolean
@@ -1,4 +1,8 @@
1
1
  import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
4
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
5
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
2
6
  /* eslint-disable jsx-a11y/click-events-have-key-events */
3
7
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
4
8
  import { useState } from 'react';
@@ -1,3 +1,7 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
4
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
1
5
  /* eslint-disable jsx-a11y/click-events-have-key-events */
2
6
  /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
7
  import React, { type FC, useState } from 'react'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type MessageInformationProps } from './MessageInformationProps.types'
@@ -4,7 +4,7 @@ import { getCategoryIcons } from '../../../utils/getCategoryIcons';
4
4
  export const MoreDocsItem = ({ title, description, slug, icon = null }) => {
5
5
  return (_jsxs("div", { className: 'more-docs-item', onClick: () => {
6
6
  window.location.href = slug;
7
- }, "data-qa": `${title.replace(/\s/g, '_')}`, role: 'button', onKeyUp: (event) => {
7
+ }, "data-qa": title.replace(/\s/g, '_'), role: 'button', onKeyUp: (event) => {
8
8
  if (event.key === 'Enter' || event.key === ' ') {
9
9
  window.location.href = slug;
10
10
  }
@@ -11,7 +11,7 @@ export const MoreDocsItem: React.FC<MoreDocsItemProps> = ({ title, description,
11
11
  onClick={() => {
12
12
  window.location.href = slug
13
13
  }}
14
- data-qa={`${title.replace(/\s/g, '_')}`}
14
+ data-qa={title.replace(/\s/g, '_')}
15
15
  role='button'
16
16
  onKeyUp={(event) => {
17
17
  if (event.key === 'Enter' || event.key === ' ') {
@@ -1,8 +1,8 @@
1
1
  import { type ButtonProps } from '../Button';
2
2
  export interface NavMenuItemProps {
3
3
  mainButton: ButtonProps;
4
- items?: Array<{
4
+ items?: {
5
5
  key: string;
6
6
  props: ButtonProps;
7
- }>;
7
+ }[];
8
8
  }
@@ -2,8 +2,8 @@ import { type ButtonProps } from '../Button'
2
2
 
3
3
  export interface NavMenuItemProps {
4
4
  mainButton: ButtonProps
5
- items?: Array<{
5
+ items?: {
6
6
  key: string
7
7
  props: ButtonProps
8
- }>
8
+ }[]
9
9
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type PaypalButtonProps } from './PaypalButtonProps.types'
@@ -3,5 +3,5 @@ import { ChevronRight24px } from '../../../../images/componentsSvg/ChevronRight2
3
3
  import { getCategoryIcons } from '../../../utils/getCategoryIcons';
4
4
  // import './PopularDocsItem.scss'
5
5
  export const PopularDocsItem = ({ title, description, slug, icon = null }) => {
6
- return (_jsxs("a", { className: 'popular-docs-item', href: slug, "data-qa": `${title.replace(/\s/g, '_')}`, children: [_jsx("div", { className: 'category-icon', children: icon ?? getCategoryIcons(description, 35, 30) }), _jsxs("div", { className: 'texts', children: [_jsx("div", { children: _jsx("strong", { children: title }) }), _jsx("p", { className: 'description', children: description })] }), _jsx("div", { className: 'icon-left', children: _jsx(ChevronRight24px, {}) })] }));
6
+ return (_jsxs("a", { className: 'popular-docs-item', href: slug, "data-qa": title.replace(/\s/g, '_'), children: [_jsx("div", { className: 'category-icon', children: icon ?? getCategoryIcons(description, 35, 30) }), _jsxs("div", { className: 'texts', children: [_jsx("div", { children: _jsx("strong", { children: title }) }), _jsx("p", { className: 'description', children: description })] }), _jsx("div", { className: 'icon-left', children: _jsx(ChevronRight24px, {}) })] }));
7
7
  };
@@ -7,7 +7,7 @@ import { getCategoryIcons } from '../../../utils/getCategoryIcons'
7
7
 
8
8
  export const PopularDocsItem: React.FC<PopularDocsItemProps> = ({ title, description, slug, icon = null }) => {
9
9
  return (
10
- <a className='popular-docs-item' href={slug} data-qa={`${title.replace(/\s/g, '_')}`}>
10
+ <a className='popular-docs-item' href={slug} data-qa={title.replace(/\s/g, '_')}>
11
11
  <div className='category-icon'>{icon ?? getCategoryIcons(description, 35, 30)}</div>
12
12
  <div className='texts'>
13
13
  <div>
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type ProgressBarProps } from './ProgressBarProps.types'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface ProgressBarProps {
2
3
  currentStep: number
3
4
  allSteps: any[]
@@ -13,7 +13,7 @@ const Radio = (props) => {
13
13
  .join(' ');
14
14
  const classNames = `e-radio ${props.class} ${!props.validate ? '--is-invalid' : ''} ${!props.isValidGroup ? '--group-invalid' : ''} ${additionalClassNames}`;
15
15
  const TooltipObject = props.tooltip ? _jsx("p", { className: 'tooltip-form sans-serif --small', children: props.tooltip }) : '';
16
- return (_jsxs("div", { className: `${classNames}`, children: [_jsx("label", { htmlFor: props.name, className: 'radio-group__label', children: props.label }), _jsx("div", { className: 'e-radio__inner', children: props.items?.map((radio) => {
16
+ return (_jsxs("div", { className: classNames, children: [_jsx("label", { htmlFor: props.name, className: 'radio-group__label', children: props.label }), _jsx("div", { className: 'e-radio__inner', children: props.items?.map((radio) => {
17
17
  return (_jsx("div", { className: `radio-item-container ${radio.value === props.value ? 'active' : ''}`, children: _jsxs("label", { className: 'e-radio-label', children: [radio.iconName !== undefined && radio.iconName !== '' && (_jsx(IconImage, { givenClass: 'radio-icon', iconName: radio.iconName })), _jsx("input", { type: 'radio', className: 'radio-item-input', id: `${props.name}_${radio.value}`, name: props.name, onChange: props.onChange, value: radio.value, checked: radio.value === props.value, disabled: props.disabled }), _jsx("label", { className: 'e-radio-label__label', htmlFor: `${props.name}_${radio.value}`, "data-qa": `${props.name}_${radio.value}`, children: radio.label }), _jsx("div", { children: props.help })] }, radio.value) }, radio.value));
18
18
  }) }), TooltipObject] }));
19
19
  };
@@ -1,4 +1,6 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
2
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
3
+
2
4
  import React, { type FC } from 'react'
3
5
 
4
6
  import IconImage from '../IconImage/IconImage'
@@ -23,7 +25,7 @@ const Radio: FC<RadioProps> = (props) => {
23
25
  const TooltipObject = props.tooltip ? <p className='tooltip-form sans-serif --small'>{props.tooltip}</p> : ''
24
26
 
25
27
  return (
26
- <div className={`${classNames}`}>
28
+ <div className={classNames}>
27
29
  <label htmlFor={props.name} className='radio-group__label'>
28
30
  {props.label}
29
31
  </label>
@@ -9,10 +9,10 @@ export interface RadioProps {
9
9
  validate?: boolean;
10
10
  isValidGroup?: boolean;
11
11
  disabled?: boolean;
12
- items?: Array<{
12
+ items?: {
13
13
  value: string;
14
14
  label: string;
15
15
  iconName?: string;
16
- }>;
16
+ }[];
17
17
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
18
18
  }
@@ -9,6 +9,6 @@ export interface RadioProps {
9
9
  validate?: boolean
10
10
  isValidGroup?: boolean
11
11
  disabled?: boolean
12
- items?: Array<{ value: string; label: string; iconName?: string }>
12
+ items?: { value: string; label: string; iconName?: string }[]
13
13
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
14
14
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-empty-function */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type RemoveButtonProps } from './RemoveButtonProps.types'
@@ -1,5 +1,3 @@
1
- /* eslint-disable jsx-a11y/click-events-have-key-events */
2
- /* eslint-disable jsx-a11y/no-static-element-interactions */
3
1
  import React, { type FC } from 'react'
4
2
 
5
3
  import { type RichTextStrapiProps } from './RichTextStrapiProps'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React from 'react';
2
3
  import { getDateFormatMMMMYYYY } from '../../../utils/getDateFormatMMMMYYYY';
3
4
  import { replaceAll } from '../../../utils/replaceAll';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React from 'react'
2
3
 
3
4
  import { type RichTextMedia } from './RichTextMedia'
@@ -28,7 +28,7 @@ const SearchSelect = (props) => {
28
28
  const classnames = classNames({
29
29
  'e-searchselect': true,
30
30
  '--is-invalid': !props.validate,
31
- [`${customClass}`]: props.customClass,
31
+ [customClass]: props.customClass,
32
32
  '--group-invalid': !props.isValidGroup
33
33
  });
34
34
  const handleChange = (selectedOption) => {
@@ -41,7 +41,7 @@ const SearchSelect = (props) => {
41
41
  props.onChange(selectObject);
42
42
  };
43
43
  const TooltipObject = props.tooltip && typeof props.tooltip === 'string' ? (_jsx("p", { className: 'tooltip-form sans-serif --small', children: props.tooltip })) : ('');
44
- return (_jsxs(_Fragment, { children: [props.label && (_jsx("div", { className: 'e-searchselect__inner', children: _jsx("label", { className: 'searchselect__label', children: props.label }) })), _jsxs("div", { className: `${classnames} ${props.width ? 'width' : ''}`, "data-qa": `${props.dataQA ?? props.name}`, children: [TooltipObject, _jsxs("span", { className: 'e-searchselect--error sans-serif --small', children: [_jsx("img", { src: error, alt: props.errorMessage, width: '24', height: '24' }), props.errorMessage] }), _jsx(Select, { styles: {
44
+ return (_jsxs(_Fragment, { children: [props.label && (_jsx("div", { className: 'e-searchselect__inner', children: _jsx("label", { className: 'searchselect__label', children: props.label }) })), _jsxs("div", { className: `${classnames} ${props.width ? 'width' : ''}`, "data-qa": props.dataQA ?? props.name, children: [TooltipObject, _jsxs("span", { className: 'e-searchselect--error sans-serif --small', children: [_jsx("img", { src: error, alt: props.errorMessage, width: '24', height: '24' }), props.errorMessage] }), _jsx(Select, { styles: {
45
45
  control: (baseStyles, state) => {
46
46
  return {
47
47
  ...baseStyles,
@@ -1,4 +1,9 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
3
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
5
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
6
+
2
7
  import React, { type FC } from 'react'
3
8
  import Select from 'react-select'
4
9
 
@@ -33,7 +38,7 @@ const SearchSelect: FC<SearchSelectProps> = (props) => {
33
38
  const classnames = classNames({
34
39
  'e-searchselect': true,
35
40
  '--is-invalid': !props.validate,
36
- [`${customClass}`]: props.customClass,
41
+ [customClass]: props.customClass,
37
42
  '--group-invalid': !props.isValidGroup
38
43
  })
39
44
 
@@ -61,7 +66,7 @@ const SearchSelect: FC<SearchSelectProps> = (props) => {
61
66
  <label className='searchselect__label'>{props.label}</label>
62
67
  </div>
63
68
  )}
64
- <div className={`${classnames} ${props.width ? 'width' : ''}`} data-qa={`${props.dataQA ?? props.name}`}>
69
+ <div className={`${classnames} ${props.width ? 'width' : ''}`} data-qa={props.dataQA ?? props.name}>
65
70
  {TooltipObject}
66
71
  <span className='e-searchselect--error sans-serif --small'>
67
72
  <img src={error} alt={props.errorMessage} width='24' height='24' />
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { type MenuPlacement } from './SearchSelect'
2
3
 
3
4
  type DefaultValue = Record<string, string | null | undefined>
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { type MouseEventHandler } from 'react'
2
3
 
3
4
  export interface SideMenuTabProps {
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
3
  import React from 'react'
2
4
  import classNames from 'classnames'
3
5
 
@@ -12,10 +12,6 @@
12
12
 
13
13
  .icon {
14
14
  display: flex;
15
-
16
- .icon-svg-with-theme-color {
17
- background-color: get-color(secondary, main-dark-2);
18
- }
19
15
  }
20
16
 
21
17
  .text {
@@ -1,4 +1,7 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
5
  import PropTypes from 'prop-types';
3
6
  /**
4
7
  * @param {string} props.id, jira task number
@@ -1,4 +1,8 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
4
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
5
+
2
6
  import PropTypes from 'prop-types'
3
7
 
4
8
  /**
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { type TextAreaProps } from './TextAreaProps.types'
@@ -9,7 +9,7 @@ export interface TooltipProps {
9
9
  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';
10
10
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover';
11
11
  content?: any;
12
- children?: React.ReactElement<any>;
12
+ children?: React.ReactElement;
13
13
  onClick?: () => void;
14
14
  onClickOutside?: () => void;
15
15
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface TooltipProps {
2
3
  maxWidth?: number | string
3
4
  visible?: boolean
@@ -24,7 +25,7 @@ export interface TooltipProps {
24
25
  | 'auto-end'
25
26
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover'
26
27
  content?: any
27
- children?: React.ReactElement<any>
28
+ children?: React.ReactElement
28
29
  onClick?: () => void
29
30
  onClickOutside?: () => void
30
31
  }
@@ -1,6 +1,6 @@
1
1
  import React, { type FC } from 'react';
2
2
  interface WideInfoBarProps {
3
- children?: React.ReactElement<any>;
3
+ children?: React.ReactElement;
4
4
  color?: 'green';
5
5
  }
6
6
  declare const WideInfoBar: FC<WideInfoBarProps>;
@@ -3,7 +3,7 @@ import React, { type FC } from 'react'
3
3
  // import './WideInfoBar.scss'
4
4
 
5
5
  interface WideInfoBarProps {
6
- children?: React.ReactElement<any>
6
+ children?: React.ReactElement
7
7
  color?: 'green'
8
8
  }
9
9
 
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { type AccordionItemProps } from './AccordionItemProps.types';
2
- export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: AccordionItemProps) => JSX.Element;
3
+ export declare const AccordionItem: ({ accordionRightContent, children, defaultHeightItem, index, isOpen, onClick, title }: AccordionItemProps) => React.JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
3
- /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
- /* eslint-disable jsx-a11y/click-events-have-key-events */
2
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
3
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
5
4
  import { useEffect, useRef } from 'react';
6
5
  import { useDispatchDataAccordionItem, useStateDataAccordionItem } from '../../organisms/Accordion/Accordion.context';
7
6
  // import './AccordionItem.scss'
@@ -1,6 +1,5 @@
1
- /* eslint-disable @typescript-eslint/strict-boolean-expressions */
2
- /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
3
- /* eslint-disable jsx-a11y/click-events-have-key-events */
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
4
3
  import React, { useEffect, useRef } from 'react'
5
4
  import { useDispatchDataAccordionItem, useStateDataAccordionItem } from '../../organisms/Accordion/Accordion.context'
6
5
 
@@ -16,7 +15,7 @@ export const AccordionItem = ({
16
15
  isOpen,
17
16
  onClick,
18
17
  title
19
- }: AccordionItemProps): JSX.Element => {
18
+ }: AccordionItemProps): React.JSX.Element => {
20
19
  const contenReftHeight = useRef<HTMLInputElement>(null)
21
20
  const { state } = useStateDataAccordionItem(index)
22
21
  const { dispatch } = useDispatchDataAccordionItem()
@@ -3,7 +3,7 @@ import { DocumentTag } from '../../atoms';
3
3
  import { SymbolDoc } from '../../../../images/componentsSvg/SymbolDoc';
4
4
  // import './AlsoKnownAs.scss'
5
5
  const AlsoKnownAs = ({ title = '', documents = [] }) => {
6
- if (documents?.length === 0)
6
+ if (documents.length === 0)
7
7
  return null;
8
8
  return (_jsxs("div", { className: 'also-known-as', children: [_jsxs("p", { className: 'title', children: [_jsx(SymbolDoc, {}), _jsx("span", { className: 'text', children: title })] }), documents.map((item) => (_jsx(DocumentTag, { text: item }, item)))] }));
9
9
  };
@@ -6,7 +6,7 @@ import { SymbolDoc } from '../../../../images/componentsSvg/SymbolDoc'
6
6
  // import './AlsoKnownAs.scss'
7
7
 
8
8
  const AlsoKnownAs: FC<AlsoKnownAsProps> = ({ title = '', documents = [] }) => {
9
- if (documents?.length === 0) return null
9
+ if (documents.length === 0) return null
10
10
 
11
11
  return (
12
12
  <div className='also-known-as'>
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface BaseBoxListProps {
2
3
  givenClass?: string
3
4
  padded?: boolean
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
1
2
  import React, { type FC } from 'react'
2
3
 
3
4
  import { Button, RichTextInner } from '../../atoms'
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
3
  import { useEffect, useRef, useState } from 'react';
3
4
  import { useSwipeable } from 'react-swipeable';
4
5
  // import './BottomOverlay.scss'
@@ -23,7 +24,7 @@ const BottomOverlay = ({ givenClass, header, body, open = false, onClose, footer
23
24
  const handleScroll = (event) => {
24
25
  setScrollingDown(true);
25
26
  const targetElement = event.target;
26
- if (targetElement?.scrollTop === 0) {
27
+ if (targetElement.scrollTop === 0) {
27
28
  setScrollingDown(false);
28
29
  }
29
30
  };
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1
2
  import React, { type FC, useEffect, useRef, useState } from 'react'
2
3
  import { useSwipeable } from 'react-swipeable'
3
4
 
@@ -28,7 +29,7 @@ const BottomOverlay: FC<BottomOverlayProps> = ({ givenClass, header, body, open
28
29
  setScrollingDown(true)
29
30
 
30
31
  const targetElement = event.target as HTMLElement
31
- if (targetElement?.scrollTop === 0) {
32
+ if (targetElement.scrollTop === 0) {
32
33
  setScrollingDown(false)
33
34
  }
34
35
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface BottomOverlayProps {
2
3
  givenClass?: string
3
4
  header?: any
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { type ButtonProps } from '../../atoms'
2
3
 
3
4
  export interface BoxFormProps {
@@ -1,6 +1,6 @@
1
1
  export interface BreadcrumbProps {
2
- crumbs: Array<{
2
+ crumbs: {
3
3
  text: string;
4
4
  url?: string;
5
- }>;
5
+ }[];
6
6
  }
@@ -1,3 +1,3 @@
1
1
  export interface BreadcrumbProps {
2
- crumbs: Array<{ text: string; url?: string }>
2
+ crumbs: { text: string; url?: string }[]
3
3
  }
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /* eslint-disable @typescript-eslint/restrict-template-expressions */
2
3
  import { useEffect, useRef, useState } from 'react';
3
4
  import { MessageInformation } from '../../atoms';
4
5
  import classNames from 'classnames';