@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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Props as ReactSelectProps } from 'react-select';
|
|
3
|
+
export declare const CheckboxWrapperDiv: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
5
|
+
}> & string;
|
|
6
|
+
export declare const CheckboxDiv: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
8
|
+
}, {
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const OptionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
12
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
13
|
+
}> & string;
|
|
14
|
+
export interface MultiSelectOption {
|
|
15
|
+
key?: string;
|
|
16
|
+
value: string;
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
type PassedThrough = Omit<ReactSelectProps<MultiSelectOption, true>, 'id' | 'name' | 'options' | 'value' | 'placeholder' | 'onChange' | 'onBlur' | 'onFocus'>;
|
|
20
|
+
export interface MultiSelectProps extends PassedThrough {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
/** Floating label above the field. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Shown as an error state once `touched` is true. */
|
|
26
|
+
error?: boolean;
|
|
27
|
+
touched?: boolean;
|
|
28
|
+
/** Selected option values. */
|
|
29
|
+
value?: string[];
|
|
30
|
+
options: MultiSelectOption[];
|
|
31
|
+
/** Allow typing to filter the options. */
|
|
32
|
+
search?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** Max height of the open menu in px. */
|
|
35
|
+
menuHeight?: number;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
onChange?: (event: {
|
|
38
|
+
name: string;
|
|
39
|
+
value: string[];
|
|
40
|
+
}) => void;
|
|
41
|
+
onBlur?: (event: {
|
|
42
|
+
name: string;
|
|
43
|
+
value: string[];
|
|
44
|
+
}) => void;
|
|
45
|
+
onFocus?: (event: {
|
|
46
|
+
name: string;
|
|
47
|
+
value: string[];
|
|
48
|
+
}) => void;
|
|
49
|
+
/** Checkbox next to each option. */
|
|
50
|
+
showCheckboxes?: boolean;
|
|
51
|
+
/** Show the number of selected options instead of the selected tags. */
|
|
52
|
+
showCountBadge?: boolean;
|
|
53
|
+
closeMenuOnSelect?: boolean;
|
|
54
|
+
hideSelectedOptions?: boolean;
|
|
55
|
+
width?: string | number;
|
|
56
|
+
minMenuWidth?: number;
|
|
57
|
+
maxMenuWidth?: number;
|
|
58
|
+
}
|
|
59
|
+
export declare const MultiSelect: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export default MultiSelect;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import ReactSelect, { components } from "react-select";
|
|
5
4
|
import styled from "styled-components";
|
|
6
5
|
import { Wrapper, Label } from "./Input.styles.js";
|
|
7
|
-
import { colors } from "../../styles/colors.js";
|
|
8
6
|
import { OptionCheckbox } from "../Checkbox/OptionCheckbox.js";
|
|
9
|
-
import { SelectMenuList, SelectIcon } from "./Select.styles.js";
|
|
7
|
+
import { SelectMenuList, SelectIcon as SelectIcon$1 } from "./Select.styles.js";
|
|
8
|
+
const SelectIcon = SelectIcon$1;
|
|
10
9
|
const CountBadge = styled.span`
|
|
11
10
|
display: inline-flex;
|
|
12
11
|
align-items: center;
|
|
@@ -14,8 +13,8 @@ const CountBadge = styled.span`
|
|
|
14
13
|
min-width: 18px;
|
|
15
14
|
height: 18px;
|
|
16
15
|
padding: 0 6px;
|
|
17
|
-
background-color:
|
|
18
|
-
color:
|
|
16
|
+
background-color: var(--stokr-action-primary-bg);
|
|
17
|
+
color: var(--stokr-action-primary-text);
|
|
19
18
|
border-radius: 10px;
|
|
20
19
|
font-size: 12px;
|
|
21
20
|
font-weight: 600;
|
|
@@ -29,7 +28,7 @@ const CheckboxWrapperDiv = styled.div`
|
|
|
29
28
|
transition: background-color 0.15s ease;
|
|
30
29
|
|
|
31
30
|
&:hover {
|
|
32
|
-
background-color:
|
|
31
|
+
background-color: var(--stokr-action-outline-bg-hover);
|
|
33
32
|
}
|
|
34
33
|
`;
|
|
35
34
|
const CheckboxDiv = styled.div.withConfig({
|
|
@@ -37,13 +36,13 @@ const CheckboxDiv = styled.div.withConfig({
|
|
|
37
36
|
})`
|
|
38
37
|
width: 14px;
|
|
39
38
|
height: 14px;
|
|
40
|
-
border: 1px solid ${(props) => props.isSelected ?
|
|
39
|
+
border: 1px solid ${(props) => props.isSelected ? "var(--stokr-text-primary)" : "var(--stokr-text-tertiary)"};
|
|
41
40
|
border-radius: 3px;
|
|
42
41
|
margin-right: 12px;
|
|
43
42
|
display: flex;
|
|
44
43
|
align-items: center;
|
|
45
44
|
justify-content: center;
|
|
46
|
-
background-color: ${(props) => props.isSelected ?
|
|
45
|
+
background-color: ${(props) => props.isSelected ? "var(--stokr-brand-pure-white)" : "var(--stokr-brand-pure-white)"};
|
|
47
46
|
transition: all 0.15s ease;
|
|
48
47
|
flex-shrink: 0;
|
|
49
48
|
|
|
@@ -55,12 +54,12 @@ const CheckboxDiv = styled.div.withConfig({
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
svg path {
|
|
58
|
-
stroke:
|
|
57
|
+
stroke: var(--stokr-action-accent-bg);
|
|
59
58
|
}
|
|
60
59
|
`;
|
|
61
60
|
const OptionLabel = styled.span`
|
|
62
61
|
font-size: 14px;
|
|
63
|
-
color:
|
|
62
|
+
color: var(--stokr-text-primary);
|
|
64
63
|
font-weight: 400;
|
|
65
64
|
letter-spacing: 0.6px;
|
|
66
65
|
line-height: 1.5;
|
|
@@ -72,7 +71,7 @@ const OptionLabel = styled.span`
|
|
|
72
71
|
`;
|
|
73
72
|
const PlaceholderText = styled.span`
|
|
74
73
|
font-size: 14px;
|
|
75
|
-
color:
|
|
74
|
+
color: var(--stokr-text-primary);
|
|
76
75
|
font-weight: 400;
|
|
77
76
|
`;
|
|
78
77
|
const CheckboxOption = (props) => {
|
|
@@ -94,17 +93,11 @@ const DropdownIndicator = (props) => {
|
|
|
94
93
|
const { selectProps } = props;
|
|
95
94
|
return /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx(SelectIcon, { isMenuOpen: selectProps.menuIsOpen }) });
|
|
96
95
|
};
|
|
97
|
-
DropdownIndicator.propTypes = {
|
|
98
|
-
selectProps: PropTypes.instanceOf(Object).isRequired
|
|
99
|
-
};
|
|
100
96
|
const SelectMenuListWithScroll = (props) => {
|
|
101
97
|
const { children, selectProps } = props;
|
|
102
98
|
const { maxMenuHeight = 300 } = selectProps;
|
|
103
99
|
return /* @__PURE__ */ jsx(SelectMenuList, { autoHeight: true, autoHeightMax: maxMenuHeight, fullHeight: true, children });
|
|
104
100
|
};
|
|
105
|
-
SelectMenuListWithScroll.propTypes = {
|
|
106
|
-
children: PropTypes.node.isRequired
|
|
107
|
-
};
|
|
108
101
|
const MultiSelect = (props) => {
|
|
109
102
|
const {
|
|
110
103
|
id,
|
|
@@ -183,22 +176,23 @@ const MultiSelect = (props) => {
|
|
|
183
176
|
alignItems: "center",
|
|
184
177
|
// minHeight: '44px',
|
|
185
178
|
padding: "0 10px",
|
|
186
|
-
backgroundColor:
|
|
187
|
-
border: `1px solid ${state.isFocused ?
|
|
179
|
+
backgroundColor: "var(--stokr-background-default)",
|
|
180
|
+
border: `1px solid ${state.isFocused ? "var(--stokr-border-default)" : "var(--stokr-border-subtle)"}`,
|
|
188
181
|
borderRadius: "10px",
|
|
189
182
|
boxShadow: "none",
|
|
190
183
|
cursor: "pointer",
|
|
191
184
|
"&:hover": {
|
|
192
|
-
borderColor:
|
|
185
|
+
borderColor: "var(--stokr-border-default)"
|
|
193
186
|
}
|
|
194
187
|
}),
|
|
195
188
|
menu: (baseStyle) => ({
|
|
196
189
|
...baseStyle,
|
|
197
190
|
marginTop: "4px",
|
|
198
191
|
zIndex: 1e3,
|
|
192
|
+
backgroundColor: "var(--stokr-background-surface-raised)",
|
|
199
193
|
borderRadius: "8px",
|
|
200
194
|
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.15)",
|
|
201
|
-
border: `1px solid
|
|
195
|
+
border: `1px solid var(--stokr-border-subtle)`,
|
|
202
196
|
overflow: "hidden",
|
|
203
197
|
minWidth: minMenuWidth,
|
|
204
198
|
maxWidth: maxMenuWidth,
|
|
@@ -213,15 +207,15 @@ const MultiSelect = (props) => {
|
|
|
213
207
|
// When using checkboxes, padding is handled by CheckboxOption
|
|
214
208
|
// Otherwise, add padding for the default option
|
|
215
209
|
padding: showCheckboxes ? 0 : "12px 16px",
|
|
216
|
-
backgroundColor: state.isFocused ?
|
|
217
|
-
color:
|
|
210
|
+
backgroundColor: state.isFocused ? "var(--stokr-action-outline-bg-hover)" : "transparent",
|
|
211
|
+
color: "var(--stokr-text-primary)",
|
|
218
212
|
cursor: "pointer",
|
|
219
213
|
fontWeight: state.isSelected ? 600 : 400,
|
|
220
214
|
whiteSpace: "nowrap",
|
|
221
215
|
overflow: "hidden",
|
|
222
216
|
textOverflow: "ellipsis",
|
|
223
217
|
"&:active": {
|
|
224
|
-
backgroundColor:
|
|
218
|
+
backgroundColor: "var(--stokr-action-outline-bg-hover)"
|
|
225
219
|
}
|
|
226
220
|
}),
|
|
227
221
|
valueContainer: (baseStyle) => ({
|
|
@@ -241,7 +235,8 @@ const MultiSelect = (props) => {
|
|
|
241
235
|
input: (baseStyle) => ({
|
|
242
236
|
...baseStyle,
|
|
243
237
|
margin: 0,
|
|
244
|
-
padding: 0
|
|
238
|
+
padding: 0,
|
|
239
|
+
color: "var(--stokr-text-primary)"
|
|
245
240
|
}),
|
|
246
241
|
indicatorsContainer: (baseStyle) => ({
|
|
247
242
|
...baseStyle,
|
|
@@ -269,33 +264,6 @@ const MultiSelect = (props) => {
|
|
|
269
264
|
)
|
|
270
265
|
] });
|
|
271
266
|
};
|
|
272
|
-
MultiSelect.propTypes = {
|
|
273
|
-
id: PropTypes.string.isRequired,
|
|
274
|
-
name: PropTypes.string.isRequired,
|
|
275
|
-
label: PropTypes.string,
|
|
276
|
-
error: PropTypes.bool,
|
|
277
|
-
touched: PropTypes.bool,
|
|
278
|
-
value: PropTypes.arrayOf(PropTypes.string),
|
|
279
|
-
options: PropTypes.arrayOf(
|
|
280
|
-
PropTypes.shape({
|
|
281
|
-
key: PropTypes.string.isRequired,
|
|
282
|
-
value: PropTypes.string.isRequired,
|
|
283
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired
|
|
284
|
-
})
|
|
285
|
-
).isRequired,
|
|
286
|
-
search: PropTypes.bool,
|
|
287
|
-
placeholder: PropTypes.string,
|
|
288
|
-
onChange: PropTypes.func,
|
|
289
|
-
onBlur: PropTypes.func,
|
|
290
|
-
onFocus: PropTypes.func,
|
|
291
|
-
showCheckboxes: PropTypes.bool,
|
|
292
|
-
showCountBadge: PropTypes.bool,
|
|
293
|
-
closeMenuOnSelect: PropTypes.bool,
|
|
294
|
-
hideSelectedOptions: PropTypes.bool,
|
|
295
|
-
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
296
|
-
minMenuWidth: PropTypes.number,
|
|
297
|
-
maxMenuWidth: PropTypes.number
|
|
298
|
-
};
|
|
299
267
|
export {
|
|
300
268
|
CheckboxDiv,
|
|
301
269
|
CheckboxWrapperDiv,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { OTPInputProps } from 'react-otp-input';
|
|
3
|
+
export interface OtpInputProps extends Omit<OTPInputProps, 'renderInput' | 'renderSeparator' | 'onChange'> {
|
|
4
|
+
/** Accepted for API compatibility; not forwarded to the digit inputs. */
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
/** Floating label above the digits. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Component rendered between two digits. */
|
|
10
|
+
RenderSeparator?: ComponentType;
|
|
11
|
+
/** Prefix for `data-cy`: `{prefix}-wrapper` and `{prefix}-digit-0`, … */
|
|
12
|
+
dataCyPrefix?: string;
|
|
13
|
+
/** Called with the full code each time a digit changes. */
|
|
14
|
+
onChange?: (otp: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const OtpInput: (props: OtpInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default OtpInput;
|
|
@@ -3,12 +3,11 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import Input from "react-otp-input";
|
|
4
4
|
import { styled } from "styled-components";
|
|
5
5
|
import { Wrapper, Label, InputWrap } from "./Input.styles.js";
|
|
6
|
-
import
|
|
7
|
-
import rwd from "../../styles/rwd.js";
|
|
6
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
8
7
|
const inputStyle = {
|
|
9
8
|
outline: "none",
|
|
10
9
|
border: "none",
|
|
11
|
-
borderBottom: `1.5px solid
|
|
10
|
+
borderBottom: `1.5px solid var(--stokr-border-strong)`,
|
|
12
11
|
padding: "10px",
|
|
13
12
|
paddingBottom: "2px",
|
|
14
13
|
minWidth: 30,
|
|
@@ -18,7 +17,7 @@ const inputStyle = {
|
|
|
18
17
|
};
|
|
19
18
|
const Separator = styled.span`
|
|
20
19
|
padding: 5px;
|
|
21
|
-
${
|
|
20
|
+
${breakpoint.Mobile`
|
|
22
21
|
padding: 10px;
|
|
23
22
|
`}
|
|
24
23
|
`;
|
|
@@ -50,12 +49,12 @@ const OtpInput = (props) => {
|
|
|
50
49
|
useEffect(() => {
|
|
51
50
|
if (value && !labelUp) setLabelUp(true);
|
|
52
51
|
}, [value, labelUp]);
|
|
53
|
-
const handleChange = (
|
|
54
|
-
onChange?.(
|
|
52
|
+
const handleChange = (otp) => {
|
|
53
|
+
onChange?.(otp);
|
|
55
54
|
};
|
|
56
55
|
return /* @__PURE__ */ jsxs(Wrapper, { ...dataCyPrefix ? { "data-cy": `${dataCyPrefix}-wrapper` } : {}, children: [
|
|
57
|
-
label && /* @__PURE__ */ jsx(Label, { isUp: true, style: { lineHeight: "
|
|
58
|
-
/* @__PURE__ */ jsx(InputWrap, { children: /* @__PURE__ */ jsx(
|
|
56
|
+
label && /* @__PURE__ */ jsx(Label, { isUp: true, style: { lineHeight: "12px", top: 0 }, children: label }),
|
|
57
|
+
/* @__PURE__ */ jsx(InputWrap, { style: label ? { paddingTop: 12 } : void 0, children: /* @__PURE__ */ jsx(
|
|
59
58
|
Input,
|
|
60
59
|
{
|
|
61
60
|
value,
|
|
@@ -65,13 +64,7 @@ const OtpInput = (props) => {
|
|
|
65
64
|
shouldAutoFocus,
|
|
66
65
|
inputStyle,
|
|
67
66
|
renderSeparator: /* @__PURE__ */ jsx(RenderSeparator, {}),
|
|
68
|
-
renderInput: (inputProps, index) => /* @__PURE__ */ jsx(
|
|
69
|
-
"input",
|
|
70
|
-
{
|
|
71
|
-
...inputProps,
|
|
72
|
-
...dataCyPrefix ? { "data-cy": `${dataCyPrefix}-digit-${index}` } : {}
|
|
73
|
-
}
|
|
74
|
-
),
|
|
67
|
+
renderInput: (inputProps, index) => /* @__PURE__ */ jsx("input", { ...inputProps, ...dataCyPrefix ? { "data-cy": `${dataCyPrefix}-digit-${index}` } : {} }),
|
|
75
68
|
...otpProps
|
|
76
69
|
}
|
|
77
70
|
) })
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RangeInputProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
/** Accessible label for the thumb. */
|
|
4
|
+
name?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
max?: number;
|
|
7
|
+
min?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
/** Called with the new value (a number). */
|
|
10
|
+
onChange?: (value: number) => void;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const RangeInput: ({ disabled, max, min, step, onChange, value, id, name, }: RangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default RangeInput;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
2
|
import { Range, getTrackBackground } from "react-range";
|
|
5
|
-
import { colors } from "../../styles/colors.js";
|
|
6
3
|
const RangeInput = ({
|
|
7
4
|
disabled = false,
|
|
8
5
|
max = 100,
|
|
@@ -33,7 +30,7 @@ const RangeInput = ({
|
|
|
33
30
|
borderRadius: "10px",
|
|
34
31
|
background: getTrackBackground({
|
|
35
32
|
values: [value],
|
|
36
|
-
colors: [
|
|
33
|
+
colors: ["var(--stokr-action-accent-bg)", "var(--stokr-border-subtle)"],
|
|
37
34
|
min,
|
|
38
35
|
max
|
|
39
36
|
})
|
|
@@ -50,7 +47,7 @@ const RangeInput = ({
|
|
|
50
47
|
...props.style,
|
|
51
48
|
height: "24px",
|
|
52
49
|
width: "24px",
|
|
53
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: "var(--stokr-action-accent-bg)",
|
|
54
51
|
borderRadius: "50%",
|
|
55
52
|
border: "4px solid white"
|
|
56
53
|
}
|
|
@@ -59,18 +56,6 @@ const RangeInput = ({
|
|
|
59
56
|
)
|
|
60
57
|
}
|
|
61
58
|
) });
|
|
62
|
-
RangeInput.propTypes = {
|
|
63
|
-
id: PropTypes.string,
|
|
64
|
-
/** Accessible label for the thumb. */
|
|
65
|
-
name: PropTypes.string,
|
|
66
|
-
disabled: PropTypes.bool,
|
|
67
|
-
max: PropTypes.number,
|
|
68
|
-
min: PropTypes.number,
|
|
69
|
-
step: PropTypes.number,
|
|
70
|
-
/** Called with the new value (a number). */
|
|
71
|
-
onChange: PropTypes.func,
|
|
72
|
-
value: PropTypes.number.isRequired
|
|
73
|
-
};
|
|
74
59
|
export {
|
|
75
60
|
RangeInput
|
|
76
61
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const SearchInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const SearchInputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
6
|
+
}, {
|
|
7
|
+
variant?: "filled" | "outlined";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const SearchIconWrapper: 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 SearchInputField: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "style"> & {
|
|
14
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
15
|
+
}> & string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
2
|
const SearchInputContainer = styled.div`
|
|
4
3
|
width: 100%;
|
|
5
4
|
display: flex;
|
|
@@ -17,8 +16,8 @@ const SearchInputWrapper = styled.div.withConfig({
|
|
|
17
16
|
transition: all 0.2s ease;
|
|
18
17
|
|
|
19
18
|
/* Default filled variant */
|
|
20
|
-
background-color: ${(props) => props.variant === "outlined" ? "transparent" :
|
|
21
|
-
border: ${(props) => props.variant === "outlined" ? `1px solid
|
|
19
|
+
background-color: ${(props) => props.variant === "outlined" ? "transparent" : "var(--stokr-background-surface)"};
|
|
20
|
+
border: ${(props) => props.variant === "outlined" ? `1px solid var(--stokr-border-subtle)` : "1px solid transparent"};
|
|
22
21
|
|
|
23
22
|
${(props) => props.disabled && `
|
|
24
23
|
opacity: 0.6;
|
|
@@ -26,13 +25,13 @@ const SearchInputWrapper = styled.div.withConfig({
|
|
|
26
25
|
`}
|
|
27
26
|
|
|
28
27
|
&:focus-within {
|
|
29
|
-
background-color: ${(props) => props.variant === "outlined" ? "transparent" :
|
|
30
|
-
border-color: ${(props) => props.variant === "outlined" ?
|
|
31
|
-
box-shadow: ${(props) => props.variant === "outlined" ? "none" : `0 0 0 2px
|
|
28
|
+
background-color: ${(props) => props.variant === "outlined" ? "transparent" : "var(--stokr-background-default)"};
|
|
29
|
+
border-color: ${(props) => props.variant === "outlined" ? "var(--stokr-border-default)" : "transparent"};
|
|
30
|
+
box-shadow: ${(props) => props.variant === "outlined" ? "none" : `0 0 0 2px var(--stokr-border-subtle)`};
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
&:hover {
|
|
35
|
-
border-color: ${(props) => props.variant === "outlined" ?
|
|
34
|
+
border-color: ${(props) => props.variant === "outlined" ? "var(--stokr-border-default)" : "transparent"};
|
|
36
35
|
}
|
|
37
36
|
`;
|
|
38
37
|
const SearchIconWrapper = styled.div`
|
|
@@ -40,7 +39,7 @@ const SearchIconWrapper = styled.div`
|
|
|
40
39
|
align-items: center;
|
|
41
40
|
justify-content: center;
|
|
42
41
|
margin-right: 12px;
|
|
43
|
-
color:
|
|
42
|
+
color: var(--stokr-text-tertiary);
|
|
44
43
|
flex-shrink: 0;
|
|
45
44
|
width: 16px;
|
|
46
45
|
height: 16px;
|
|
@@ -51,7 +50,7 @@ const SearchIconWrapper = styled.div`
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
${SearchInputWrapper}:focus-within & {
|
|
54
|
-
color:
|
|
53
|
+
color: var(--stokr-text-primary);
|
|
55
54
|
}
|
|
56
55
|
`;
|
|
57
56
|
const SearchInputField = styled.input`
|
|
@@ -62,13 +61,13 @@ const SearchInputField = styled.input`
|
|
|
62
61
|
font-size: 14px;
|
|
63
62
|
font-weight: 400;
|
|
64
63
|
line-height: 18px;
|
|
65
|
-
color:
|
|
64
|
+
color: var(--stokr-text-primary);
|
|
66
65
|
width: 100%;
|
|
67
66
|
min-width: 0;
|
|
68
67
|
letter-spacing: 0.6px;
|
|
69
68
|
|
|
70
69
|
&::placeholder {
|
|
71
|
-
color:
|
|
70
|
+
color: var(--stokr-text-tertiary);
|
|
72
71
|
opacity: 1;
|
|
73
72
|
}
|
|
74
73
|
|