@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
package/jest.config.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
preset: 'ts-jest',
|
|
3
|
+
testEnvironment: 'jsdom',
|
|
4
|
+
testPathIgnorePatterns: ['examples'],
|
|
5
|
+
moduleNameMapper: {
|
|
6
|
+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
|
7
|
+
'<rootDir>/__mocks__/fileMock.js',
|
|
8
|
+
'\\.(css|scss|less)$': 'identity-obj-proxy',
|
|
9
|
+
},
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@integry/sdk",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.4",
|
|
4
4
|
"description": "Integry SDK",
|
|
5
5
|
"main": "dist/umd/index.umd.js",
|
|
6
6
|
"module": "dist/esm/index.csm.js",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"build:dev": "rollup -c",
|
|
14
14
|
"prepublishOnly": "yarn lint && yarn build:prod",
|
|
15
15
|
"size": "yarn build:prod && size-limit",
|
|
16
|
-
"test": "
|
|
16
|
+
"test": "vitest",
|
|
17
|
+
"test:watch": "vitest --watch",
|
|
18
|
+
"test:coverage": "vitest --coverage",
|
|
17
19
|
"storybook": "start-storybook -p 6006",
|
|
18
20
|
"build-storybook": "build-storybook",
|
|
19
21
|
"publish-beta": "npm publish --tag beta"
|
|
@@ -32,6 +34,8 @@
|
|
|
32
34
|
"browserslist": "> 0.5%, not dead, not op_mini all",
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@babel/core": "^7.14.6",
|
|
37
|
+
"@babel/preset-env": "^7.26.7",
|
|
38
|
+
"@babel/preset-react": "^7.26.3",
|
|
35
39
|
"@jsdevtools/version-bump-prompt": "^6.1.0",
|
|
36
40
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
37
41
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -46,11 +50,13 @@
|
|
|
46
50
|
"@storybook/preact": "^6.5.12",
|
|
47
51
|
"@storybook/preset-scss": "^1.0.3",
|
|
48
52
|
"@testing-library/preact": "^2.0.1",
|
|
53
|
+
"@testing-library/user-event": "^14.6.1",
|
|
49
54
|
"@types/jest": "^26.0.23",
|
|
50
55
|
"@types/yaireo__tagify": "^4.18.0",
|
|
51
56
|
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
|
52
57
|
"@typescript-eslint/parser": "^4.20.0",
|
|
53
58
|
"autoprefixer": "^10.2.5",
|
|
59
|
+
"babel-jest": "^29.7.0",
|
|
54
60
|
"babel-loader": "^8.2.2",
|
|
55
61
|
"chalk": "^4.1.0",
|
|
56
62
|
"core-js": "^3.15.1",
|
|
@@ -63,7 +69,6 @@
|
|
|
63
69
|
"eslint-import-resolver-typescript": "^2.4.0",
|
|
64
70
|
"eslint-plugin-import": "^2.22.1",
|
|
65
71
|
"identity-obj-proxy": "^3.0.0",
|
|
66
|
-
"jest": "^27.0.6",
|
|
67
72
|
"postcss": "^8.2.10",
|
|
68
73
|
"postcss-loader": "^4.0.0",
|
|
69
74
|
"postcss-nested": "^5.0.5",
|
|
@@ -83,7 +88,8 @@
|
|
|
83
88
|
"style-loader": "2.0.0",
|
|
84
89
|
"ts-jest": "^27.0.3",
|
|
85
90
|
"tsconfig-paths-webpack-plugin": "^3.5.1",
|
|
86
|
-
"typescript": "^4.4.3"
|
|
91
|
+
"typescript": "^4.4.3",
|
|
92
|
+
"vitest": "^3.0.4"
|
|
87
93
|
},
|
|
88
94
|
"dependencies": {
|
|
89
95
|
"@yaireo/tagify": "^4.21.1",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
|
|
3
|
+
export interface TagButtonProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const TagButton = (props: TagButtonProps) => {
|
|
8
|
+
const { onClick } = props;
|
|
9
|
+
return html` <button onClick=${onClick}>
|
|
10
|
+
<svg
|
|
11
|
+
width="15"
|
|
12
|
+
height="15"
|
|
13
|
+
viewBox="0 0 15 15"
|
|
14
|
+
fill="none"
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
>
|
|
17
|
+
<path
|
|
18
|
+
d="M6.74219 6.74268V7.24268H7.24219V6.74268H6.74219ZM6.74219 7.74268H7.24219V7.24268H6.74219V7.74268ZM7.74219 7.74268V7.24268H7.24219V7.74268H7.74219ZM7.74219 6.74268H7.24219V7.24268H7.74219V6.74268ZM7.24219 1.24268H8.24219C8.24219 0.690391 7.79447 0.242676 7.24219 0.242676V1.24268ZM7.24219 1.24268V0.242676C6.6899 0.242676 6.24219 0.690391 6.24219 1.24268H7.24219ZM7.24219 6.74268V1.24268H6.24219V6.74268H7.24219ZM1.24219 7.24268H6.74219V6.24268H1.24219V7.24268ZM1.24219 7.24268V6.24268C0.689903 6.24268 0.242188 6.69039 0.242188 7.24268H1.24219ZM1.24219 7.24268H0.242188C0.242188 7.79496 0.689903 8.24268 1.24219 8.24268V7.24268ZM6.74219 7.24268H1.24219V8.24268H6.74219V7.24268ZM7.24219 13.2427V7.74268H6.24219V13.2427H7.24219ZM7.24219 13.2427H6.24219C6.24219 13.795 6.6899 14.2427 7.24219 14.2427V13.2427ZM7.24219 13.2427V14.2427C7.79447 14.2427 8.24219 13.795 8.24219 13.2427H7.24219ZM7.24219 7.74268V13.2427H8.24219V7.74268H7.24219ZM13.2422 7.24268H7.74219V8.24268H13.2422V7.24268ZM13.2422 7.24268V8.24268C13.7945 8.24268 14.2422 7.79496 14.2422 7.24268H13.2422ZM13.2422 7.24268H14.2422C14.2422 6.69039 13.7945 6.24268 13.2422 6.24268V7.24268ZM7.74219 7.24268H13.2422V6.24268H7.74219V7.24268ZM7.24219 1.24268V6.74268H8.24219V1.24268H7.24219Z"
|
|
19
|
+
fill="#505050"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
</button>`;
|
|
23
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import { useEffect } from 'preact/hooks';
|
|
3
|
+
import { Hint } from '@/components/Tooltip';
|
|
4
|
+
import { createNewSortInstance } from 'fast-sort';
|
|
5
|
+
import { ErrorMessage } from '../ErrorMessage';
|
|
6
|
+
|
|
7
|
+
import styles from './styles.module.scss';
|
|
8
|
+
|
|
9
|
+
interface SelectProps {
|
|
10
|
+
ariaLabel: string;
|
|
11
|
+
options: { label: string; key: string }[];
|
|
12
|
+
placeholder: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
showUnselectedValue?: boolean;
|
|
15
|
+
unselectedText?: string;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
isRequired?: boolean;
|
|
18
|
+
showStepValidation?: boolean;
|
|
19
|
+
onChange?: (index: number) => void;
|
|
20
|
+
isReadOnly?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Input component
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
const Select = (props: SelectProps) => {
|
|
28
|
+
const {
|
|
29
|
+
placeholder,
|
|
30
|
+
ariaLabel,
|
|
31
|
+
value,
|
|
32
|
+
options = [],
|
|
33
|
+
showUnselectedValue = false,
|
|
34
|
+
unselectedText = 'Select a value',
|
|
35
|
+
isRequired = false,
|
|
36
|
+
showStepValidation = false,
|
|
37
|
+
onChange = () => null,
|
|
38
|
+
isReadOnly = false,
|
|
39
|
+
} = props;
|
|
40
|
+
|
|
41
|
+
const handleInputChange = (e: MouseEvent) => {
|
|
42
|
+
if (!isReadOnly && e.currentTarget instanceof HTMLSelectElement) {
|
|
43
|
+
const { value: newValue } = e.currentTarget;
|
|
44
|
+
const val = options.findIndex((el) => `${el.key}` === `${newValue}`);
|
|
45
|
+
onChange(val);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// if value cannot be found in options, unset the value
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (options.findIndex((el) => el.key === value) === -1) {
|
|
52
|
+
onChange(-1);
|
|
53
|
+
}
|
|
54
|
+
}, []);
|
|
55
|
+
|
|
56
|
+
const getSortedOptions = (): { label: string; key: string }[] => {
|
|
57
|
+
if (options.length > 0) {
|
|
58
|
+
const naturalSort = createNewSortInstance({
|
|
59
|
+
comparer: new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' }).compare,
|
|
60
|
+
});
|
|
61
|
+
const sorted = naturalSort(options).asc((option) => option.label);
|
|
62
|
+
return sorted;
|
|
63
|
+
}
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return html`
|
|
68
|
+
<div class=${styles.selectWrapper}>
|
|
69
|
+
<${Hint} dismissOnClick=${false} position="top" deltaY=${0}>
|
|
70
|
+
${isReadOnly && html `<span class=${styles.readonlyHint} data-hint=${isReadOnly ? `Cannot modify user selection` : ''}></span>`}
|
|
71
|
+
<select
|
|
72
|
+
aria-label=${ariaLabel}
|
|
73
|
+
onchange=${handleInputChange}
|
|
74
|
+
class=${`${value && styles.selectedVal} ${isReadOnly ? styles.readonly: ''}`}
|
|
75
|
+
disabled=${isReadOnly}
|
|
76
|
+
>
|
|
77
|
+
${showUnselectedValue &&
|
|
78
|
+
html` <option value="">${unselectedText}</option> `}
|
|
79
|
+
${value === undefined &&
|
|
80
|
+
html`
|
|
81
|
+
<option value="" disabled selected hidden>${placeholder}</option>
|
|
82
|
+
`}
|
|
83
|
+
${getSortedOptions().map(
|
|
84
|
+
(el) => html`
|
|
85
|
+
<option value=${el.key} selected=${value === el.key}>
|
|
86
|
+
${el.label}
|
|
87
|
+
</option>
|
|
88
|
+
`,
|
|
89
|
+
)}
|
|
90
|
+
</select>
|
|
91
|
+
<svg
|
|
92
|
+
width="12"
|
|
93
|
+
height="8"
|
|
94
|
+
viewBox="0 0 12 8"
|
|
95
|
+
fill="none"
|
|
96
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
97
|
+
>
|
|
98
|
+
<path
|
|
99
|
+
d="M11 1.5L6 6.5L1 1.5"
|
|
100
|
+
stroke="#999999"
|
|
101
|
+
stroke-width="2"
|
|
102
|
+
stroke-linecap="round"
|
|
103
|
+
/>
|
|
104
|
+
</svg>
|
|
105
|
+
<//>
|
|
106
|
+
</div>
|
|
107
|
+
${isRequired &&
|
|
108
|
+
!value &&
|
|
109
|
+
showStepValidation &&
|
|
110
|
+
html`<${ErrorMessage}>Please map this required field<//>`}
|
|
111
|
+
`;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export { Select, SelectProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.selectWrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
fieldset {
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
border: none;
|
|
8
|
+
}
|
|
9
|
+
select {
|
|
10
|
+
width: 100%;
|
|
11
|
+
color: #999999;
|
|
12
|
+
position: relative;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
appearance: none;
|
|
15
|
+
padding: 8.5px 14px;
|
|
16
|
+
padding-right: 28px;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
border: 1px solid #e2e0db;
|
|
19
|
+
outline: none;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
&:focus {
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|
|
26
|
+
&.selectedVal {
|
|
27
|
+
color: #333;
|
|
28
|
+
}
|
|
29
|
+
&.readonly {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
svg {
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 10px;
|
|
36
|
+
top: 13px;
|
|
37
|
+
}
|
|
38
|
+
.readonlyHint {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
z-index: 99;
|
|
42
|
+
position: absolute;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
|
|
4
|
+
import { Hint } from '@/components/Tooltip';
|
|
5
|
+
import { ThreeDotLoader } from '@/components/ThreeDotLoader';
|
|
6
|
+
|
|
7
|
+
import styles from './styles.module.scss';
|
|
8
|
+
|
|
9
|
+
export enum ButtonTypes {
|
|
10
|
+
PRIMARY = 'primary',
|
|
11
|
+
SECONDARY = 'secondary',
|
|
12
|
+
LINK = 'link',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ButtonProps {
|
|
16
|
+
label: string;
|
|
17
|
+
type?: ButtonTypes;
|
|
18
|
+
color?: string;
|
|
19
|
+
width?: string;
|
|
20
|
+
height?: string;
|
|
21
|
+
dismissOnClick?: boolean;
|
|
22
|
+
position?: 'top' | 'bottom';
|
|
23
|
+
tooltip?: string;
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
hasError?: boolean;
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
onClick: (e: MouseEvent) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Button component
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export const Button = (props: ButtonProps) => {
|
|
37
|
+
const {
|
|
38
|
+
label,
|
|
39
|
+
type = ButtonTypes.PRIMARY,
|
|
40
|
+
color = null,
|
|
41
|
+
backgroundColor = null,
|
|
42
|
+
disabled = false,
|
|
43
|
+
hasError = false,
|
|
44
|
+
tooltip,
|
|
45
|
+
width,
|
|
46
|
+
height,
|
|
47
|
+
dismissOnClick = true,
|
|
48
|
+
isLoading = false,
|
|
49
|
+
position = 'bottom',
|
|
50
|
+
onClick = undefined,
|
|
51
|
+
className = '',
|
|
52
|
+
...restOfProps
|
|
53
|
+
} = props;
|
|
54
|
+
|
|
55
|
+
return html`
|
|
56
|
+
<${Hint} dismissOnClick=${dismissOnClick} position=${position}>
|
|
57
|
+
<button
|
|
58
|
+
type="button"
|
|
59
|
+
onclick=${onClick}
|
|
60
|
+
data-hint=${tooltip || null}
|
|
61
|
+
class=${`${cx(
|
|
62
|
+
styles.button,
|
|
63
|
+
{
|
|
64
|
+
[styles.btnPrimary]: type === ButtonTypes.PRIMARY,
|
|
65
|
+
[styles.btnSecondary]: type === ButtonTypes.SECONDARY,
|
|
66
|
+
[styles.buttonLink]: type === ButtonTypes.LINK,
|
|
67
|
+
[styles.disabled]: disabled || hasError,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
'integry-container__button--primary': type === ButtonTypes.PRIMARY,
|
|
71
|
+
'integry-container__button--secondary':
|
|
72
|
+
type === ButtonTypes.SECONDARY,
|
|
73
|
+
'integry-container__button--link': type === ButtonTypes.LINK,
|
|
74
|
+
'integry-container__button--disabled': hasError || disabled,
|
|
75
|
+
},
|
|
76
|
+
)} ${styles[className || '']}`}
|
|
77
|
+
disabled=${disabled}
|
|
78
|
+
style=${{
|
|
79
|
+
backgroundColor:
|
|
80
|
+
type === ButtonTypes.PRIMARY ? backgroundColor : null,
|
|
81
|
+
borderColor: type === ButtonTypes.PRIMARY ? backgroundColor : color,
|
|
82
|
+
color,
|
|
83
|
+
width,
|
|
84
|
+
height,
|
|
85
|
+
}}
|
|
86
|
+
${{ ...restOfProps }}
|
|
87
|
+
>
|
|
88
|
+
${isLoading
|
|
89
|
+
? html`<${ThreeDotLoader} className="${className}" />`
|
|
90
|
+
: label}
|
|
91
|
+
</button>
|
|
92
|
+
<//>
|
|
93
|
+
`;
|
|
94
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
outline: none;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
appearance: none;
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
padding: 0px 15px;
|
|
7
|
+
height: 30px;
|
|
8
|
+
&.btnPrimary {
|
|
9
|
+
border: 1px solid #4250f0;
|
|
10
|
+
background: #4250f0;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
color: #ffffff;
|
|
14
|
+
&:not(.disabled):hover {
|
|
15
|
+
background: var(--theme-accent-blue-2, #3a46d5);
|
|
16
|
+
border: 1px solid var(--theme-accent-blue-2, #3a46d5);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&.btnSecondary {
|
|
20
|
+
border: 1px solid #4250f0;
|
|
21
|
+
background: transparent;
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: #4250f0;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
&:not(.disabled):hover {
|
|
27
|
+
background: #4250f0;
|
|
28
|
+
color: white;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&.buttonLink {
|
|
32
|
+
border: none;
|
|
33
|
+
color: #4250f0;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
background: transparent;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
&:not(.disabled):hover {
|
|
40
|
+
color: #473a64;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.tell-us-more-btn {
|
|
45
|
+
width: 113px;
|
|
46
|
+
height: 36px;
|
|
47
|
+
background: #ffffff;
|
|
48
|
+
border: 1px solid #4250f0;
|
|
49
|
+
// box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08), inset 0px -1px 0px rgba(0, 0, 0, 0.2);
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
font-family: inherit;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
color: #4250f0;
|
|
57
|
+
&:not(.disabled):hover {
|
|
58
|
+
background: #ffffff;
|
|
59
|
+
color: #4250f0;
|
|
60
|
+
}
|
|
61
|
+
padding: 0px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.integry-primary-btn {
|
|
65
|
+
width: auto;
|
|
66
|
+
height: auto;
|
|
67
|
+
background: #4250f0;
|
|
68
|
+
border: 1px solid #4250f0;
|
|
69
|
+
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08),
|
|
70
|
+
inset 0px -1px 0px rgba(0, 0, 0, 0.2);
|
|
71
|
+
border-radius: 5px;
|
|
72
|
+
font-family: inherit;
|
|
73
|
+
font-style: normal;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
line-height: 20px;
|
|
77
|
+
text-align: center;
|
|
78
|
+
color: #ffffff;
|
|
79
|
+
&:not(.disabled):hover {
|
|
80
|
+
background: #2c36ad;
|
|
81
|
+
color: #ffffff;
|
|
82
|
+
}
|
|
83
|
+
padding: 0px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.integry-btn-grey {
|
|
87
|
+
width: auto;
|
|
88
|
+
height: auto;
|
|
89
|
+
background: #f3f3f3;
|
|
90
|
+
border: 1px solid #f3f3f3;
|
|
91
|
+
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08),
|
|
92
|
+
inset 0px -1px 0px rgba(0, 0, 0, 0.2);
|
|
93
|
+
border-radius: 5px;
|
|
94
|
+
font-family: inherit;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
line-height: 20px;
|
|
99
|
+
text-align: center;
|
|
100
|
+
color: #333333;
|
|
101
|
+
&:not(.disabled):hover {
|
|
102
|
+
background: #e6e6e6;
|
|
103
|
+
color: #333333;
|
|
104
|
+
}
|
|
105
|
+
padding: 0px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.integry-secondary-btn {
|
|
109
|
+
width: auto;
|
|
110
|
+
height: auto;
|
|
111
|
+
background: #ffffff;
|
|
112
|
+
border: 1px solid #4250f0;
|
|
113
|
+
// box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08), inset 0px -1px 0px rgba(0, 0, 0, 0.2);
|
|
114
|
+
border-radius: 5px;
|
|
115
|
+
font-family: inherit;
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
line-height: 20px;
|
|
120
|
+
color: #4250f0;
|
|
121
|
+
&:not(.disabled):hover {
|
|
122
|
+
background: #4250f0;
|
|
123
|
+
color: #ffffff;
|
|
124
|
+
}
|
|
125
|
+
padding: 0px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.disabled {
|
|
129
|
+
opacity: 0.5;
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.flowWrapButton {
|
|
134
|
+
border-radius: 5px;
|
|
135
|
+
border: 1px solid var(--theme-accent-blue-1, #4250f0);
|
|
136
|
+
background: var(--theme-accent-blue-1, #4250f0);
|
|
137
|
+
color: #fff;
|
|
138
|
+
font-family: Inter;
|
|
139
|
+
font-size: 13px;
|
|
140
|
+
font-style: normal;
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
line-height: normal;
|
|
143
|
+
padding: 4.5px 10px;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
height: auto;
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
148
|
+
background: var(--theme-accent-blue-2, #3a46d5) !important;
|
|
149
|
+
border: 1px solid var(--theme-accent-blue-2, #3a46d5) !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import { Hint } from '@/components/Tooltip';
|
|
3
|
+
|
|
4
|
+
import styles from './styles.module.scss';
|
|
5
|
+
|
|
6
|
+
export interface CheckboxProps extends Partial<HTMLInputElement> {
|
|
7
|
+
fieldId: string;
|
|
8
|
+
id: string;
|
|
9
|
+
value: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
isChecked?: boolean;
|
|
12
|
+
handleChange?: (id: string, value: boolean) => void;
|
|
13
|
+
isReadOnly?: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Checkbox component
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export const Checkbox = (props: CheckboxProps) => {
|
|
22
|
+
const {
|
|
23
|
+
fieldId,
|
|
24
|
+
id,
|
|
25
|
+
description = null,
|
|
26
|
+
value,
|
|
27
|
+
isChecked = false,
|
|
28
|
+
handleChange = () => null,
|
|
29
|
+
isReadOnly = false,
|
|
30
|
+
title = '',
|
|
31
|
+
} = props;
|
|
32
|
+
|
|
33
|
+
const handleCheckboxChange = (e: MouseEvent) => {
|
|
34
|
+
if (!isReadOnly && e.target instanceof HTMLInputElement) {
|
|
35
|
+
const { name, checked } = e.target;
|
|
36
|
+
handleChange(name, checked);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return html`
|
|
41
|
+
<${Hint} dismissOnClick=${false} position="top" deltaY=${0}>
|
|
42
|
+
<div class=${styles.checkboxWrap}>
|
|
43
|
+
${isReadOnly &&
|
|
44
|
+
html`<span
|
|
45
|
+
class=${styles.readonlyHint}
|
|
46
|
+
data-hint=${isReadOnly ? `Cannot modify user selection` : ''}
|
|
47
|
+
></span>`}
|
|
48
|
+
<div class=${styles.checkbox}>
|
|
49
|
+
<label for=${fieldId + id}>
|
|
50
|
+
<input
|
|
51
|
+
id=${fieldId + id}
|
|
52
|
+
type="checkbox"
|
|
53
|
+
name=${id}
|
|
54
|
+
value=${value}
|
|
55
|
+
checked=${isChecked}
|
|
56
|
+
onclick=${handleCheckboxChange}
|
|
57
|
+
readonly=${isReadOnly}
|
|
58
|
+
/>
|
|
59
|
+
<div class=${styles.button}>
|
|
60
|
+
${isChecked
|
|
61
|
+
? html`
|
|
62
|
+
<svg
|
|
63
|
+
width="20"
|
|
64
|
+
height="20"
|
|
65
|
+
viewBox="0 0 20 20"
|
|
66
|
+
fill="none"
|
|
67
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
68
|
+
>
|
|
69
|
+
<path
|
|
70
|
+
d="M7.86364 15.5L10 13.4923L17.5 6.49357L15.3485 4.5L7.86364 11.4987L4.63636 8.50129L2.5 10.4949L5.71212 13.4923L7.86364 15.5Z"
|
|
71
|
+
fill="#4250f0"
|
|
72
|
+
/>
|
|
73
|
+
<path
|
|
74
|
+
d="M0 0V-2H-2V0H0ZM20 0H22V-2H20V0ZM20 20V22H22V20H20ZM0 20H-2V22H0V20ZM0 2H20V-2H0V2ZM18 0V20H22V0H18ZM20 18H0V22H20V18ZM2 20V0H-2V20H2Z"
|
|
75
|
+
fill="#4250f0"
|
|
76
|
+
/>
|
|
77
|
+
</svg>
|
|
78
|
+
`
|
|
79
|
+
: html`
|
|
80
|
+
<svg
|
|
81
|
+
width="20"
|
|
82
|
+
height="20"
|
|
83
|
+
viewBox="0 0 20 20"
|
|
84
|
+
fill="none"
|
|
85
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
+
>
|
|
87
|
+
<path
|
|
88
|
+
d="M0 0V-2H-2V0H0ZM20 0H22V-2H20V0ZM20 20V22H22V20H20ZM0 20H-2V22H0V20ZM0 2H20V-2H0V2ZM18 0V20H22V0H18ZM20 18H0V22H20V18ZM2 20V0H-2V20H2Z"
|
|
89
|
+
fill="#4250f0"
|
|
90
|
+
/>
|
|
91
|
+
</svg>
|
|
92
|
+
`}
|
|
93
|
+
</div>
|
|
94
|
+
<div>
|
|
95
|
+
<div class=${styles.text}>${title || value}</div>
|
|
96
|
+
${description &&
|
|
97
|
+
html`<div class=${styles.description}>${description}</div>`}
|
|
98
|
+
</div>
|
|
99
|
+
</label>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<//>
|
|
103
|
+
`;
|
|
104
|
+
};
|