@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.
Files changed (267) hide show
  1. package/dist/esm/index.csm.js +1 -1
  2. package/dist/umd/index.umd.js +1 -1
  3. package/package.json +6 -1
  4. package/.eslintignore +0 -1
  5. package/.vscode/launch.json +0 -17
  6. package/CHANGELOG_INTERNAL.md +0 -134
  7. package/README_INTERNAL.md +0 -176
  8. package/THIRD_PARTY_LICENSES +0 -525
  9. package/generateTests.js +0 -80
  10. package/jest.config.cjs +0 -10
  11. package/src/components/AddTagButton/index.ts +0 -23
  12. package/src/components/BasicSelect/index.ts +0 -123
  13. package/src/components/BasicSelect/styles.module.scss +0 -44
  14. package/src/components/Button/index.ts +0 -97
  15. package/src/components/Button/styles.module.scss +0 -152
  16. package/src/components/CheckboxGroup/Checkbox.ts +0 -104
  17. package/src/components/CheckboxGroup/index.ts +0 -190
  18. package/src/components/CheckboxGroup/styles.module.scss +0 -63
  19. package/src/components/CollapsedMenu/index.ts +0 -104
  20. package/src/components/CollapsedMenu/styles.module.scss +0 -46
  21. package/src/components/ConfigureFieldWrapper/index.ts +0 -85
  22. package/src/components/ConfigureFieldWrapper/styles.module.scss +0 -57
  23. package/src/components/EditableText/index.ts +0 -121
  24. package/src/components/EditableText/styles.module.scss +0 -38
  25. package/src/components/EditableTextArea/index.ts +0 -143
  26. package/src/components/EditableTextArea/styles.module.scss +0 -91
  27. package/src/components/ErrorMessage/index.ts +0 -16
  28. package/src/components/ErrorMessage/styles.module.scss +0 -19
  29. package/src/components/ErrorPage/index.ts +0 -42
  30. package/src/components/ErrorPage/styles.module.scss +0 -26
  31. package/src/components/Footer/index.ts +0 -41
  32. package/src/components/Footer/styles.module.scss +0 -40
  33. package/src/components/HTMLContent/index.tsx +0 -205
  34. package/src/components/HTMLContent/styles.module.scss +0 -3
  35. package/src/components/InfoBox/index.ts +0 -48
  36. package/src/components/InfoBox/styles.module.scss +0 -21
  37. package/src/components/Input/BaseInput/index.ts +0 -170
  38. package/src/components/Input/BaseInput/styles.module.scss +0 -95
  39. package/src/components/Input/DateInput/index.ts +0 -103
  40. package/src/components/Input/DateInput/styles.module.scss +0 -50
  41. package/src/components/Input/Input/index.ts +0 -225
  42. package/src/components/Input/Input/styles.module.scss +0 -16
  43. package/src/components/Input/PasswordInput/index.ts +0 -164
  44. package/src/components/Input/PasswordInput/styles.module.scss +0 -37
  45. package/src/components/Input/index.ts +0 -7
  46. package/src/components/Label/index.ts +0 -61
  47. package/src/components/Label/styles.module.scss +0 -41
  48. package/src/components/LargeLoader/index.ts +0 -25
  49. package/src/components/LargeLoader/styles.module.scss +0 -16
  50. package/src/components/Listbox/ListBoxItem.ts +0 -57
  51. package/src/components/Listbox/index.ts +0 -488
  52. package/src/components/Listbox/styles.module.scss +0 -197
  53. package/src/components/Loader/index.ts +0 -25
  54. package/src/components/Loader/styles.module.scss +0 -16
  55. package/src/components/MediaGallery/MediaGalleryModal.ts +0 -82
  56. package/src/components/MediaGallery/MediaSlider.ts +0 -76
  57. package/src/components/MediaGallery/index.ts +0 -92
  58. package/src/components/MediaGallery/styles.module.scss +0 -156
  59. package/src/components/MediaUpload/index.ts +0 -233
  60. package/src/components/MediaUpload/styles.module.scss +0 -118
  61. package/src/components/Modal/index.ts +0 -87
  62. package/src/components/Modal/styles.module.scss +0 -441
  63. package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +0 -59
  64. package/src/components/MultipurposeField/Dropdown/index.tsx +0 -1202
  65. package/src/components/MultipurposeField/Dropdown/styles.module.scss +0 -215
  66. package/src/components/MultipurposeField/TagMenu/index.ts +0 -536
  67. package/src/components/MultipurposeField/TagMenu/styles.module.scss +0 -175
  68. package/src/components/MultipurposeField/TagOptions/index.tsx +0 -83
  69. package/src/components/MultipurposeField/TagOptions/styles.module.scss +0 -95
  70. package/src/components/MultipurposeField/index.tsx +0 -944
  71. package/src/components/MultipurposeField/styles.module.scss +0 -77
  72. package/src/components/NewModal/index.ts +0 -69
  73. package/src/components/NewModal/styles.module.scss +0 -70
  74. package/src/components/OverflowTooltip/index.tsx +0 -59
  75. package/src/components/PopUp/ConfirmationPopUp/index.ts +0 -58
  76. package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +0 -49
  77. package/src/components/PopUp/SuccessPopUp/index.ts +0 -62
  78. package/src/components/PopUp/SuccessPopUp/styles.module.scss +0 -38
  79. package/src/components/RadioGroup/Radio.ts +0 -128
  80. package/src/components/RadioGroup/index.ts +0 -169
  81. package/src/components/RadioGroup/styles.module.scss +0 -81
  82. package/src/components/Search/index.ts +0 -69
  83. package/src/components/Search/styles.module.scss +0 -149
  84. package/src/components/TabBar/Tab.ts +0 -33
  85. package/src/components/TabBar/index.ts +0 -64
  86. package/src/components/TabBar/styles.module.scss +0 -43
  87. package/src/components/Tag/index.ts +0 -29
  88. package/src/components/Tag/styles.module.scss +0 -57
  89. package/src/components/TagsMenu/index.ts +0 -1697
  90. package/src/components/TagsMenu/styles.module.scss +0 -350
  91. package/src/components/TestComponent/index.ts +0 -71
  92. package/src/components/TestComponent/styles.module.scss +0 -152
  93. package/src/components/TextArea/index.ts +0 -172
  94. package/src/components/TextArea/styles.module.scss +0 -72
  95. package/src/components/TextContent/index.tsx +0 -128
  96. package/src/components/TextContent/styles.module.scss +0 -6
  97. package/src/components/ThreeDotLoader/index.ts +0 -39
  98. package/src/components/ThreeDotLoader/styles.module.scss +0 -41
  99. package/src/components/TimeInput/index.ts +0 -129
  100. package/src/components/TimeInput/styles.module.scss +0 -16
  101. package/src/components/Toggle/index.ts +0 -34
  102. package/src/components/Toggle/styles.module.scss +0 -56
  103. package/src/components/Toggle-v2/index.ts +0 -40
  104. package/src/components/Toggle-v2/styles.module.scss +0 -86
  105. package/src/components/Tooltip/index.ts +0 -271
  106. package/src/components/Tooltip/styles.module.scss +0 -105
  107. package/src/components/form/FunctionField/index.ts +0 -816
  108. package/src/components/form/FunctionField/styles.module.scss +0 -478
  109. package/src/components/form/ObjectField/__snapshots__/index.ts.test.tsx.snap +0 -3
  110. package/src/components/form/ObjectField/index.ts +0 -593
  111. package/src/components/form/ObjectField/index.ts.test.tsx +0 -213
  112. package/src/components/form/ObjectField/styles.module.scss +0 -103
  113. package/src/components/form/index.ts +0 -4
  114. package/src/contexts/AppContext.ts +0 -12
  115. package/src/declaration.d.ts +0 -7
  116. package/src/extensions/HMAC.ts +0 -25
  117. package/src/extensions/IntegryAPIError.ts +0 -19
  118. package/src/features/common/AccountDropdown/index.ts +0 -291
  119. package/src/features/common/AccountDropdown/styles.module.scss +0 -19
  120. package/src/features/common/ActionForm/index.ts +0 -2602
  121. package/src/features/common/ActionForm/styles.module.scss +0 -35
  122. package/src/features/common/AppCard/index.ts +0 -207
  123. package/src/features/common/AppCard/styles.module.scss +0 -117
  124. package/src/features/common/AppCardCompact/index.ts +0 -189
  125. package/src/features/common/AppCardCompact/styles.module.scss +0 -141
  126. package/src/features/common/AuthSelector/index.ts +0 -537
  127. package/src/features/common/AuthSelector/styles.module.scss +0 -161
  128. package/src/features/common/AuthSelectorCompact/index.ts +0 -706
  129. package/src/features/common/AuthSelectorCompact/styles.module.scss +0 -219
  130. package/src/features/common/AuthSelectorDropdown/index.ts +0 -704
  131. package/src/features/common/AuthSelectorDropdown/styles.module.scss +0 -361
  132. package/src/features/common/AuthSelectorV2/index.ts +0 -336
  133. package/src/features/common/AuthSelectorV2/styles.module.scss +0 -235
  134. package/src/features/common/DynamicField/index.ts +0 -402
  135. package/src/features/common/DynamicField/styles.module.scss +0 -266
  136. package/src/features/common/DynamicTypedField/index.ts +0 -504
  137. package/src/features/common/DynamicTypedField/styles.module.scss +0 -135
  138. package/src/features/common/FunctionForm/index.ts +0 -1095
  139. package/src/features/common/FunctionForm/styles.module.scss +0 -225
  140. package/src/features/common/MappingUI/index.ts +0 -649
  141. package/src/features/common/MappingUI/styles.module.scss +0 -121
  142. package/src/features/common/MarketplaceAppCard/index.ts +0 -279
  143. package/src/features/common/MarketplaceAppCard/styles.module.scss +0 -231
  144. package/src/features/common/MarketplaceAppCardCompact/index.ts +0 -283
  145. package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +0 -255
  146. package/src/features/common/NewMappingUI/index.ts +0 -515
  147. package/src/features/common/NewMappingUI/styles.module.scss +0 -113
  148. package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +0 -67
  149. package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +0 -23
  150. package/src/features/common/RequestAppWidget/index.ts +0 -48
  151. package/src/features/common/RequestAppWidget/request-app-form.ts +0 -89
  152. package/src/features/common/RequestAppWidget/styles.module.scss +0 -43
  153. package/src/features/common/SectionField/index.ts +0 -272
  154. package/src/features/common/SectionField/styles.module.scss +0 -67
  155. package/src/features/common/Step/index.ts +0 -827
  156. package/src/features/common/Step/styles.module.scss +0 -12
  157. package/src/features/common/StepNavigation/CollapsedSteps.ts +0 -131
  158. package/src/features/common/StepNavigation/NavItem.ts +0 -111
  159. package/src/features/common/StepNavigation/index.ts +0 -261
  160. package/src/features/common/StepNavigation/styles.module.scss +0 -117
  161. package/src/features/common/Steps/index.ts +0 -1140
  162. package/src/features/common/Steps/styles.module.scss +0 -314
  163. package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +0 -404
  164. package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +0 -367
  165. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.test.tsx +0 -58
  166. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +0 -208
  167. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.test.tsx +0 -49
  168. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +0 -421
  169. package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +0 -577
  170. package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +0 -83
  171. package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +0 -233
  172. package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +0 -45
  173. package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +0 -1085
  174. package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +0 -465
  175. package/src/features/containers/AppFlowContainer/Authentication/index.ts +0 -610
  176. package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +0 -468
  177. package/src/features/containers/AppFlowContainer/index.ts +0 -114
  178. package/src/features/containers/AppPageContainer/AppPage/index.tsx +0 -262
  179. package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +0 -120
  180. package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +0 -165
  181. package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +0 -81
  182. package/src/features/containers/AppPageContainer/index.tsx +0 -93
  183. package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
  184. package/src/features/containers/AppsForFlows/index.ts +0 -161
  185. package/src/features/containers/AppsForFlows/styles.module.scss +0 -280
  186. package/src/features/containers/AppsForFlowsCompact/index.ts +0 -161
  187. package/src/features/containers/AppsForFlowsCompact/styles.module.scss +0 -279
  188. package/src/features/containers/AuthSetupContainer/AppSelection.ts +0 -73
  189. package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +0 -67
  190. package/src/features/containers/AuthSetupContainer/Footer.ts +0 -32
  191. package/src/features/containers/AuthSetupContainer/Header.ts +0 -39
  192. package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +0 -27
  193. package/src/features/containers/AuthSetupContainer/index.ts +0 -349
  194. package/src/features/containers/AuthSetupContainer/styles.module.scss +0 -229
  195. package/src/features/containers/FlowSetupContainer/index.ts +0 -391
  196. package/src/features/containers/FlowSetupContainer/styles.module.scss +0 -18
  197. package/src/features/containers/MarkeplaceApps/index.ts +0 -583
  198. package/src/features/containers/MarkeplaceApps/styles.module.scss +0 -558
  199. package/src/features/containers/MarketplaceAppsCompact/index.ts +0 -585
  200. package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +0 -563
  201. package/src/features/containers/MarketplaceAppsContainer/index.ts +0 -91
  202. package/src/features/containers/MarketplaceContainer/AppCard/index.ts +0 -91
  203. package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +0 -66
  204. package/src/features/containers/MarketplaceContainer/AppListing/index.ts +0 -34
  205. package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +0 -10
  206. package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +0 -132
  207. package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +0 -117
  208. package/src/features/containers/MarketplaceContainer/index.ts +0 -242
  209. package/src/features/containers/MarketplaceContainer/styles.module.scss +0 -84
  210. package/src/features/containers/SDKContainer/index.ts +0 -817
  211. package/src/features/containers/SDKContainer/styles.module.scss +0 -266
  212. package/src/features/containers/SDKDebugContainer/index.ts +0 -137
  213. package/src/features/containers/SDKDebugContainer/styles.module.scss +0 -37
  214. package/src/features/containers/SDKFailedContainer/index.ts +0 -117
  215. package/src/features/containers/SDKFailedContainer/styles.module.scss +0 -57
  216. package/src/features/integrations/IntegrationRow/Icons.ts +0 -77
  217. package/src/features/integrations/IntegrationRow/index.ts +0 -129
  218. package/src/features/integrations/IntegrationRow/styles.module.scss +0 -62
  219. package/src/features/integrations/IntegrationsHeader/index.ts +0 -34
  220. package/src/features/integrations/IntegrationsHeader/styles.module.scss +0 -47
  221. package/src/features/integrations/IntegrationsList/index.ts +0 -252
  222. package/src/features/integrations/IntegrationsList/styles.module.scss +0 -67
  223. package/src/features/templates/Template/index.ts +0 -295
  224. package/src/features/templates/Template/styles.module.scss +0 -226
  225. package/src/features/templates/TemplatesView/index.ts +0 -368
  226. package/src/features/templates/TemplatesView/styles.module.scss +0 -71
  227. package/src/features/templates/TemplatesViewCompact/index.ts +0 -364
  228. package/src/features/templates/TemplatesViewCompact/styles.module.scss +0 -141
  229. package/src/hooks/useAutosizeTextArea.ts +0 -22
  230. package/src/hooks/useCustomRef.ts +0 -13
  231. package/src/hooks/useDebounce.ts +0 -17
  232. package/src/hooks/useElementResize.ts +0 -40
  233. package/src/hooks/useEventListener.ts +0 -42
  234. package/src/hooks/useHover.ts +0 -40
  235. package/src/hooks/useOnClickOutside.ts +0 -32
  236. package/src/index.ts +0 -2244
  237. package/src/index.umd.ts +0 -13
  238. package/src/interfaces/index.ts +0 -938
  239. package/src/modules/api/index.ts +0 -1325
  240. package/src/modules/api/responseHandler.ts +0 -38
  241. package/src/modules/event-emitter/index.ts +0 -72
  242. package/src/modules/event-emitter/runners/abstract.ts +0 -21
  243. package/src/modules/event-emitter/runners/default.ts +0 -11
  244. package/src/modules/event-emitter/runners/ntimes.ts +0 -28
  245. package/src/modules/event-emitter/types.ts +0 -34
  246. package/src/store/actionFunctions.ts +0 -1578
  247. package/src/store/index.ts +0 -17
  248. package/src/store/initialState.ts +0 -58
  249. package/src/types/index.ts +0 -320
  250. package/src/types/preact-compat.d.ts +0 -4
  251. package/src/types/store.ts +0 -366
  252. package/src/types/utils.ts +0 -19
  253. package/src/utils/ActivityOutputUtils.ts +0 -176
  254. package/src/utils/common.ts +0 -20
  255. package/src/utils/copyToClipboard.ts +0 -24
  256. package/src/utils/datetime.ts +0 -101
  257. package/src/utils/getUrlParam.ts +0 -11
  258. package/src/utils/isAuthMessage.ts +0 -16
  259. package/src/utils/isBrowser.ts +0 -1
  260. package/src/utils/jsonEncodeDecode.ts +0 -15
  261. package/src/utils/objectUtils.ts +0 -117
  262. package/src/utils/popup.ts +0 -30
  263. package/src/utils/searchJson.ts +0 -51
  264. package/src/utils/stepUtils.ts +0 -45
  265. package/src/utils/truncate.ts +0 -6
  266. package/test/setup.ts +0 -1
  267. package/vitest.config.ts +0 -16
@@ -1,164 +0,0 @@
1
- import { html } from 'htm/preact';
2
- import { useEffect, useState } from 'preact/hooks';
3
-
4
- import { ErrorMessage } from '@/components/ErrorMessage';
5
- import { Hint } from '@/components/Tooltip';
6
- import { BaseInput } from '../BaseInput';
7
- import { Label } from '../../Label';
8
-
9
- import styles from './styles.module.scss';
10
-
11
- interface PasswordInputProps {
12
- id: string;
13
- title: string;
14
- description: string;
15
- placeholder: string;
16
- showStepValidation?: boolean;
17
- isRequired?: boolean;
18
- regex: string | null;
19
- regexErrorMessage: string | null;
20
- value?: string;
21
- onChange?: (val: string, passesRegexTest?: boolean) => void;
22
- isReadOnly?: boolean;
23
- isChanged?: boolean;
24
- }
25
-
26
- /**
27
- * Input component
28
- *
29
- */
30
- const PasswordInput = (props: PasswordInputProps) => {
31
- const {
32
- title,
33
- description,
34
- placeholder,
35
- value,
36
- regex,
37
- regexErrorMessage,
38
- showStepValidation = false,
39
- isRequired = false,
40
- onChange = () => null,
41
- isReadOnly = false,
42
- isChanged = false,
43
- } = props;
44
-
45
- const [initialValue] = useState(value);
46
- const [passwordShown, setPasswordShown] = useState(false);
47
- const [invalidInput, setInvalidInput] = useState(false);
48
- const [showErrorOnFocusLoss, setShowErrorOnFocusLoss] = useState(false);
49
-
50
- // validate on first render
51
- useEffect(() => {
52
- if (regex) {
53
- const invalid = !new RegExp(regex.replace(/^\/|\/$/g, '')).test(
54
- `${initialValue}`,
55
- );
56
- setInvalidInput(invalid);
57
- }
58
- }, [regex]);
59
-
60
- const handleChange = (inputValue: string) => {
61
- if (regex) {
62
- if (!new RegExp(regex.replace(/^\/|\/$/g, '')).test(inputValue)) {
63
- onChange(inputValue, false);
64
- setInvalidInput(true);
65
- } else {
66
- onChange(inputValue, true);
67
- setInvalidInput(false);
68
- }
69
- } else {
70
- onChange(inputValue);
71
- }
72
- };
73
-
74
- const validate = () => {
75
- setShowErrorOnFocusLoss(true);
76
- };
77
-
78
- const togglePasswordVisiblity = () => {
79
- setPasswordShown((isShown) => !isShown);
80
- };
81
-
82
- return html`
83
- <${Hint} dismissOnClick=${false} position="top" deltaY=${0}>
84
- <div class="${styles.passwordInputWrapper}">
85
- <fieldset>
86
- <${Label} title=${title} description=${description}
87
- isRequired=${isRequired}
88
- labelTag=${isReadOnly && isChanged ? 'Changed' : ''} //>
89
- ${isReadOnly &&
90
- html`<span
91
- class=${styles.readonlyHint}
92
- data-hint=${isReadOnly ? `Cannot modify user selection` : ''}
93
- ></span>`}
94
- <${BaseInput}
95
- type=${passwordShown ? 'text' : 'password'}
96
- placeholder=${placeholder}
97
- handleChange=${handleChange}
98
- handleBlur=${validate}
99
- value=${value}
100
- control=${() => html`
101
- <div
102
- class=${styles.visibilityToggle}
103
- onclick=${togglePasswordVisiblity}
104
- >
105
- ${!passwordShown
106
- ? html` <svg
107
- width="20"
108
- height="12"
109
- viewBox="0 0 20 12"
110
- fill="none"
111
- xmlns="http://www.w3.org/2000/svg"
112
- >
113
- <path
114
- fill-rule="evenodd"
115
- clip-rule="evenodd"
116
- d="M0.183387 6.51359C0.35582 6.72918 4.47535 11.6704 9.71968 11.6704V11.6704C14.964 11.6704 19.0836 6.72924 19.256 6.51357C19.5005 6.21515 19.5005 5.78535 19.256 5.48691V5.48615C19.0835 5.27523 14.964 0.330078 9.71968 0.330078C4.47535 0.330078 0.355766 5.27507 0.183387 5.48693C-0.0611291 5.78535 -0.0611291 6.21515 0.183387 6.51359ZM9.71968 10.0499C6.1643 10.0499 3.04855 7.1924 1.90266 6.00018C3.04632 4.80579 6.1643 1.95044 9.71968 1.95044C13.2751 1.95044 16.3908 4.80797 17.5367 6.00018C16.393 7.19458 13.2751 10.0499 9.71968 10.0499Z"
117
- fill="#999999"
118
- />
119
- <path
120
- fill-rule="evenodd"
121
- clip-rule="evenodd"
122
- d="M6.94922 8.29099C7.55668 8.89849 8.3806 9.24021 9.24022 9.24021C10.0998 9.24021 10.9237 8.89845 11.5312 8.29099C12.1387 7.68353 12.4804 6.85956 12.4804 5.99999C12.4804 5.14041 12.1387 4.31648 11.5312 3.70898C10.9238 3.10148 10.0998 2.75977 9.24022 2.75977C8.38064 2.75977 7.55672 3.10152 6.94922 3.70898C6.34172 4.31644 6 5.14041 6 5.99999C6 6.85956 6.34176 7.68349 6.94922 8.29099ZM7.7435 5.3803C7.99408 4.77431 8.58488 4.38021 9.24022 4.38021C9.67002 4.38021 10.0816 4.55031 10.3854 4.85481C10.6899 5.15856 10.86 5.57015 10.86 5.99995C10.86 6.65529 10.4659 7.24607 9.85987 7.49667C9.25464 7.74727 8.5583 7.60905 8.09509 7.14508C7.63111 6.68186 7.49289 5.98552 7.7435 5.3803Z"
123
- fill="#999999"
124
- />
125
- </svg>`
126
- : html` <svg
127
- width="20"
128
- height="12"
129
- viewBox="0 0 20 12"
130
- fill="none"
131
- xmlns="http://www.w3.org/2000/svg"
132
- >
133
- <path
134
- fill-rule="evenodd"
135
- clip-rule="evenodd"
136
- d="M0.183387 6.51359C0.35582 6.72918 4.47535 11.6704 9.71968 11.6704V11.6704C14.964 11.6704 19.0836 6.72924 19.256 6.51357C19.5005 6.21515 19.5005 5.78535 19.256 5.48691V5.48615C19.0835 5.27523 14.964 0.330078 9.71968 0.330078C4.47535 0.330078 0.355766 5.27507 0.183387 5.48693C-0.0611291 5.78535 -0.0611291 6.21515 0.183387 6.51359ZM9.71968 10.0499C6.1643 10.0499 3.04855 7.1924 1.90266 6.00018C3.04632 4.80579 6.1643 1.95044 9.71968 1.95044C13.2751 1.95044 16.3908 4.80797 17.5367 6.00018C16.393 7.19458 13.2751 10.0499 9.71968 10.0499Z"
137
- fill="#333333"
138
- />
139
- <path
140
- fill-rule="evenodd"
141
- clip-rule="evenodd"
142
- d="M6.94922 8.29099C7.55668 8.89849 8.3806 9.24021 9.24022 9.24021C10.0998 9.24021 10.9237 8.89845 11.5312 8.29099C12.1387 7.68353 12.4804 6.85956 12.4804 5.99999C12.4804 5.14041 12.1387 4.31648 11.5312 3.70898C10.9238 3.10148 10.0998 2.75977 9.24022 2.75977C8.38064 2.75977 7.55672 3.10152 6.94922 3.70898C6.34172 4.31644 6 5.14041 6 5.99999C6 6.85956 6.34176 7.68349 6.94922 8.29099ZM7.7435 5.3803C7.99408 4.77431 8.58488 4.38021 9.24022 4.38021C9.67002 4.38021 10.0816 4.55031 10.3854 4.85481C10.6899 5.15856 10.86 5.57015 10.86 5.99995C10.86 6.65529 10.4659 7.24607 9.85987 7.49667C9.25464 7.74727 8.5583 7.60905 8.09509 7.14508C7.63111 6.68186 7.49289 5.98552 7.7435 5.3803Z"
143
- fill="#333333"
144
- />
145
- </svg>`}
146
- </div>
147
- `}
148
- isReadOnly=${isReadOnly}
149
- ><//>
150
- ${showStepValidation &&
151
- isRequired &&
152
- !value &&
153
- html`<${ErrorMessage}>Please enter a value<//>`}
154
- ${(showStepValidation || showErrorOnFocusLoss || initialValue) &&
155
- invalidInput &&
156
- value &&
157
- html`<${ErrorMessage}>${regexErrorMessage || 'Invalid input'}<//>`}
158
- </fieldset>
159
- </div>
160
- <//>
161
- `;
162
- };
163
-
164
- export { PasswordInput, PasswordInputProps };
@@ -1,37 +0,0 @@
1
- .passwordInputWrapper {
2
- fieldset {
3
- padding: 0;
4
- margin: 0;
5
- border: none;
6
- }
7
- .innerWrap {
8
- position: relative;
9
- }
10
- input {
11
- padding-right: 36px;
12
- }
13
- .readonlyHint {
14
- width: 100%;
15
- height: -webkit-fill-available;
16
- z-index: 99;
17
- position: absolute;
18
- }
19
- }
20
-
21
- .visibilityToggle {
22
- display: flex;
23
- align-items: center;
24
- position: absolute;
25
- top: 0;
26
- right: 10px;
27
- bottom: 0;
28
- margin: 0 auto;
29
- z-index: 999;
30
- svg {
31
- cursor: pointer;
32
- width: 20px;
33
- &:hover {
34
- opacity: 0.5;
35
- }
36
- }
37
- }
@@ -1,7 +0,0 @@
1
- import { Input, InputProps } from './Input';
2
- import { DateInput, DateInputProps } from './DateInput';
3
- import { PasswordInput, PasswordInputProps } from './PasswordInput';
4
-
5
- export { Input, InputProps };
6
- export { DateInput, DateInputProps };
7
- export { PasswordInput, PasswordInputProps };
@@ -1,61 +0,0 @@
1
- import { html } from 'htm/preact';
2
- import { Tag } from '@/components/Tag';
3
-
4
- import styles from './styles.module.scss';
5
-
6
- interface LabelProps {
7
- title: string;
8
- description?: string;
9
- isRequired?: boolean;
10
- labelTag?: string;
11
- allowRefresh?: boolean;
12
- handleRefreshClick?: () => void;
13
- }
14
-
15
- const Label = (props: LabelProps) => {
16
- const { title, description, isRequired = false, labelTag = '', allowRefresh = false, handleRefreshClick } = props;
17
-
18
- const onClickRefresh = (): void => {
19
- if (handleRefreshClick) {
20
- handleRefreshClick();
21
- }
22
- }
23
-
24
- return html`
25
- <div class="${styles.label} integry-container__label">
26
- <label class="${styles.subLabel}">
27
- <div>
28
- ${title}
29
- ${isRequired && html`<span class=${styles.required}>*</span>`}
30
- ${false && labelTag &&
31
- html`
32
- <span class=${styles.tagSpan}><${Tag}
33
- label=${labelTag}
34
- /></span>
35
- `}
36
- ${allowRefresh &&
37
- html`
38
- <svg class=${styles.refreshIcon} fill="#8c8c8c" height="12px" width="12px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
39
- viewBox="0 0 489.698 489.698" xml:space="preserve" onclick=${onClickRefresh}>
40
- <g>
41
- <g>
42
- <path d="M468.999,227.774c-11.4,0-20.8,8.3-20.8,19.8c-1,74.9-44.2,142.6-110.3,178.9c-99.6,54.7-216,5.6-260.6-61l62.9,13.1
43
- c10.4,2.1,21.8-4.2,23.9-15.6c2.1-10.4-4.2-21.8-15.6-23.9l-123.7-26c-7.2-1.7-26.1,3.5-23.9,22.9l15.6,124.8
44
- c1,10.4,9.4,17.7,19.8,17.7c15.5,0,21.8-11.4,20.8-22.9l-7.3-60.9c101.1,121.3,229.4,104.4,306.8,69.3
45
- c80.1-42.7,131.1-124.8,132.1-215.4C488.799,237.174,480.399,227.774,468.999,227.774z"/>
46
- <path d="M20.599,261.874c11.4,0,20.8-8.3,20.8-19.8c1-74.9,44.2-142.6,110.3-178.9c99.6-54.7,216-5.6,260.6,61l-62.9-13.1
47
- c-10.4-2.1-21.8,4.2-23.9,15.6c-2.1,10.4,4.2,21.8,15.6,23.9l123.8,26c7.2,1.7,26.1-3.5,23.9-22.9l-15.6-124.8
48
- c-1-10.4-9.4-17.7-19.8-17.7c-15.5,0-21.8,11.4-20.8,22.9l7.2,60.9c-101.1-121.2-229.4-104.4-306.8-69.2
49
- c-80.1,42.6-131.1,124.8-132.2,215.3C0.799,252.574,9.199,261.874,20.599,261.874z"/>
50
- </g>
51
- </g>
52
- </svg>
53
- `}
54
- </div>
55
- ${description && html`<div>${description}</div>`}
56
- </label>
57
- </div>
58
- `;
59
- };
60
-
61
- export { Label, LabelProps };
@@ -1,41 +0,0 @@
1
- .label {
2
- .subLabel {
3
- display: block;
4
- margin-bottom: 0;
5
-
6
- > div:first-child {
7
- color: #000;
8
- font-family: Inter;
9
- font-size: 12px;
10
- font-style: normal;
11
- font-weight: 400;
12
- line-height: normal;
13
- margin-bottom: 3px;
14
- display: flex;
15
- flex-direction: row;
16
- align-items: center;
17
-
18
- .tagSpan {
19
- margin-left: 10px;
20
- }
21
- .refreshIcon {
22
- margin-left: 8px;
23
- cursor: pointer;
24
- }
25
- }
26
- > div:nth-child(2) {
27
- color: var(--black-and-grey-draft-and-tooltip-desc, #999);
28
- font-family: Inter;
29
- font-size: 12px;
30
- font-style: normal;
31
- font-weight: 400;
32
- line-height: normal;
33
- margin-bottom: 8px;
34
- }
35
- }
36
- .required {
37
- color: #333;
38
- font-size: 16px;
39
- margin-left: 2px;
40
- }
41
- }
@@ -1,25 +0,0 @@
1
- import { html } from 'htm/preact';
2
-
3
- import styles from './styles.module.scss';
4
-
5
- const LargeLoader = () => html`
6
- <svg
7
- class=${styles.loader}
8
- width="26"
9
- height="25"
10
- viewBox="0 0 26 25"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- >
14
- <path
15
- d="M15.7173 0.29892C13.1175 -0.280085 10.4006 -0.0135017 7.96294 1.0598C5.52524 2.13311 3.49412 3.95702 2.16568 6.26562C0.837246 8.57421 0.280965 11.2468 0.57794 13.8937C0.874915 16.5406 2.00962 19.0235 3.81662 20.9803C5.62362 22.9371 8.00843 24.2656 10.6234 24.772C13.2383 25.2784 15.9466 24.9363 18.3535 23.7956C20.7604 22.6548 22.74 20.7751 24.0036 18.4304C25.2673 16.0857 25.749 13.3987 25.3785 10.7611L24.1406 10.935C24.4741 13.3088 24.0406 15.7272 22.9033 17.8374C21.766 19.9476 19.9844 21.6393 17.8182 22.666C15.652 23.6927 13.2145 24.0006 10.861 23.5448C8.50758 23.089 6.36125 21.8934 4.73495 20.1323C3.10866 18.3711 2.08742 16.1366 1.82015 13.7543C1.55287 11.3721 2.05352 8.96679 3.24911 6.88905C4.44471 4.81132 6.27272 3.1698 8.46665 2.20382C10.6606 1.23785 13.1057 0.997923 15.4456 1.51903L15.7173 0.29892Z"
16
- fill="#EFEFEF"
17
- />
18
- <path
19
- d="M25.3833 10.7959C25.0346 8.26181 23.9168 5.8957 22.1808 4.01695C20.4449 2.13819 18.1743 0.83725 15.6756 0.289715L15.4081 1.51074C17.6569 2.00353 19.7004 3.17437 21.2628 4.86525C22.8251 6.55613 23.8311 8.68563 24.145 10.9663L25.3833 10.7959Z"
20
- fill="#C4C4C4"
21
- />
22
- </svg>
23
- `;
24
-
25
- export { LargeLoader };
@@ -1,16 +0,0 @@
1
- .loader {
2
- animation-name: ckw;
3
- animation-duration: 1s;
4
- animation-iteration-count: infinite;
5
- animation-timing-function: linear;
6
- transform-origin: 50% 50%;
7
- }
8
-
9
- @keyframes ckw {
10
- 0% {
11
- transform: rotate(0deg);
12
- }
13
- 100% {
14
- transform: rotate(360deg);
15
- }
16
- }
@@ -1,57 +0,0 @@
1
- import { html } from 'htm/preact';
2
- import { useRef } from 'preact/hooks';
3
-
4
- import styles from './styles.module.scss';
5
-
6
- interface ListBoxItemProps {
7
- value: string;
8
- id: string;
9
- isSelected?: boolean;
10
- isHighlighted?: boolean;
11
- onClick(): void;
12
- }
13
-
14
- const ListBoxItem = (props: ListBoxItemProps) => {
15
- const { id, value, isSelected, isHighlighted = false, onClick } = props;
16
- const listItemRef = useRef<HTMLSpanElement>();
17
-
18
- const isContentOverflowing = (): boolean => {
19
- if (listItemRef.current) {
20
- return (listItemRef.current.clientWidth < listItemRef.current.scrollWidth);
21
- }
22
- return false;
23
- };
24
-
25
- return html`
26
- <span
27
- class=${`${styles.listboxItem} ${isSelected ? styles.selected : ''} ${
28
- isHighlighted ? styles.highlighted : ''
29
- }`}
30
- data-value=${id}
31
- onclick=${onClick}
32
- ref=${listItemRef}
33
- data-hint=${`${isContentOverflowing() ? value : ''}`}
34
- >
35
- ${false && isSelected &&
36
- html`
37
- <svg
38
- width="7"
39
- height="7"
40
- viewBox="0 0 7 7"
41
- fill="none"
42
- xmlns="http://www.w3.org/2000/svg"
43
- stroke="#333"
44
- >
45
- <path
46
- d="M6.33333 1.5L2.83522 5.5L1 3.40148"
47
- stroke-width="1.2"
48
- stroke-linecap="round"
49
- />
50
- </svg>
51
- `}
52
- ${value}
53
- </span>
54
- `;
55
- };
56
-
57
- export { ListBoxItem, ListBoxItemProps };