@stokr/components-library 4.2.6 → 5.0.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 +147 -118
- 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.d.ts +0 -1
- 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.d.ts +4 -10
- package/dist/components/Collapsible/Collapsible.js +14 -6
- package/dist/components/Collapsible/Collapsible.styles.d.ts +1 -3
- package/dist/components/Collapsible/Collapsible.styles.js +19 -36
- 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 +20 -15
- 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.js +18 -18
- package/dist/components/FAQ/FAQ.styles.d.ts +5 -12
- package/dist/components/FAQ/FAQ.styles.js +3 -61
- 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.js +1 -2
- package/dist/components/IdentityInfo/IdentityInfo.styles.d.ts +24 -0
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +6 -9
- package/dist/components/InfoBox/InfoBox.d.ts +20 -0
- package/dist/components/InfoBox/InfoBox.js +24 -78
- 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.d.ts +0 -3
- package/dist/components/Input/Input.js +3 -5
- package/dist/components/Input/Input.styles.d.ts +1 -4
- package/dist/components/Input/Input.styles.js +24 -77
- 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 +156 -80
- package/dist/components/Input/Select.styles.js +16 -118
- 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/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +0 -2
- 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/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 +23 -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/StokrLoader/StokrLoader.d.ts +9 -1
- package/dist/components/StokrLoader/StokrLoader.js +50 -19
- 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 +11 -27
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +57 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +25 -107
- 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 +117 -122
- package/dist/index.js +50 -62
- package/dist/static/images/globe.svg.js +5 -0
- 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/static/images/trash.svg +17 -0
- package/dist/static/images/trash.svg.js +5 -0
- package/dist/utils/customHooks.d.ts +4 -4
- package/dist/utils/customHooks.js +6 -6
- package/package.json +16 -11
- package/dist/components/AddressItem/AddressItem.d.ts +0 -38
- package/dist/components/AddressItem/AddressItem.js +0 -51
- package/dist/components/AddressItem/AddressItem.styles.d.ts +0 -31
- package/dist/components/AddressItem/AddressItem.styles.js +0 -73
- package/dist/components/Country/FlagFor.d.ts +0 -9
- package/dist/components/Country/FlagFor.js +0 -25
- package/dist/components/Country/flagLoaders.d.ts +0 -5
- package/dist/components/Country/flagLoaders.js +0 -270
- package/dist/components/Country/flagStore.d.ts +0 -6
- package/dist/components/Country/flagStore.js +0 -29
- package/dist/components/FAQ/FAQ.d.ts +0 -29
- package/dist/components/Input/Select.d.ts +0 -57
- package/dist/components/Input/Select.styles.d.ts +0 -89
- package/dist/components/PanelCard/PanelCard.d.ts +0 -51
- package/dist/components/PanelCard/PanelCard.js +0 -35
- package/dist/components/PanelCard/PanelCard.styles.d.ts +0 -29
- package/dist/components/PanelCard/PanelCard.styles.js +0 -87
- package/dist/components/StepSidebar/MobileStepProgress.d.ts +0 -12
- package/dist/components/StepSidebar/MobileStepProgress.js +0 -14
- package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +0 -15
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +0 -42
- package/dist/components/StepSidebar/StepProgress.d.ts +0 -14
- package/dist/components/StepSidebar/StepProgress.js +0 -14
- package/dist/components/StepSidebar/StepProgress.styles.d.ts +0 -30
- package/dist/components/StepSidebar/StepProgress.styles.js +0 -103
- package/dist/components/StepSidebar/StepSidebar.d.ts +0 -36
- package/dist/components/StepSidebar/StepSidebar.js +0 -58
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +0 -54
- package/dist/components/StepSidebar/StepSidebar.styles.js +0 -175
- package/dist/constants/chainLogos.d.ts +0 -9
- package/dist/constants/chainLogos.js +0 -17
- package/dist/static/images/address-refreshing.gif.js +0 -4
- package/dist/static/images/chains/avalanche.svg +0 -7
- package/dist/static/images/chains/avalanche.svg.js +0 -4
- package/dist/static/images/chains/ethereum.svg +0 -14
- package/dist/static/images/chains/ethereum.svg.js +0 -4
- package/dist/static/images/chains/liquid.svg +0 -7
- package/dist/static/images/chains/liquid.svg.js +0 -4
- package/dist/static/images/chains/solana.svg +0 -29
- package/dist/static/images/chains/solana.svg.js +0 -4
- package/dist/static/images/chains/stellar.svg +0 -17
- package/dist/static/images/chains/stellar.svg.js +0 -4
- package/dist/static/images/chains/tempo.svg +0 -11
- package/dist/static/images/chains/tempo.svg.js +0 -4
- package/dist/static/images/process-waiting.gif.js +0 -4
- package/dist/styles/borderedField.d.ts +0 -11
- package/dist/styles/borderedField.js +0 -56
- 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,35 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Root, Footer, Header, HeaderMain, HeaderText, HeaderTitle, HeaderSubtitle, HeaderTrailing, Section } from "./PanelCard.styles.js";
|
|
4
|
-
const PanelCard = forwardRef(function PanelCardBase({ highlighted = false, as, ...rest }, ref) {
|
|
5
|
-
return /* @__PURE__ */ jsx(Root, { ...rest, ref, as, $highlighted: highlighted });
|
|
6
|
-
});
|
|
7
|
-
const PanelCardHeader = forwardRef(function PanelCardHeaderBase({ leading, title, subtitle, trailing, titleAs, children, ...rest }, ref) {
|
|
8
|
-
const hasText = title != null || subtitle != null;
|
|
9
|
-
return /* @__PURE__ */ jsxs(Header, { ...rest, ref, children: [
|
|
10
|
-
/* @__PURE__ */ jsxs(HeaderMain, { children: [
|
|
11
|
-
leading,
|
|
12
|
-
hasText ? /* @__PURE__ */ jsxs(HeaderText, { children: [
|
|
13
|
-
title != null && /* @__PURE__ */ jsx(HeaderTitle, { as: titleAs, children: title }),
|
|
14
|
-
subtitle != null && /* @__PURE__ */ jsx(HeaderSubtitle, { children: subtitle })
|
|
15
|
-
] }) : children
|
|
16
|
-
] }),
|
|
17
|
-
trailing != null && /* @__PURE__ */ jsx(HeaderTrailing, { children: trailing })
|
|
18
|
-
] });
|
|
19
|
-
});
|
|
20
|
-
const PanelCardSection = forwardRef(
|
|
21
|
-
function PanelCardSectionBase(props, ref) {
|
|
22
|
-
return /* @__PURE__ */ jsx(Section, { ...props, ref });
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
const PanelCardFooter = forwardRef(
|
|
26
|
-
function PanelCardFooterBase(props, ref) {
|
|
27
|
-
return /* @__PURE__ */ jsx(Footer, { ...props, ref });
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
export {
|
|
31
|
-
PanelCard,
|
|
32
|
-
PanelCardFooter,
|
|
33
|
-
PanelCardHeader,
|
|
34
|
-
PanelCardSection
|
|
35
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const Root: 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
|
-
$highlighted: boolean;
|
|
5
|
-
}>> & string;
|
|
6
|
-
export declare const Header: 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 HeaderMain: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
11
|
-
}> & string;
|
|
12
|
-
export declare const HeaderText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
14
|
-
}> & string;
|
|
15
|
-
export declare const HeaderTitle: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
16
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
17
|
-
}> & string;
|
|
18
|
-
export declare const HeaderSubtitle: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
20
|
-
}> & string;
|
|
21
|
-
export declare const HeaderTrailing: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
22
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
23
|
-
}> & string;
|
|
24
|
-
export declare const Section: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
25
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
26
|
-
}> & string;
|
|
27
|
-
export declare const Footer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
28
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
29
|
-
}> & string;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
|
-
import { elevation } from "../../styles/elevation.js";
|
|
4
|
-
import rwd from "../../styles/rwd.js";
|
|
5
|
-
import { radius, space } from "../../styles/spacing.js";
|
|
6
|
-
import { typography } from "../../styles/typography.js";
|
|
7
|
-
const divider = `var(--panel-card-divider, 1px solid ${colors.lightGrey})`;
|
|
8
|
-
const Root = styled.div`
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
background: var(--panel-card-background, ${colors.white});
|
|
12
|
-
border: 1px solid
|
|
13
|
-
${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-color, ${colors.blue})` : `var(--panel-card-border-color, ${colors.lightGrey})`};
|
|
14
|
-
border-radius: var(--panel-card-radius, ${radius.lg});
|
|
15
|
-
box-shadow: ${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-shadow, ${elevation.md})` : "none"};
|
|
16
|
-
|
|
17
|
-
> * + * {
|
|
18
|
-
border-top: ${divider};
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
const Header = styled.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
align-items: flex-start;
|
|
25
|
-
gap: var(--panel-card-header-gap, ${space[5]});
|
|
26
|
-
padding: var(--panel-card-header-padding, ${space[4]});
|
|
27
|
-
|
|
28
|
-
${rwd.MLarge`
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
padding: var(--panel-card-header-padding, ${space[6]});
|
|
33
|
-
`}
|
|
34
|
-
`;
|
|
35
|
-
const HeaderMain = styled.div`
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: var(--panel-card-header-leading-gap, ${space[3]});
|
|
39
|
-
min-width: 0;
|
|
40
|
-
`;
|
|
41
|
-
const HeaderText = styled.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
min-width: 0;
|
|
45
|
-
`;
|
|
46
|
-
const HeaderTitle = styled.div`
|
|
47
|
-
${typography.bodyLgCallout};
|
|
48
|
-
color: ${colors.black};
|
|
49
|
-
`;
|
|
50
|
-
const HeaderSubtitle = styled.div`
|
|
51
|
-
${typography.bodyMd};
|
|
52
|
-
color: ${colors.grayBlue};
|
|
53
|
-
`;
|
|
54
|
-
const HeaderTrailing = styled.div`
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
flex: 0 0 auto;
|
|
58
|
-
`;
|
|
59
|
-
const Section = styled.div`
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
padding: var(--panel-card-section-padding, ${space[4]});
|
|
62
|
-
background: var(--panel-card-section-background, ${colors.white});
|
|
63
|
-
|
|
64
|
-
${rwd.MLarge`
|
|
65
|
-
padding: var(--panel-card-section-padding, ${space[4]} ${space[6]});
|
|
66
|
-
`}
|
|
67
|
-
`;
|
|
68
|
-
const Footer = styled.div`
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
padding: var(--panel-card-footer-padding, ${space[3]} ${space[4]});
|
|
71
|
-
background: var(--panel-card-footer-background, ${colors.grey3});
|
|
72
|
-
|
|
73
|
-
${rwd.MLarge`
|
|
74
|
-
padding: var(--panel-card-footer-padding, ${space[3]} ${space[6]});
|
|
75
|
-
`}
|
|
76
|
-
`;
|
|
77
|
-
export {
|
|
78
|
-
Footer,
|
|
79
|
-
Header,
|
|
80
|
-
HeaderMain,
|
|
81
|
-
HeaderSubtitle,
|
|
82
|
-
HeaderText,
|
|
83
|
-
HeaderTitle,
|
|
84
|
-
HeaderTrailing,
|
|
85
|
-
Root,
|
|
86
|
-
Section
|
|
87
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StepProgressProps } from './StepProgress';
|
|
2
|
-
export interface StepCaptionInfo {
|
|
3
|
-
number: number;
|
|
4
|
-
total: number;
|
|
5
|
-
title: string;
|
|
6
|
-
}
|
|
7
|
-
export interface MobileStepProgressProps extends StepProgressProps {
|
|
8
|
-
/** Builds the "Step 2 of 5 — Title" caption (copy lives in the app). */
|
|
9
|
-
formatCaption: (info: StepCaptionInfo) => string;
|
|
10
|
-
}
|
|
11
|
-
/** Horizontal segment strip with a caption for the current step, for narrow screens. */
|
|
12
|
-
export declare const MobileStepProgress: ({ steps, formatCaption, className }: MobileStepProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Strip, Segments, Segment, Caption } from "./MobileStepProgress.styles.js";
|
|
3
|
-
const MobileStepProgress = ({ steps, formatCaption, className }) => {
|
|
4
|
-
const active = steps.find((step) => step.status === "active");
|
|
5
|
-
const last = steps[steps.length - 1];
|
|
6
|
-
const current = active ?? (last?.status === "done" ? last : void 0);
|
|
7
|
-
return /* @__PURE__ */ jsxs(Strip, { className, children: [
|
|
8
|
-
/* @__PURE__ */ jsx(Segments, { children: steps.map((step) => /* @__PURE__ */ jsx(Segment, { $status: step.status }, step.id)) }),
|
|
9
|
-
current && /* @__PURE__ */ jsx(Caption, { children: formatCaption({ number: current.number, total: steps.length, title: current.title }) })
|
|
10
|
-
] });
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
MobileStepProgress
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StepStatus } from './StepProgress';
|
|
2
|
-
export declare const Strip: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
-
}> & string;
|
|
5
|
-
export declare const Segments: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
6
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
-
}> & string;
|
|
8
|
-
export declare const Segment: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
9
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
10
|
-
}, {
|
|
11
|
-
$status: StepStatus;
|
|
12
|
-
}>> & string;
|
|
13
|
-
export declare const Caption: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
14
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
15
|
-
}> & string;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
|
-
const SEGMENT_COLOR = {
|
|
4
|
-
done: "#38c229",
|
|
5
|
-
active: colors.white,
|
|
6
|
-
upcoming: "#4a4a4a"
|
|
7
|
-
};
|
|
8
|
-
const Strip = styled.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: 8px;
|
|
12
|
-
padding: 0 22px 12px;
|
|
13
|
-
`;
|
|
14
|
-
const Segments = styled.div`
|
|
15
|
-
display: flex;
|
|
16
|
-
gap: 12px;
|
|
17
|
-
width: 100%;
|
|
18
|
-
`;
|
|
19
|
-
const Segment = styled.span`
|
|
20
|
-
flex: 1 0 0;
|
|
21
|
-
min-width: 1px;
|
|
22
|
-
height: 4px;
|
|
23
|
-
border-radius: 2px;
|
|
24
|
-
background: ${({ $status }) => SEGMENT_COLOR[$status]};
|
|
25
|
-
`;
|
|
26
|
-
const Caption = styled.p`
|
|
27
|
-
margin: 0;
|
|
28
|
-
font-size: 10px;
|
|
29
|
-
font-weight: 600;
|
|
30
|
-
letter-spacing: 1.2px;
|
|
31
|
-
text-transform: uppercase;
|
|
32
|
-
color: ${colors.grey2};
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
text-overflow: ellipsis;
|
|
36
|
-
`;
|
|
37
|
-
export {
|
|
38
|
-
Caption,
|
|
39
|
-
Segment,
|
|
40
|
-
Segments,
|
|
41
|
-
Strip
|
|
42
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type StepStatus = 'done' | 'active' | 'upcoming';
|
|
2
|
-
export interface StepProgressItem {
|
|
3
|
-
id: string;
|
|
4
|
-
number: number;
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
status: StepStatus;
|
|
8
|
-
}
|
|
9
|
-
export interface StepProgressProps {
|
|
10
|
-
steps: readonly StepProgressItem[];
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/** Vertical step timeline for dark sidebars. */
|
|
14
|
-
export declare const StepProgress: ({ steps, className }: StepProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
3
|
-
import { List, Item, Marker, Line, ItemText, ItemTitle, ItemSubtitle } from "./StepProgress.styles.js";
|
|
4
|
-
const StepProgress = ({ steps, className }) => /* @__PURE__ */ jsx(List, { className, children: steps.map((step, index) => /* @__PURE__ */ jsxs(Item, { "data-status": step.status, "aria-current": step.status === "active" ? "step" : void 0, children: [
|
|
5
|
-
/* @__PURE__ */ jsx(Marker, { $status: step.status, children: step.status === "done" ? /* @__PURE__ */ jsx(MaterialIcon, { name: "check", weight: 600, size: "md" }) : step.number }),
|
|
6
|
-
index < steps.length - 1 && /* @__PURE__ */ jsx(Line, { $status: step.status }),
|
|
7
|
-
/* @__PURE__ */ jsxs(ItemText, { children: [
|
|
8
|
-
/* @__PURE__ */ jsx(ItemTitle, { $status: step.status, children: step.title }),
|
|
9
|
-
step.subtitle && /* @__PURE__ */ jsx(ItemSubtitle, { $status: step.status, children: step.subtitle })
|
|
10
|
-
] })
|
|
11
|
-
] }, step.id)) });
|
|
12
|
-
export {
|
|
13
|
-
StepProgress
|
|
14
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { StepStatus } from './StepProgress';
|
|
2
|
-
export declare const List: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "style"> & {
|
|
3
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
-
}> & string;
|
|
5
|
-
export declare const Item: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
6
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
-
}> & string;
|
|
8
|
-
export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
9
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
10
|
-
}, {
|
|
11
|
-
$status: StepStatus;
|
|
12
|
-
}>> & string;
|
|
13
|
-
export declare const Marker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
14
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
15
|
-
}, {
|
|
16
|
-
$status: StepStatus;
|
|
17
|
-
}>> & string;
|
|
18
|
-
export declare const ItemText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
20
|
-
}> & string;
|
|
21
|
-
export declare const ItemTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
22
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
23
|
-
}, {
|
|
24
|
-
$status: StepStatus;
|
|
25
|
-
}>> & string;
|
|
26
|
-
export declare const ItemSubtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
27
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
28
|
-
}, {
|
|
29
|
-
$status: StepStatus;
|
|
30
|
-
}>> & string;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
|
-
import { media } from "../../styles/rwd.js";
|
|
4
|
-
import { typography } from "../../styles/typography.js";
|
|
5
|
-
const MARKER_SIZE = 28;
|
|
6
|
-
const LINE_GAP = 4;
|
|
7
|
-
const DARK = "#0a0a0a";
|
|
8
|
-
const MARKER_BG = {
|
|
9
|
-
upcoming: "transparent",
|
|
10
|
-
active: colors.white,
|
|
11
|
-
done: colors.lighterGreen
|
|
12
|
-
};
|
|
13
|
-
const MARKER_BORDER = {
|
|
14
|
-
upcoming: colors.grey2,
|
|
15
|
-
active: colors.white,
|
|
16
|
-
done: colors.lighterGreen
|
|
17
|
-
};
|
|
18
|
-
const MARKER_TEXT = { upcoming: colors.grey2, active: DARK, done: DARK };
|
|
19
|
-
const TITLE_COLOR = {
|
|
20
|
-
upcoming: colors.grey2,
|
|
21
|
-
active: colors.white,
|
|
22
|
-
done: colors.lighterGreen
|
|
23
|
-
};
|
|
24
|
-
const SUBTITLE_COLOR = {
|
|
25
|
-
upcoming: colors.grey2,
|
|
26
|
-
active: colors.grey,
|
|
27
|
-
done: "rgba(255, 255, 255, 0.45)"
|
|
28
|
-
};
|
|
29
|
-
const LINE_COLOR = {
|
|
30
|
-
upcoming: colors.grey2,
|
|
31
|
-
active: colors.grey,
|
|
32
|
-
done: colors.lightPastelGreen
|
|
33
|
-
};
|
|
34
|
-
const List = styled.ol`
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: 0;
|
|
39
|
-
list-style: none;
|
|
40
|
-
`;
|
|
41
|
-
const Item = styled.li`
|
|
42
|
-
position: relative;
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: flex-start;
|
|
45
|
-
gap: 16px;
|
|
46
|
-
padding-bottom: 32px;
|
|
47
|
-
|
|
48
|
-
&:last-child {
|
|
49
|
-
padding-bottom: 0;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
const Line = styled.span`
|
|
53
|
-
position: absolute;
|
|
54
|
-
left: ${MARKER_SIZE / 2 - 1}px;
|
|
55
|
-
top: ${MARKER_SIZE + LINE_GAP}px;
|
|
56
|
-
bottom: ${LINE_GAP}px;
|
|
57
|
-
width: 2px;
|
|
58
|
-
background-color: ${({ $status }) => LINE_COLOR[$status]};
|
|
59
|
-
`;
|
|
60
|
-
const Marker = styled.span`
|
|
61
|
-
${typography.formInputMain}
|
|
62
|
-
z-index: 1;
|
|
63
|
-
flex: 0 0 ${MARKER_SIZE}px;
|
|
64
|
-
width: ${MARKER_SIZE}px;
|
|
65
|
-
height: ${MARKER_SIZE}px;
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
background-color: ${({ $status }) => MARKER_BG[$status]};
|
|
71
|
-
color: ${({ $status }) => MARKER_TEXT[$status]};
|
|
72
|
-
border: 1px solid ${({ $status }) => MARKER_BORDER[$status]};
|
|
73
|
-
`;
|
|
74
|
-
const ItemText = styled.div`
|
|
75
|
-
padding-top: 4px;
|
|
76
|
-
`;
|
|
77
|
-
const ItemTitle = styled.p`
|
|
78
|
-
${typography.bodyMdCallout}
|
|
79
|
-
margin: 0;
|
|
80
|
-
color: ${({ $status }) => TITLE_COLOR[$status]};
|
|
81
|
-
|
|
82
|
-
${media.desktopXlUp} {
|
|
83
|
-
font-size: 16px;
|
|
84
|
-
}
|
|
85
|
-
`;
|
|
86
|
-
const ItemSubtitle = styled.p`
|
|
87
|
-
${typography.formInput}
|
|
88
|
-
margin: 4px 0 0;
|
|
89
|
-
color: ${({ $status }) => SUBTITLE_COLOR[$status]};
|
|
90
|
-
|
|
91
|
-
${media.desktopXlUp} {
|
|
92
|
-
font-size: 13px;
|
|
93
|
-
}
|
|
94
|
-
`;
|
|
95
|
-
export {
|
|
96
|
-
Item,
|
|
97
|
-
ItemSubtitle,
|
|
98
|
-
ItemText,
|
|
99
|
-
ItemTitle,
|
|
100
|
-
Line,
|
|
101
|
-
List,
|
|
102
|
-
Marker
|
|
103
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface StepSidebarIntro {
|
|
3
|
-
eyebrow: ReactNode;
|
|
4
|
-
title: ReactNode;
|
|
5
|
-
description?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export interface StepSidebarSupport {
|
|
8
|
-
heading: ReactNode;
|
|
9
|
-
body: ReactNode;
|
|
10
|
-
linkLabel: ReactNode;
|
|
11
|
-
href: string;
|
|
12
|
-
/** Opens the link in a new tab. */
|
|
13
|
-
external?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface StepSidebarProps {
|
|
16
|
-
/** Desktop content between the intro and the support block, e.g. `<StepProgress />`. */
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
/** Mobile content below the header, e.g. `<MobileStepProgress />`. */
|
|
19
|
-
mobileContent?: ReactNode;
|
|
20
|
-
/** Eyebrow, title and text below the logo (desktop only). */
|
|
21
|
-
intro?: StepSidebarIntro;
|
|
22
|
-
/** Contact block pinned to the bottom (desktop only). */
|
|
23
|
-
support?: StepSidebarSupport;
|
|
24
|
-
logoAlt: string;
|
|
25
|
-
/** Makes the logo a button. */
|
|
26
|
-
onLogoClick?: () => void;
|
|
27
|
-
/** Mobile header content on the right, e.g. a log-out button. */
|
|
28
|
-
mobileAction?: ReactNode;
|
|
29
|
-
/** Shows the close (×) button in the mobile header. */
|
|
30
|
-
onClose?: () => void;
|
|
31
|
-
closeLabel?: string;
|
|
32
|
-
dataCyPrefix?: string;
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
|
-
/** Dark flow sidebar shell: logo, intro, your content and a support contact; a compact header on mobile. */
|
|
36
|
-
export declare const StepSidebar: ({ children, mobileContent, mobileAction, intro, support, logoAlt, onLogoClick, onClose, closeLabel, dataCyPrefix, className, }: StepSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
3
|
-
import { Aside, MobileHeader, CloseButton, DesktopOnly, TopBlock, Eyebrow, NameGroup, Title, Description, MobileOnly, Spacer, SupportWrap, SupportHeading, SupportBody, SupportLink, LogoButton, MobileLogoImg, DesktopLogoImg } from "./StepSidebar.styles.js";
|
|
4
|
-
const LOGO_URL = "https://res.cloudinary.com/stokr/image/upload/v1782908299/STOKR_v7r1dp.png";
|
|
5
|
-
const StepSidebar = ({
|
|
6
|
-
children,
|
|
7
|
-
mobileContent,
|
|
8
|
-
mobileAction,
|
|
9
|
-
intro,
|
|
10
|
-
support,
|
|
11
|
-
logoAlt,
|
|
12
|
-
onLogoClick,
|
|
13
|
-
onClose,
|
|
14
|
-
closeLabel = "Close",
|
|
15
|
-
dataCyPrefix = "step-sidebar",
|
|
16
|
-
className
|
|
17
|
-
}) => {
|
|
18
|
-
const logo = (Img, suffix) => onLogoClick ? /* @__PURE__ */ jsx(LogoButton, { type: "button", onClick: onLogoClick, "data-cy": `${dataCyPrefix}-${suffix}`, children: /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt }) }) : /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt, "data-cy": `${dataCyPrefix}-${suffix}` });
|
|
19
|
-
return /* @__PURE__ */ jsxs(Aside, { className, children: [
|
|
20
|
-
/* @__PURE__ */ jsxs(MobileHeader, { children: [
|
|
21
|
-
logo(MobileLogoImg, "logo-mobile"),
|
|
22
|
-
mobileAction,
|
|
23
|
-
onClose && /* @__PURE__ */ jsx(CloseButton, { type: "button", "aria-label": closeLabel, onClick: onClose, "data-cy": `${dataCyPrefix}-close`, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "close", size: 28 }) })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsx(DesktopOnly, { children: logo(DesktopLogoImg, "logo") }),
|
|
26
|
-
intro && /* @__PURE__ */ jsx(DesktopOnly, { children: /* @__PURE__ */ jsxs(TopBlock, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(Eyebrow, { children: intro.eyebrow }),
|
|
28
|
-
/* @__PURE__ */ jsxs(NameGroup, { children: [
|
|
29
|
-
/* @__PURE__ */ jsx(Title, { children: intro.title }),
|
|
30
|
-
intro.description && /* @__PURE__ */ jsx(Description, { children: intro.description })
|
|
31
|
-
] })
|
|
32
|
-
] }) }),
|
|
33
|
-
children && /* @__PURE__ */ jsx(DesktopOnly, { children }),
|
|
34
|
-
mobileContent && /* @__PURE__ */ jsx(MobileOnly, { children: mobileContent }),
|
|
35
|
-
/* @__PURE__ */ jsxs(DesktopOnly, { children: [
|
|
36
|
-
/* @__PURE__ */ jsx(Spacer, {}),
|
|
37
|
-
support && /* @__PURE__ */ jsxs(SupportWrap, { children: [
|
|
38
|
-
/* @__PURE__ */ jsx(SupportHeading, { children: support.heading }),
|
|
39
|
-
/* @__PURE__ */ jsxs(SupportBody, { children: [
|
|
40
|
-
support.body,
|
|
41
|
-
" ",
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
SupportLink,
|
|
44
|
-
{
|
|
45
|
-
href: support.href,
|
|
46
|
-
"data-cy": `${dataCyPrefix}-support-link`,
|
|
47
|
-
...support.external && { target: "_blank", rel: "noopener noreferrer" },
|
|
48
|
-
children: support.linkLabel
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] })
|
|
52
|
-
] })
|
|
53
|
-
] })
|
|
54
|
-
] });
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
StepSidebar
|
|
58
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare const Aside: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
2
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
-
}> & string;
|
|
4
|
-
export declare const MobileHeader: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
6
|
-
}> & string;
|
|
7
|
-
export declare const CloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
8
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
9
|
-
}> & string;
|
|
10
|
-
export declare const DesktopOnly: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
11
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
12
|
-
}> & string;
|
|
13
|
-
export declare const MobileOnly: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
14
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
15
|
-
}> & string;
|
|
16
|
-
export declare const Spacer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
17
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
18
|
-
}> & string;
|
|
19
|
-
export declare const LogoButton: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
20
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
21
|
-
}> & string;
|
|
22
|
-
export declare const MobileLogoImg: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
23
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
24
|
-
}> & string;
|
|
25
|
-
export declare const DesktopLogoImg: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
26
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
27
|
-
}> & string;
|
|
28
|
-
export declare const TopBlock: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
29
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
30
|
-
}> & string;
|
|
31
|
-
export declare const NameGroup: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
32
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
33
|
-
}> & string;
|
|
34
|
-
export declare const Eyebrow: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
35
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
36
|
-
}> & string;
|
|
37
|
-
export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
38
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
39
|
-
}> & string;
|
|
40
|
-
export declare const Description: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
41
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
42
|
-
}> & string;
|
|
43
|
-
export declare const SupportWrap: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
44
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
45
|
-
}> & string;
|
|
46
|
-
export declare const SupportHeading: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
47
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
48
|
-
}> & string;
|
|
49
|
-
export declare const SupportBody: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
50
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
51
|
-
}> & string;
|
|
52
|
-
export declare const SupportLink: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style"> & {
|
|
53
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
54
|
-
}> & string;
|