@rabbitio/ui-kit 1.0.0-beta.43 → 1.0.0-beta.46
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/coverage/clover.xml +5262 -821
- package/coverage/coverage-final.json +25 -1
- package/coverage/index.html +311 -26
- package/coverage/rabbit-ui-kit/index.html +1 -1
- package/coverage/rabbit-ui-kit/index.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/adapters/axiosAdapter.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/adapters/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/amountUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/errorUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/apiGroups.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/external-apis/ipAddressProviders.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/fiatCurrenciesService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/blockchain.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/coin.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/models/protocol.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/cache.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/emailAPI.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/logger.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/logging/logsStorage.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/postponeExecution.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/common/utils/safeStringify.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetIcon/AssetIcon.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetIcon/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetSelection/AssetSelection.jsx.html +364 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/AssetSelection/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +217 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/BackgroundTitle/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/LoadingDots/LoadingDots.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/LoadingDots/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/NoticeIcon.jsx.html +298 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/SupportChat.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/TitleBox.jsx.html +574 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/Tooltip.jsx.html +370 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Validation/Validation.jsx.html +475 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/Validation/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Button/Button.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Button/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Close/Close.jsx.html +277 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/Close/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/LinkButton/LinkButton.jsx.html +448 -0
- package/coverage/rabbit-ui-kit/src/components/atoms/buttons/LinkButton/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/hooks/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/hooks/useCallHandlingErrors.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/hooks/useReferredState.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/AmountInput.jsx.html +1510 -0
- package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/Dialog.jsx.html +1630 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +451 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +2077 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/SwapForm.jsx.html +3538 -0
- package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/components/utils/index.html +24 -9
- package/coverage/rabbit-ui-kit/src/components/utils/inputValueProviders.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/utils/textUtils.js.html +139 -0
- package/coverage/rabbit-ui-kit/src/components/utils/uiUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/components/utils/urlQueryUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/dialogStep.js.html +88 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/dialog.js.html +172 -0
- package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/index.html +5 -5
- package/coverage/rabbit-ui-kit/src/index.js.html +65 -5
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cacheAndConcurrentRequestsResolver.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cachedRobustExternalApiCallerService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/cancelProcessing.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/concurrentCalculationsMetadataHolder.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/externalApiProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/externalServicesStatsCollector.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/robustExteranlApiCallerService/robustExternalAPICallerService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwap.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/publicSwapService.js.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/index.html +1 -1
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/swapUtils.js.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +202 -0
- package/coverage/rabbit-ui-kit/stories/atoms/LoadingDots.stories.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/Validation.stories.jsx.html +178 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Button.stories.jsx.html +1 -1
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Close.stories.jsx.html +211 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +298 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/index.html +35 -5
- package/coverage/rabbit-ui-kit/stories/atoms/index.html +35 -5
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +574 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +328 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +352 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/stubs/exampleContent.jsx.html +145 -0
- package/coverage/rabbit-ui-kit/stories/stubs/index.html +116 -0
- package/dist/index.cjs +3022 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +40976 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +2568 -183
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +3010 -239
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +3019 -234
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -1
- package/src/assets/image/icons/arrow-darker.svg +14 -0
- package/src/assets/image/icons/arrow-tosca.svg +3 -0
- package/src/assets/image/icons/arrow-white.svg +14 -0
- package/src/assets/image/icons/dark-rectangle.svg +3 -0
- package/src/assets/image/icons/failed-validation-icon.svg +15 -0
- package/src/assets/image/icons/successful-validation-icon.svg +10 -0
- package/src/assets/image/icons/wallet-gray-small.svg +6 -0
- package/src/components/atoms/AssetSelection/AssetSelection.jsx +93 -0
- package/src/components/atoms/AssetSelection/asset-selection.module.scss +55 -0
- package/src/components/atoms/BackgroundTitle/BackgroundTitle.jsx +44 -0
- package/src/components/atoms/BackgroundTitle/background-title.module.scss +52 -0
- package/src/components/atoms/NoticeIcon/NoticeIcon.jsx +71 -0
- package/src/components/atoms/NoticeIcon/notice-icon.module.scss +14 -0
- package/src/components/atoms/TitleBox/TitleBox.jsx +163 -0
- package/src/components/atoms/TitleBox/title-box.module.scss +30 -0
- package/src/components/atoms/Tooltip/Tooltip.jsx +95 -0
- package/src/components/atoms/Tooltip/tooltip.module.scss +231 -0
- package/src/components/atoms/Validation/Validation.jsx +130 -0
- package/src/components/atoms/Validation/validation.module.scss +15 -0
- package/src/components/atoms/buttons/Close/Close.jsx +64 -0
- package/src/components/atoms/buttons/Close/close.module.scss +75 -0
- package/src/components/atoms/buttons/LinkButton/LinkButton.jsx +121 -0
- package/src/components/atoms/buttons/LinkButton/link-button.module.scss +45 -0
- package/src/components/molecules/AmountInput/AmountInput.jsx +475 -0
- package/src/components/molecules/AmountInput/amount-input.module.scss +189 -0
- package/src/components/organisms/Dialog/Dialog.jsx +515 -0
- package/src/components/organisms/Dialog/DialogButtons/DialogButtons.jsx +122 -0
- package/src/components/organisms/Dialog/DialogButtons/dialog-buttons.module.scss +25 -0
- package/src/components/organisms/Dialog/DialogStep/DialogStep.jsx +664 -0
- package/src/components/organisms/Dialog/DialogStep/dialog-step.module.scss +362 -0
- package/src/components/organisms/Dialog/dialog.module.scss +223 -0
- package/src/components/organisms/SwapForm/SwapForm.jsx +1151 -0
- package/src/components/organisms/SwapForm/swap-form.module.scss +120 -0
- package/src/components/utils/textUtils.js +18 -0
- package/src/constants/organisms/dialog/DialogStep/dialogStep.js +1 -0
- package/src/constants/organisms/dialog/dialog.js +29 -0
- package/src/index.js +21 -1
- package/stories/stubs/exampleContent.jsx +20 -0
- package/styles/fonts/NunitoSans-Bold.ttf +0 -0
- package/styles/fonts/NunitoSans-ExtraBold.ttf +0 -0
- package/styles/fonts/NunitoSans-Light.ttf +0 -0
- package/styles/fonts/NunitoSans-Regular.ttf +0 -0
- package/styles/fonts/NunitoSans-SemiBold.ttf +0 -0
- package/styles/index.scss +5 -3
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@import "../../../../styles/index";
|
|
2
|
+
|
|
3
|
+
// TODO: [dev] rename to .swap-dialog
|
|
4
|
+
.swap-dialog-form {
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
&-inputs {
|
|
8
|
+
position: relative;
|
|
9
|
+
z-index: 2;
|
|
10
|
+
|
|
11
|
+
&-separator {
|
|
12
|
+
height: 4px;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
user-select: none;
|
|
17
|
+
|
|
18
|
+
img {
|
|
19
|
+
margin: -13px 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:not(.disabled) {
|
|
23
|
+
@extend %hover-state;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.disabled {
|
|
27
|
+
opacity: 0.7;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-information-field {
|
|
33
|
+
z-index: 1;
|
|
34
|
+
background-color: SolidColor("lightsmoke");
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
border-radius: 0 0 8px 8px;
|
|
37
|
+
padding: 10px 20px;
|
|
38
|
+
position: relative;
|
|
39
|
+
text-align: left;
|
|
40
|
+
|
|
41
|
+
.semi-transparent {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
p {
|
|
46
|
+
color: SolidColor("grey");
|
|
47
|
+
|
|
48
|
+
.interactable {
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
transition: 0.3s;
|
|
52
|
+
|
|
53
|
+
@media (hover: hover) {
|
|
54
|
+
&:hover {
|
|
55
|
+
opacity: 0.7;
|
|
56
|
+
transition: 0s;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.red {
|
|
66
|
+
color: SolidColor("red");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&::before {
|
|
71
|
+
z-index: 0;
|
|
72
|
+
content: "";
|
|
73
|
+
position: absolute;
|
|
74
|
+
left: 0;
|
|
75
|
+
bottom: calc(100% + 4px);
|
|
76
|
+
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 20px;
|
|
79
|
+
border-radius: 8px;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
box-shadow: 0px 0px 0px 4px $white, 0px 10px 0px 0px SolidColor("lightsmoke");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-validation-text {
|
|
86
|
+
margin-top: Margin("5");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-button-container {
|
|
90
|
+
&-consent-text {
|
|
91
|
+
text-align: end;
|
|
92
|
+
color: SolidColor("grey");
|
|
93
|
+
font-size: 13px;
|
|
94
|
+
font-style: italic;
|
|
95
|
+
|
|
96
|
+
@media (max-width: $phone-width) {
|
|
97
|
+
text-align: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-link {
|
|
101
|
+
color: SolidColor("grey");
|
|
102
|
+
text-decoration: underline;
|
|
103
|
+
|
|
104
|
+
&:active {
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: flex-end;
|
|
112
|
+
align-items: center;
|
|
113
|
+
margin-top: Margin("10");
|
|
114
|
+
gap: Margin("3");
|
|
115
|
+
|
|
116
|
+
@media (max-width: $phone-width) {
|
|
117
|
+
flex-direction: column-reverse;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import copy from "clipboard-copy";
|
|
2
|
+
|
|
3
|
+
import { improveAndRethrow } from "../../common/errorUtils.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Copies given text to clipboard inside browser.
|
|
7
|
+
*
|
|
8
|
+
* @param text - text to be copied
|
|
9
|
+
*/
|
|
10
|
+
export function copyBrowserTextToClipboard(text) {
|
|
11
|
+
try {
|
|
12
|
+
if (!copy(text)) {
|
|
13
|
+
throw new Error("Failed to execute copy command.");
|
|
14
|
+
}
|
|
15
|
+
} catch (e) {
|
|
16
|
+
improveAndRethrow(e, "saveTextToFile");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DIALOG_STEP_CLASS = "dialog-step";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// If changed - update the prop configuration in the stories and related components.
|
|
2
|
+
export const DIALOG_SIZES = {
|
|
3
|
+
small: {
|
|
4
|
+
width: "550px",
|
|
5
|
+
height: "650px",
|
|
6
|
+
},
|
|
7
|
+
regular: {
|
|
8
|
+
width: "600px",
|
|
9
|
+
height: "650px",
|
|
10
|
+
},
|
|
11
|
+
large: {
|
|
12
|
+
width: "700px",
|
|
13
|
+
height: "650px",
|
|
14
|
+
},
|
|
15
|
+
largePlus: {
|
|
16
|
+
width: "750px",
|
|
17
|
+
height: "650px",
|
|
18
|
+
},
|
|
19
|
+
largePlusPlus: {
|
|
20
|
+
width: "800px",
|
|
21
|
+
height: "650px",
|
|
22
|
+
},
|
|
23
|
+
extraLarge: {
|
|
24
|
+
width: "1000px",
|
|
25
|
+
height: "650px",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const DIALOG_TRANSITION_STEP_DURATION = 200;
|
package/src/index.js
CHANGED
|
@@ -3,11 +3,31 @@ export { Button } from "./components/atoms/buttons/Button/Button.jsx";
|
|
|
3
3
|
export { LoadingDots } from "./components/atoms/LoadingDots/LoadingDots.jsx";
|
|
4
4
|
export { SupportChat } from "./components/atoms/SupportChat/SupportChat.jsx";
|
|
5
5
|
export { AssetIcon } from "./components/atoms/AssetIcon/AssetIcon.jsx";
|
|
6
|
+
export { LinkButton } from "./components/atoms/buttons/LinkButton/LinkButton.jsx";
|
|
7
|
+
export { DialogButtons } from "./components/organisms/Dialog/DialogButtons/DialogButtons.jsx";
|
|
8
|
+
export { BackgroundTitle } from "./components/atoms/BackgroundTitle/BackgroundTitle.jsx";
|
|
9
|
+
export {
|
|
10
|
+
Close,
|
|
11
|
+
CLOSE_COLORS,
|
|
12
|
+
} from "./components/atoms/buttons/Close/Close.jsx";
|
|
13
|
+
export { Validation } from "./components/atoms/Validation/Validation.jsx";
|
|
14
|
+
export { Dialog } from "./components/organisms/Dialog/Dialog.jsx";
|
|
15
|
+
export { DialogStep } from "./components/organisms/Dialog/DialogStep/DialogStep.jsx";
|
|
16
|
+
export { AssetSelection } from "./components/atoms/AssetSelection/AssetSelection.jsx";
|
|
17
|
+
export {
|
|
18
|
+
Tooltip,
|
|
19
|
+
TOOLTIP_POSITIONS,
|
|
20
|
+
} from "./components/atoms/Tooltip/Tooltip.jsx";
|
|
21
|
+
export { NoticeIcon } from "./components/atoms/NoticeIcon/NoticeIcon.jsx";
|
|
22
|
+
export { TitleBox } from "./components/atoms/TitleBox/TitleBox.jsx";
|
|
23
|
+
export { AmountInput } from "./components/molecules/AmountInput/AmountInput.jsx";
|
|
24
|
+
export { SwapForm } from "./components/organisms/SwapForm/SwapForm.jsx";
|
|
6
25
|
|
|
7
26
|
export { useCallHandlingErrors } from "./components/hooks/useCallHandlingErrors.js";
|
|
8
27
|
export { useReferredState } from "./components/hooks/useReferredState.js";
|
|
9
28
|
export { handleClickOutside } from "./components/utils/uiUtils.js";
|
|
10
29
|
export { InputValuesProviders } from "./components/utils/inputValueProviders.js";
|
|
30
|
+
export { copyBrowserTextToClipboard } from "./components/utils/textUtils.js";
|
|
11
31
|
|
|
12
32
|
export { saveQueryParameterAndValues } from "./components/utils/urlQueryUtils.js";
|
|
13
33
|
export { removeQueryParameterAndValues } from "./components/utils/urlQueryUtils.js";
|
|
@@ -34,7 +54,7 @@ export { AxiosAdapter } from "./common/adapters/axiosAdapter.js";
|
|
|
34
54
|
export { EmailsApi } from "./common/utils/emailAPI.js";
|
|
35
55
|
export { IpAddressProvider } from "./common/external-apis/ipAddressProviders.js";
|
|
36
56
|
|
|
37
|
-
// Robust data retriever service and related APIs
|
|
57
|
+
// Robust data retriever service and related APIs (to be extracted later to dedicated lib)
|
|
38
58
|
export { CacheAndConcurrentRequestsResolver } from "./robustExteranlApiCallerService/cacheAndConcurrentRequestsResolver.js";
|
|
39
59
|
export { CachedRobustExternalApiCallerService } from "./robustExteranlApiCallerService/cachedRobustExternalApiCallerService.js";
|
|
40
60
|
export { CancelProcessing } from "./robustExteranlApiCallerService/cancelProcessing.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const exampleContent = (
|
|
4
|
+
<div
|
|
5
|
+
style={{
|
|
6
|
+
width: "100%",
|
|
7
|
+
height: "300px",
|
|
8
|
+
borderRadius: "16px",
|
|
9
|
+
background: "#eee",
|
|
10
|
+
color: "#bbb",
|
|
11
|
+
display: "flex",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
fontSize: "12px",
|
|
15
|
+
fontFamily: "monospace",
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
Example content
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/styles/index.scss
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@import "variables";
|
|
2
2
|
@import "global-classes";
|
|
3
3
|
@import "placeholder";
|
|
4
|
+
@import "_mixins";
|
|
4
5
|
|
|
6
|
+
// TODO: [feature, high] Uncomment fonts after adding a new packaging tool. task_id=7375fa84ccab4d66b9e3a177a41f7e26
|
|
5
7
|
@font-face {
|
|
6
8
|
//src: url("fonts/NunitoSans-ExtraBold.ttf");
|
|
7
9
|
//font-family: "NunitoSans";
|
|
@@ -17,17 +19,17 @@
|
|
|
17
19
|
@font-face {
|
|
18
20
|
//src: url("fonts/NunitoSans-SemiBold.ttf");
|
|
19
21
|
//font-family: "NunitoSans";
|
|
20
|
-
font-weight:
|
|
22
|
+
font-weight: $semi-bold;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
@font-face {
|
|
24
26
|
//src: url("fonts/NunitoSans-Regular.ttf");
|
|
25
27
|
//font-family: "NunitoSans";
|
|
26
|
-
font-weight:
|
|
28
|
+
font-weight: $medium;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
@font-face {
|
|
30
32
|
//src: url("fonts/NunitoSans-Light.ttf");
|
|
31
33
|
//font-family: "NunitoSans";
|
|
32
|
-
font-weight:
|
|
34
|
+
font-weight: $regular;
|
|
33
35
|
}
|