@npm_leadtech/legal-lib-components 5.1.1 → 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.
- package/dist/css/styles.css +0 -17
- package/dist/src/components/atoms/Button/Button.tsx +1 -0
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +1 -0
- package/dist/src/components/atoms/ButtonIcon/ButtonIconProps.types.ts +1 -0
- package/dist/src/components/atoms/CardPane/CardPane.tsx +1 -0
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -0
- package/dist/src/components/atoms/Checkbox/CheckboxProps.types.ts +1 -0
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.js +4 -0
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustom.tsx +4 -0
- package/dist/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.ts +1 -0
- package/dist/src/components/atoms/DatePickerCustom/index.js.map +2 -2
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.js +3 -1
- package/dist/src/components/atoms/DialogMenuIcon/DialogMenuIcon.tsx +4 -1
- package/dist/src/components/atoms/Disclaimer/Disclaimer.js +1 -0
- package/dist/src/components/atoms/Disclaimer/Disclaimer.tsx +1 -0
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -0
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +1 -0
- package/dist/src/components/atoms/Divider/Divider.tsx +2 -0
- package/dist/src/components/atoms/Divider/DividerProps.types.ts +1 -0
- package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +1 -0
- package/dist/src/components/atoms/IconImage/IconImage.tsx +1 -0
- package/dist/src/components/atoms/IconSvgURLWithThemeColor/IconSvgURLWithThemeColor.tsx +1 -0
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.js +1 -0
- package/dist/src/components/atoms/IconTextInfoSection/IconTextInfoSection.tsx +1 -0
- package/dist/src/components/atoms/InfoBox/InfoBox.tsx +2 -1
- package/dist/src/components/atoms/InfoBox/InfoBoxProps.types.ts +1 -0
- package/dist/src/components/atoms/Logo/Logo.tsx +3 -0
- package/dist/src/components/atoms/LogoText/LogoTextProps.types.ts +1 -0
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.ts +1 -0
- package/dist/src/components/atoms/MenuItems/MenuItems.js +4 -0
- package/dist/src/components/atoms/MenuItems/MenuItems.tsx +4 -0
- package/dist/src/components/atoms/MessageInformation/MessageInformation.tsx +1 -0
- package/dist/src/components/atoms/MoreDocsItem/MoreDocsItem.js +1 -1
- package/dist/src/components/atoms/MoreDocsItem/MoreDocsItem.tsx +1 -1
- package/dist/src/components/atoms/NavMenuItem/NavMenuItemProps.d.ts +2 -2
- package/dist/src/components/atoms/NavMenuItem/NavMenuItemProps.ts +2 -2
- package/dist/src/components/atoms/PaypalButton/PaypalButton.tsx +1 -0
- package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.js +1 -1
- package/dist/src/components/atoms/PopularDocsItem/PopularDocsItem.tsx +1 -1
- package/dist/src/components/atoms/ProgressBar/ProgressBar.tsx +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBarProps.types.ts +1 -0
- package/dist/src/components/atoms/Radio/Radio.js +1 -1
- package/dist/src/components/atoms/Radio/Radio.tsx +4 -2
- package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +2 -2
- package/dist/src/components/atoms/Radio/RadioProps.types.ts +1 -1
- package/dist/src/components/atoms/RemoveButton/RemoveButton.tsx +1 -0
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.tsx +0 -2
- package/dist/src/components/atoms/RichTextStrapi/useFormattedText.js +1 -0
- package/dist/src/components/atoms/RichTextStrapi/useFormattedText.tsx +1 -0
- package/dist/src/components/atoms/SearchSelect/SearchSelect.js +2 -2
- package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +8 -3
- package/dist/src/components/atoms/SearchSelect/SearchSelectProps.types.ts +1 -0
- package/dist/src/components/atoms/SidemenuTab/SideMenuTabProps.types.ts +1 -0
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -0
- package/dist/src/components/atoms/Tag/Tag.scss +0 -4
- package/dist/src/components/atoms/TestAB/TestAB.js +4 -1
- package/dist/src/components/atoms/TestAB/TestAB.tsx +5 -1
- package/dist/src/components/atoms/TextArea/TextArea.tsx +1 -0
- package/dist/src/components/atoms/Tooltip/TooltipProps.types.d.ts +1 -1
- package/dist/src/components/atoms/Tooltip/TooltipProps.types.ts +2 -1
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.d.ts +1 -1
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.tsx +1 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.d.ts +2 -1
- package/dist/src/components/molecules/AccordionItem/AccordionItem.js +2 -3
- package/dist/src/components/molecules/AccordionItem/AccordionItem.tsx +3 -4
- package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAs.js +1 -1
- package/dist/src/components/molecules/AlsoKnownAs/AlsoKnownAs.tsx +1 -1
- package/dist/src/components/molecules/BaseBoxList/BaseBoxListProps.types.ts +1 -0
- package/dist/src/components/molecules/BottomFixedBar/BottomFixedBar.tsx +1 -0
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +2 -1
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.tsx +2 -1
- package/dist/src/components/molecules/BottomOverlay/BottomOverlayProps.types.ts +1 -0
- package/dist/src/components/molecules/BoxForm/BoxFormProps.types.ts +1 -0
- package/dist/src/components/molecules/Breadcrumb/BreadcrumbProps.types.d.ts +2 -2
- package/dist/src/components/molecules/Breadcrumb/BreadcrumbProps.types.ts +1 -1
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +1 -0
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +1 -0
- package/dist/src/components/molecules/Feedback/Feedback.js +1 -1
- package/dist/src/components/molecules/Feedback/Feedback.tsx +2 -1
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.tsx +1 -0
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +1 -0
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -0
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -0
- package/dist/src/components/molecules/Pagination/PageStepControl.js +1 -0
- package/dist/src/components/molecules/Pagination/PageStepControl.tsx +1 -0
- package/dist/src/components/molecules/Pagination/PageSteps.tsx +1 -0
- package/dist/src/components/molecules/Pagination/Pagination.js +1 -0
- package/dist/src/components/molecules/Pagination/Pagination.tsx +1 -0
- package/dist/src/components/molecules/PhoneContactBoxDesktop/PhoneContactBoxDesktop.tsx +2 -0
- package/dist/src/components/molecules/PhoneContactBoxMobile/PhoneContactBoxMobile.tsx +1 -0
- package/dist/src/components/molecules/PricingCard/PricingCard.js +3 -2
- package/dist/src/components/molecules/PricingCard/PricingCard.tsx +4 -3
- package/dist/src/components/molecules/PricingCard/PricingCardProps.types.ts +1 -0
- package/dist/src/components/molecules/Snackbar/Snackbar.js +1 -0
- package/dist/src/components/molecules/Snackbar/Snackbar.tsx +1 -0
- package/dist/src/components/molecules/Snackbar/SnackbarProps.types.ts +1 -0
- package/dist/src/components/molecules/TextInput/Input.js +2 -0
- package/dist/src/components/molecules/TextInput/Input.tsx +2 -0
- package/dist/src/components/molecules/TextInput/TextInput.js +4 -2
- package/dist/src/components/molecules/TextInput/TextInput.tsx +3 -2
- package/dist/src/components/molecules/TextInput/TextInputMessage.tsx +1 -0
- package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +1 -0
- package/dist/src/components/molecules/TextInput/TextInputTooltip.tsx +1 -0
- package/dist/src/components/molecules/TooltipMenu/TooltipMenuProps.types.d.ts +2 -2
- package/dist/src/components/molecules/TooltipMenu/TooltipMenuProps.types.ts +2 -2
- package/dist/src/components/molecules/TypeModulesList/TypeModulesList.tsx +1 -0
- package/dist/src/components/organisms/Accordion/Accordion.context.d.ts +1 -1
- package/dist/src/components/organisms/Accordion/Accordion.context.js +2 -0
- package/dist/src/components/organisms/Accordion/Accordion.context.tsx +4 -2
- package/dist/src/components/organisms/Accordion/Accordion.d.ts +2 -1
- package/dist/src/components/organisms/Accordion/Accordion.js +1 -0
- package/dist/src/components/organisms/Accordion/Accordion.tsx +2 -1
- package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +1 -0
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +1 -0
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +1 -0
- package/dist/src/components/organisms/index.d.ts +1 -1
- package/dist/src/components/organisms/index.js +1 -1
- package/dist/src/components/organisms/index.ts +1 -1
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +1 -0
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPageProps.types.ts +1 -0
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPageProps.types.ts +1 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +1 -0
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSectionProps.d.ts +2 -2
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSectionProps.ts +2 -2
- package/dist/src/components/sections/BlogSection/BlogSection.tsx +1 -0
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +1 -0
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.scss +0 -1
- package/dist/src/components/sections/index.d.ts +0 -1
- package/dist/src/components/sections/index.js +0 -1
- package/dist/src/components/sections/index.ts +0 -1
- package/dist/src/custom.d.ts +1 -0
- package/dist/src/globalStyles/styles.scss +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +34 -35
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.d.ts +0 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +0 -6
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.scss +0 -61
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +0 -29
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.d.ts +0 -9
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.js +0 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.ts +0 -10
- package/dist/src/components/organisms/CardFunctionality/index.d.ts +0 -2
- package/dist/src/components/organisms/CardFunctionality/index.js +0 -2
- package/dist/src/components/organisms/CardFunctionality/index.ts +0 -2
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.d.ts +0 -3
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +0 -8
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.scss +0 -15
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +0 -17
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.d.ts +0 -4
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.js +0 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSectionProps.ts +0 -5
- package/dist/src/components/sections/FunctionalityCardsSection/index.d.ts +0 -2
- package/dist/src/components/sections/FunctionalityCardsSection/index.js +0 -2
- package/dist/src/components/sections/FunctionalityCardsSection/index.ts +0 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable @typescript-eslint/
|
|
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/
|
|
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,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,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,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,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'
|
|
@@ -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":
|
|
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={
|
|
14
|
+
data-qa={title.replace(/\s/g, '_')}
|
|
15
15
|
role='button'
|
|
16
16
|
onKeyUp={(event) => {
|
|
17
17
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -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":
|
|
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={
|
|
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>
|
|
@@ -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:
|
|
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/
|
|
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={
|
|
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?:
|
|
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?:
|
|
12
|
+
items?: { value: string; label: string; iconName?: string }[]
|
|
13
13
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
|
|
14
14
|
}
|
|
@@ -28,7 +28,7 @@ const SearchSelect = (props) => {
|
|
|
28
28
|
const classnames = classNames({
|
|
29
29
|
'e-searchselect': true,
|
|
30
30
|
'--is-invalid': !props.validate,
|
|
31
|
-
[
|
|
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":
|
|
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/
|
|
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
|
-
[
|
|
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={
|
|
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,4 +1,7 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/
|
|
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/
|
|
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
|
/**
|
|
@@ -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
|
|
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
|
|
28
|
+
children?: React.ReactElement
|
|
28
29
|
onClick?: () => void
|
|
29
30
|
onClickOutside?: () => void
|
|
30
31
|
}
|
|
@@ -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/
|
|
3
|
-
/* eslint-disable
|
|
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/
|
|
2
|
-
/* eslint-disable
|
|
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
|
|
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
|
|
9
|
+
if (documents.length === 0) return null
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
12
|
<div className='also-known-as'>
|
|
@@ -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
|
|
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
|
|
32
|
+
if (targetElement.scrollTop === 0) {
|
|
32
33
|
setScrollingDown(false)
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -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';
|