@integry/sdk 4.5.2 → 4.5.4
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/.vscode/launch.json +2 -2
- package/THIRD_PARTY_LICENSES +0 -37
- package/dist/esm/index.csm.d.ts +12 -2
- package/dist/esm/index.csm.js +7262 -1
- package/dist/umd/index.umd.d.ts +9 -1
- package/dist/umd/index.umd.js +7262 -1
- package/jest.config.cjs +10 -0
- package/package.json +10 -4
- package/src/components/AddTagButton/index.ts +23 -0
- package/src/components/BasicSelect/index.ts +114 -0
- package/src/components/BasicSelect/styles.module.scss +44 -0
- package/src/components/Button/index.ts +94 -0
- package/src/components/Button/styles.module.scss +152 -0
- package/src/components/CheckboxGroup/Checkbox.ts +104 -0
- package/src/components/CheckboxGroup/index.ts +190 -0
- package/src/components/CheckboxGroup/styles.module.scss +63 -0
- package/src/components/CollapsedMenu/index.ts +101 -0
- package/src/components/CollapsedMenu/styles.module.scss +46 -0
- package/src/components/ConfigureFieldWrapper/index.ts +85 -0
- package/src/components/ConfigureFieldWrapper/styles.module.scss +57 -0
- package/src/components/EditableText/index.ts +121 -0
- package/src/components/EditableText/styles.module.scss +38 -0
- package/src/components/EditableTextArea/index.ts +143 -0
- package/src/components/EditableTextArea/styles.module.scss +91 -0
- package/src/components/ErrorMessage/index.ts +16 -0
- package/src/components/ErrorMessage/styles.module.scss +19 -0
- package/src/components/ErrorPage/index.ts +42 -0
- package/src/components/ErrorPage/styles.module.scss +26 -0
- package/src/components/Footer/index.ts +41 -0
- package/src/components/Footer/styles.module.scss +40 -0
- package/src/components/HTMLContent/index.tsx +275 -0
- package/src/components/HTMLContent/styles.module.scss +3 -0
- package/src/components/InfoBox/index.ts +48 -0
- package/src/components/InfoBox/styles.module.scss +21 -0
- package/src/components/Input/BaseInput/index.ts +170 -0
- package/src/components/Input/BaseInput/styles.module.scss +94 -0
- package/src/components/Input/DateInput/index.ts +103 -0
- package/src/components/Input/DateInput/styles.module.scss +50 -0
- package/src/components/Input/Input/index.ts +206 -0
- package/src/components/Input/Input/styles.module.scss +14 -0
- package/src/components/Input/PasswordInput/index.ts +164 -0
- package/src/components/Input/PasswordInput/styles.module.scss +37 -0
- package/src/components/Input/index.ts +7 -0
- package/src/components/Label/index.ts +61 -0
- package/src/components/Label/styles.module.scss +41 -0
- package/src/components/LargeLoader/index.ts +25 -0
- package/src/components/LargeLoader/styles.module.scss +16 -0
- package/src/components/Listbox/ListBoxItem.ts +57 -0
- package/src/components/Listbox/index.ts +479 -0
- package/src/components/Listbox/styles.module.scss +197 -0
- package/src/components/Loader/index.ts +25 -0
- package/src/components/Loader/styles.module.scss +16 -0
- package/src/components/MediaGallery/MediaGalleryModal.ts +82 -0
- package/src/components/MediaGallery/MediaSlider.ts +76 -0
- package/src/components/MediaGallery/index.ts +92 -0
- package/src/components/MediaGallery/styles.module.scss +156 -0
- package/src/components/MediaUpload/index.ts +233 -0
- package/src/components/MediaUpload/styles.module.scss +118 -0
- package/src/components/Modal/index.ts +87 -0
- package/src/components/Modal/styles.module.scss +441 -0
- package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +58 -0
- package/src/components/MultipurposeField/Dropdown/index.tsx +981 -0
- package/src/components/MultipurposeField/Dropdown/styles.module.scss +208 -0
- package/src/components/MultipurposeField/TagMenu/index.ts +384 -0
- package/src/components/MultipurposeField/TagMenu/styles.module.scss +136 -0
- package/src/components/MultipurposeField/TagOptions/index.tsx +83 -0
- package/src/components/MultipurposeField/TagOptions/styles.module.scss +95 -0
- package/src/components/MultipurposeField/index.tsx +687 -0
- package/src/components/MultipurposeField/styles.module.scss +56 -0
- package/src/components/NewModal/index.ts +69 -0
- package/src/components/NewModal/styles.module.scss +70 -0
- package/src/components/OverflowTooltip/index.tsx +59 -0
- package/src/components/PopUp/ConfirmationPopUp/index.ts +58 -0
- package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +49 -0
- package/src/components/PopUp/SuccessPopUp/index.ts +62 -0
- package/src/components/PopUp/SuccessPopUp/styles.module.scss +38 -0
- package/src/components/RadioGroup/Radio.ts +129 -0
- package/src/components/RadioGroup/index.ts +169 -0
- package/src/components/RadioGroup/styles.module.scss +81 -0
- package/src/components/Search/index.ts +69 -0
- package/src/components/Search/styles.module.scss +149 -0
- package/src/components/TabBar/Tab.ts +33 -0
- package/src/components/TabBar/index.ts +64 -0
- package/src/components/TabBar/styles.module.scss +43 -0
- package/src/components/Tag/index.ts +29 -0
- package/src/components/Tag/styles.module.scss +57 -0
- package/src/components/TextArea/index.ts +172 -0
- package/src/components/TextArea/styles.module.scss +70 -0
- package/src/components/TextContent/index.tsx +128 -0
- package/src/components/TextContent/styles.module.scss +6 -0
- package/src/components/ThreeDotLoader/index.ts +39 -0
- package/src/components/ThreeDotLoader/styles.module.scss +41 -0
- package/src/components/TimeInput/index.ts +129 -0
- package/src/components/TimeInput/styles.module.scss +16 -0
- package/src/components/Toggle/index.ts +34 -0
- package/src/components/Toggle/styles.module.scss +56 -0
- package/src/components/Toggle-v2/index.ts +40 -0
- package/src/components/Toggle-v2/styles.module.scss +86 -0
- package/src/components/Tooltip/index.ts +271 -0
- package/src/components/Tooltip/styles.module.scss +105 -0
- package/src/components/form/ObjectField/index.ts +364 -0
- package/src/components/form/ObjectField/styles.module.scss +103 -0
- package/src/components/form/index.ts +3 -0
- package/src/contexts/AppContext.ts +12 -0
- package/src/declaration.d.ts +7 -0
- package/src/extensions/HMAC.ts +25 -0
- package/src/extensions/IntegryAPIError.ts +19 -0
- package/src/features/common/AccountDropdown/index.ts +291 -0
- package/src/features/common/AccountDropdown/styles.module.scss +19 -0
- package/src/features/common/ActionForm/index.ts +1818 -0
- package/src/features/common/ActionForm/styles.module.scss +23 -0
- package/src/features/common/AppCard/index.ts +207 -0
- package/src/features/common/AppCard/styles.module.scss +117 -0
- package/src/features/common/AppCardCompact/index.ts +189 -0
- package/src/features/common/AppCardCompact/styles.module.scss +141 -0
- package/src/features/common/AuthSelector/index.ts +537 -0
- package/src/features/common/AuthSelector/styles.module.scss +161 -0
- package/src/features/common/AuthSelectorCompact/index.ts +706 -0
- package/src/features/common/AuthSelectorCompact/styles.module.scss +219 -0
- package/src/features/common/AuthSelectorDropdown/index.ts +704 -0
- package/src/features/common/AuthSelectorDropdown/styles.module.scss +361 -0
- package/src/features/common/DynamicField/index.ts +229 -0
- package/src/features/common/DynamicField/styles.module.scss +67 -0
- package/src/features/common/DynamicTypedField/index.ts +217 -0
- package/src/features/common/DynamicTypedField/styles.module.scss +67 -0
- package/src/features/common/FunctionForm/index.ts +862 -0
- package/src/features/common/FunctionForm/styles.module.scss +163 -0
- package/src/features/common/MappingUI/index.ts +649 -0
- package/src/features/common/MappingUI/styles.module.scss +121 -0
- package/src/features/common/MarketplaceAppCard/index.ts +279 -0
- package/src/features/common/MarketplaceAppCard/styles.module.scss +231 -0
- package/src/features/common/MarketplaceAppCardCompact/index.ts +283 -0
- package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +255 -0
- package/src/features/common/NewMappingUI/index.ts +515 -0
- package/src/features/common/NewMappingUI/styles.module.scss +113 -0
- package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +67 -0
- package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +23 -0
- package/src/features/common/RequestAppWidget/index.ts +48 -0
- package/src/features/common/RequestAppWidget/request-app-form.ts +89 -0
- package/src/features/common/RequestAppWidget/styles.module.scss +43 -0
- package/src/features/common/SectionField/index.ts +272 -0
- package/src/features/common/SectionField/styles.module.scss +67 -0
- package/src/features/common/Step/index.ts +827 -0
- package/src/features/common/Step/styles.module.scss +12 -0
- package/src/features/common/StepNavigation/CollapsedSteps.ts +125 -0
- package/src/features/common/StepNavigation/NavItem.ts +111 -0
- package/src/features/common/StepNavigation/index.ts +257 -0
- package/src/features/common/StepNavigation/styles.module.scss +117 -0
- package/src/features/common/Steps/index.ts +1139 -0
- package/src/features/common/Steps/styles.module.scss +314 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +383 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +367 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +194 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +389 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +577 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +83 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +212 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +45 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +1081 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +452 -0
- package/src/features/containers/AppFlowContainer/Authentication/index.ts +610 -0
- package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +468 -0
- package/src/features/containers/AppFlowContainer/index.ts +114 -0
- package/src/features/containers/AppPageContainer/AppPage/index.tsx +262 -0
- package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +120 -0
- package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +165 -0
- package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +81 -0
- package/src/features/containers/AppPageContainer/index.tsx +93 -0
- package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
- package/src/features/containers/AppsForFlows/index.ts +161 -0
- package/src/features/containers/AppsForFlows/styles.module.scss +280 -0
- package/src/features/containers/AppsForFlowsCompact/index.ts +161 -0
- package/src/features/containers/AppsForFlowsCompact/styles.module.scss +279 -0
- package/src/features/containers/AuthSetupContainer/AppSelection.ts +73 -0
- package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +67 -0
- package/src/features/containers/AuthSetupContainer/Footer.ts +32 -0
- package/src/features/containers/AuthSetupContainer/Header.ts +39 -0
- package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +27 -0
- package/src/features/containers/AuthSetupContainer/index.ts +349 -0
- package/src/features/containers/AuthSetupContainer/styles.module.scss +229 -0
- package/src/features/containers/FlowSetupContainer/index.ts +390 -0
- package/src/features/containers/FlowSetupContainer/styles.module.scss +18 -0
- package/src/features/containers/MarkeplaceApps/index.ts +574 -0
- package/src/features/containers/MarkeplaceApps/styles.module.scss +559 -0
- package/src/features/containers/MarketplaceAppsCompact/index.ts +576 -0
- package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +546 -0
- package/src/features/containers/MarketplaceAppsContainer/index.ts +83 -0
- package/src/features/containers/MarketplaceContainer/AppCard/index.ts +91 -0
- package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +66 -0
- package/src/features/containers/MarketplaceContainer/AppListing/index.ts +34 -0
- package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +10 -0
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +132 -0
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +117 -0
- package/src/features/containers/MarketplaceContainer/index.ts +242 -0
- package/src/features/containers/MarketplaceContainer/styles.module.scss +84 -0
- package/src/features/containers/SDKContainer/index.ts +817 -0
- package/src/features/containers/SDKContainer/styles.module.scss +266 -0
- package/src/features/containers/SDKDebugContainer/index.ts +137 -0
- package/src/features/containers/SDKDebugContainer/styles.module.scss +37 -0
- package/src/features/containers/SDKFailedContainer/index.ts +117 -0
- package/src/features/containers/SDKFailedContainer/styles.module.scss +57 -0
- package/src/features/integrations/IntegrationRow/Icons.ts +77 -0
- package/src/features/integrations/IntegrationRow/index.ts +129 -0
- package/src/features/integrations/IntegrationRow/styles.module.scss +62 -0
- package/src/features/integrations/IntegrationsHeader/index.ts +34 -0
- package/src/features/integrations/IntegrationsHeader/styles.module.scss +47 -0
- package/src/features/integrations/IntegrationsList/index.ts +252 -0
- package/src/features/integrations/IntegrationsList/styles.module.scss +67 -0
- package/src/features/templates/Template/index.ts +295 -0
- package/src/features/templates/Template/styles.module.scss +226 -0
- package/src/features/templates/TemplatesView/index.ts +368 -0
- package/src/features/templates/TemplatesView/styles.module.scss +71 -0
- package/src/features/templates/TemplatesViewCompact/index.ts +364 -0
- package/src/features/templates/TemplatesViewCompact/styles.module.scss +141 -0
- package/src/hooks/useAutosizeTextArea.ts +22 -0
- package/src/hooks/useCustomRef.ts +13 -0
- package/src/hooks/useDebounce.ts +17 -0
- package/src/hooks/useElementResize.ts +40 -0
- package/src/hooks/useEventListener.ts +44 -0
- package/src/hooks/useHover.ts +40 -0
- package/src/hooks/useOnClickOutside.ts +32 -0
- package/src/index.ts +2051 -0
- package/src/index.umd.ts +13 -0
- package/src/interfaces/index.ts +924 -0
- package/src/modules/api/index.ts +1315 -0
- package/src/modules/api/responseHandler.ts +38 -0
- package/src/modules/event-emitter/index.ts +72 -0
- package/src/modules/event-emitter/runners/abstract.ts +21 -0
- package/src/modules/event-emitter/runners/default.ts +11 -0
- package/src/modules/event-emitter/runners/ntimes.ts +28 -0
- package/src/modules/event-emitter/types.ts +34 -0
- package/src/store/actionFunctions.ts +1573 -0
- package/src/store/index.ts +17 -0
- package/src/store/initialState.ts +58 -0
- package/src/stories/Button.stories.tsx +83 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +41 -0
- package/src/stories/Checkbox/CheckboxGroup.stories.tsx +46 -0
- package/src/stories/EditableText.stories.tsx +35 -0
- package/src/stories/Input/BaseInput.stories.tsx +48 -0
- package/src/stories/Input/DateInput.stories.tsx +28 -0
- package/src/stories/Input/Input.stories.tsx +24 -0
- package/src/stories/Input/PasswordInput.stories.tsx +26 -0
- package/src/stories/Introduction.stories.mdx +211 -0
- package/src/stories/Label.stories.tsx +27 -0
- package/src/stories/Listbox.stories.tsx +122 -0
- package/src/stories/Radio/Radio.stories.tsx +39 -0
- package/src/stories/Radio/RadioGroup.stories.tsx +46 -0
- package/src/stories/StepNavigation/NavItem.stories.tsx +31 -0
- package/src/stories/StepNavigation/StepNavigation.stories.tsx +50 -0
- package/src/stories/TabBar.stories.tsx +31 -0
- package/src/stories/TextArea.stories.tsx +23 -0
- package/src/stories/TimeInput.stories.tsx +37 -0
- package/src/stories/Toggle.stories.tsx +33 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/types/index.ts +293 -0
- package/src/types/store.ts +366 -0
- package/src/types/utils.ts +19 -0
- package/src/utils/ActivityOutputUtils.ts +163 -0
- package/src/utils/common.ts +20 -0
- package/src/utils/copyToClipboard.ts +24 -0
- package/src/utils/datetime.ts +101 -0
- package/src/utils/getUrlParam.ts +11 -0
- package/src/utils/isAuthMessage.ts +16 -0
- package/src/utils/isBrowser.ts +1 -0
- package/src/utils/jsonEncodeDecode.ts +15 -0
- package/src/utils/objectUtils.ts +116 -0
- package/src/utils/popup.ts +30 -0
- package/src/utils/searchJson.ts +51 -0
- package/src/utils/stepUtils.ts +45 -0
- package/src/utils/truncate.ts +6 -0
- package/test/setup.ts +1 -0
- package/vitest.config.ts +10 -0
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
tags {
|
|
33
|
+
width: 100%;
|
|
34
|
+
max-width: 682px;
|
|
35
|
+
font-family: 'Inter';
|
|
36
|
+
height: 40px;
|
|
37
|
+
padding-top: 5px;
|
|
38
|
+
overflow: auto;
|
|
39
|
+
span {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
}
|
|
42
|
+
[class^='tagify__input'] {
|
|
43
|
+
padding: 5px 10px;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[class^='tagify__tag'] {
|
|
48
|
+
z-index: 0;
|
|
49
|
+
}
|
|
50
|
+
--tag-bg: #bfdaff;
|
|
51
|
+
--tag-hover: #bfdaff;
|
|
52
|
+
--tag-remove-bg: #8cbdff;
|
|
53
|
+
--tag-inset-shadow-size: 1.2em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 };
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 };
|
|
@@ -0,0 +1,58 @@
|
|
|
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 }
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 }
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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} data-hint=${isReadOnly ? `Cannot modify user selection` : ''}></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
|
+
`
|
|
102
|
+
: html`
|
|
103
|
+
<svg
|
|
104
|
+
width="15"
|
|
105
|
+
height="15"
|
|
106
|
+
viewBox="0 0 15 15"
|
|
107
|
+
fill="none"
|
|
108
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
+
>
|
|
110
|
+
<path
|
|
111
|
+
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"
|
|
112
|
+
fill="white"
|
|
113
|
+
stroke="#E2E0DB"
|
|
114
|
+
stroke-width="2"
|
|
115
|
+
/>
|
|
116
|
+
</svg>
|
|
117
|
+
`}
|
|
118
|
+
</div>
|
|
119
|
+
<div class=${styles.textDiv}>
|
|
120
|
+
<div class=${styles.text}>${value}</div>
|
|
121
|
+
${description &&
|
|
122
|
+
html`<div class=${styles.description}>${description}</div>`}
|
|
123
|
+
</div>
|
|
124
|
+
</label>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<//>
|
|
128
|
+
`;
|
|
129
|
+
};
|