@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,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSyncExternalStore, useEffect } from "react";
|
|
3
|
-
import styled from "styled-components";
|
|
4
|
-
import { toFlagKey, subscribeToFlags, getFlagSrc, loadFlag } from "./flagStore.js";
|
|
5
|
-
const FlagImage = styled.img`
|
|
6
|
-
display: block;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: auto;
|
|
9
|
-
`;
|
|
10
|
-
const FlagFor = ({ code }) => {
|
|
11
|
-
const key = code ? toFlagKey(code) : "";
|
|
12
|
-
const src = useSyncExternalStore(
|
|
13
|
-
subscribeToFlags,
|
|
14
|
-
() => getFlagSrc(key),
|
|
15
|
-
() => void 0
|
|
16
|
-
);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (key) loadFlag(key);
|
|
19
|
-
}, [key]);
|
|
20
|
-
if (!src) return null;
|
|
21
|
-
return /* @__PURE__ */ jsx(FlagImage, { src, alt: "", "aria-hidden": "true" });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
FlagFor
|
|
25
|
-
};
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
const flagLoaders = {
|
|
2
|
-
AC: () => import("country-flag-icons/string/3x2/AC"),
|
|
3
|
-
AD: () => import("country-flag-icons/string/3x2/AD"),
|
|
4
|
-
AE: () => import("country-flag-icons/string/3x2/AE"),
|
|
5
|
-
AF: () => import("country-flag-icons/string/3x2/AF"),
|
|
6
|
-
AG: () => import("country-flag-icons/string/3x2/AG"),
|
|
7
|
-
AI: () => import("country-flag-icons/string/3x2/AI"),
|
|
8
|
-
AL: () => import("country-flag-icons/string/3x2/AL"),
|
|
9
|
-
AM: () => import("country-flag-icons/string/3x2/AM"),
|
|
10
|
-
AO: () => import("country-flag-icons/string/3x2/AO"),
|
|
11
|
-
AQ: () => import("country-flag-icons/string/3x2/AQ"),
|
|
12
|
-
AR: () => import("country-flag-icons/string/3x2/AR"),
|
|
13
|
-
AS: () => import("country-flag-icons/string/3x2/AS"),
|
|
14
|
-
AT: () => import("country-flag-icons/string/3x2/AT"),
|
|
15
|
-
AU: () => import("country-flag-icons/string/3x2/AU"),
|
|
16
|
-
AW: () => import("country-flag-icons/string/3x2/AW"),
|
|
17
|
-
AX: () => import("country-flag-icons/string/3x2/AX"),
|
|
18
|
-
AZ: () => import("country-flag-icons/string/3x2/AZ"),
|
|
19
|
-
BA: () => import("country-flag-icons/string/3x2/BA"),
|
|
20
|
-
BB: () => import("country-flag-icons/string/3x2/BB"),
|
|
21
|
-
BD: () => import("country-flag-icons/string/3x2/BD"),
|
|
22
|
-
BE: () => import("country-flag-icons/string/3x2/BE"),
|
|
23
|
-
BF: () => import("country-flag-icons/string/3x2/BF"),
|
|
24
|
-
BG: () => import("country-flag-icons/string/3x2/BG"),
|
|
25
|
-
BH: () => import("country-flag-icons/string/3x2/BH"),
|
|
26
|
-
BI: () => import("country-flag-icons/string/3x2/BI"),
|
|
27
|
-
BJ: () => import("country-flag-icons/string/3x2/BJ"),
|
|
28
|
-
BL: () => import("country-flag-icons/string/3x2/BL"),
|
|
29
|
-
BM: () => import("country-flag-icons/string/3x2/BM"),
|
|
30
|
-
BN: () => import("country-flag-icons/string/3x2/BN"),
|
|
31
|
-
BO: () => import("country-flag-icons/string/3x2/BO"),
|
|
32
|
-
BQ_BO: () => import("country-flag-icons/string/3x2/BQ-BO"),
|
|
33
|
-
BQ_SA: () => import("country-flag-icons/string/3x2/BQ-SA"),
|
|
34
|
-
BQ_SE: () => import("country-flag-icons/string/3x2/BQ-SE"),
|
|
35
|
-
BQ: () => import("country-flag-icons/string/3x2/BQ"),
|
|
36
|
-
BR: () => import("country-flag-icons/string/3x2/BR"),
|
|
37
|
-
BS: () => import("country-flag-icons/string/3x2/BS"),
|
|
38
|
-
BT: () => import("country-flag-icons/string/3x2/BT"),
|
|
39
|
-
BV: () => import("country-flag-icons/string/3x2/BV"),
|
|
40
|
-
BW: () => import("country-flag-icons/string/3x2/BW"),
|
|
41
|
-
BY: () => import("country-flag-icons/string/3x2/BY"),
|
|
42
|
-
BZ: () => import("country-flag-icons/string/3x2/BZ"),
|
|
43
|
-
CA: () => import("country-flag-icons/string/3x2/CA"),
|
|
44
|
-
CC: () => import("country-flag-icons/string/3x2/CC"),
|
|
45
|
-
CD: () => import("country-flag-icons/string/3x2/CD"),
|
|
46
|
-
CF: () => import("country-flag-icons/string/3x2/CF"),
|
|
47
|
-
CG: () => import("country-flag-icons/string/3x2/CG"),
|
|
48
|
-
CH: () => import("country-flag-icons/string/3x2/CH"),
|
|
49
|
-
CI: () => import("country-flag-icons/string/3x2/CI"),
|
|
50
|
-
CK: () => import("country-flag-icons/string/3x2/CK"),
|
|
51
|
-
CL: () => import("country-flag-icons/string/3x2/CL"),
|
|
52
|
-
CM: () => import("country-flag-icons/string/3x2/CM"),
|
|
53
|
-
CN: () => import("country-flag-icons/string/3x2/CN"),
|
|
54
|
-
CO: () => import("country-flag-icons/string/3x2/CO"),
|
|
55
|
-
CR: () => import("country-flag-icons/string/3x2/CR"),
|
|
56
|
-
CU: () => import("country-flag-icons/string/3x2/CU"),
|
|
57
|
-
CV: () => import("country-flag-icons/string/3x2/CV"),
|
|
58
|
-
CW: () => import("country-flag-icons/string/3x2/CW"),
|
|
59
|
-
CX: () => import("country-flag-icons/string/3x2/CX"),
|
|
60
|
-
CY: () => import("country-flag-icons/string/3x2/CY"),
|
|
61
|
-
CZ: () => import("country-flag-icons/string/3x2/CZ"),
|
|
62
|
-
DE: () => import("country-flag-icons/string/3x2/DE"),
|
|
63
|
-
DJ: () => import("country-flag-icons/string/3x2/DJ"),
|
|
64
|
-
DK: () => import("country-flag-icons/string/3x2/DK"),
|
|
65
|
-
DM: () => import("country-flag-icons/string/3x2/DM"),
|
|
66
|
-
DO: () => import("country-flag-icons/string/3x2/DO"),
|
|
67
|
-
DZ: () => import("country-flag-icons/string/3x2/DZ"),
|
|
68
|
-
EC: () => import("country-flag-icons/string/3x2/EC"),
|
|
69
|
-
EE: () => import("country-flag-icons/string/3x2/EE"),
|
|
70
|
-
EG: () => import("country-flag-icons/string/3x2/EG"),
|
|
71
|
-
EH: () => import("country-flag-icons/string/3x2/EH"),
|
|
72
|
-
ER: () => import("country-flag-icons/string/3x2/ER"),
|
|
73
|
-
ES_CT: () => import("country-flag-icons/string/3x2/ES-CT"),
|
|
74
|
-
ES: () => import("country-flag-icons/string/3x2/ES"),
|
|
75
|
-
ET: () => import("country-flag-icons/string/3x2/ET"),
|
|
76
|
-
EU: () => import("country-flag-icons/string/3x2/EU"),
|
|
77
|
-
FI: () => import("country-flag-icons/string/3x2/FI"),
|
|
78
|
-
FJ: () => import("country-flag-icons/string/3x2/FJ"),
|
|
79
|
-
FK: () => import("country-flag-icons/string/3x2/FK"),
|
|
80
|
-
FM: () => import("country-flag-icons/string/3x2/FM"),
|
|
81
|
-
FO: () => import("country-flag-icons/string/3x2/FO"),
|
|
82
|
-
FR: () => import("country-flag-icons/string/3x2/FR"),
|
|
83
|
-
GA: () => import("country-flag-icons/string/3x2/GA"),
|
|
84
|
-
GB_ENG: () => import("country-flag-icons/string/3x2/GB-ENG"),
|
|
85
|
-
GB_NIR: () => import("country-flag-icons/string/3x2/GB-NIR"),
|
|
86
|
-
GB_SCT: () => import("country-flag-icons/string/3x2/GB-SCT"),
|
|
87
|
-
GB_WLS: () => import("country-flag-icons/string/3x2/GB-WLS"),
|
|
88
|
-
GB: () => import("country-flag-icons/string/3x2/GB"),
|
|
89
|
-
GD: () => import("country-flag-icons/string/3x2/GD"),
|
|
90
|
-
GE: () => import("country-flag-icons/string/3x2/GE"),
|
|
91
|
-
GF: () => import("country-flag-icons/string/3x2/GF"),
|
|
92
|
-
GG: () => import("country-flag-icons/string/3x2/GG"),
|
|
93
|
-
GH: () => import("country-flag-icons/string/3x2/GH"),
|
|
94
|
-
GI: () => import("country-flag-icons/string/3x2/GI"),
|
|
95
|
-
GL: () => import("country-flag-icons/string/3x2/GL"),
|
|
96
|
-
GM: () => import("country-flag-icons/string/3x2/GM"),
|
|
97
|
-
GN: () => import("country-flag-icons/string/3x2/GN"),
|
|
98
|
-
GP: () => import("country-flag-icons/string/3x2/GP"),
|
|
99
|
-
GQ: () => import("country-flag-icons/string/3x2/GQ"),
|
|
100
|
-
GR: () => import("country-flag-icons/string/3x2/GR"),
|
|
101
|
-
GS: () => import("country-flag-icons/string/3x2/GS"),
|
|
102
|
-
GT: () => import("country-flag-icons/string/3x2/GT"),
|
|
103
|
-
GU: () => import("country-flag-icons/string/3x2/GU"),
|
|
104
|
-
GW: () => import("country-flag-icons/string/3x2/GW"),
|
|
105
|
-
GY: () => import("country-flag-icons/string/3x2/GY"),
|
|
106
|
-
HK: () => import("country-flag-icons/string/3x2/HK"),
|
|
107
|
-
HM: () => import("country-flag-icons/string/3x2/HM"),
|
|
108
|
-
HN: () => import("country-flag-icons/string/3x2/HN"),
|
|
109
|
-
HR: () => import("country-flag-icons/string/3x2/HR"),
|
|
110
|
-
HT: () => import("country-flag-icons/string/3x2/HT"),
|
|
111
|
-
HU: () => import("country-flag-icons/string/3x2/HU"),
|
|
112
|
-
IC: () => import("country-flag-icons/string/3x2/IC"),
|
|
113
|
-
ID: () => import("country-flag-icons/string/3x2/ID"),
|
|
114
|
-
IE: () => import("country-flag-icons/string/3x2/IE"),
|
|
115
|
-
IL: () => import("country-flag-icons/string/3x2/IL"),
|
|
116
|
-
IM: () => import("country-flag-icons/string/3x2/IM"),
|
|
117
|
-
IN: () => import("country-flag-icons/string/3x2/IN"),
|
|
118
|
-
IO: () => import("country-flag-icons/string/3x2/IO"),
|
|
119
|
-
IQ: () => import("country-flag-icons/string/3x2/IQ"),
|
|
120
|
-
IR: () => import("country-flag-icons/string/3x2/IR"),
|
|
121
|
-
IS: () => import("country-flag-icons/string/3x2/IS"),
|
|
122
|
-
IT: () => import("country-flag-icons/string/3x2/IT"),
|
|
123
|
-
JE: () => import("country-flag-icons/string/3x2/JE"),
|
|
124
|
-
JM: () => import("country-flag-icons/string/3x2/JM"),
|
|
125
|
-
JO: () => import("country-flag-icons/string/3x2/JO"),
|
|
126
|
-
JP: () => import("country-flag-icons/string/3x2/JP"),
|
|
127
|
-
KE: () => import("country-flag-icons/string/3x2/KE"),
|
|
128
|
-
KG: () => import("country-flag-icons/string/3x2/KG"),
|
|
129
|
-
KH: () => import("country-flag-icons/string/3x2/KH"),
|
|
130
|
-
KI: () => import("country-flag-icons/string/3x2/KI"),
|
|
131
|
-
KM: () => import("country-flag-icons/string/3x2/KM"),
|
|
132
|
-
KN: () => import("country-flag-icons/string/3x2/KN"),
|
|
133
|
-
KP: () => import("country-flag-icons/string/3x2/KP"),
|
|
134
|
-
KR: () => import("country-flag-icons/string/3x2/KR"),
|
|
135
|
-
KW: () => import("country-flag-icons/string/3x2/KW"),
|
|
136
|
-
KY: () => import("country-flag-icons/string/3x2/KY"),
|
|
137
|
-
KZ: () => import("country-flag-icons/string/3x2/KZ"),
|
|
138
|
-
LA: () => import("country-flag-icons/string/3x2/LA"),
|
|
139
|
-
LB: () => import("country-flag-icons/string/3x2/LB"),
|
|
140
|
-
LC: () => import("country-flag-icons/string/3x2/LC"),
|
|
141
|
-
LI: () => import("country-flag-icons/string/3x2/LI"),
|
|
142
|
-
LK: () => import("country-flag-icons/string/3x2/LK"),
|
|
143
|
-
LR: () => import("country-flag-icons/string/3x2/LR"),
|
|
144
|
-
LS: () => import("country-flag-icons/string/3x2/LS"),
|
|
145
|
-
LT: () => import("country-flag-icons/string/3x2/LT"),
|
|
146
|
-
LU: () => import("country-flag-icons/string/3x2/LU"),
|
|
147
|
-
LV: () => import("country-flag-icons/string/3x2/LV"),
|
|
148
|
-
LY: () => import("country-flag-icons/string/3x2/LY"),
|
|
149
|
-
MA: () => import("country-flag-icons/string/3x2/MA"),
|
|
150
|
-
MC: () => import("country-flag-icons/string/3x2/MC"),
|
|
151
|
-
MD: () => import("country-flag-icons/string/3x2/MD"),
|
|
152
|
-
ME: () => import("country-flag-icons/string/3x2/ME"),
|
|
153
|
-
MF: () => import("country-flag-icons/string/3x2/MF"),
|
|
154
|
-
MG: () => import("country-flag-icons/string/3x2/MG"),
|
|
155
|
-
MH: () => import("country-flag-icons/string/3x2/MH"),
|
|
156
|
-
MK: () => import("country-flag-icons/string/3x2/MK"),
|
|
157
|
-
ML: () => import("country-flag-icons/string/3x2/ML"),
|
|
158
|
-
MM: () => import("country-flag-icons/string/3x2/MM"),
|
|
159
|
-
MN: () => import("country-flag-icons/string/3x2/MN"),
|
|
160
|
-
MO: () => import("country-flag-icons/string/3x2/MO"),
|
|
161
|
-
MP: () => import("country-flag-icons/string/3x2/MP"),
|
|
162
|
-
MQ: () => import("country-flag-icons/string/3x2/MQ"),
|
|
163
|
-
MR: () => import("country-flag-icons/string/3x2/MR"),
|
|
164
|
-
MS: () => import("country-flag-icons/string/3x2/MS"),
|
|
165
|
-
MT: () => import("country-flag-icons/string/3x2/MT"),
|
|
166
|
-
MU: () => import("country-flag-icons/string/3x2/MU"),
|
|
167
|
-
MV: () => import("country-flag-icons/string/3x2/MV"),
|
|
168
|
-
MW: () => import("country-flag-icons/string/3x2/MW"),
|
|
169
|
-
MX: () => import("country-flag-icons/string/3x2/MX"),
|
|
170
|
-
MY: () => import("country-flag-icons/string/3x2/MY"),
|
|
171
|
-
MZ: () => import("country-flag-icons/string/3x2/MZ"),
|
|
172
|
-
NA: () => import("country-flag-icons/string/3x2/NA"),
|
|
173
|
-
NC: () => import("country-flag-icons/string/3x2/NC"),
|
|
174
|
-
NE: () => import("country-flag-icons/string/3x2/NE"),
|
|
175
|
-
NF: () => import("country-flag-icons/string/3x2/NF"),
|
|
176
|
-
NG: () => import("country-flag-icons/string/3x2/NG"),
|
|
177
|
-
NI: () => import("country-flag-icons/string/3x2/NI"),
|
|
178
|
-
NL: () => import("country-flag-icons/string/3x2/NL"),
|
|
179
|
-
NO: () => import("country-flag-icons/string/3x2/NO"),
|
|
180
|
-
NP: () => import("country-flag-icons/string/3x2/NP"),
|
|
181
|
-
NR: () => import("country-flag-icons/string/3x2/NR"),
|
|
182
|
-
NU: () => import("country-flag-icons/string/3x2/NU"),
|
|
183
|
-
NZ: () => import("country-flag-icons/string/3x2/NZ"),
|
|
184
|
-
OM: () => import("country-flag-icons/string/3x2/OM"),
|
|
185
|
-
PA: () => import("country-flag-icons/string/3x2/PA"),
|
|
186
|
-
PE: () => import("country-flag-icons/string/3x2/PE"),
|
|
187
|
-
PF: () => import("country-flag-icons/string/3x2/PF"),
|
|
188
|
-
PG: () => import("country-flag-icons/string/3x2/PG"),
|
|
189
|
-
PH: () => import("country-flag-icons/string/3x2/PH"),
|
|
190
|
-
PK: () => import("country-flag-icons/string/3x2/PK"),
|
|
191
|
-
PL: () => import("country-flag-icons/string/3x2/PL"),
|
|
192
|
-
PM: () => import("country-flag-icons/string/3x2/PM"),
|
|
193
|
-
PN: () => import("country-flag-icons/string/3x2/PN"),
|
|
194
|
-
PR: () => import("country-flag-icons/string/3x2/PR"),
|
|
195
|
-
PS: () => import("country-flag-icons/string/3x2/PS"),
|
|
196
|
-
PT: () => import("country-flag-icons/string/3x2/PT"),
|
|
197
|
-
PW: () => import("country-flag-icons/string/3x2/PW"),
|
|
198
|
-
PY: () => import("country-flag-icons/string/3x2/PY"),
|
|
199
|
-
QA: () => import("country-flag-icons/string/3x2/QA"),
|
|
200
|
-
RE: () => import("country-flag-icons/string/3x2/RE"),
|
|
201
|
-
RO: () => import("country-flag-icons/string/3x2/RO"),
|
|
202
|
-
RS: () => import("country-flag-icons/string/3x2/RS"),
|
|
203
|
-
RU: () => import("country-flag-icons/string/3x2/RU"),
|
|
204
|
-
RW: () => import("country-flag-icons/string/3x2/RW"),
|
|
205
|
-
SA: () => import("country-flag-icons/string/3x2/SA"),
|
|
206
|
-
SB: () => import("country-flag-icons/string/3x2/SB"),
|
|
207
|
-
SC: () => import("country-flag-icons/string/3x2/SC"),
|
|
208
|
-
SD: () => import("country-flag-icons/string/3x2/SD"),
|
|
209
|
-
SE: () => import("country-flag-icons/string/3x2/SE"),
|
|
210
|
-
SG: () => import("country-flag-icons/string/3x2/SG"),
|
|
211
|
-
SH: () => import("country-flag-icons/string/3x2/SH"),
|
|
212
|
-
SI: () => import("country-flag-icons/string/3x2/SI"),
|
|
213
|
-
SJ: () => import("country-flag-icons/string/3x2/SJ"),
|
|
214
|
-
SK: () => import("country-flag-icons/string/3x2/SK"),
|
|
215
|
-
SL: () => import("country-flag-icons/string/3x2/SL"),
|
|
216
|
-
SM: () => import("country-flag-icons/string/3x2/SM"),
|
|
217
|
-
SN: () => import("country-flag-icons/string/3x2/SN"),
|
|
218
|
-
SO: () => import("country-flag-icons/string/3x2/SO"),
|
|
219
|
-
SR: () => import("country-flag-icons/string/3x2/SR"),
|
|
220
|
-
SS: () => import("country-flag-icons/string/3x2/SS"),
|
|
221
|
-
ST: () => import("country-flag-icons/string/3x2/ST"),
|
|
222
|
-
SV: () => import("country-flag-icons/string/3x2/SV"),
|
|
223
|
-
SX: () => import("country-flag-icons/string/3x2/SX"),
|
|
224
|
-
SY: () => import("country-flag-icons/string/3x2/SY"),
|
|
225
|
-
SZ: () => import("country-flag-icons/string/3x2/SZ"),
|
|
226
|
-
TA: () => import("country-flag-icons/string/3x2/TA"),
|
|
227
|
-
TC: () => import("country-flag-icons/string/3x2/TC"),
|
|
228
|
-
TD: () => import("country-flag-icons/string/3x2/TD"),
|
|
229
|
-
TF: () => import("country-flag-icons/string/3x2/TF"),
|
|
230
|
-
TG: () => import("country-flag-icons/string/3x2/TG"),
|
|
231
|
-
TH: () => import("country-flag-icons/string/3x2/TH"),
|
|
232
|
-
TJ: () => import("country-flag-icons/string/3x2/TJ"),
|
|
233
|
-
TK: () => import("country-flag-icons/string/3x2/TK"),
|
|
234
|
-
TL: () => import("country-flag-icons/string/3x2/TL"),
|
|
235
|
-
TM: () => import("country-flag-icons/string/3x2/TM"),
|
|
236
|
-
TN: () => import("country-flag-icons/string/3x2/TN"),
|
|
237
|
-
TO: () => import("country-flag-icons/string/3x2/TO"),
|
|
238
|
-
TR: () => import("country-flag-icons/string/3x2/TR"),
|
|
239
|
-
TT: () => import("country-flag-icons/string/3x2/TT"),
|
|
240
|
-
TV: () => import("country-flag-icons/string/3x2/TV"),
|
|
241
|
-
TW: () => import("country-flag-icons/string/3x2/TW"),
|
|
242
|
-
TZ: () => import("country-flag-icons/string/3x2/TZ"),
|
|
243
|
-
UA: () => import("country-flag-icons/string/3x2/UA"),
|
|
244
|
-
UG: () => import("country-flag-icons/string/3x2/UG"),
|
|
245
|
-
UM: () => import("country-flag-icons/string/3x2/UM"),
|
|
246
|
-
US: () => import("country-flag-icons/string/3x2/US"),
|
|
247
|
-
UY: () => import("country-flag-icons/string/3x2/UY"),
|
|
248
|
-
UZ: () => import("country-flag-icons/string/3x2/UZ"),
|
|
249
|
-
VA: () => import("country-flag-icons/string/3x2/VA"),
|
|
250
|
-
VC: () => import("country-flag-icons/string/3x2/VC"),
|
|
251
|
-
VE: () => import("country-flag-icons/string/3x2/VE"),
|
|
252
|
-
VG: () => import("country-flag-icons/string/3x2/VG"),
|
|
253
|
-
VI: () => import("country-flag-icons/string/3x2/VI"),
|
|
254
|
-
VN: () => import("country-flag-icons/string/3x2/VN"),
|
|
255
|
-
VU: () => import("country-flag-icons/string/3x2/VU"),
|
|
256
|
-
WF: () => import("country-flag-icons/string/3x2/WF"),
|
|
257
|
-
WS: () => import("country-flag-icons/string/3x2/WS"),
|
|
258
|
-
XA: () => import("country-flag-icons/string/3x2/XA"),
|
|
259
|
-
XC: () => import("country-flag-icons/string/3x2/XC"),
|
|
260
|
-
XK: () => import("country-flag-icons/string/3x2/XK"),
|
|
261
|
-
XO: () => import("country-flag-icons/string/3x2/XO"),
|
|
262
|
-
YE: () => import("country-flag-icons/string/3x2/YE"),
|
|
263
|
-
YT: () => import("country-flag-icons/string/3x2/YT"),
|
|
264
|
-
ZA: () => import("country-flag-icons/string/3x2/ZA"),
|
|
265
|
-
ZM: () => import("country-flag-icons/string/3x2/ZM"),
|
|
266
|
-
ZW: () => import("country-flag-icons/string/3x2/ZW")
|
|
267
|
-
};
|
|
268
|
-
export {
|
|
269
|
-
flagLoaders
|
|
270
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const toFlagKey: (code: string) => string;
|
|
2
|
-
export declare const subscribeToFlags: (listener: () => void) => () => void;
|
|
3
|
-
export declare const getFlagSrc: (key: string) => string;
|
|
4
|
-
export declare const loadFlag: (key: string) => void;
|
|
5
|
-
/** Starts loading flags before they render, e.g. for the options of a country list. */
|
|
6
|
-
export declare const preloadFlags: (codes: readonly string[]) => void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { flagLoaders } from "./flagLoaders.js";
|
|
2
|
-
const loaded = /* @__PURE__ */ new Map();
|
|
3
|
-
const pending = /* @__PURE__ */ new Set();
|
|
4
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
5
|
-
const toFlagKey = (code) => code.toUpperCase().replace("-", "_");
|
|
6
|
-
const subscribeToFlags = (listener) => {
|
|
7
|
-
listeners.add(listener);
|
|
8
|
-
return () => {
|
|
9
|
-
listeners.delete(listener);
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
const getFlagSrc = (key) => loaded.get(key);
|
|
13
|
-
const loadFlag = (key) => {
|
|
14
|
-
const loader = flagLoaders[key];
|
|
15
|
-
if (!loader || loaded.has(key) || pending.has(key)) return;
|
|
16
|
-
pending.add(key);
|
|
17
|
-
loader().then(({ default: svg }) => {
|
|
18
|
-
loaded.set(key, `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`);
|
|
19
|
-
listeners.forEach((listener) => listener());
|
|
20
|
-
}).catch(() => void 0).finally(() => pending.delete(key));
|
|
21
|
-
};
|
|
22
|
-
const preloadFlags = (codes) => codes.forEach((code) => loadFlag(toFlagKey(code)));
|
|
23
|
-
export {
|
|
24
|
-
getFlagSrc,
|
|
25
|
-
loadFlag,
|
|
26
|
-
preloadFlags,
|
|
27
|
-
subscribeToFlags,
|
|
28
|
-
toFlagKey
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { FieldVariant } from '../../styles/borderedField';
|
|
3
|
-
import { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './FAQ.styles';
|
|
4
|
-
export interface FAQEntry {
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
/** A string or JSX, or an array of strings rendered as a bullet list. */
|
|
7
|
-
content: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export interface FAQProps {
|
|
10
|
-
items: readonly FAQEntry[];
|
|
11
|
-
/** Do not scroll the opened item into view. */
|
|
12
|
-
noScroll?: boolean;
|
|
13
|
-
/** Ref to a custom scrollbar (in a modal); scrolled to the bottom when an item opens. */
|
|
14
|
-
scrollRef?: RefObject<{
|
|
15
|
-
scrollToBottom: () => void;
|
|
16
|
-
} | null>;
|
|
17
|
-
/** Title style used inside the "view more" modal. */
|
|
18
|
-
modalViewMore?: boolean;
|
|
19
|
-
/** Smaller, indented text for answers given as a list of strings. */
|
|
20
|
-
withTextStyling?: boolean;
|
|
21
|
-
/** Prefix for data-cy: `{prefix}-accordion`, `{prefix}-item-{slug}-toggle`, etc. */
|
|
22
|
-
dataCyPrefix?: string;
|
|
23
|
-
/** `bordered`: each item is a card (sign-up redesign). Default keeps the plain list. */
|
|
24
|
-
variant?: FieldVariant;
|
|
25
|
-
}
|
|
26
|
-
/** Accordion of questions and answers; one item is open at a time. */
|
|
27
|
-
export declare const FAQ: (props: FAQProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon };
|
|
29
|
-
export default FAQ;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { GroupBase, Props as ReactSelectProps } from 'react-select';
|
|
3
|
-
import { FieldVariant } from '../../styles/borderedField';
|
|
4
|
-
import { SelectIcon, SelectMenu, SelectOption, SelectControl, SelectWrapper, SelectMenuList, SelectContainer, SelectValueContainer } from './Select.styles';
|
|
5
|
-
export type SelectValue = string | number;
|
|
6
|
-
export interface SelectOptionItem {
|
|
7
|
-
key?: string;
|
|
8
|
-
value: SelectValue;
|
|
9
|
-
label: ReactNode;
|
|
10
|
-
/** URL string (rendered as <img>) or a React node (e.g. an SVG flag) shown left of the label. */
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/** What `onChange` / `onBlur` / `onFocus` receive. `value` is the option value, or an array of values in `multiple` mode. */
|
|
14
|
-
export interface SelectChange {
|
|
15
|
-
name: string;
|
|
16
|
-
value: any;
|
|
17
|
-
}
|
|
18
|
-
type PassthroughProps = ReactSelectProps<any, boolean, GroupBase<any>>;
|
|
19
|
-
type OwnPropKeys = 'id' | 'name' | 'value' | 'options' | 'placeholder' | 'onChange' | 'onBlur' | 'onFocus' | 'formatCreateLabel' | 'dataCy' | 'variant';
|
|
20
|
-
export interface SelectProps extends Omit<PassthroughProps, OwnPropKeys> {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
/** string|number for single mode, array for multi mode. */
|
|
25
|
-
value?: SelectValue | readonly SelectValue[];
|
|
26
|
-
options: readonly SelectOptionItem[];
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
/** Shown as an error state once `touched` is true. */
|
|
29
|
-
error?: boolean;
|
|
30
|
-
touched?: boolean;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
/** Lets the user type to filter the options. */
|
|
33
|
-
search?: boolean;
|
|
34
|
-
/** Lets the user add a value that is not in `options`. */
|
|
35
|
-
creatable?: boolean;
|
|
36
|
-
/** Multi-select: checkbox options + chips list rendered below the field. */
|
|
37
|
-
multiple?: boolean;
|
|
38
|
-
/** Multi mode: values that cannot be removed (chip ✕ disabled, can't be deselected). */
|
|
39
|
-
lockedValues?: readonly SelectValue[];
|
|
40
|
-
/** Max menu height in px. */
|
|
41
|
-
menuHeight?: number;
|
|
42
|
-
/** Heading shown above the chips list in multi mode (default: "Selected"). */
|
|
43
|
-
selectedLabel?: string;
|
|
44
|
-
/** Input-like floating label behavior: label starts in-field, moves up on focus/value. Ignored when `bordered`. */
|
|
45
|
-
floatingLabel?: boolean;
|
|
46
|
-
formatCreateLabel?: (input: string) => ReactNode;
|
|
47
|
-
onChange?(field: SelectChange): void;
|
|
48
|
-
onBlur?(field: SelectChange): void;
|
|
49
|
-
onFocus?(field: SelectChange): void;
|
|
50
|
-
/** Playwright / autocapture: `data-cy` selector on the react-select control. */
|
|
51
|
-
dataCy?: string;
|
|
52
|
-
/** `bordered`: boxed control with a static label above (sign-up redesign). Default keeps the underline look. */
|
|
53
|
-
variant?: FieldVariant;
|
|
54
|
-
}
|
|
55
|
-
/** Dropdown with a floating label on react-select: single, searchable, multiple (checkboxes + chips) or creatable. */
|
|
56
|
-
declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
export { Select, SelectControl, SelectMenu, SelectMenuList, SelectOption, SelectContainer, SelectValueContainer, SelectIcon, SelectWrapper, };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { FieldVariant } from '../../styles/borderedField';
|
|
2
|
-
export declare const SelectControl: import('styled-components').RuleSet<object>;
|
|
3
|
-
/** A one-string array: emotion (react-select) rejects a bare string and would join a longer array with `;`. */
|
|
4
|
-
export declare const borderedControlCss: ({ focused, invalid, disabled, }: {
|
|
5
|
-
focused: boolean;
|
|
6
|
-
invalid: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
}) => string[];
|
|
9
|
-
export declare const SelectMenu: import('styled-components').RuleSet<object>;
|
|
10
|
-
export declare const SelectMenuList: import('styled-components/dist/types').IStyledComponentBase<"web", any> & string & Omit<{
|
|
11
|
-
(props: any): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
children: any;
|
|
14
|
-
className: any;
|
|
15
|
-
noMobileScroll: any;
|
|
16
|
-
autoHeight: any;
|
|
17
|
-
autoHeightMax: any;
|
|
18
|
-
autoHeightMin: any;
|
|
19
|
-
barPadding: any;
|
|
20
|
-
topPadding: any;
|
|
21
|
-
offset: any;
|
|
22
|
-
handleScroll: any;
|
|
23
|
-
};
|
|
24
|
-
}, keyof import('react').Component<any, {}, any>>;
|
|
25
|
-
export declare const SelectOption: import('styled-components').RuleSet<object>;
|
|
26
|
-
export declare const SelectContainer: import('styled-components').RuleSet<NoInfer<{
|
|
27
|
-
selectProps: {
|
|
28
|
-
menuIsOpen?: boolean;
|
|
29
|
-
};
|
|
30
|
-
}>>;
|
|
31
|
-
export declare const SelectValueContainer: import('styled-components').RuleSet<object>;
|
|
32
|
-
export declare const SelectIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
33
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
34
|
-
}, {
|
|
35
|
-
isMenuOpen?: boolean;
|
|
36
|
-
$variant?: FieldVariant;
|
|
37
|
-
}>, "children"> & Partial<Pick<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
38
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
39
|
-
}, {
|
|
40
|
-
isMenuOpen?: boolean;
|
|
41
|
-
$variant?: FieldVariant;
|
|
42
|
-
}>, "children">>> & string;
|
|
43
|
-
export declare const OptionRow: 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 OptionIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
47
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
48
|
-
}, {
|
|
49
|
-
$variant?: FieldVariant;
|
|
50
|
-
}>> & string;
|
|
51
|
-
export declare const OptionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
52
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
53
|
-
}> & string;
|
|
54
|
-
export declare const SelectedChipsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
55
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
56
|
-
}, {
|
|
57
|
-
$variant?: FieldVariant;
|
|
58
|
-
}>> & string;
|
|
59
|
-
export declare const SelectedChipsTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
60
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
61
|
-
}, {
|
|
62
|
-
$variant?: FieldVariant;
|
|
63
|
-
}>> & string;
|
|
64
|
-
export declare const SelectedChipsList: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
65
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
66
|
-
}> & string;
|
|
67
|
-
export declare const SelectedChip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
68
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
69
|
-
}, {
|
|
70
|
-
$variant?: FieldVariant;
|
|
71
|
-
}>> & string;
|
|
72
|
-
export declare const SelectedChipLabel: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
73
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
74
|
-
}> & string;
|
|
75
|
-
export declare const SelectedChipRemove: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
76
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
77
|
-
}, {
|
|
78
|
-
$variant?: FieldVariant;
|
|
79
|
-
}>, "hidden" | "color" | "content" | "style" | "disabled" | "form" | "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"> & Partial<Pick<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
80
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
81
|
-
}, {
|
|
82
|
-
$variant?: FieldVariant;
|
|
83
|
-
}>, "hidden" | "color" | "content" | "style" | "disabled" | "form" | "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">>> & string;
|
|
84
|
-
export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
85
|
-
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
86
|
-
}, {
|
|
87
|
-
minWidth?: string;
|
|
88
|
-
noMargin?: boolean;
|
|
89
|
-
}>> & string;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface PanelCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
/** Blue border and a raised shadow: the "added" state. */
|
|
4
|
-
highlighted?: boolean;
|
|
5
|
-
/** Element or component to render as. Default `div`. */
|
|
6
|
-
as?: ElementType;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A bordered card whose children (header, sections, footer) are separated by 1px dividers. Extra props and the ref go
|
|
10
|
-
* to the root element, so `styled(PanelCard)` works.
|
|
11
|
-
*
|
|
12
|
-
* CSS custom properties (set on the card or any ancestor):
|
|
13
|
-
* - `--panel-card-background` (`#fff`), `--panel-card-border-color` (`#e1e1e1`), `--panel-card-radius` (`8px`)
|
|
14
|
-
* - `--panel-card-highlight-color` (`#0050ca`), `--panel-card-highlight-shadow` (`elevation.md`)
|
|
15
|
-
* - `--panel-card-divider` (`1px solid #e1e1e1`)
|
|
16
|
-
*/
|
|
17
|
-
export declare const PanelCard: import('react').ForwardRefExoticComponent<PanelCardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export interface PanelCardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
19
|
-
/** Slot before the text, e.g. an icon or logo. */
|
|
20
|
-
leading?: ReactNode;
|
|
21
|
-
title?: ReactNode;
|
|
22
|
-
subtitle?: ReactNode;
|
|
23
|
-
/** Slot after the text: below it on mobile, at the right edge from 992px. */
|
|
24
|
-
trailing?: ReactNode;
|
|
25
|
-
/** Element for the title. Default `div`; use `h2` etc. for a real heading. */
|
|
26
|
-
titleAs?: ElementType;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Card header: leading slot, title and subtitle, trailing slot. `children` render in place of the title block when no
|
|
30
|
-
* `title` or `subtitle` is given.
|
|
31
|
-
*
|
|
32
|
-
* CSS custom properties: `--panel-card-header-padding` (`16px`, `24px` from 992px), `--panel-card-header-gap`
|
|
33
|
-
* (`20px`, between text and trailing), `--panel-card-header-leading-gap` (`12px`).
|
|
34
|
-
*/
|
|
35
|
-
export declare const PanelCardHeader: import('react').ForwardRefExoticComponent<PanelCardHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
36
|
-
export type PanelCardSectionProps = HTMLAttributes<HTMLDivElement>;
|
|
37
|
-
/**
|
|
38
|
-
* Plain padded block, e.g. one row. Use one section per row: the card draws full-width dividers between its children.
|
|
39
|
-
*
|
|
40
|
-
* CSS custom properties: `--panel-card-section-padding` (`16px`, `16px 24px` from 992px),
|
|
41
|
-
* `--panel-card-section-background` (`#fff`).
|
|
42
|
-
*/
|
|
43
|
-
export declare const PanelCardSection: import('react').ForwardRefExoticComponent<PanelCardSectionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
44
|
-
export type PanelCardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
45
|
-
/**
|
|
46
|
-
* Footer on a grey surface.
|
|
47
|
-
*
|
|
48
|
-
* CSS custom properties: `--panel-card-footer-padding` (`12px 16px`, `12px 24px` from 992px),
|
|
49
|
-
* `--panel-card-footer-background` (`#f8f8f8`).
|
|
50
|
-
*/
|
|
51
|
-
export declare const PanelCardFooter: import('react').ForwardRefExoticComponent<PanelCardFooterProps & import('react').RefAttributes<HTMLDivElement>>;
|