@integry/sdk 4.7.39 → 4.7.41
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/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +6 -1
- package/.eslintignore +0 -1
- package/.vscode/launch.json +0 -17
- package/CHANGELOG_INTERNAL.md +0 -134
- package/README_INTERNAL.md +0 -176
- package/THIRD_PARTY_LICENSES +0 -525
- package/generateTests.js +0 -80
- package/jest.config.cjs +0 -10
- package/src/components/AddTagButton/index.ts +0 -23
- package/src/components/BasicSelect/index.ts +0 -123
- package/src/components/BasicSelect/styles.module.scss +0 -44
- package/src/components/Button/index.ts +0 -97
- package/src/components/Button/styles.module.scss +0 -152
- package/src/components/CheckboxGroup/Checkbox.ts +0 -104
- package/src/components/CheckboxGroup/index.ts +0 -190
- package/src/components/CheckboxGroup/styles.module.scss +0 -63
- package/src/components/CollapsedMenu/index.ts +0 -104
- package/src/components/CollapsedMenu/styles.module.scss +0 -46
- package/src/components/ConfigureFieldWrapper/index.ts +0 -85
- package/src/components/ConfigureFieldWrapper/styles.module.scss +0 -57
- package/src/components/EditableText/index.ts +0 -121
- package/src/components/EditableText/styles.module.scss +0 -38
- package/src/components/EditableTextArea/index.ts +0 -143
- package/src/components/EditableTextArea/styles.module.scss +0 -91
- package/src/components/ErrorMessage/index.ts +0 -16
- package/src/components/ErrorMessage/styles.module.scss +0 -19
- package/src/components/ErrorPage/index.ts +0 -42
- package/src/components/ErrorPage/styles.module.scss +0 -26
- package/src/components/Footer/index.ts +0 -41
- package/src/components/Footer/styles.module.scss +0 -40
- package/src/components/HTMLContent/index.tsx +0 -205
- package/src/components/HTMLContent/styles.module.scss +0 -3
- package/src/components/InfoBox/index.ts +0 -48
- package/src/components/InfoBox/styles.module.scss +0 -21
- package/src/components/Input/BaseInput/index.ts +0 -170
- package/src/components/Input/BaseInput/styles.module.scss +0 -95
- package/src/components/Input/DateInput/index.ts +0 -103
- package/src/components/Input/DateInput/styles.module.scss +0 -50
- package/src/components/Input/Input/index.ts +0 -225
- package/src/components/Input/Input/styles.module.scss +0 -16
- package/src/components/Input/PasswordInput/index.ts +0 -164
- package/src/components/Input/PasswordInput/styles.module.scss +0 -37
- package/src/components/Input/index.ts +0 -7
- package/src/components/Label/index.ts +0 -61
- package/src/components/Label/styles.module.scss +0 -41
- package/src/components/LargeLoader/index.ts +0 -25
- package/src/components/LargeLoader/styles.module.scss +0 -16
- package/src/components/Listbox/ListBoxItem.ts +0 -57
- package/src/components/Listbox/index.ts +0 -488
- package/src/components/Listbox/styles.module.scss +0 -197
- package/src/components/Loader/index.ts +0 -25
- package/src/components/Loader/styles.module.scss +0 -16
- package/src/components/MediaGallery/MediaGalleryModal.ts +0 -82
- package/src/components/MediaGallery/MediaSlider.ts +0 -76
- package/src/components/MediaGallery/index.ts +0 -92
- package/src/components/MediaGallery/styles.module.scss +0 -156
- package/src/components/MediaUpload/index.ts +0 -233
- package/src/components/MediaUpload/styles.module.scss +0 -118
- package/src/components/Modal/index.ts +0 -87
- package/src/components/Modal/styles.module.scss +0 -441
- package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +0 -59
- package/src/components/MultipurposeField/Dropdown/index.tsx +0 -1202
- package/src/components/MultipurposeField/Dropdown/styles.module.scss +0 -215
- package/src/components/MultipurposeField/TagMenu/index.ts +0 -536
- package/src/components/MultipurposeField/TagMenu/styles.module.scss +0 -175
- package/src/components/MultipurposeField/TagOptions/index.tsx +0 -83
- package/src/components/MultipurposeField/TagOptions/styles.module.scss +0 -95
- package/src/components/MultipurposeField/index.tsx +0 -944
- package/src/components/MultipurposeField/styles.module.scss +0 -77
- package/src/components/NewModal/index.ts +0 -69
- package/src/components/NewModal/styles.module.scss +0 -70
- package/src/components/OverflowTooltip/index.tsx +0 -59
- package/src/components/PopUp/ConfirmationPopUp/index.ts +0 -58
- package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +0 -49
- package/src/components/PopUp/SuccessPopUp/index.ts +0 -62
- package/src/components/PopUp/SuccessPopUp/styles.module.scss +0 -38
- package/src/components/RadioGroup/Radio.ts +0 -128
- package/src/components/RadioGroup/index.ts +0 -169
- package/src/components/RadioGroup/styles.module.scss +0 -81
- package/src/components/Search/index.ts +0 -69
- package/src/components/Search/styles.module.scss +0 -149
- package/src/components/TabBar/Tab.ts +0 -33
- package/src/components/TabBar/index.ts +0 -64
- package/src/components/TabBar/styles.module.scss +0 -43
- package/src/components/Tag/index.ts +0 -29
- package/src/components/Tag/styles.module.scss +0 -57
- package/src/components/TagsMenu/index.ts +0 -1697
- package/src/components/TagsMenu/styles.module.scss +0 -350
- package/src/components/TestComponent/index.ts +0 -71
- package/src/components/TestComponent/styles.module.scss +0 -152
- package/src/components/TextArea/index.ts +0 -172
- package/src/components/TextArea/styles.module.scss +0 -72
- package/src/components/TextContent/index.tsx +0 -128
- package/src/components/TextContent/styles.module.scss +0 -6
- package/src/components/ThreeDotLoader/index.ts +0 -39
- package/src/components/ThreeDotLoader/styles.module.scss +0 -41
- package/src/components/TimeInput/index.ts +0 -129
- package/src/components/TimeInput/styles.module.scss +0 -16
- package/src/components/Toggle/index.ts +0 -34
- package/src/components/Toggle/styles.module.scss +0 -56
- package/src/components/Toggle-v2/index.ts +0 -40
- package/src/components/Toggle-v2/styles.module.scss +0 -86
- package/src/components/Tooltip/index.ts +0 -271
- package/src/components/Tooltip/styles.module.scss +0 -105
- package/src/components/form/FunctionField/index.ts +0 -816
- package/src/components/form/FunctionField/styles.module.scss +0 -478
- package/src/components/form/ObjectField/__snapshots__/index.ts.test.tsx.snap +0 -3
- package/src/components/form/ObjectField/index.ts +0 -593
- package/src/components/form/ObjectField/index.ts.test.tsx +0 -213
- package/src/components/form/ObjectField/styles.module.scss +0 -103
- package/src/components/form/index.ts +0 -4
- package/src/contexts/AppContext.ts +0 -12
- package/src/declaration.d.ts +0 -7
- package/src/extensions/HMAC.ts +0 -25
- package/src/extensions/IntegryAPIError.ts +0 -19
- package/src/features/common/AccountDropdown/index.ts +0 -291
- package/src/features/common/AccountDropdown/styles.module.scss +0 -19
- package/src/features/common/ActionForm/index.ts +0 -2602
- package/src/features/common/ActionForm/styles.module.scss +0 -35
- package/src/features/common/AppCard/index.ts +0 -207
- package/src/features/common/AppCard/styles.module.scss +0 -117
- package/src/features/common/AppCardCompact/index.ts +0 -189
- package/src/features/common/AppCardCompact/styles.module.scss +0 -141
- package/src/features/common/AuthSelector/index.ts +0 -537
- package/src/features/common/AuthSelector/styles.module.scss +0 -161
- package/src/features/common/AuthSelectorCompact/index.ts +0 -706
- package/src/features/common/AuthSelectorCompact/styles.module.scss +0 -219
- package/src/features/common/AuthSelectorDropdown/index.ts +0 -704
- package/src/features/common/AuthSelectorDropdown/styles.module.scss +0 -361
- package/src/features/common/AuthSelectorV2/index.ts +0 -336
- package/src/features/common/AuthSelectorV2/styles.module.scss +0 -235
- package/src/features/common/DynamicField/index.ts +0 -402
- package/src/features/common/DynamicField/styles.module.scss +0 -266
- package/src/features/common/DynamicTypedField/index.ts +0 -504
- package/src/features/common/DynamicTypedField/styles.module.scss +0 -135
- package/src/features/common/FunctionForm/index.ts +0 -1095
- package/src/features/common/FunctionForm/styles.module.scss +0 -225
- package/src/features/common/MappingUI/index.ts +0 -649
- package/src/features/common/MappingUI/styles.module.scss +0 -121
- package/src/features/common/MarketplaceAppCard/index.ts +0 -279
- package/src/features/common/MarketplaceAppCard/styles.module.scss +0 -231
- package/src/features/common/MarketplaceAppCardCompact/index.ts +0 -283
- package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +0 -255
- package/src/features/common/NewMappingUI/index.ts +0 -515
- package/src/features/common/NewMappingUI/styles.module.scss +0 -113
- package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +0 -67
- package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +0 -23
- package/src/features/common/RequestAppWidget/index.ts +0 -48
- package/src/features/common/RequestAppWidget/request-app-form.ts +0 -89
- package/src/features/common/RequestAppWidget/styles.module.scss +0 -43
- package/src/features/common/SectionField/index.ts +0 -272
- package/src/features/common/SectionField/styles.module.scss +0 -67
- package/src/features/common/Step/index.ts +0 -827
- package/src/features/common/Step/styles.module.scss +0 -12
- package/src/features/common/StepNavigation/CollapsedSteps.ts +0 -131
- package/src/features/common/StepNavigation/NavItem.ts +0 -111
- package/src/features/common/StepNavigation/index.ts +0 -261
- package/src/features/common/StepNavigation/styles.module.scss +0 -117
- package/src/features/common/Steps/index.ts +0 -1140
- package/src/features/common/Steps/styles.module.scss +0 -314
- package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +0 -404
- package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +0 -367
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.test.tsx +0 -58
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +0 -208
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.test.tsx +0 -49
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +0 -421
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +0 -577
- package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +0 -83
- package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +0 -233
- package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +0 -45
- package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +0 -1085
- package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +0 -465
- package/src/features/containers/AppFlowContainer/Authentication/index.ts +0 -610
- package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +0 -468
- package/src/features/containers/AppFlowContainer/index.ts +0 -114
- package/src/features/containers/AppPageContainer/AppPage/index.tsx +0 -262
- package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +0 -120
- package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +0 -165
- package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +0 -81
- package/src/features/containers/AppPageContainer/index.tsx +0 -93
- package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
- package/src/features/containers/AppsForFlows/index.ts +0 -161
- package/src/features/containers/AppsForFlows/styles.module.scss +0 -280
- package/src/features/containers/AppsForFlowsCompact/index.ts +0 -161
- package/src/features/containers/AppsForFlowsCompact/styles.module.scss +0 -279
- package/src/features/containers/AuthSetupContainer/AppSelection.ts +0 -73
- package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +0 -67
- package/src/features/containers/AuthSetupContainer/Footer.ts +0 -32
- package/src/features/containers/AuthSetupContainer/Header.ts +0 -39
- package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +0 -27
- package/src/features/containers/AuthSetupContainer/index.ts +0 -349
- package/src/features/containers/AuthSetupContainer/styles.module.scss +0 -229
- package/src/features/containers/FlowSetupContainer/index.ts +0 -391
- package/src/features/containers/FlowSetupContainer/styles.module.scss +0 -18
- package/src/features/containers/MarkeplaceApps/index.ts +0 -583
- package/src/features/containers/MarkeplaceApps/styles.module.scss +0 -558
- package/src/features/containers/MarketplaceAppsCompact/index.ts +0 -585
- package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +0 -563
- package/src/features/containers/MarketplaceAppsContainer/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +0 -66
- package/src/features/containers/MarketplaceContainer/AppListing/index.ts +0 -34
- package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +0 -10
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +0 -132
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +0 -117
- package/src/features/containers/MarketplaceContainer/index.ts +0 -242
- package/src/features/containers/MarketplaceContainer/styles.module.scss +0 -84
- package/src/features/containers/SDKContainer/index.ts +0 -817
- package/src/features/containers/SDKContainer/styles.module.scss +0 -266
- package/src/features/containers/SDKDebugContainer/index.ts +0 -137
- package/src/features/containers/SDKDebugContainer/styles.module.scss +0 -37
- package/src/features/containers/SDKFailedContainer/index.ts +0 -117
- package/src/features/containers/SDKFailedContainer/styles.module.scss +0 -57
- package/src/features/integrations/IntegrationRow/Icons.ts +0 -77
- package/src/features/integrations/IntegrationRow/index.ts +0 -129
- package/src/features/integrations/IntegrationRow/styles.module.scss +0 -62
- package/src/features/integrations/IntegrationsHeader/index.ts +0 -34
- package/src/features/integrations/IntegrationsHeader/styles.module.scss +0 -47
- package/src/features/integrations/IntegrationsList/index.ts +0 -252
- package/src/features/integrations/IntegrationsList/styles.module.scss +0 -67
- package/src/features/templates/Template/index.ts +0 -295
- package/src/features/templates/Template/styles.module.scss +0 -226
- package/src/features/templates/TemplatesView/index.ts +0 -368
- package/src/features/templates/TemplatesView/styles.module.scss +0 -71
- package/src/features/templates/TemplatesViewCompact/index.ts +0 -364
- package/src/features/templates/TemplatesViewCompact/styles.module.scss +0 -141
- package/src/hooks/useAutosizeTextArea.ts +0 -22
- package/src/hooks/useCustomRef.ts +0 -13
- package/src/hooks/useDebounce.ts +0 -17
- package/src/hooks/useElementResize.ts +0 -40
- package/src/hooks/useEventListener.ts +0 -42
- package/src/hooks/useHover.ts +0 -40
- package/src/hooks/useOnClickOutside.ts +0 -32
- package/src/index.ts +0 -2244
- package/src/index.umd.ts +0 -13
- package/src/interfaces/index.ts +0 -938
- package/src/modules/api/index.ts +0 -1325
- package/src/modules/api/responseHandler.ts +0 -38
- package/src/modules/event-emitter/index.ts +0 -72
- package/src/modules/event-emitter/runners/abstract.ts +0 -21
- package/src/modules/event-emitter/runners/default.ts +0 -11
- package/src/modules/event-emitter/runners/ntimes.ts +0 -28
- package/src/modules/event-emitter/types.ts +0 -34
- package/src/store/actionFunctions.ts +0 -1578
- package/src/store/index.ts +0 -17
- package/src/store/initialState.ts +0 -58
- package/src/types/index.ts +0 -320
- package/src/types/preact-compat.d.ts +0 -4
- package/src/types/store.ts +0 -366
- package/src/types/utils.ts +0 -19
- package/src/utils/ActivityOutputUtils.ts +0 -176
- package/src/utils/common.ts +0 -20
- package/src/utils/copyToClipboard.ts +0 -24
- package/src/utils/datetime.ts +0 -101
- package/src/utils/getUrlParam.ts +0 -11
- package/src/utils/isAuthMessage.ts +0 -16
- package/src/utils/isBrowser.ts +0 -1
- package/src/utils/jsonEncodeDecode.ts +0 -15
- package/src/utils/objectUtils.ts +0 -117
- package/src/utils/popup.ts +0 -30
- package/src/utils/searchJson.ts +0 -51
- package/src/utils/stepUtils.ts +0 -45
- package/src/utils/truncate.ts +0 -6
- package/test/setup.ts +0 -1
- package/vitest.config.ts +0 -16
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
.multipurposeFieldContainer {
|
|
2
|
-
position: relative;
|
|
3
|
-
.multipurposeField {
|
|
4
|
-
textarea {
|
|
5
|
-
height: 112px;
|
|
6
|
-
font-size: 12px;
|
|
7
|
-
line-height: 20px;
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
padding: 12px;
|
|
10
|
-
font-family: Inter;
|
|
11
|
-
font-size: 12px;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
font-weight: 400;
|
|
14
|
-
line-height: 20px; /* 166.667% */
|
|
15
|
-
|
|
16
|
-
&:focus {
|
|
17
|
-
outline: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&::placeholder {
|
|
21
|
-
color: var(--black-and-grey-draft-and-tooltip-desc, #999);
|
|
22
|
-
font-family: Inter;
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
font-style: normal;
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
line-height: 20px; /* 166.667% */
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
fieldset {
|
|
30
|
-
margin-bottom: 16px !important;
|
|
31
|
-
}
|
|
32
|
-
[class^='styles-module_textareaInputWrapper'] {
|
|
33
|
-
[class^='tagify__input'] {
|
|
34
|
-
overflow-y: scroll;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
tags {
|
|
38
|
-
width: 100%;
|
|
39
|
-
// max-width: 682px;
|
|
40
|
-
font-family: 'Inter';
|
|
41
|
-
height: 40px;
|
|
42
|
-
padding-top: 5px;
|
|
43
|
-
overflow: auto;
|
|
44
|
-
span {
|
|
45
|
-
font-size: 12px;
|
|
46
|
-
}
|
|
47
|
-
[class^='tagify__input'] {
|
|
48
|
-
padding: 5px 10px;
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[class^='tagify__tag'] {
|
|
53
|
-
z-index: 0;
|
|
54
|
-
vertical-align: middle;
|
|
55
|
-
}
|
|
56
|
-
--tag-bg: #bfdaff;
|
|
57
|
-
--tag-hover: #bfdaff;
|
|
58
|
-
--tag-remove-bg: #8cbdff;
|
|
59
|
-
--tag-inset-shadow-size: 1.2em;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
.tagifyTagTemplate {
|
|
64
|
-
background-color: #f5f5f5;
|
|
65
|
-
--tag-hover: #e0e0e0;
|
|
66
|
-
--tag-bg: #e0e0e0;
|
|
67
|
-
display: inline;
|
|
68
|
-
align-items: center; /* Ensures vertical alignment */
|
|
69
|
-
gap: 4px; /* Optional spacing between icon and text */
|
|
70
|
-
.tagifyAppIcon {
|
|
71
|
-
display: inline-block;
|
|
72
|
-
height: 16px;
|
|
73
|
-
margin-right: 3px;
|
|
74
|
-
border-radius: 2px;
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { html, Component } from 'htm/preact';
|
|
2
|
-
|
|
3
|
-
import styles from './styles.module.scss';
|
|
4
|
-
|
|
5
|
-
interface ModalProps {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
CustomCloseElement?: any;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
customClass?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class NewModal extends Component<ModalProps> {
|
|
13
|
-
render() {
|
|
14
|
-
const { isOpen, CustomCloseElement } = this.props;
|
|
15
|
-
const { customClass } = this.props;
|
|
16
|
-
return html`
|
|
17
|
-
<div
|
|
18
|
-
class=${`${styles.modal} ${isOpen ? `${styles.open}` : ''} ${(customClass && styles[customClass]) ? `${styles[customClass]}` : ''}`}
|
|
19
|
-
aria-labelledby="modal-title"
|
|
20
|
-
role="dialog"
|
|
21
|
-
aria-modal="true"
|
|
22
|
-
>
|
|
23
|
-
<div class=${styles.modalContainer}>
|
|
24
|
-
<div class=${styles.inset} aria-hidden="true"></div>
|
|
25
|
-
|
|
26
|
-
<span class=${styles.span} aria-hidden="true"></span>
|
|
27
|
-
|
|
28
|
-
<div
|
|
29
|
-
class=${`${styles.contentWrap} ${isOpen ? `${styles.open}` : ''}`}
|
|
30
|
-
>
|
|
31
|
-
<div class=${styles.content}>
|
|
32
|
-
${CustomCloseElement
|
|
33
|
-
? html` <div onclick=${this.props.onClose}>
|
|
34
|
-
<${CustomCloseElement} />
|
|
35
|
-
</div>`
|
|
36
|
-
: html`
|
|
37
|
-
<div onclick=${this.props.onClose} class=${styles.close}>
|
|
38
|
-
<svg
|
|
39
|
-
width="20"
|
|
40
|
-
height="22"
|
|
41
|
-
viewBox="0 0 20 22"
|
|
42
|
-
fill="none"
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
>
|
|
45
|
-
<path
|
|
46
|
-
d="M14.2426 16.1822L5.75732 6.86328"
|
|
47
|
-
stroke="#999999"
|
|
48
|
-
stroke-width="2"
|
|
49
|
-
stroke-linecap="round"
|
|
50
|
-
/>
|
|
51
|
-
<path
|
|
52
|
-
d="M14.2426 6.86328L5.75732 16.1822"
|
|
53
|
-
stroke="#999999"
|
|
54
|
-
stroke-width="2"
|
|
55
|
-
stroke-linecap="round"
|
|
56
|
-
/>
|
|
57
|
-
</svg>
|
|
58
|
-
</div>
|
|
59
|
-
`}
|
|
60
|
-
${this.props.isOpen && html` ${this.props.children} `}
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
`;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { NewModal };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.modal {
|
|
2
|
-
display: none;
|
|
3
|
-
z-index: 99;
|
|
4
|
-
top: 0px;
|
|
5
|
-
right: 0px;
|
|
6
|
-
bottom: 0px;
|
|
7
|
-
left: 0px;
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
&.open {
|
|
10
|
-
position: fixed;
|
|
11
|
-
display: block;
|
|
12
|
-
}
|
|
13
|
-
.modalContainer {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
padding: 0;
|
|
18
|
-
.inset {
|
|
19
|
-
position: fixed;
|
|
20
|
-
top: 0px;
|
|
21
|
-
right: 0px;
|
|
22
|
-
bottom: 0px;
|
|
23
|
-
left: 0px;
|
|
24
|
-
opacity: 0.75;
|
|
25
|
-
background-color: rgba(17, 24, 39, 1);
|
|
26
|
-
}
|
|
27
|
-
.span {
|
|
28
|
-
display: inline-block;
|
|
29
|
-
height: 100vh;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
}
|
|
32
|
-
.contentWrap {
|
|
33
|
-
display: none;
|
|
34
|
-
position: relative;
|
|
35
|
-
background: white;
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
text-align: left;
|
|
38
|
-
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
39
|
-
0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
40
|
-
&.open {
|
|
41
|
-
display: inline-block;
|
|
42
|
-
margin-top: 15vh;
|
|
43
|
-
}
|
|
44
|
-
width: auto;
|
|
45
|
-
max-width: 730px;
|
|
46
|
-
// max-width: 40vw;
|
|
47
|
-
margin-top: 2rem;
|
|
48
|
-
margin-bottom: 2rem;
|
|
49
|
-
// vertical-align: middle;
|
|
50
|
-
.content {
|
|
51
|
-
position: relative;
|
|
52
|
-
background: white;
|
|
53
|
-
// padding-bottom: 30px;
|
|
54
|
-
border-radius: 4px;
|
|
55
|
-
}
|
|
56
|
-
.close {
|
|
57
|
-
position: absolute;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
top: 10px;
|
|
60
|
-
right: 10px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.authConnectionFormModal {
|
|
67
|
-
[class^="styles-module_contentWrap_"] {
|
|
68
|
-
max-width: 100% !important;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { Hint } from '@/components/Tooltip';
|
|
3
|
-
import { useRef, useState, useEffect } from 'preact/hooks';
|
|
4
|
-
|
|
5
|
-
interface OverflowTooltipProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
text: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const OverflowTooltip = ({
|
|
12
|
-
className,
|
|
13
|
-
text,
|
|
14
|
-
onClick = () => ({}),
|
|
15
|
-
}: OverflowTooltipProps) => {
|
|
16
|
-
const [hoverStatus, setHover] = useState(false);
|
|
17
|
-
const textElementRef = useRef<HTMLElement>();
|
|
18
|
-
const compareSize = () => {
|
|
19
|
-
if (textElementRef?.current?.scrollWidth === undefined) return;
|
|
20
|
-
const compare =
|
|
21
|
-
textElementRef?.current?.scrollWidth > textElementRef.current.clientWidth;
|
|
22
|
-
setHover(compare);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
// compare once and add resize listener on "componentDidMount"
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
compareSize();
|
|
28
|
-
window.addEventListener('resize', compareSize);
|
|
29
|
-
}, []);
|
|
30
|
-
|
|
31
|
-
// remove resize listener again on "componentWillUnmount"
|
|
32
|
-
useEffect(
|
|
33
|
-
() => () => {
|
|
34
|
-
window.removeEventListener('resize', compareSize);
|
|
35
|
-
},
|
|
36
|
-
[],
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
// Define state and function to update the value
|
|
40
|
-
|
|
41
|
-
return html`<${Hint} dismissOnClick=${false}>
|
|
42
|
-
<div
|
|
43
|
-
ref=${textElementRef}
|
|
44
|
-
style=${{
|
|
45
|
-
whiteSpace: 'nowrap',
|
|
46
|
-
overflow: 'hidden',
|
|
47
|
-
textOverflow: 'ellipsis',
|
|
48
|
-
cursor: hoverStatus ? 'pointer' : '',
|
|
49
|
-
}}
|
|
50
|
-
className=${`${className}`}
|
|
51
|
-
onClick=${`${onClick}`}
|
|
52
|
-
data-hint=${hoverStatus ? text : ''}
|
|
53
|
-
>
|
|
54
|
-
${text}
|
|
55
|
-
</div>
|
|
56
|
-
<//>`;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { OverflowTooltip };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { Modal } from '@/components/Modal';
|
|
3
|
-
import { Button } from '@/components/Button';
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
|
|
6
|
-
interface ConfirmationPopUpProps {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
buttonLabel: string;
|
|
11
|
-
cancelButtonLabel: string;
|
|
12
|
-
handleButtonClick?: () => void;
|
|
13
|
-
handleCancelClick?: () => void;
|
|
14
|
-
icon?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const ConfirmationPopUp = (props: ConfirmationPopUpProps) => {
|
|
18
|
-
const { isOpen, title, description, buttonLabel, handleButtonClick, icon, cancelButtonLabel, handleCancelClick } = props;
|
|
19
|
-
return html`
|
|
20
|
-
<${Modal}
|
|
21
|
-
isOpen=${isOpen}
|
|
22
|
-
onClose=${handleButtonClick}
|
|
23
|
-
className="confirmation-pop-up"
|
|
24
|
-
>
|
|
25
|
-
<div class="${styles.popUpSetup} ${'integry-container__success-pop-up'}">
|
|
26
|
-
<div class="${styles.popUpContentWrap}">
|
|
27
|
-
<div class="${styles.icon}">
|
|
28
|
-
${icon? html`<img class="${styles.iconImg}" src=${icon} alt="icon" />` : ''}
|
|
29
|
-
</div>
|
|
30
|
-
<div class="${styles.rightContentWrap}">
|
|
31
|
-
<div class="${styles.title}">
|
|
32
|
-
${title}
|
|
33
|
-
</div>
|
|
34
|
-
<div class="${styles.description}">
|
|
35
|
-
${description}
|
|
36
|
-
</div>
|
|
37
|
-
<div class="${styles.buttonWrap}">
|
|
38
|
-
<${Button} label="${cancelButtonLabel}"
|
|
39
|
-
className="integry-btn-grey"
|
|
40
|
-
onClick=${handleCancelClick}
|
|
41
|
-
width="123px"
|
|
42
|
-
height="40px"
|
|
43
|
-
/>
|
|
44
|
-
<${Button} label="${buttonLabel}"
|
|
45
|
-
className="integry-primary-btn"
|
|
46
|
-
onClick=${handleButtonClick}
|
|
47
|
-
width="114px"
|
|
48
|
-
height="40px"
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<//>
|
|
55
|
-
`;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export { ConfirmationPopUp }
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.popUpSetup {
|
|
2
|
-
padding: 32px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
padding-bottom: 0px;
|
|
6
|
-
.popUpContentWrap {
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: flex-start;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
gap: 15px;
|
|
11
|
-
}
|
|
12
|
-
.icon {
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: flex-start;
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
.iconImg {
|
|
17
|
-
width: 56px;
|
|
18
|
-
height: 56px;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
object-fit: contain;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.title {
|
|
24
|
-
font-family: inherit;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
font-size: 24px;
|
|
28
|
-
line-height: 30px;
|
|
29
|
-
color: #333333;
|
|
30
|
-
margin-bottom: 16px;
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: flex-start;
|
|
33
|
-
}
|
|
34
|
-
.description {
|
|
35
|
-
font-family: inherit;
|
|
36
|
-
font-style: normal;
|
|
37
|
-
font-weight: 400;
|
|
38
|
-
font-size: 16px;
|
|
39
|
-
line-height: 28px;
|
|
40
|
-
color: #666666;
|
|
41
|
-
margin-bottom: 32px;
|
|
42
|
-
}
|
|
43
|
-
.buttonWrap {
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: flex-start;
|
|
46
|
-
align-items: center;
|
|
47
|
-
gap: 10px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { Modal } from '@/components/Modal';
|
|
3
|
-
import { Button } from '@/components/Button';
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const SuccessIcon = () => html`
|
|
8
|
-
<svg width="88" height="77" viewBox="0 0 88 77" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
-
<g clip-path="url(#clip0_752_45417)">
|
|
10
|
-
<path d="M42.6428 61.132C42.5667 61.132 42.4906 61.132 42.4145 61.132C40.3851 61.132 38.4318 60.3202 36.9859 58.8743L18.8481 40.4574C15.9054 37.4641 15.9308 32.6442 18.9242 29.7016C21.9176 26.759 26.7374 26.7843 29.68 29.7777L42.0594 42.3346L66.9449 13.6947C59.9689 5.55169 49.6189 0.376709 38.0513 0.376709C17.047 0.376709 0 17.4237 0 38.428C0 59.4324 17.047 76.4793 38.0513 76.4793C59.0556 76.4793 76.1026 59.4324 76.1026 38.428C76.1026 34.8258 75.5699 31.3505 74.6313 28.0527L48.1476 58.5191C46.7524 60.1173 44.7737 61.0812 42.6428 61.132Z" fill="#5ED78A"/>
|
|
11
|
-
<path d="M85.3875 4.07996C82.2166 1.34026 77.4221 1.64467 74.657 4.84098L66.9453 13.7196C70.4714 17.8292 73.1096 22.6997 74.6317 28.0776L86.1485 14.8358C88.9136 11.6395 88.5585 6.81965 85.3875 4.07996Z" fill="#FCC700"/>
|
|
12
|
-
<path d="M42.0596 42.335L29.6802 29.7781C26.7376 26.7847 21.9177 26.7594 18.9244 29.702C15.931 32.6446 15.9056 37.4645 18.8483 40.4578L37.0114 58.8747C38.432 60.3206 40.3853 61.1324 42.4401 61.1324C42.5162 61.1324 42.5923 61.1324 42.6684 61.1324C44.7993 61.0563 46.7779 60.1177 48.1731 58.5195L74.6569 28.0531C73.1348 22.7005 70.4966 17.83 66.9705 13.6951L42.0596 42.335Z" fill="white"/>
|
|
13
|
-
</g>
|
|
14
|
-
<defs>
|
|
15
|
-
<clipPath id="clip0_752_45417">
|
|
16
|
-
<rect width="88" height="76.1026" fill="white" transform="translate(0 0.376709)"/>
|
|
17
|
-
</clipPath>
|
|
18
|
-
</defs>
|
|
19
|
-
</svg>`;
|
|
20
|
-
|
|
21
|
-
interface SuccessPopUpProps {
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
buttonLabel: string;
|
|
26
|
-
handleButtonClick?: () => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const SuccessPopUp = (props: SuccessPopUpProps) => {
|
|
30
|
-
const { isOpen, title, description, buttonLabel, handleButtonClick } = props;
|
|
31
|
-
return html`
|
|
32
|
-
<${Modal}
|
|
33
|
-
isOpen=${isOpen}
|
|
34
|
-
onClose=${handleButtonClick}
|
|
35
|
-
className="success-pop-up"
|
|
36
|
-
>
|
|
37
|
-
<div class="${styles.popUpSetup} ${'integry-container__success-pop-up'}">
|
|
38
|
-
<div class="${styles.popUpContentWrap}">
|
|
39
|
-
<div class="${styles.icon}">
|
|
40
|
-
<${SuccessIcon} />
|
|
41
|
-
</div>
|
|
42
|
-
<div class="${styles.title}">
|
|
43
|
-
${title}
|
|
44
|
-
</div>
|
|
45
|
-
<div class="${styles.description}">
|
|
46
|
-
${description}
|
|
47
|
-
</div>
|
|
48
|
-
<div class="${styles.buttonWrap}">
|
|
49
|
-
<${Button} label="${buttonLabel}"
|
|
50
|
-
className="integry-primary-btn"
|
|
51
|
-
onClick=${handleButtonClick}
|
|
52
|
-
width="117px"
|
|
53
|
-
height="44px"
|
|
54
|
-
/>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<//>
|
|
59
|
-
`;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export { SuccessPopUp }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.popUpSetup {
|
|
2
|
-
padding: 40px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
padding-bottom: 10px;
|
|
6
|
-
.icon {
|
|
7
|
-
margin-bottom: 35px;
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
}
|
|
11
|
-
.title {
|
|
12
|
-
font-family: inherit;
|
|
13
|
-
font-style: normal;
|
|
14
|
-
font-weight: 500;
|
|
15
|
-
font-size: 24px;
|
|
16
|
-
line-height: 29px;
|
|
17
|
-
color: #1C1A27;
|
|
18
|
-
margin-bottom: 14px;
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
text-align: center;
|
|
22
|
-
}
|
|
23
|
-
.description {
|
|
24
|
-
font-family: inherit;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 400;
|
|
27
|
-
font-size: 18px;
|
|
28
|
-
line-height: 27px;
|
|
29
|
-
color: #7E7A8F;
|
|
30
|
-
margin-bottom: 33px;
|
|
31
|
-
text-align: center;
|
|
32
|
-
}
|
|
33
|
-
.buttonWrap {
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { Hint } from '@/components/Tooltip';
|
|
3
|
-
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
|
|
6
|
-
export interface RadioProps extends HTMLInputElement {
|
|
7
|
-
description?: string;
|
|
8
|
-
value: string;
|
|
9
|
-
isChecked?: boolean;
|
|
10
|
-
onChange?: (id: string) => void;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
isReadOnly?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Radio component
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export const Radio = (props: RadioProps) => {
|
|
20
|
-
const {
|
|
21
|
-
id,
|
|
22
|
-
description = null,
|
|
23
|
-
value,
|
|
24
|
-
isChecked = false,
|
|
25
|
-
onChange = () => null,
|
|
26
|
-
isDisabled = false,
|
|
27
|
-
isReadOnly = false,
|
|
28
|
-
className = '',
|
|
29
|
-
} = props;
|
|
30
|
-
|
|
31
|
-
const handleRadioChange = (e: MouseEvent) => {
|
|
32
|
-
e.preventDefault();
|
|
33
|
-
if (!isDisabled) {
|
|
34
|
-
if (e.currentTarget instanceof HTMLDivElement) {
|
|
35
|
-
onChange(id);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return html`
|
|
41
|
-
<${Hint} dismissOnClick=${false} position="fixed" deltaY=${15}>
|
|
42
|
-
${isReadOnly && html`<span class=${styles.readonlyHint}></span>`}
|
|
43
|
-
<div class=${`${styles.radio} ${className ? styles[className] : ''}`}>
|
|
44
|
-
<input
|
|
45
|
-
id=${value}
|
|
46
|
-
type="radio"
|
|
47
|
-
name=${id}
|
|
48
|
-
value=${value}
|
|
49
|
-
checked=${isChecked}
|
|
50
|
-
disabled=${isDisabled}
|
|
51
|
-
/>
|
|
52
|
-
<div class=${styles.labelDiv} onclick=${handleRadioChange}>
|
|
53
|
-
<label for=${value} class=${isDisabled ? styles.disabled : ''}>
|
|
54
|
-
<div class=${styles.button}>
|
|
55
|
-
${isChecked
|
|
56
|
-
? html`
|
|
57
|
-
${isDisabled
|
|
58
|
-
? html`
|
|
59
|
-
<svg
|
|
60
|
-
width="15"
|
|
61
|
-
height="15"
|
|
62
|
-
viewBox="0 0 15 15"
|
|
63
|
-
fill="none"
|
|
64
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
-
>
|
|
66
|
-
<path
|
|
67
|
-
d="M14 7.5C14 11.0899 11.0899 14 7.5 14C3.91015 14 1 11.0899 1 7.5C1 3.91015 3.91015 1 7.5 1C11.0899 1 14 3.91015 14 7.5Z"
|
|
68
|
-
fill="white"
|
|
69
|
-
stroke="#C8C8C8"
|
|
70
|
-
stroke-width="2"
|
|
71
|
-
/>
|
|
72
|
-
<path
|
|
73
|
-
fill-rule="evenodd"
|
|
74
|
-
clip-rule="evenodd"
|
|
75
|
-
d="M7.5 11C9.433 11 11 9.433 11 7.5C11 5.567 9.433 4 7.5 4C5.567 4 4 5.567 4 7.5C4 9.433 5.567 11 7.5 11Z"
|
|
76
|
-
fill="#C8C8C8"
|
|
77
|
-
/>
|
|
78
|
-
</svg>
|
|
79
|
-
`
|
|
80
|
-
: html`<svg
|
|
81
|
-
width="15"
|
|
82
|
-
height="15"
|
|
83
|
-
viewBox="0 0 15 15"
|
|
84
|
-
fill="none"
|
|
85
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
-
>
|
|
87
|
-
<path
|
|
88
|
-
d="M14 7.5C14 11.0899 11.0899 14 7.5 14C3.91015 14 1 11.0899 1 7.5C1 3.91015 3.91015 1 7.5 1C11.0899 1 14 3.91015 14 7.5Z"
|
|
89
|
-
fill="white"
|
|
90
|
-
stroke="#4250f0"
|
|
91
|
-
stroke-width="2"
|
|
92
|
-
/>
|
|
93
|
-
<path
|
|
94
|
-
fill-rule="evenodd"
|
|
95
|
-
clip-rule="evenodd"
|
|
96
|
-
d="M7.5 11C9.433 11 11 9.433 11 7.5C11 5.567 9.433 4 7.5 4C5.567 4 4 5.567 4 7.5C4 9.433 5.567 11 7.5 11Z"
|
|
97
|
-
fill="#4250f0"
|
|
98
|
-
/>
|
|
99
|
-
</svg> `}
|
|
100
|
-
`
|
|
101
|
-
: html`
|
|
102
|
-
<svg
|
|
103
|
-
width="15"
|
|
104
|
-
height="15"
|
|
105
|
-
viewBox="0 0 15 15"
|
|
106
|
-
fill="none"
|
|
107
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
-
>
|
|
109
|
-
<path
|
|
110
|
-
d="M14 7.5C14 11.0899 11.0899 14 7.5 14C3.91015 14 1 11.0899 1 7.5C1 3.91015 3.91015 1 7.5 1C11.0899 1 14 3.91015 14 7.5Z"
|
|
111
|
-
fill="white"
|
|
112
|
-
stroke="#E2E0DB"
|
|
113
|
-
stroke-width="2"
|
|
114
|
-
/>
|
|
115
|
-
</svg>
|
|
116
|
-
`}
|
|
117
|
-
</div>
|
|
118
|
-
<div class=${styles.textDiv}>
|
|
119
|
-
<div class=${styles.text}>${value}</div>
|
|
120
|
-
${description &&
|
|
121
|
-
html`<div class=${styles.description}>${description}</div>`}
|
|
122
|
-
</div>
|
|
123
|
-
</label>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<//>
|
|
127
|
-
`;
|
|
128
|
-
};
|