@stokr/components-library 4.2.6 → 5.0.1
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 +147 -118
- package/dist/components/AddressItem/AddressItem.styles.js +12 -14
- package/dist/components/AdminDashboard/Table/Table.styles.d.ts +110 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +21 -20
- package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
- package/dist/components/BackButton/BackButton.styles.d.ts +24 -0
- package/dist/components/BackButton/BackButton.styles.js +15 -16
- package/dist/components/Background/Background.styles.d.ts +30 -0
- package/dist/components/Background/Background.styles.js +3 -3
- package/dist/components/BasicTable/BasicTable.d.ts +14 -0
- package/dist/components/BasicTable/BasicTable.js +0 -10
- package/dist/components/BasicTable/BasicTable.styles.d.ts +22 -0
- package/dist/components/BasicTable/BasicTable.styles.js +6 -7
- package/dist/components/BlogPost/BlogPost.js +3 -3
- package/dist/components/BlogPost/BlogPost.styles.d.ts +67 -0
- package/dist/components/BlogPost/BlogPost.styles.js +14 -20
- package/dist/components/Button/Button.styles.d.ts +12 -8
- package/dist/components/Button/Button.styles.js +131 -115
- package/dist/components/Button/GlareButton.d.ts +31 -0
- package/dist/components/Button/GlareButton.js +4 -22
- package/dist/components/Card/Card.styles.d.ts +30 -0
- package/dist/components/Card/Card.styles.js +3 -4
- package/dist/components/CardTabs/CardTabs.styles.js +26 -29
- package/dist/components/ChartLegend/ChartLegend.styles.d.ts +46 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +4 -5
- package/dist/components/Checkbox/Checkbox.styles.js +10 -12
- package/dist/components/Checklist/ChecklistCard.d.ts +18 -0
- package/dist/components/Checklist/ChecklistCard.js +4 -17
- package/dist/components/Checklist/ChecklistCard.styles.d.ts +17 -0
- package/dist/components/Checklist/ChecklistCard.styles.js +7 -7
- package/dist/components/Chips/Chip.d.ts +18 -0
- package/dist/components/Chips/Chip.js +4 -20
- package/dist/components/Chips/Chip.styles.d.ts +23 -0
- package/dist/components/Chips/Chip.styles.js +3 -6
- package/dist/components/Chips/ChipWrapper.js +2 -2
- package/dist/components/Collapsible/Collapsible.styles.js +20 -20
- package/dist/components/ComponentScroll/ComponentScroll.js +2 -1
- package/dist/components/ComponentScroll/ComponentScroll.styles.d.ts +34 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +15 -12
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +11 -13
- package/dist/components/ConfirmModal/ConfirmModal.styles.d.ts +18 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +6 -7
- package/dist/components/Country/CountrySelect.js +6 -6
- package/dist/components/CryptoAddress/ComponentWrap.d.ts +9 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +7 -10
- package/dist/components/CryptoAddress/CryptoAddress.d.ts +45 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +9 -41
- package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +85 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +21 -22
- package/dist/components/CryptoAddress/RadioWrap.d.ts +21 -0
- package/dist/components/CryptoAddress/RadioWrap.js +1 -16
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.d.ts +30 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +19 -11
- package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.d.ts +12 -0
- package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.js +28 -0
- package/dist/components/FAQ/FAQ.styles.d.ts +2 -1
- package/dist/components/FAQ/FAQ.styles.js +15 -19
- package/dist/components/Form/Form.styles.d.ts +22 -0
- package/dist/components/Form/Form.styles.js +7 -8
- package/dist/components/Grid/Grid.styles.d.ts +49 -0
- package/dist/components/Grid/Grid.styles.js +37 -40
- package/dist/components/IdentityInfo/IdentityInfo.styles.d.ts +24 -0
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +5 -6
- package/dist/components/InfoBox/InfoBox.d.ts +22 -0
- package/dist/components/InfoBox/InfoBox.js +26 -65
- package/dist/components/InfoIcon/InfoIcon.styles.js +2 -3
- package/dist/components/Input/DatePickerInput.d.ts +24 -0
- package/dist/components/Input/DatePickerInput.js +2 -13
- package/dist/components/Input/DatePickerInput.styles.d.ts +18 -0
- package/dist/components/Input/DatePickerInput.styles.js +27 -24
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/Input.styles.d.ts +1 -0
- package/dist/components/Input/Input.styles.js +27 -24
- package/dist/components/Input/InputPassword.styles.d.ts +32 -0
- package/dist/components/Input/InputPassword.styles.js +11 -12
- package/dist/components/Input/InputWithButton.styles.d.ts +14 -0
- package/dist/components/Input/InputWithButton.styles.js +5 -6
- package/dist/components/Input/MultiSelect.d.ts +60 -0
- package/dist/components/Input/MultiSelect.js +20 -52
- package/dist/components/Input/OtpInput.d.ts +17 -0
- package/dist/components/Input/OtpInput.js +8 -15
- package/dist/components/Input/RangeInput.d.ts +14 -0
- package/dist/components/Input/RangeInput.js +2 -17
- package/dist/components/Input/SearchInput.styles.d.ts +15 -0
- package/dist/components/Input/SearchInput.styles.js +10 -11
- package/dist/components/Input/Select.js +91 -25
- package/dist/components/Input/Select.styles.d.ts +2 -2
- package/dist/components/Input/Select.styles.js +24 -26
- package/dist/components/Input/TableFilterDropdown.d.ts +33 -0
- package/dist/components/Input/TableFilterDropdown.js +6 -39
- package/dist/components/Input/Textarea.styles.d.ts +9 -0
- package/dist/components/Input/Textarea.styles.js +9 -10
- package/dist/components/MaterialIcon/MaterialIcon.d.ts +17 -7
- package/dist/components/MaterialIcon/MaterialIcon.js +14 -3
- package/dist/components/MenuNav/MenuNav.styles.d.ts +6 -0
- package/dist/components/MenuNav/MenuNav.styles.js +3 -0
- package/dist/components/Modal/Modal.styles.js +35 -36
- package/dist/components/Modal/PaymentModal.d.ts +55 -0
- package/dist/components/Modal/PaymentModal.js +11 -13
- package/dist/components/Modal/SideModal.styles.js +13 -14
- package/dist/components/Modal/SideModalParts.js +18 -20
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.d.ts +15 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +3 -4
- package/dist/components/NotificationCounter/NotificationCounter.styles.d.ts +8 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -3
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/Number/Number.styles.d.ts +4 -0
- package/dist/components/Number/Number.styles.js +2 -3
- package/dist/components/Pagination/Pagination.styles.d.ts +15 -0
- package/dist/components/Pagination/Pagination.styles.js +12 -11
- package/dist/components/PanelCard/PanelCard.styles.js +24 -27
- package/dist/components/Payment/DetailRows.d.ts +14 -0
- package/dist/components/Payment/DetailRows.js +1 -2
- package/dist/components/Payment/DetailsToggle.d.ts +23 -0
- package/dist/components/Payment/DetailsToggle.js +12 -4
- package/dist/components/Payment/PaymentDetailsCard.d.ts +95 -0
- package/dist/components/Payment/PaymentDetailsCard.js +32 -23
- package/dist/components/Payment/PaymentDisplay.d.ts +59 -0
- package/dist/components/Payment/PaymentDisplay.js +18 -11
- package/dist/components/Payment/PaymentPendingCard.d.ts +39 -0
- package/dist/components/Payment/PaymentPendingCard.js +13 -13
- package/dist/components/Payment/PaymentSuccessCard.d.ts +41 -0
- package/dist/components/Payment/PaymentSuccessCard.js +27 -11
- package/dist/components/Payment/TimerComponent.d.ts +26 -0
- package/dist/components/Payment/TimerComponent.js +6 -7
- package/dist/components/Process/Process.styles.d.ts +11 -0
- package/dist/components/Process/Process.styles.js +22 -19
- package/dist/components/ProfileBadge/ProfileBadge.d.ts +13 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +14 -15
- package/dist/components/ProfileBadge/ProfileBadge.styles.d.ts +10 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -9
- package/dist/components/ProfileBox/ProfileBox.js +3 -3
- package/dist/components/ProfileBox/ProfileBox.styles.d.ts +22 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +18 -7
- package/dist/components/Radio/Radio.styles.d.ts +24 -0
- package/dist/components/Radio/Radio.styles.js +19 -11
- package/dist/components/RefreshButton/RefreshButton.styles.d.ts +29 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +5 -6
- package/dist/components/RequestDataBox/RequestDataBox.styles.d.ts +9 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +4 -5
- package/dist/components/Section/Section.d.ts +1 -1
- package/dist/components/Section/Section.js +4 -3
- package/dist/components/Section/Section.styles.d.ts +5 -0
- package/dist/components/Section/Section.styles.js +31 -36
- package/dist/components/SectionTitle/SectionTitle.styles.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.js +8 -8
- package/dist/components/SmartLink/SmartLink.js +2 -2
- package/dist/components/Snackbar/Snackbar.styles.d.ts +28 -0
- package/dist/components/Snackbar/Snackbar.styles.js +10 -29
- package/dist/components/SpanButton/SpanButton.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.d.ts +29 -0
- package/dist/components/StatusDot/StatusDot.js +17 -23
- package/dist/components/StatusDot/StatusDot.styles.d.ts +20 -0
- package/dist/components/StatusTag/StatusTag.d.ts +35 -0
- package/dist/components/StatusTag/StatusTag.js +9 -38
- package/dist/components/StatusTag/StatusTag.styles.d.ts +28 -0
- package/dist/components/StatusTag/StatusTag.styles.js +6 -6
- package/dist/components/StepController/StepController.styles.d.ts +23 -0
- package/dist/components/StepController/StepController.styles.js +12 -14
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +4 -5
- package/dist/components/StepSidebar/StepProgress.styles.js +29 -26
- package/dist/components/StepSidebar/StepSidebar.js +1 -1
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +1 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +30 -31
- package/dist/components/StokrLoader/StokrLoader.d.ts +25 -3
- package/dist/components/StokrLoader/StokrLoader.js +171 -26
- package/dist/components/SvgIcons/AdminBadgeSvg.js +1 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +1 -0
- package/dist/components/SvgIcons/LogoSvg.js +1 -11
- package/dist/components/SvgIcons/RefreshSvg.js +1 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +2 -4
- package/dist/components/Switch/Switch.styles.d.ts +20 -0
- package/dist/components/Switch/Switch.styles.js +10 -11
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/TabsNav/TabsNav.styles.d.ts +25 -0
- package/dist/components/TabsNav/TabsNav.styles.js +8 -9
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +74 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +31 -35
- package/dist/components/Text/Text.styles.d.ts +17 -1
- package/dist/components/Text/Text.styles.js +50 -25
- package/dist/components/TextLink/TextLink.styles.d.ts +16 -0
- package/dist/components/TextLink/TextLink.styles.js +4 -4
- package/dist/components/Timeline/Timeline.styles.d.ts +41 -0
- package/dist/components/Timeline/Timeline.styles.js +14 -15
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +2 -3
- package/dist/components/breakdown/Breakdown.d.ts +18 -0
- package/dist/components/breakdown/Breakdown.js +7 -7
- package/dist/components/logo/Logo.js +1 -1
- package/dist/design-system/css/base.css +74 -0
- package/dist/design-system/css/index.css +5 -0
- package/dist/design-system/fonts/Inter-LICENSE.txt +93 -0
- package/dist/design-system/fonts/inter-bitcoin-sign.woff2 +0 -0
- package/dist/design-system/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/design-system/fonts/inter-latin.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-ext-italic.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-ext.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-italic.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin.woff2 +0 -0
- package/dist/design-system/generated/fonts.css +296 -0
- package/dist/design-system/generated/text-classes.css +198 -0
- package/dist/design-system/generated/text-styles.d.ts +26 -0
- package/dist/design-system/generated/text-styles.js +179 -0
- package/dist/design-system/generated/tokens.css +429 -0
- package/dist/design-system/index.d.ts +9 -0
- package/dist/design-system/stories/foundations.d.ts +31 -0
- package/dist/design-system/stories/foundationsData.d.ts +18 -0
- package/dist/design-system/styled/breakpoint.d.ts +43 -0
- package/dist/design-system/styled/breakpoint.js +27 -0
- package/dist/design-system/styled/build-theme.d.ts +21 -0
- package/dist/design-system/styled/build-theme.js +27 -0
- package/dist/design-system/styled/text.d.ts +3 -0
- package/dist/design-system/styled/text.js +5 -0
- package/dist/design-system/styled/theme.d.ts +6 -0
- package/dist/design-system/tokens/breakpoints.d.ts +17 -0
- package/dist/design-system/tokens/breakpoints.js +16 -0
- package/dist/design-system/tokens/colors.d.ts +92 -0
- package/dist/design-system/tokens/colors.js +98 -0
- package/dist/design-system/tokens/fonts.d.ts +32 -0
- package/dist/design-system/tokens/fonts.js +49 -0
- package/dist/design-system/tokens/index.d.ts +6 -0
- package/dist/design-system/tokens/layout.d.ts +71 -0
- package/dist/design-system/tokens/layout.js +40 -0
- package/dist/design-system/tokens/semantic.d.ts +272 -0
- package/dist/design-system/tokens/semantic.js +76 -0
- package/dist/design-system/tokens/typography.d.ts +38 -0
- package/dist/design-system/tokens/typography.js +120 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -1
- package/dist/index.d.ts +115 -53
- package/dist/index.js +48 -43
- package/dist/static/images/numbers/number_eight.svg +1 -1
- package/dist/static/images/numbers/number_eight.svg.js +1 -1
- package/dist/static/images/numbers/number_five.svg +2 -2
- package/dist/static/images/numbers/number_five.svg.js +1 -1
- package/dist/static/images/numbers/number_four.svg +1 -1
- package/dist/static/images/numbers/number_four.svg.js +1 -1
- package/dist/static/images/numbers/number_nine.svg +2 -2
- package/dist/static/images/numbers/number_nine.svg.js +1 -1
- package/dist/static/images/numbers/number_one.svg +2 -2
- package/dist/static/images/numbers/number_one.svg.js +1 -1
- package/dist/static/images/numbers/number_seven.svg +2 -2
- package/dist/static/images/numbers/number_seven.svg.js +1 -1
- package/dist/static/images/numbers/number_six.svg +2 -2
- package/dist/static/images/numbers/number_six.svg.js +1 -1
- package/dist/static/images/numbers/number_three.svg +1 -1
- package/dist/static/images/numbers/number_three.svg.js +1 -1
- package/dist/static/images/numbers/number_two.svg +2 -2
- package/dist/static/images/numbers/number_two.svg.js +1 -1
- package/dist/static/images/numbers/number_zero.svg +1 -1
- package/dist/static/images/numbers/number_zero.svg.js +1 -1
- package/dist/styles/borderedField.d.ts +1 -1
- package/dist/styles/borderedField.js +15 -18
- package/dist/utils/customHooks.d.ts +4 -4
- package/dist/utils/customHooks.js +6 -6
- package/package.json +16 -11
- package/dist/static/images/address-refreshing.gif.js +0 -4
- package/dist/static/images/process-waiting.gif.js +0 -4
- package/dist/styles/colors.d.ts +0 -68
- package/dist/styles/colors.js +0 -69
- package/dist/styles/elevation.d.ts +0 -13
- package/dist/styles/elevation.js +0 -15
- package/dist/styles/global.js +0 -63
- package/dist/styles/rwd.d.ts +0 -55
- package/dist/styles/rwd.js +0 -79
- package/dist/styles/spacing.d.ts +0 -36
- package/dist/styles/spacing.js +0 -38
- package/dist/styles/theme.d.ts +0 -92
- package/dist/styles/theme.js +0 -36
- package/dist/styles/typography.d.ts +0 -42
- package/dist/styles/typography.js +0 -56
|
@@ -1,6 +1,137 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import styled, { keyframes, css } from "styled-components";
|
|
4
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
5
|
const loaderGif = "https://res.cloudinary.com/stokr/image/upload/f_webp,fl_awebp,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif";
|
|
6
|
+
const RING_CIRCUMFERENCE = 1021;
|
|
7
|
+
const arc = (degrees) => `${(degrees / 360 * RING_CIRCUMFERENCE).toFixed(1)} ${RING_CIRCUMFERENCE}`;
|
|
8
|
+
const ringMotion = keyframes`
|
|
9
|
+
0% { transform: rotate(-90deg); stroke-dasharray: ${arc(270)}; }
|
|
10
|
+
4% { transform: rotate(-30deg); stroke-dasharray: ${arc(300)}; }
|
|
11
|
+
8% { transform: rotate(60deg); stroke-dasharray: ${arc(180)}; }
|
|
12
|
+
10% { transform: rotate(160deg); stroke-dasharray: ${arc(100)}; }
|
|
13
|
+
12% { transform: rotate(280deg); stroke-dasharray: ${arc(30)}; }
|
|
14
|
+
14% { transform: rotate(300deg); stroke-dasharray: ${arc(120)}; }
|
|
15
|
+
16% { transform: rotate(310deg); stroke-dasharray: ${arc(260)}; }
|
|
16
|
+
22% { transform: rotate(310deg); stroke-dasharray: ${arc(340)}; }
|
|
17
|
+
30% { transform: rotate(320deg); stroke-dasharray: ${arc(352)}; }
|
|
18
|
+
36% { transform: rotate(330deg); stroke-dasharray: ${arc(340)}; }
|
|
19
|
+
42% { transform: rotate(480deg); stroke-dasharray: ${arc(340)}; }
|
|
20
|
+
48% { transform: rotate(565deg); stroke-dasharray: ${arc(310)}; }
|
|
21
|
+
55%, 100% { transform: rotate(630deg); stroke-dasharray: ${arc(270)}; }
|
|
22
|
+
`;
|
|
23
|
+
const RingSvg = styled.svg`
|
|
24
|
+
display: block;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
max-height: 100%;
|
|
27
|
+
color: var(--stokr-text-primary);
|
|
28
|
+
|
|
29
|
+
circle {
|
|
30
|
+
transform-origin: 200px 200px;
|
|
31
|
+
animation: ${ringMotion} 4s linear infinite;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
const LoaderRing = ({ size = 400, className }) => /* @__PURE__ */ jsx(RingSvg, { className, width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "Loading", children: /* @__PURE__ */ jsx("circle", { cx: "200", cy: "200", r: "162.5", fill: "none", stroke: "currentColor", strokeWidth: "75" }) });
|
|
35
|
+
const LOGO_WIDTH = 140;
|
|
36
|
+
const LOGO_HEIGHT = 34;
|
|
37
|
+
const LOGO_O_CENTER = "64.94px 17px";
|
|
38
|
+
const LOGO_O_CIRCUMFERENCE = 86.35;
|
|
39
|
+
const LOGO_O_DRAWN = 64.76;
|
|
40
|
+
const LOGO_LETTERS = [
|
|
41
|
+
{
|
|
42
|
+
key: "s",
|
|
43
|
+
d: "M14.8041 9.24243C13.2455 7.01254 11.6592 5.89746 10.0438 5.89746C9.25726 5.89746 8.61397 6.11412 8.1137 6.54658C7.61343 6.97961 7.36329 7.46753 7.36329 8.01005C7.36329 8.55315 7.54164 9.0665 7.89945 9.55038C8.38521 10.1963 9.85041 11.5827 12.2948 13.7094C14.5816 15.6755 15.9682 16.9151 16.4545 17.4285C17.6693 18.6903 18.5304 19.8964 19.0381 21.0485C19.5455 22.2 19.7995 23.4578 19.7995 24.8221C19.7995 27.4778 18.9063 29.6707 17.1208 31.402C15.3348 33.133 13.0066 33.9985 10.1356 33.9985C7.8926 33.9985 5.93918 33.4334 4.27479 32.3042C2.61068 31.1744 1.18548 29.3995 0 26.9786L5.03781 23.8541C6.55288 26.7146 8.29644 28.1449 10.2688 28.1449C11.2973 28.1449 12.1622 27.8372 12.8625 27.2207C13.563 26.6048 13.9132 25.8933 13.9132 25.0862C13.9132 24.353 13.6485 23.6195 13.1197 22.8858C12.5907 22.1523 11.426 21.03 9.62493 19.5188C6.19397 16.6436 3.97808 14.4244 2.97753 12.8621C1.97699 11.2998 1.47699 9.74104 1.47699 8.18627C1.47699 5.94166 2.30932 4.01597 3.9737 2.40978C5.63781 0.803307 7.69178 0.000213623 10.1348 0.000213623C11.7066 0.000213623 13.203 0.374027 14.6244 1.12252C16.046 1.87044 17.5852 3.23512 19.2427 5.2157L19.8038 5.83564L15.2899 9.93054L14.8041 9.24243Z"
|
|
44
|
+
},
|
|
45
|
+
{ key: "t", d: "M28 7.75029H33.3333V34H38.6667V7.75029H44V1.91705H28V7.75029Z" },
|
|
46
|
+
{
|
|
47
|
+
key: "k",
|
|
48
|
+
d: "M110.8 1.91705H103.596L95.3794 12.6707L94.0003 14.4478V1.91705H88V34H94.0003V17.9804L95.3794 19.9973L104.885 34H112L100 16.5008L110.8 1.91705Z"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "r",
|
|
52
|
+
d: "M132.873 12.4215H132.873C132.866 17.5985 125.568 17.0776 123.965 17.0796V12.4215V12.4138V7.75566C125.568 7.75735 132.866 7.23676 132.873 12.4138H132.873V12.4175V12.4215ZM133.447 21.3952C136.481 20.0128 138.812 17.3912 138.812 12.4186C138.812 2.82858 130.151 1.96959 124.481 1.92016C124.436 1.9196 124.39 1.91903 124.345 1.91875C124.236 1.9179 124.129 1.91762 124.022 1.91762C123.96 1.91734 123.897 1.91705 123.836 1.91705C123.815 1.91705 123.796 1.91705 123.776 1.91705C123.62 1.91705 123.469 1.9179 123.319 1.91847C123.274 1.91875 123.227 1.91875 123.182 1.91903C123.017 1.9179 122.855 1.91762 122.695 1.91762H122.682C122.657 1.91762 122.633 1.9179 122.608 1.9179C122.436 1.9179 122.268 1.91847 122.103 1.91931C121.844 1.92044 121.592 1.92214 121.354 1.92327H118.026H118.003V12.4186V22.914L118 34H123.965V22.9199C124.243 22.9196 124.529 22.9174 124.823 22.9129C124.831 22.9129 124.838 22.9129 124.846 22.9126C125.123 22.9083 125.406 22.9013 125.694 22.8917C125.738 22.89 125.782 22.8883 125.826 22.8866C126.388 22.8663 126.968 22.8326 127.558 22.7809C127.603 22.7773 127.647 22.7753 127.692 22.7711L133.508 34H140L133.447 21.3952Z"
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
const logoWipe = keyframes`
|
|
56
|
+
to { transform: scaleY(1); }
|
|
57
|
+
`;
|
|
58
|
+
const logoDraw = keyframes`
|
|
59
|
+
from { stroke-dasharray: 0 ${LOGO_O_CIRCUMFERENCE}; }
|
|
60
|
+
to { stroke-dasharray: ${LOGO_O_DRAWN} ${LOGO_O_CIRCUMFERENCE}; }
|
|
61
|
+
`;
|
|
62
|
+
const logoSpin = keyframes`
|
|
63
|
+
to { transform: rotate(360deg); }
|
|
64
|
+
`;
|
|
65
|
+
const LogoSvg = styled.svg`
|
|
66
|
+
display: block;
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
height: auto;
|
|
69
|
+
color: var(--stokr-text-primary);
|
|
70
|
+
|
|
71
|
+
.wipe {
|
|
72
|
+
transform-box: fill-box;
|
|
73
|
+
transform-origin: 50% 0;
|
|
74
|
+
transform: scaleY(0);
|
|
75
|
+
animation: ${logoWipe} 0.95s cubic-bezier(0.65, 0, 0.35, 1) forwards;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wipe-s {
|
|
79
|
+
animation-delay: 0s;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.wipe-t {
|
|
83
|
+
animation-delay: 0.15s;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.wipe-k {
|
|
87
|
+
animation-delay: 0.6s;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.wipe-r {
|
|
91
|
+
animation-delay: 0.75s;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.draw {
|
|
95
|
+
animation: ${logoDraw} 1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.spin {
|
|
99
|
+
transform-origin: ${LOGO_O_CENTER};
|
|
100
|
+
animation: ${logoSpin} 2.2s cubic-bezier(0.65, 0, 0.35, 1) 1.8s infinite;
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
const LoaderLogo = ({ width = LOGO_WIDTH, className }) => {
|
|
104
|
+
const id = useId().replace(/:/g, "");
|
|
105
|
+
return /* @__PURE__ */ jsxs(
|
|
106
|
+
LogoSvg,
|
|
107
|
+
{
|
|
108
|
+
className,
|
|
109
|
+
width,
|
|
110
|
+
height: width * LOGO_HEIGHT / LOGO_WIDTH,
|
|
111
|
+
viewBox: `0 0 ${LOGO_WIDTH} ${LOGO_HEIGHT}`,
|
|
112
|
+
fill: "none",
|
|
113
|
+
role: "img",
|
|
114
|
+
"aria-label": "Loading",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsx("defs", { children: LOGO_LETTERS.map(({ key }) => /* @__PURE__ */ jsx("clipPath", { id: `${id}-${key}`, children: /* @__PURE__ */ jsx("rect", { className: `wipe wipe-${key}`, x: "-2", y: "-1", width: LOGO_WIDTH + 4, height: LOGO_HEIGHT + 2 }) }, key)) }),
|
|
117
|
+
LOGO_LETTERS.map(({ key, d }) => /* @__PURE__ */ jsx("g", { clipPath: `url(#${id}-${key})`, children: /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d, fill: "currentColor" }) }, key)),
|
|
118
|
+
/* @__PURE__ */ jsx("g", { className: "spin", children: /* @__PURE__ */ jsx(
|
|
119
|
+
"circle",
|
|
120
|
+
{
|
|
121
|
+
className: "draw",
|
|
122
|
+
cx: "64.94",
|
|
123
|
+
cy: "17",
|
|
124
|
+
r: "13.743",
|
|
125
|
+
stroke: "currentColor",
|
|
126
|
+
strokeWidth: "6.515",
|
|
127
|
+
strokeDasharray: `${LOGO_O_DRAWN} ${LOGO_O_CIRCUMFERENCE}`,
|
|
128
|
+
transform: "rotate(-90 64.94 17)"
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
};
|
|
4
135
|
const CenterFullWidth = styled.div`
|
|
5
136
|
width: 100%;
|
|
6
137
|
height: 100%;
|
|
@@ -22,11 +153,11 @@ const fadeIn = keyframes`
|
|
|
22
153
|
}
|
|
23
154
|
`;
|
|
24
155
|
const StyledStokrLoader = styled.div.withConfig({
|
|
25
|
-
shouldForwardProp: (props) => !["noFullscreen"].includes(props)
|
|
156
|
+
shouldForwardProp: (props) => !["noFullscreen", "variant"].includes(props)
|
|
26
157
|
})`
|
|
27
158
|
align-items: center;
|
|
28
159
|
animation: ${fadeIn} 1.8s ease-in-out forwards;
|
|
29
|
-
background:
|
|
160
|
+
background: var(--stokr-background-default);
|
|
30
161
|
display: flex;
|
|
31
162
|
height: 100vh;
|
|
32
163
|
justify-content: center;
|
|
@@ -42,33 +173,45 @@ const StyledStokrLoader = styled.div.withConfig({
|
|
|
42
173
|
top: unset;
|
|
43
174
|
`}
|
|
44
175
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
width: 15rem;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
176
|
+
${({ variant }) => variant === "logo" ? css`
|
|
177
|
+
svg {
|
|
178
|
+
width: 200px;
|
|
179
|
+
}
|
|
52
180
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
181
|
+
${breakpoint.Medium`
|
|
182
|
+
svg {
|
|
183
|
+
width: 300px;
|
|
184
|
+
}
|
|
185
|
+
`}
|
|
186
|
+
` : css`
|
|
187
|
+
/* 320px, 375px and 768px at the 16px base. */
|
|
188
|
+
${breakpoint.Small`
|
|
189
|
+
svg {
|
|
190
|
+
height: 150px;
|
|
191
|
+
width: 150px;
|
|
192
|
+
}
|
|
193
|
+
`}
|
|
59
194
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
195
|
+
${breakpoint.Small`
|
|
196
|
+
svg {
|
|
197
|
+
height: 180px;
|
|
198
|
+
width: 180px;
|
|
199
|
+
}
|
|
200
|
+
`}
|
|
201
|
+
|
|
202
|
+
${breakpoint.Medium`
|
|
203
|
+
svg {
|
|
204
|
+
height: 300px;
|
|
205
|
+
width: 300px;
|
|
206
|
+
}
|
|
207
|
+
`}
|
|
208
|
+
`}
|
|
66
209
|
`;
|
|
67
|
-
function StokrLoader({ noFullscreen }) {
|
|
68
|
-
return /* @__PURE__ */ jsx(StyledStokrLoader, { noFullscreen, children: /* @__PURE__ */ jsx(
|
|
210
|
+
function StokrLoader({ noFullscreen, variant = "ring" }) {
|
|
211
|
+
return /* @__PURE__ */ jsx(StyledStokrLoader, { noFullscreen, variant, children: variant === "logo" ? /* @__PURE__ */ jsx(LoaderLogo, {}) : /* @__PURE__ */ jsx(LoaderRing, {}) });
|
|
69
212
|
}
|
|
70
|
-
const StokrLoaderBox = () => {
|
|
71
|
-
return /* @__PURE__ */ jsx(CenterFullWidth, { children: /* @__PURE__ */ jsx(
|
|
213
|
+
const StokrLoaderBox = ({ variant = "ring" }) => {
|
|
214
|
+
return /* @__PURE__ */ jsx(CenterFullWidth, { children: variant === "logo" ? /* @__PURE__ */ jsx(LoaderLogo, { width: 200 }) : /* @__PURE__ */ jsx(LoaderRing, {}) });
|
|
72
215
|
};
|
|
73
216
|
const fadeInOut = keyframes`
|
|
74
217
|
50% {
|
|
@@ -103,6 +246,8 @@ const LoadingDots = (props) => {
|
|
|
103
246
|
};
|
|
104
247
|
export {
|
|
105
248
|
AnimatedSpan,
|
|
249
|
+
LoaderLogo,
|
|
250
|
+
LoaderRing,
|
|
106
251
|
LoadingDots,
|
|
107
252
|
StokrLoader,
|
|
108
253
|
StokrLoaderBox,
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
const LogoSvg = () => /* @__PURE__ */ jsx(
|
|
4
|
-
"svg",
|
|
5
|
-
{
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
style: {
|
|
8
|
-
width: "66px",
|
|
9
|
-
height: "16px"
|
|
10
|
-
},
|
|
11
|
-
children: /* @__PURE__ */ jsx("g", { fill: "#202020", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M62.529 5.872c-.004 2.43-3.438 2.185-4.193 2.186V3.682c.755 0 4.189-.244 4.193 2.186v.004zm.27 4.212c1.427-.65 2.524-1.88 2.524-4.214 0-4.501-4.076-4.904-6.744-4.927a10.373 10.373 0 0 0-.303-.002h-.244l-.064.001h-.508l-.352.002H55.53v9.853L55.529 16h2.807v-5.2c.131 0 .266-.002.404-.004h.011a22.261 22.261 0 0 0 .461-.012c.265-.01.538-.026.815-.05l.063-.005L62.827 16h3.055L62.8 10.084zM30.56.042v3.057c2.691 0 4.88 2.208 4.88 4.922 0 2.713-2.189 4.921-4.88 4.921s-4.88-2.208-4.88-4.921v-.002h-3.032v.002c0 4.407 3.542 7.979 7.912 7.979s7.912-3.572 7.912-7.98c0-4.406-3.542-7.978-7.912-7.978M6.967 4.38c-.734-1.047-1.48-1.57-2.24-1.57-.37 0-.673.101-.909.304-.235.203-.353.433-.353.687 0 .255.084.496.252.723.229.303.919.954 2.069 1.952 1.076.923 1.728 1.505 1.957 1.746.572.592.977 1.158 1.216 1.699.239.54.358 1.13.358 1.771 0 1.247-.42 2.276-1.26 3.089-.84.812-1.936 1.218-3.287 1.218-1.056 0-1.975-.265-2.758-.795-.783-.53-1.454-1.363-2.012-2.5l2.37-1.466c.714 1.343 1.534 2.014 2.462 2.014.484 0 .891-.145 1.22-.434.33-.289.495-.623.495-1.002 0-.344-.124-.688-.373-1.033-.249-.344-.797-.87-1.645-1.58-1.614-1.35-2.657-2.391-3.128-3.124-.47-.734-.706-1.465-.706-2.195 0-1.054.392-1.958 1.175-2.711C2.653.419 3.62.042 4.77.042c.739 0 1.443.175 2.112.526.67.351 1.393.992 2.173 1.922l.264.29-2.124 1.923-.228-.323zM52.141.941h-3.39L44.884 5.99l-.649.834V.94h-2.823V16h2.823V8.48l.65.948L49.357 16h3.348l-5.647-8.214zM13.176 3.68h2.51V16h2.51V3.68h2.51V.94h-7.53z" }) })
|
|
12
|
-
}
|
|
13
|
-
);
|
|
3
|
+
const LogoSvg = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "66", height: "16", viewBox: "0 0 66 16", ...props, children: /* @__PURE__ */ jsx("g", { fill: "currentColor", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M62.529 5.872c-.004 2.43-3.438 2.185-4.193 2.186V3.682c.755 0 4.189-.244 4.193 2.186v.004zm.27 4.212c1.427-.65 2.524-1.88 2.524-4.214 0-4.501-4.076-4.904-6.744-4.927a10.373 10.373 0 0 0-.303-.002h-.244l-.064.001h-.508l-.352.002H55.53v9.853L55.529 16h2.807v-5.2c.131 0 .266-.002.404-.004h.011a22.261 22.261 0 0 0 .461-.012c.265-.01.538-.026.815-.05l.063-.005L62.827 16h3.055L62.8 10.084zM30.56.042v3.057c2.691 0 4.88 2.208 4.88 4.922 0 2.713-2.189 4.921-4.88 4.921s-4.88-2.208-4.88-4.921v-.002h-3.032v.002c0 4.407 3.542 7.979 7.912 7.979s7.912-3.572 7.912-7.98c0-4.406-3.542-7.978-7.912-7.978M6.967 4.38c-.734-1.047-1.48-1.57-2.24-1.57-.37 0-.673.101-.909.304-.235.203-.353.433-.353.687 0 .255.084.496.252.723.229.303.919.954 2.069 1.952 1.076.923 1.728 1.505 1.957 1.746.572.592.977 1.158 1.216 1.699.239.54.358 1.13.358 1.771 0 1.247-.42 2.276-1.26 3.089-.84.812-1.936 1.218-3.287 1.218-1.056 0-1.975-.265-2.758-.795-.783-.53-1.454-1.363-2.012-2.5l2.37-1.466c.714 1.343 1.534 2.014 2.462 2.014.484 0 .891-.145 1.22-.434.33-.289.495-.623.495-1.002 0-.344-.124-.688-.373-1.033-.249-.344-.797-.87-1.645-1.58-1.614-1.35-2.657-2.391-3.128-3.124-.47-.734-.706-1.465-.706-2.195 0-1.054.392-1.958 1.175-2.711C2.653.419 3.62.042 4.77.042c.739 0 1.443.175 2.112.526.67.351 1.393.992 2.173 1.922l.264.29-2.124 1.923-.228-.323zM52.141.941h-3.39L44.884 5.99l-.649.834V.94h-2.823V16h2.823V8.48l.65.948L49.357 16h3.348l-5.647-8.214zM13.176 3.68h2.51V16h2.51V3.68h2.51V.94h-7.53z" }) }) });
|
|
14
4
|
var stdin_default = LogoSvg;
|
|
15
5
|
export {
|
|
16
6
|
stdin_default as default
|
|
@@ -4,10 +4,8 @@ const VerifiedBadge = () => /* @__PURE__ */ jsx("svg", { width: "90", height: "3
|
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
6
|
d: "M84.707 1H5.293A4.3 4.3 0 0 0 1 5.308v19.384A4.3 4.3 0 0 0 5.293 29h79.414A4.3 4.3 0 0 0 89 24.692V5.308A4.3 4.3 0 0 0 84.707 1zM87 24.818C87 26.023 86.036 27 84.846 27H5.154C3.964 27 3 26.023 3 24.818V5.182C3 3.977 3.964 3 5.154 3h79.692C86.036 3 87 3.977 87 5.182v19.636zM53 15c0 .552-.481 1-1.075 1h-40.85C10.481 16 10 15.552 10 15s.481-1 1.075-1h40.85c.594 0 1.075.448 1.075 1zm26.54-4.832c.473.316.602.953.29 1.428l-5.96 8.949c-.183.27-.482.439-.808.455-.307 0-.6-.136-.796-.372l-3.033-3.58a1.056 1.056 0 1 1 1.646-1.324l2.07 2.514 5.174-7.79a1.035 1.035 0 0 1 1.417-.28z",
|
|
7
|
-
fill: "
|
|
8
|
-
fillRule: "nonzero"
|
|
9
|
-
stroke: "#EE220D",
|
|
10
|
-
strokeWidth: ".5"
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
fillRule: "nonzero"
|
|
11
9
|
}
|
|
12
10
|
) });
|
|
13
11
|
var stdin_default = VerifiedBadge;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
+
}, {
|
|
4
|
+
mobile?: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const Value: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
7
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
8
|
+
}, {
|
|
9
|
+
active?: boolean;
|
|
10
|
+
dark?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const Indicator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
14
|
+
}, {
|
|
15
|
+
dark?: boolean;
|
|
16
|
+
value1?: boolean;
|
|
17
|
+
value1Color?: string;
|
|
18
|
+
value2?: boolean;
|
|
19
|
+
value2Color?: string;
|
|
20
|
+
}>> & string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import theme from "../../styles/theme.js";
|
|
3
2
|
const switchWidth = 34;
|
|
4
3
|
const Container = styled.div.withConfig({
|
|
5
4
|
shouldForwardProp: (props) => !["mobile"].includes(props)
|
|
@@ -27,14 +26,14 @@ const Value = styled.button.withConfig({
|
|
|
27
26
|
text-transform: uppercase;
|
|
28
27
|
padding: 2px 0;
|
|
29
28
|
opacity: 0.5;
|
|
30
|
-
color:
|
|
29
|
+
color: var(--stokr-text-primary);
|
|
31
30
|
transition:
|
|
32
31
|
opacity 0.2s,
|
|
33
32
|
color 0.2s;
|
|
34
33
|
cursor: pointer;
|
|
35
34
|
|
|
36
35
|
&:hover {
|
|
37
|
-
color:
|
|
36
|
+
color: var(--stokr-action-accent-bg);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
${(props) => props.active && `
|
|
@@ -42,10 +41,10 @@ const Value = styled.button.withConfig({
|
|
|
42
41
|
`}
|
|
43
42
|
|
|
44
43
|
${(props) => props.dark && `
|
|
45
|
-
color:
|
|
44
|
+
color: var(--stokr-color-blue-500);
|
|
46
45
|
|
|
47
46
|
&:hover {
|
|
48
|
-
color:
|
|
47
|
+
color: var(--stokr-text-primary);
|
|
49
48
|
}
|
|
50
49
|
`};
|
|
51
50
|
`;
|
|
@@ -57,7 +56,7 @@ const Indicator = styled.div.withConfig({
|
|
|
57
56
|
width: ${switchWidth}px;
|
|
58
57
|
height: 16px;
|
|
59
58
|
border-radius: 8px;
|
|
60
|
-
background-color:
|
|
59
|
+
background-color: var(--stokr-action-secondary-bg);
|
|
61
60
|
margin: 0 16px;
|
|
62
61
|
position: relative;
|
|
63
62
|
outline: 0;
|
|
@@ -74,7 +73,7 @@ const Indicator = styled.div.withConfig({
|
|
|
74
73
|
margin-top: -9px;
|
|
75
74
|
margin-left: -9px;
|
|
76
75
|
border-radius: 9px;
|
|
77
|
-
background-color:
|
|
76
|
+
background-color: var(--stokr-action-primary-bg);
|
|
78
77
|
transform: translateX(0);
|
|
79
78
|
transition:
|
|
80
79
|
transform 0.2s,
|
|
@@ -83,20 +82,20 @@ const Indicator = styled.div.withConfig({
|
|
|
83
82
|
|
|
84
83
|
&:hover {
|
|
85
84
|
&:before {
|
|
86
|
-
background-color:
|
|
85
|
+
background-color: var(--stokr-action-accent-bg);
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
${(props) => props.dark && `
|
|
91
|
-
background-color:
|
|
90
|
+
background-color: var(--stokr-color-neutral-500);
|
|
92
91
|
|
|
93
92
|
&:before {
|
|
94
|
-
background-color:
|
|
93
|
+
background-color: var(--stokr-color-blue-500);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
&:hover {
|
|
98
97
|
&:before {
|
|
99
|
-
background-color:
|
|
98
|
+
background-color: var(--stokr-color-neutral-900);
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
`}
|
|
@@ -19,7 +19,7 @@ const getTransitionStyles = {
|
|
|
19
19
|
opacity: 0
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
const Tabs = ({ children, activeTab
|
|
22
|
+
const Tabs = ({ children, activeTab }) => /* @__PURE__ */ jsx(TransitionGroup, { component: StyledTabs, children: React__default.Children.map(children, (child) => {
|
|
23
23
|
if (child.props.tabId !== activeTab || !React__default.isValidElement(child)) return null;
|
|
24
24
|
return /* @__PURE__ */ jsx(
|
|
25
25
|
Transition,
|
|
@@ -44,7 +44,7 @@ const Tabs = ({ children, activeTab = 0 }) => /* @__PURE__ */ jsx(TransitionGrou
|
|
|
44
44
|
}) });
|
|
45
45
|
Tabs.propTypes = {
|
|
46
46
|
children: PropTypes.node.isRequired,
|
|
47
|
-
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
47
|
+
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
50
|
Tab,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const StyledTabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
+
}, {
|
|
4
|
+
noBorderBottom?: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const Scroll: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
8
|
+
}> & string;
|
|
9
|
+
export declare const TabsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
11
|
+
}, {
|
|
12
|
+
noWrapperPadding?: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const LinkText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
15
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
|
+
}> & string;
|
|
17
|
+
interface StyledTabProps {
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
/** Extra CSS appended to the tab, e.g. `padding: 8px;`. */
|
|
20
|
+
customStyles?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const StyledTab: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
23
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
24
|
+
}, StyledTabProps>> & string;
|
|
25
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import
|
|
3
|
-
import theme from "../../styles/theme.js";
|
|
2
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
4
3
|
const StyledTabs = styled.div.withConfig({
|
|
5
4
|
shouldForwardProp: (props) => !["noBorderBottom"].includes(props)
|
|
6
5
|
})`
|
|
7
6
|
position: relative;
|
|
8
|
-
border-bottom: 1px solid
|
|
7
|
+
border-bottom: 1px solid var(--stokr-border-subtle);
|
|
9
8
|
|
|
10
9
|
${(props) => props.noBorderBottom && `
|
|
11
10
|
border-bottom: none;
|
|
@@ -23,7 +22,7 @@ const TabsWrapper = styled.div.withConfig({
|
|
|
23
22
|
white-space: nowrap;
|
|
24
23
|
padding: 12px 0;
|
|
25
24
|
|
|
26
|
-
${
|
|
25
|
+
${breakpoint.Medium`
|
|
27
26
|
padding: 24px;
|
|
28
27
|
`}
|
|
29
28
|
|
|
@@ -34,7 +33,7 @@ const TabsWrapper = styled.div.withConfig({
|
|
|
34
33
|
const LinkText = styled.span`
|
|
35
34
|
display: block;
|
|
36
35
|
position: relative;
|
|
37
|
-
font-family:
|
|
36
|
+
font-family: var(--stokr-font-family-base);
|
|
38
37
|
font-size: 11px;
|
|
39
38
|
letter-spacing: 2px;
|
|
40
39
|
line-height: 20px;
|
|
@@ -61,14 +60,14 @@ const StyledTab = styled.button.withConfig({
|
|
|
61
60
|
outline: none;
|
|
62
61
|
visibility: visible;
|
|
63
62
|
padding: 12px;
|
|
64
|
-
color:
|
|
63
|
+
color: var(--stokr-text-primary);
|
|
65
64
|
transition: opacity 0.2s;
|
|
66
65
|
|
|
67
|
-
${
|
|
66
|
+
${breakpoint.Medium`
|
|
68
67
|
padding: 24px;
|
|
69
68
|
`}
|
|
70
69
|
|
|
71
|
-
${
|
|
70
|
+
${breakpoint.Large`
|
|
72
71
|
padding: 32px 40px;
|
|
73
72
|
`}
|
|
74
73
|
|
|
@@ -87,7 +86,7 @@ const StyledTab = styled.button.withConfig({
|
|
|
87
86
|
font-weight: bold;
|
|
88
87
|
|
|
89
88
|
&:before {
|
|
90
|
-
background-color:
|
|
89
|
+
background-color: var(--stokr-action-accent-bg)!important;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
`}
|
|
@@ -2,7 +2,6 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useCallback } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { Input } from "../Input/Input.js";
|
|
5
|
-
import { colors } from "../../styles/colors.js";
|
|
6
5
|
import { Checkbox } from "../Checkbox/Checkbox.js";
|
|
7
6
|
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
8
7
|
import { CountrySelect } from "../Country/CountrySelect.js";
|
|
@@ -13,7 +12,7 @@ const NO_TIN_TEXT_STYLE = {
|
|
|
13
12
|
lineHeight: "18px",
|
|
14
13
|
fontWeight: 400,
|
|
15
14
|
letterSpacing: "0.6px",
|
|
16
|
-
color:
|
|
15
|
+
color: "var(--stokr-text-primary)"
|
|
17
16
|
};
|
|
18
17
|
const TaxResidenceCard = (props) => {
|
|
19
18
|
const {
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FieldVariant } from '../../styles/borderedField';
|
|
2
|
+
export declare const CardWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
+
}, {
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
$variant?: FieldVariant;
|
|
7
|
+
}>> & string;
|
|
8
|
+
/**
|
|
9
|
+
* Header is a click target, but it CANNOT be a real `<button>` because we
|
|
10
|
+
* render a delete `<button>` inside it (nested interactive elements are
|
|
11
|
+
* invalid HTML). We use a div with role="button" + keyboard handlers in the
|
|
12
|
+
* component so accessibility stays intact.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CardHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
|
+
}, {
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
$variant?: FieldVariant;
|
|
19
|
+
}>> & string;
|
|
20
|
+
/**
|
|
21
|
+
* Slot in front of the title. Has no intrinsic size of its own — children
|
|
22
|
+
* (flag wrapper or globe SVG) define their own dimensions so each icon keeps
|
|
23
|
+
* its natural aspect ratio (3:2 for flags, 1:1 for the globe).
|
|
24
|
+
*/
|
|
25
|
+
export declare const HeaderIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
26
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
27
|
+
}, {
|
|
28
|
+
$variant?: FieldVariant;
|
|
29
|
+
}>> & string;
|
|
30
|
+
/** 3:2 frame for country flags so they line up across rows. */
|
|
31
|
+
export declare const FlagWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
32
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
33
|
+
}, {
|
|
34
|
+
$variant?: FieldVariant;
|
|
35
|
+
}>> & string;
|
|
36
|
+
export declare const HeaderTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
37
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
38
|
+
}, {
|
|
39
|
+
$variant?: FieldVariant;
|
|
40
|
+
}>> & string;
|
|
41
|
+
export declare const HeaderActions: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
42
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
43
|
+
}, {
|
|
44
|
+
$variant?: FieldVariant;
|
|
45
|
+
}>> & string;
|
|
46
|
+
/**
|
|
47
|
+
* Plain icon button hosting an inline-SVG <TrashIcon>: the screenshot calls for a thin outline
|
|
48
|
+
* trash, which we draw ourselves to keep stroke weight and metrics consistent with the globe icon.
|
|
49
|
+
*/
|
|
50
|
+
export declare const DeleteButton: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
51
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
52
|
+
}> & string;
|
|
53
|
+
export declare const ChevronIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
54
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
55
|
+
}, {
|
|
56
|
+
isOpen?: boolean;
|
|
57
|
+
$variant?: FieldVariant;
|
|
58
|
+
}>, "children"> & Partial<Pick<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
59
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
60
|
+
}, {
|
|
61
|
+
isOpen?: boolean;
|
|
62
|
+
$variant?: FieldVariant;
|
|
63
|
+
}>, "children">>> & string;
|
|
64
|
+
export declare const CardBodyCollapse: any;
|
|
65
|
+
export declare const CardBody: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
66
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
67
|
+
}, {
|
|
68
|
+
$variant?: FieldVariant;
|
|
69
|
+
}>> & string;
|
|
70
|
+
export declare const CheckboxRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
71
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
72
|
+
}, {
|
|
73
|
+
$variant?: FieldVariant;
|
|
74
|
+
}>> & string;
|