@stokr/components-library 4.0.1 → 4.1.0
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/README.md +1 -1
- package/dist/components/AdminDashboard/Table/Table.styles.js +6 -2
- package/dist/components/BackButton/BackButton.js +10 -14
- package/dist/components/BackButton/BackButton.styles.js +7 -4
- package/dist/components/ChartLegend/ChartLegend.styles.js +4 -2
- package/dist/components/Checkbox/Checkbox.js +5 -1
- package/dist/components/Checkbox/Checkbox.styles.js +12 -27
- package/dist/components/Checklist/ChecklistCard.js +6 -6
- package/dist/components/Checklist/ChecklistCard.styles.js +0 -39
- package/dist/components/Chips/Chip.js +14 -1
- package/dist/components/Chips/Chip.styles.js +4 -3
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +15 -94
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +7 -10
- package/dist/components/FAQ/FAQ.styles.js +6 -2
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +1 -1
- package/dist/components/InfoBox/InfoBox.js +4 -2
- package/dist/components/InfoIcon/InfoIcon.js +24 -28
- package/dist/components/InfoIcon/InfoIcon.styles.d.ts +1 -1
- package/dist/components/InfoIcon/InfoIcon.styles.js +4 -3
- package/dist/components/Input/InputPassword.js +2 -1
- package/dist/components/Input/Select.js +0 -2
- package/dist/components/Input/Select.styles.js +5 -2
- package/dist/components/MaterialIcon/MaterialIcon.d.ts +5 -3
- package/dist/components/MaterialIcon/MaterialIcon.js +9 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +5 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.js +2 -2
- package/dist/components/MaterialIcon/glyph.d.ts +5 -0
- package/dist/components/MaterialIcon/glyph.js +8 -0
- package/dist/components/MaterialIcon/iconConfig.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.d.ts +5 -0
- package/dist/components/MaterialIcon/requiredIcons.js +21 -0
- package/dist/components/Modal/Modal.js +27 -31
- package/dist/components/Modal/Modal.styles.d.ts +3 -3
- package/dist/components/Modal/Modal.styles.js +31 -51
- package/dist/components/Modal/PaymentModal.js +10 -3
- package/dist/components/Modal/SideModal.js +45 -49
- package/dist/components/Pagination/Pagination.js +3 -3
- package/dist/components/Payment/TimerComponent.js +2 -3
- package/dist/components/Process/Process.styles.js +13 -18
- package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +2 -3
- package/dist/components/StatusTag/StatusTag.js +2 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +0 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +4 -2
- package/dist/components/TextLink/TextLink.styles.js +11 -20
- package/dist/components/Timeline/Timeline.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/index.d.ts +1 -4
- package/dist/index.js +32 -38
- package/dist/styles/global.js +0 -5
- package/dist/styles/rwd.d.ts +7 -2
- package/dist/styles/rwd.js +7 -2
- package/package.json +3 -4
- package/dist/components/Icon/Icon.style.js +0 -92
- package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +0 -4
- package/dist/static/fonts/Ionicons/ionicons.min.css +0 -2810
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.svg +0 -53
- package/dist/static/fonts/icomoon/icomoon.svg.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +0 -4
- package/dist/static/fonts/icomoon/selection.json +0 -910
- package/dist/static/fonts/icomoon/style.css +0 -139
- package/dist/static/images/copy_icon.svg +0 -4
- package/dist/static/images/copy_icon.svg.js +0 -5
- package/dist/styles/fonts.js +0 -35
- package/dist/styles/ioniconsStyles.js +0 -34
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useId, useCallback, useEffect } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { SideModalRoot, Dimmer, SideModalBox, OutlinedCloseButton } from "./SideModal.styles.js";
|
|
5
5
|
import { SideModalContext } from "./SideModalContext.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import { ModalClose } from "./Modal.styles.js";
|
|
8
|
-
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
9
8
|
function findScrolledElement() {
|
|
10
9
|
let best = null;
|
|
11
10
|
function walk(el) {
|
|
@@ -192,7 +191,7 @@ const SideModal = ({
|
|
|
192
191
|
};
|
|
193
192
|
if (!isOpen) return null;
|
|
194
193
|
return createPortal(
|
|
195
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ jsx(
|
|
196
195
|
SideModalRoot,
|
|
197
196
|
{
|
|
198
197
|
className,
|
|
@@ -201,52 +200,49 @@ const SideModal = ({
|
|
|
201
200
|
$zIndex: zIndex,
|
|
202
201
|
$interactiveBehind: !isModal,
|
|
203
202
|
...props,
|
|
204
|
-
children:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
children
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
)
|
|
249
|
-
]
|
|
203
|
+
children: /* @__PURE__ */ jsx(
|
|
204
|
+
Dimmer,
|
|
205
|
+
{
|
|
206
|
+
onClick: handleDimmerClick,
|
|
207
|
+
$side: side,
|
|
208
|
+
$isVisible: isVisible,
|
|
209
|
+
$color: isModal ? backdropColor : "transparent",
|
|
210
|
+
$interactiveBehind: !isModal,
|
|
211
|
+
children: /* @__PURE__ */ jsx(
|
|
212
|
+
SideModalBox,
|
|
213
|
+
{
|
|
214
|
+
ref: boxRef,
|
|
215
|
+
tabIndex: -1,
|
|
216
|
+
role: "dialog",
|
|
217
|
+
"aria-modal": isModal,
|
|
218
|
+
"aria-label": labelledBy || hasHeader ? void 0 : label,
|
|
219
|
+
"aria-labelledby": labelledBy ?? (hasHeader ? titleId : void 0),
|
|
220
|
+
$padding: padding,
|
|
221
|
+
$side: side,
|
|
222
|
+
$width: width,
|
|
223
|
+
$minWidth: minWidth,
|
|
224
|
+
$isVisible: isVisible,
|
|
225
|
+
$fullWidthOnMobile: fullWidthOnMobile,
|
|
226
|
+
onClick: (e) => e.stopPropagation(),
|
|
227
|
+
children: /* @__PURE__ */ jsxs(
|
|
228
|
+
SideModalContext.Provider,
|
|
229
|
+
{
|
|
230
|
+
value: {
|
|
231
|
+
titleId,
|
|
232
|
+
closeButton: closeButton(true),
|
|
233
|
+
cornerButton: showCloseButton && closeButtonVariant === "filled",
|
|
234
|
+
registerHeader
|
|
235
|
+
},
|
|
236
|
+
children: [
|
|
237
|
+
!hasHeader || closeButtonVariant === "filled" ? closeButton(false) : null,
|
|
238
|
+
children
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
)
|
|
250
246
|
}
|
|
251
247
|
),
|
|
252
248
|
document.body
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import { usePagination, DOTS } from "./usePagination.js";
|
|
4
4
|
import { StyledList } from "./Pagination.styles.js";
|
|
5
5
|
import PropTypes from "prop-types";
|
|
6
|
-
import {
|
|
6
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
7
7
|
const Pagination = (props) => {
|
|
8
8
|
const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize = 10 } = props;
|
|
9
9
|
const paginationRange = usePagination({
|
|
@@ -25,7 +25,7 @@ const Pagination = (props) => {
|
|
|
25
25
|
const displayRange = paginationRange.length < 2 ? [1] : paginationRange;
|
|
26
26
|
let lastPage = displayRange[displayRange.length - 1];
|
|
27
27
|
return /* @__PURE__ */ jsxs(StyledList, { listStyle: props.listStyle, children: [
|
|
28
|
-
/* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(
|
|
28
|
+
/* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_left", size: "1em" }) }),
|
|
29
29
|
displayRange.map((pageNumber, index) => {
|
|
30
30
|
if (pageNumber === DOTS) {
|
|
31
31
|
return /* @__PURE__ */ jsx(StyledList.Item, { dots: true, children: "…" }, index === 1 ? "dots-left" : "dots-right");
|
|
@@ -41,7 +41,7 @@ const Pagination = (props) => {
|
|
|
41
41
|
pageNumber
|
|
42
42
|
);
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(
|
|
44
|
+
/* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_right", size: "1em" }) })
|
|
45
45
|
] });
|
|
46
46
|
};
|
|
47
47
|
Pagination.propTypes = {
|
|
@@ -4,7 +4,7 @@ import { useTimer } from "../../hooks/useTimer.js";
|
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { colors } from "../../styles/colors.js";
|
|
6
6
|
import { Text } from "../Text/Text.styles.js";
|
|
7
|
-
import {
|
|
7
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
8
8
|
import { FlexContainer } from "../Grid/Grid.styles.js";
|
|
9
9
|
import rwd from "../../styles/rwd.js";
|
|
10
10
|
const TimerBlock = styled.div.withConfig({
|
|
@@ -56,7 +56,6 @@ const TimerComponent = memo(
|
|
|
56
56
|
className,
|
|
57
57
|
maxWidth,
|
|
58
58
|
// Icon props
|
|
59
|
-
icon = iconsMap.inProgress,
|
|
60
59
|
iconSize = 16,
|
|
61
60
|
showIcon = true
|
|
62
61
|
}) => {
|
|
@@ -73,7 +72,7 @@ const TimerComponent = memo(
|
|
|
73
72
|
const formattedTime = [secondsRemaining / 3600, secondsRemaining % 3600 / 60, secondsRemaining % 60].map((part) => String(Math.floor(part)).padStart(2, "0")).join(":");
|
|
74
73
|
return /* @__PURE__ */ jsx(TimerBlock, { red: isWarning, maxWidth, style: timerBlockStyle, className, children: /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
|
|
75
74
|
/* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs(FlexContainer, { itemsCenter: true, style: { gap: 8 }, children: [
|
|
76
|
-
showIcon && /* @__PURE__ */ jsx(
|
|
75
|
+
showIcon && /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: iconSize }),
|
|
77
76
|
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: title }) })
|
|
78
77
|
] }) }),
|
|
79
78
|
/* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
@@ -2,8 +2,13 @@ import styled from "styled-components";
|
|
|
2
2
|
import rwd from "../../styles/rwd.js";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
4
|
import loader from "../../static/images/process-waiting.gif.js";
|
|
5
|
+
import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
|
|
5
6
|
const Process = styled.div.withConfig({
|
|
6
7
|
shouldForwardProp: (props) => !["waiting", "success", "failed"].includes(props)
|
|
8
|
+
}).attrs((props) => {
|
|
9
|
+
if (props.success) return { children: withGlyph(glyph("check_circle", true, 24), props.children) };
|
|
10
|
+
if (props.failed) return { children: withGlyph(glyph("cancel", true, 24), props.children) };
|
|
11
|
+
return {};
|
|
7
12
|
})`
|
|
8
13
|
display: block;
|
|
9
14
|
position: relative;
|
|
@@ -21,17 +26,6 @@ const Process = styled.div.withConfig({
|
|
|
21
26
|
|
|
22
27
|
&:before {
|
|
23
28
|
content: '';
|
|
24
|
-
font-family: 'Ionicons';
|
|
25
|
-
speak: none;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: normal;
|
|
28
|
-
font-variant: normal;
|
|
29
|
-
text-transform: none;
|
|
30
|
-
text-rendering: auto;
|
|
31
|
-
-webkit-font-smoothing: antialiased;
|
|
32
|
-
-moz-osx-font-smoothing: grayscale;
|
|
33
|
-
font-size: 19px;
|
|
34
|
-
line-height: 16px;
|
|
35
29
|
display: block;
|
|
36
30
|
width: 16px;
|
|
37
31
|
height: 16px;
|
|
@@ -41,14 +35,19 @@ const Process = styled.div.withConfig({
|
|
|
41
35
|
margin-top: -8px;
|
|
42
36
|
|
|
43
37
|
${rwd.Medium`
|
|
44
|
-
font-size: 24px;
|
|
45
|
-
line-height: 20px;
|
|
46
38
|
width: 20px;
|
|
47
39
|
height: 20px;
|
|
48
40
|
margin-top: -10px;
|
|
49
41
|
`}
|
|
50
42
|
}
|
|
51
43
|
|
|
44
|
+
> [data-icon] {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
right: -4px;
|
|
48
|
+
margin-top: -12px;
|
|
49
|
+
}
|
|
50
|
+
|
|
52
51
|
${(props) => props.waiting && `
|
|
53
52
|
opacity: 1;
|
|
54
53
|
|
|
@@ -64,8 +63,7 @@ const Process = styled.div.withConfig({
|
|
|
64
63
|
${(props) => props.success && `
|
|
65
64
|
opacity: 1;
|
|
66
65
|
|
|
67
|
-
|
|
68
|
-
content: '\\f14a';
|
|
66
|
+
> [data-icon] {
|
|
69
67
|
color: ${theme.cProgressDone};
|
|
70
68
|
}
|
|
71
69
|
`}
|
|
@@ -74,9 +72,6 @@ const Process = styled.div.withConfig({
|
|
|
74
72
|
opacity: 1;
|
|
75
73
|
color: ${theme.cWarning};
|
|
76
74
|
|
|
77
|
-
&:before {
|
|
78
|
-
content: '\\f14e';
|
|
79
|
-
}
|
|
80
75
|
`}
|
|
81
76
|
`;
|
|
82
77
|
export {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { Container as Container$1 } from "../Background/Background.styles.js";
|
|
3
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
3
4
|
const Container = styled.div`
|
|
4
5
|
width: 100%;
|
|
5
6
|
height: 100%;
|
|
@@ -43,18 +44,17 @@ const Name = styled.div`
|
|
|
43
44
|
letter-spacing: 0.6px;
|
|
44
45
|
text-align: center;
|
|
45
46
|
`;
|
|
46
|
-
const EditIcon = styled.
|
|
47
|
-
|
|
47
|
+
const EditIcon = styled.span.attrs({
|
|
48
|
+
children: glyph("edit")
|
|
48
49
|
})`
|
|
50
|
+
display: inline-flex;
|
|
49
51
|
margin-left: 12px;
|
|
50
|
-
|
|
51
|
-
&:before {
|
|
52
|
-
transform: rotate(-15deg);
|
|
53
|
-
}
|
|
52
|
+
transform: rotate(-15deg);
|
|
54
53
|
`;
|
|
55
|
-
styled.
|
|
56
|
-
|
|
54
|
+
styled.span.attrs({
|
|
55
|
+
children: glyph("add_circle")
|
|
57
56
|
})`
|
|
57
|
+
display: inline-flex;
|
|
58
58
|
margin-left: 12px;
|
|
59
59
|
font-size: 30px;
|
|
60
60
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { InfoIcon } from "../InfoIcon/InfoIcon.js";
|
|
4
|
-
import {
|
|
4
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
5
5
|
import SvgTransferIcon from "../../static/images/transfer-icon.svg.js";
|
|
6
6
|
import SvgCheckmarkCircleIcon from "../../static/images/checkmark-circle-icon.svg.js";
|
|
7
7
|
import SvgCloseCircleIcon from "../../static/images/close-circle-icon.svg.js";
|
|
@@ -17,7 +17,7 @@ const variantConfig = {
|
|
|
17
17
|
useStroke: true
|
|
18
18
|
},
|
|
19
19
|
initiated: {
|
|
20
|
-
icon: /* @__PURE__ */ jsx(
|
|
20
|
+
icon: /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: 14 }),
|
|
21
21
|
iconColor: "#032F78",
|
|
22
22
|
hoverColor: "#032F78",
|
|
23
23
|
disableHoverColor: false
|
|
@@ -5,7 +5,6 @@ import { Input } from "../Input/Input.js";
|
|
|
5
5
|
import { Checkbox } from "../Checkbox/Checkbox.js";
|
|
6
6
|
import SvgTrash from "../../static/images/trash.svg.js";
|
|
7
7
|
import SvgGlobe from "../../static/images/globe.svg.js";
|
|
8
|
-
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
9
8
|
import { FlagFor, CountrySelect } from "../Country/CountrySelect.js";
|
|
10
9
|
import { CardWrapper, CardHeader, HeaderIcon, FlagWrapper, HeaderTitle, HeaderActions, DeleteButton, ChevronIcon, CardBodyCollapse, CardBody, CheckboxRow } from "./TaxResidenceCard.styles.js";
|
|
11
10
|
const TaxResidenceCard = (props) => {
|
|
@@ -70,7 +69,6 @@ const TaxResidenceCard = (props) => {
|
|
|
70
69
|
};
|
|
71
70
|
const cy = dataCy || `tax-residence-card-${id}`;
|
|
72
71
|
return /* @__PURE__ */ jsxs(CardWrapper, { isOpen, "data-cy": cy, children: [
|
|
73
|
-
/* @__PURE__ */ jsx(IoniconsStyles, {}),
|
|
74
72
|
/* @__PURE__ */ jsxs(
|
|
75
73
|
CardHeader,
|
|
76
74
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import { Collapse } from "react-collapse";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
4
5
|
const CardWrapper = styled.div.withConfig({
|
|
5
6
|
shouldForwardProp: (prop) => !["isOpen"].includes(prop)
|
|
6
7
|
})`
|
|
@@ -127,11 +128,12 @@ const DeleteButton = styled.button`
|
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
`;
|
|
130
|
-
const ChevronIcon = styled.
|
|
131
|
+
const ChevronIcon = styled.span.withConfig({
|
|
131
132
|
shouldForwardProp: (prop) => !["isOpen"].includes(prop)
|
|
132
133
|
}).attrs({
|
|
133
|
-
|
|
134
|
+
children: glyph("keyboard_arrow_down")
|
|
134
135
|
})`
|
|
136
|
+
display: inline-flex;
|
|
135
137
|
font-size: 20px;
|
|
136
138
|
line-height: 1;
|
|
137
139
|
color: ${theme.cBlack};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import { Link } from "react-router-dom";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
|
+
import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
|
|
5
|
+
const withArrow = (props) => ({
|
|
6
|
+
children: withGlyph(glyph("chevron_right", false, 16), props.children)
|
|
7
|
+
});
|
|
4
8
|
const styles = css`
|
|
5
9
|
background: #fff;
|
|
6
10
|
border: none;
|
|
@@ -16,26 +20,13 @@ const styles = css`
|
|
|
16
20
|
padding-right: 6px;
|
|
17
21
|
transition: padding 0.2s;
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
content: '\\f3d1';
|
|
21
|
-
font-family: 'Ionicons';
|
|
22
|
-
speak: none;
|
|
23
|
-
font-style: normal;
|
|
24
|
-
font-weight: normal;
|
|
25
|
-
font-variant: normal;
|
|
26
|
-
text-transform: none;
|
|
27
|
-
text-rendering: auto;
|
|
28
|
-
-webkit-font-smoothing: antialiased;
|
|
29
|
-
-moz-osx-font-smoothing: grayscale;
|
|
30
|
-
font-size: 12px;
|
|
31
|
-
line-height: 8px;
|
|
32
|
-
display: block;
|
|
33
|
-
width: 8px;
|
|
34
|
-
height: 8px;
|
|
23
|
+
> [data-icon] {
|
|
35
24
|
position: absolute;
|
|
36
25
|
top: 50%;
|
|
37
|
-
left:
|
|
38
|
-
|
|
26
|
+
left: -4px;
|
|
27
|
+
width: 16px;
|
|
28
|
+
height: 16px;
|
|
29
|
+
margin-top: -8px;
|
|
39
30
|
color: ${() => theme.cWarning};
|
|
40
31
|
transform: ${(props) => props.reverse ? "rotate(180deg)" : "none"};
|
|
41
32
|
}
|
|
@@ -52,12 +43,12 @@ const styles = css`
|
|
|
52
43
|
`;
|
|
53
44
|
const TextLink = styled(Link).withConfig({
|
|
54
45
|
shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
|
|
55
|
-
})`
|
|
46
|
+
}).attrs(withArrow)`
|
|
56
47
|
${styles}
|
|
57
48
|
`;
|
|
58
49
|
const TextButton = styled.button.withConfig({
|
|
59
50
|
shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
|
|
60
|
-
})`
|
|
51
|
+
}).attrs(withArrow)`
|
|
61
52
|
${styles}
|
|
62
53
|
`;
|
|
63
54
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
4
4
|
import { InfoIcon } from "../InfoIcon/InfoIcon.js";
|
|
5
5
|
import { TimelineStepWrapper, IconContainer, StepIcon, ConnectingLine, StepContent, StepDate, StepHeader, StepTitle, StepCaption } from "./Timeline.styles.js";
|
|
6
6
|
import SvgCrossIcon from "../../static/images/cross-icon.svg.js";
|
|
@@ -28,7 +28,7 @@ const TimelineStep = ({
|
|
|
28
28
|
case "completed":
|
|
29
29
|
return /* @__PURE__ */ jsx(SvgCheckIcon, { width: 12, height: 12 });
|
|
30
30
|
case "pending":
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
+
return /* @__PURE__ */ jsx("span", { style: { display: "inline-flex", marginLeft: 1 }, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: 12 }) });
|
|
32
32
|
case "failed":
|
|
33
33
|
case "cancelled":
|
|
34
34
|
return /* @__PURE__ */ jsx(SvgCrossIcon, { width: 8, height: 8 });
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export { Collapsible } from './components/Collapsible/Collapsible'
|
|
|
52
52
|
export { MaterialIcon, SvgIcon, ICON_SIZES } from './components/MaterialIcon/MaterialIcon'
|
|
53
53
|
export type { MaterialIconProps, SvgIconProps, IconSize } from './components/MaterialIcon/MaterialIcon'
|
|
54
54
|
export { registerMaterialIcons } from './components/MaterialIcon/iconConfig'
|
|
55
|
+
export { requiredMaterialIcons } from './components/MaterialIcon/requiredIcons'
|
|
55
56
|
export type { MaterialIconName, MaterialIconRegistry } from './components/MaterialIcon/iconConfig'
|
|
56
57
|
export type { CollapsibleProps } from './components/Collapsible/Collapsible'
|
|
57
58
|
export { Section } from './components/Section/Section'
|
|
@@ -200,8 +201,6 @@ export declare const CardRightText: AnyComponent, CardLeftText: AnyComponent
|
|
|
200
201
|
export declare const CardHeader: AnyComponent, CardHeaderRegular: AnyComponent
|
|
201
202
|
export declare const Wrapper: AnyComponent, Row: AnyComponent, Column: AnyComponent
|
|
202
203
|
export declare const PageWrapper: AnyComponent, FlexContainer: AnyComponent, FlexGrid: AnyComponent
|
|
203
|
-
export declare const Icon: AnyComponent, TooltipIcon: AnyComponent
|
|
204
|
-
export declare const iconsMap: AnyValue
|
|
205
204
|
export declare const SearchInput: AnyComponent
|
|
206
205
|
export declare const DatePickerInput: AnyComponent
|
|
207
206
|
export declare const InputPassword: AnyComponent
|
|
@@ -289,9 +288,7 @@ export declare const useTimer: AnyFn
|
|
|
289
288
|
export declare const useTransactionPolling: AnyFn
|
|
290
289
|
|
|
291
290
|
/* STYLES */
|
|
292
|
-
export declare const fontFaces: AnyValue
|
|
293
291
|
export declare const GlobalStyle: AnyComponent
|
|
294
|
-
export declare const IoniconsStyles: ComponentType<{ children?: ReactNode }>
|
|
295
292
|
|
|
296
293
|
/* CONSTANTS & VARIABLES */
|
|
297
294
|
export declare const ProjectTypes: AnyValue
|