@stokr/components-library 5.0.0 → 5.0.2
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 +8 -8
- package/dist/components/AddressItem/AddressItem.d.ts +38 -0
- package/dist/components/AddressItem/AddressItem.js +51 -0
- package/dist/components/AddressItem/AddressItem.styles.d.ts +31 -0
- package/dist/components/AddressItem/AddressItem.styles.js +71 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +18 -25
- package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
- package/dist/components/BackButton/BackButton.styles.js +15 -15
- package/dist/components/BasicTable/BasicTable.styles.js +6 -8
- package/dist/components/BlogPost/BlogPost.styles.js +9 -13
- package/dist/components/Button/Button.styles.d.ts +1 -1
- package/dist/components/Button/Button.styles.js +122 -11
- package/dist/components/Button/GlareButton.js +1 -1
- package/dist/components/Card/Card.styles.js +3 -4
- package/dist/components/CardTabs/CardTabs.styles.js +17 -17
- package/dist/components/ChartLegend/ChartLegend.styles.js +6 -7
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.styles.js +10 -11
- package/dist/components/Checklist/ChecklistCard.js +3 -3
- package/dist/components/Checklist/ChecklistCard.styles.js +7 -20
- package/dist/components/Chips/Chip.js +2 -2
- package/dist/components/Chips/Chip.styles.js +6 -10
- package/dist/components/Collapsible/Collapsible.d.ts +10 -4
- package/dist/components/Collapsible/Collapsible.js +6 -14
- package/dist/components/Collapsible/Collapsible.styles.d.ts +3 -1
- package/dist/components/Collapsible/Collapsible.styles.js +33 -16
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +5 -5
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +5 -5
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +2 -2
- package/dist/components/Country/CountrySelect.js +15 -20
- package/dist/components/Country/FlagFor.d.ts +9 -0
- package/dist/components/Country/FlagFor.js +25 -0
- package/dist/components/Country/flagLoaders.d.ts +5 -0
- package/dist/components/Country/flagLoaders.js +270 -0
- package/dist/components/Country/flagStore.d.ts +6 -0
- package/dist/components/Country/flagStore.js +29 -0
- package/dist/components/CryptoAddress/CryptoAddress.d.ts +6 -2
- package/dist/components/CryptoAddress/CryptoAddress.js +2 -2
- package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +2 -1
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +20 -27
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +2 -2
- package/dist/components/FAQ/FAQ.d.ts +29 -0
- package/dist/components/FAQ/FAQ.js +18 -18
- package/dist/components/FAQ/FAQ.styles.d.ts +11 -3
- package/dist/components/FAQ/FAQ.styles.js +59 -10
- package/dist/components/Form/Form.styles.js +5 -5
- package/dist/components/Grid/Grid.styles.js +7 -7
- package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +13 -23
- package/dist/components/InfoBox/InfoBox.d.ts +15 -13
- package/dist/components/InfoBox/InfoBox.js +31 -14
- package/dist/components/InfoIcon/InfoIcon.styles.js +2 -2
- package/dist/components/Input/DatePickerInput.styles.js +23 -24
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +5 -2
- package/dist/components/Input/Input.styles.d.ts +4 -0
- package/dist/components/Input/Input.styles.js +77 -27
- package/dist/components/Input/InputPassword.styles.js +11 -11
- package/dist/components/Input/InputWithButton.styles.js +5 -5
- package/dist/components/Input/MultiSelect.js +17 -17
- package/dist/components/Input/OtpInput.js +1 -1
- package/dist/components/Input/RangeInput.js +2 -2
- package/dist/components/Input/SearchInput.styles.js +10 -10
- package/dist/components/Input/Select.d.ts +57 -0
- package/dist/components/Input/Select.js +101 -106
- package/dist/components/Input/Select.styles.d.ts +89 -0
- package/dist/components/Input/Select.styles.js +115 -19
- package/dist/components/Input/TableFilterDropdown.js +5 -5
- package/dist/components/Input/Textarea.styles.js +11 -13
- package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +2 -0
- package/dist/components/MenuNav/MenuNav.styles.js +2 -5
- package/dist/components/Modal/Modal.styles.js +25 -31
- package/dist/components/Modal/PaymentModal.js +7 -7
- package/dist/components/Modal/SideModal.styles.js +8 -8
- package/dist/components/Modal/SideModalParts.js +15 -16
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +5 -8
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -2
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/Number/Number.styles.js +2 -2
- package/dist/components/Pagination/Pagination.styles.js +7 -7
- package/dist/components/PanelCard/PanelCard.d.ts +51 -0
- package/dist/components/PanelCard/PanelCard.js +35 -0
- package/dist/components/PanelCard/PanelCard.styles.d.ts +29 -0
- package/dist/components/PanelCard/PanelCard.styles.js +84 -0
- package/dist/components/Payment/DetailRows.js +1 -1
- package/dist/components/Payment/DetailsToggle.js +4 -6
- package/dist/components/Payment/PaymentDetailsCard.js +29 -53
- package/dist/components/Payment/PaymentDisplay.js +12 -20
- package/dist/components/Payment/PaymentPendingCard.d.ts +1 -1
- package/dist/components/Payment/PaymentPendingCard.js +10 -13
- package/dist/components/Payment/PaymentSuccessCard.js +6 -9
- package/dist/components/Payment/TimerComponent.js +5 -4
- package/dist/components/Process/Process.styles.js +7 -13
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -10
- package/dist/components/ProfileBox/ProfileBox.styles.js +5 -7
- package/dist/components/Radio/Radio.styles.d.ts +1 -0
- package/dist/components/Radio/Radio.styles.js +8 -9
- package/dist/components/RefreshButton/RefreshButton.styles.js +5 -5
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +3 -5
- package/dist/components/Section/Section.styles.js +16 -18
- package/dist/components/SectionTitle/SectionTitle.styles.d.ts +4 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +4 -7
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +3 -3
- package/dist/components/Snackbar/Snackbar.styles.js +8 -10
- package/dist/components/SpanButton/SpanButton.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.d.ts +1 -1
- package/dist/components/StatusDot/StatusDot.js +5 -5
- package/dist/components/StatusDot/StatusDot.styles.js +2 -5
- package/dist/components/StatusTag/StatusTag.js +1 -1
- package/dist/components/StatusTag/StatusTag.styles.js +4 -4
- package/dist/components/StepController/StepController.styles.js +7 -7
- package/dist/components/StepSidebar/MobileStepProgress.d.ts +12 -0
- package/dist/components/StepSidebar/MobileStepProgress.js +14 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +15 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +39 -0
- package/dist/components/StepSidebar/StepProgress.d.ts +14 -0
- package/dist/components/StepSidebar/StepProgress.js +14 -0
- package/dist/components/StepSidebar/StepProgress.styles.d.ts +30 -0
- package/dist/components/StepSidebar/StepProgress.styles.js +97 -0
- package/dist/components/StepSidebar/StepSidebar.d.ts +36 -0
- package/dist/components/StepSidebar/StepSidebar.js +58 -0
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +55 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +168 -0
- package/dist/components/StokrLoader/StokrLoader.d.ts +16 -2
- package/dist/components/StokrLoader/StokrLoader.js +170 -28
- package/dist/components/StokrLoader/loaderSession.d.ts +14 -0
- package/dist/components/StokrLoader/loaderSession.js +30 -0
- package/dist/components/Switch/Switch.styles.js +12 -14
- package/dist/components/TabsNav/TabsNav.styles.js +7 -9
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +26 -11
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +29 -12
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +103 -30
- package/dist/components/Text/Text.styles.d.ts +2 -1
- package/dist/components/Text/Text.styles.js +36 -70
- package/dist/components/TextLink/TextLink.styles.js +5 -7
- package/dist/components/Timeline/Timeline.styles.js +17 -23
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip.styles.js +4 -5
- package/dist/components/breakdown/Breakdown.js +3 -5
- package/dist/components/logo/Logo.js +1 -1
- package/dist/constants/chainLogos.d.ts +9 -0
- package/dist/constants/chainLogos.js +17 -0
- package/dist/design-system/css/base.css +14 -14
- package/dist/design-system/css-builders.d.ts +25 -0
- package/dist/design-system/css-builders.js +81 -0
- package/dist/design-system/generated/fonts.css +0 -49
- package/dist/design-system/generated/text-classes.css +123 -123
- package/dist/design-system/generated/text-styles.d.ts +24 -24
- package/dist/design-system/generated/text-styles.js +123 -123
- package/dist/design-system/generated/tokens.css +417 -412
- package/dist/design-system/index.d.ts +2 -1
- package/dist/design-system/styled/build-theme.js +1 -1
- package/dist/design-system/tokens/colors.d.ts +1 -1
- package/dist/design-system/tokens/colors.js +1 -1
- package/dist/design-system/tokens/fonts.d.ts +6 -2
- package/dist/design-system/tokens/fonts.js +1 -1
- package/dist/design-system/tokens/semantic.d.ts +15 -3
- package/dist/design-system/tokens/semantic.js +5 -1
- package/dist/design-system/tokens/typography.d.ts +1 -1
- package/dist/design-system/tokens/typography.js +64 -41
- package/dist/index.d.ts +84 -7
- package/dist/index.js +24 -4
- package/dist/static/images/chains/avalanche.svg +7 -0
- package/dist/static/images/chains/avalanche.svg.js +4 -0
- package/dist/static/images/chains/ethereum.svg +14 -0
- package/dist/static/images/chains/ethereum.svg.js +4 -0
- package/dist/static/images/chains/liquid.svg +7 -0
- package/dist/static/images/chains/liquid.svg.js +4 -0
- package/dist/static/images/chains/solana.svg +29 -0
- package/dist/static/images/chains/solana.svg.js +4 -0
- package/dist/static/images/chains/stellar.svg +17 -0
- package/dist/static/images/chains/stellar.svg.js +4 -0
- package/dist/static/images/chains/tempo.svg +11 -0
- package/dist/static/images/chains/tempo.svg.js +4 -0
- package/dist/styles/borderedField.d.ts +11 -0
- package/dist/styles/borderedField.js +53 -0
- package/package.json +1 -1
- package/dist/static/images/globe.svg.js +0 -5
- package/dist/static/images/trash.svg +0 -17
- package/dist/static/images/trash.svg.js +0 -5
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
}>, "name" | "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" | "value" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & 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
|
+
}>, "name" | "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" | "value" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>> & 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;
|
|
@@ -2,6 +2,8 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
import { TrackV } from "../ComponentScroll/ComponentScroll.styles.js";
|
|
3
3
|
import stdin_default from "../ComponentScroll/ComponentScroll.js";
|
|
4
4
|
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
|
+
import { borderedFieldBox, borderedFieldText, borderedFieldFocus, borderedFieldError, borderedFieldDisabled } from "../../styles/borderedField.js";
|
|
6
|
+
import { text } from "../../design-system/styled/text.js";
|
|
5
7
|
const SelectControl = css`
|
|
6
8
|
&&& {
|
|
7
9
|
z-index: 10 !important;
|
|
@@ -19,8 +21,8 @@ const SelectControl = css`
|
|
|
19
21
|
box-shadow: none;
|
|
20
22
|
border: 0;
|
|
21
23
|
border-top: 1px solid transparent;
|
|
22
|
-
border-bottom: 1px solid var(--
|
|
23
|
-
color: var(--
|
|
24
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
25
|
+
color: var(--text-primary);
|
|
24
26
|
background-color: transparent;
|
|
25
27
|
transition: border-color 0.2s;
|
|
26
28
|
cursor: pointer;
|
|
@@ -28,7 +30,7 @@ const SelectControl = css`
|
|
|
28
30
|
&:hover {
|
|
29
31
|
box-shadow: none;
|
|
30
32
|
border-top-color: transparent;
|
|
31
|
-
border-bottom-color: var(--
|
|
33
|
+
border-bottom-color: var(--border-focus);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
&.active {
|
|
@@ -36,14 +38,70 @@ const SelectControl = css`
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
`;
|
|
41
|
+
const SelectBorderedControl = css`
|
|
42
|
+
&&& {
|
|
43
|
+
z-index: 10 !important;
|
|
44
|
+
position: relative;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
width: 100%;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
${borderedFieldBox}
|
|
51
|
+
${borderedFieldText}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.active {
|
|
58
|
+
z-index: 12 !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const SelectBorderedFocus = css`
|
|
63
|
+
&&& {
|
|
64
|
+
${borderedFieldFocus}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
${borderedFieldFocus}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
const SelectBorderedError = css`
|
|
72
|
+
&&& {
|
|
73
|
+
${borderedFieldError}
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
${borderedFieldError}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
80
|
+
const SelectBorderedDisabled = css`
|
|
81
|
+
&&& {
|
|
82
|
+
${borderedFieldDisabled}
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
const borderedControlCss = ({
|
|
86
|
+
focused,
|
|
87
|
+
invalid,
|
|
88
|
+
disabled
|
|
89
|
+
}) => [
|
|
90
|
+
[
|
|
91
|
+
SelectBorderedControl,
|
|
92
|
+
focused && SelectBorderedFocus,
|
|
93
|
+
invalid && SelectBorderedError,
|
|
94
|
+
disabled && SelectBorderedDisabled
|
|
95
|
+
].flat(2).filter(Boolean).join("")
|
|
96
|
+
];
|
|
39
97
|
const SelectMenu = css`
|
|
40
98
|
margin-top: -1px;
|
|
41
99
|
border-radius: 0;
|
|
42
100
|
box-shadow: none;
|
|
43
101
|
border: 0;
|
|
44
|
-
border-top: 1px solid var(--
|
|
45
|
-
border-bottom: 1px solid var(--
|
|
46
|
-
background-color: var(--
|
|
102
|
+
border-top: 1px solid var(--border-subtle) !important;
|
|
103
|
+
border-bottom: 1px solid var(--border-subtle) !important;
|
|
104
|
+
background-color: var(--background-surface-raised);
|
|
47
105
|
opacity: 999 !important;
|
|
48
106
|
`;
|
|
49
107
|
const SelectMenuList = styled(stdin_default)`
|
|
@@ -63,7 +121,7 @@ const SelectOption = css`
|
|
|
63
121
|
line-height: 18px;
|
|
64
122
|
border: 0;
|
|
65
123
|
background-color: transparent;
|
|
66
|
-
color: var(--
|
|
124
|
+
color: var(--text-primary);
|
|
67
125
|
|
|
68
126
|
&:hover {
|
|
69
127
|
background-color: transparent;
|
|
@@ -92,11 +150,15 @@ const SelectIcon = styled.span.withConfig({
|
|
|
92
150
|
font-size: 18px;
|
|
93
151
|
transition: 0.3s transform;
|
|
94
152
|
transform: rotate(0);
|
|
95
|
-
color: var(--
|
|
153
|
+
color: var(--text-primary);
|
|
96
154
|
|
|
97
155
|
${(props) => props.isMenuOpen && `
|
|
98
156
|
transform: rotate(180deg);
|
|
99
157
|
`}
|
|
158
|
+
|
|
159
|
+
${(props) => props.$variant === "bordered" && `
|
|
160
|
+
font-size: 20px;
|
|
161
|
+
`}
|
|
100
162
|
}
|
|
101
163
|
`;
|
|
102
164
|
const OptionRow = styled.div`
|
|
@@ -122,6 +184,11 @@ const OptionIcon = styled.span`
|
|
|
122
184
|
object-fit: cover;
|
|
123
185
|
display: block;
|
|
124
186
|
}
|
|
187
|
+
|
|
188
|
+
${(props) => props.$variant === "bordered" && `
|
|
189
|
+
width: 24px;
|
|
190
|
+
height: 20px;
|
|
191
|
+
`}
|
|
125
192
|
`;
|
|
126
193
|
const OptionLabel = styled.span`
|
|
127
194
|
flex: 1;
|
|
@@ -131,14 +198,17 @@ const OptionLabel = styled.span`
|
|
|
131
198
|
text-overflow: ellipsis;
|
|
132
199
|
`;
|
|
133
200
|
const SelectedChipsWrapper = styled.div`
|
|
134
|
-
margin-top: 18px;
|
|
201
|
+
margin-top: ${(props) => props.$variant === "bordered" ? "var(--space-4)" : "18px"};
|
|
135
202
|
`;
|
|
136
203
|
const SelectedChipsTitle = styled.div`
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
text-transform: uppercase;
|
|
140
|
-
color: var(--stokr-text-secondary);
|
|
204
|
+
${text("labelRegular")}
|
|
205
|
+
color: var(--text-secondary);
|
|
141
206
|
margin-bottom: 8px;
|
|
207
|
+
|
|
208
|
+
${(props) => props.$variant === "bordered" && css`
|
|
209
|
+
margin-bottom: var(--space-1);
|
|
210
|
+
color: var(--text-secondary);
|
|
211
|
+
`}
|
|
142
212
|
`;
|
|
143
213
|
const SelectedChipsList = styled.div`
|
|
144
214
|
display: flex;
|
|
@@ -150,12 +220,21 @@ const SelectedChip = styled.div`
|
|
|
150
220
|
align-items: center;
|
|
151
221
|
gap: 8px;
|
|
152
222
|
padding: 6px 10px;
|
|
153
|
-
border: 1px solid var(--
|
|
223
|
+
border: 1px solid var(--border-subtle);
|
|
154
224
|
border-radius: 20px;
|
|
155
|
-
background-color: var(--
|
|
225
|
+
background-color: var(--background-default);
|
|
156
226
|
font-size: 12px;
|
|
157
227
|
line-height: 16px;
|
|
158
|
-
color: var(--
|
|
228
|
+
color: var(--text-primary);
|
|
229
|
+
|
|
230
|
+
${(props) => props.$variant === "bordered" && css`
|
|
231
|
+
gap: 6px;
|
|
232
|
+
padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
|
|
233
|
+
border-color: var(--border-subtle);
|
|
234
|
+
border-radius: 48px;
|
|
235
|
+
${text("label")}
|
|
236
|
+
color: var(--text-primary);
|
|
237
|
+
`}
|
|
159
238
|
`;
|
|
160
239
|
const SelectedChipLabel = styled.span`
|
|
161
240
|
white-space: nowrap;
|
|
@@ -169,15 +248,31 @@ const SelectedChipRemove = styled.button.attrs({ type: "button" })`
|
|
|
169
248
|
padding: 0;
|
|
170
249
|
margin: 0 0 0 2px;
|
|
171
250
|
cursor: pointer;
|
|
172
|
-
color: var(--
|
|
251
|
+
color: var(--text-tertiary);
|
|
173
252
|
font-size: 14px;
|
|
174
253
|
line-height: 1;
|
|
175
254
|
width: 14px;
|
|
176
255
|
height: 14px;
|
|
177
256
|
|
|
178
257
|
&:hover {
|
|
179
|
-
color: var(--
|
|
258
|
+
color: var(--text-primary);
|
|
180
259
|
}
|
|
260
|
+
|
|
261
|
+
${(props) => props.$variant === "bordered" && css`
|
|
262
|
+
width: 16px;
|
|
263
|
+
height: 16px;
|
|
264
|
+
margin: 0;
|
|
265
|
+
color: var(--text-primary);
|
|
266
|
+
|
|
267
|
+
&:hover {
|
|
268
|
+
color: var(--text-primary);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&:disabled {
|
|
272
|
+
cursor: not-allowed;
|
|
273
|
+
opacity: 0.4;
|
|
274
|
+
}
|
|
275
|
+
`}
|
|
181
276
|
`;
|
|
182
277
|
const SelectWrapper = styled.div.withConfig({
|
|
183
278
|
shouldForwardProp: (props) => !["minWidth", "noMargin"].includes(props)
|
|
@@ -236,5 +331,6 @@ export {
|
|
|
236
331
|
SelectedChipRemove,
|
|
237
332
|
SelectedChipsList,
|
|
238
333
|
SelectedChipsTitle,
|
|
239
|
-
SelectedChipsWrapper
|
|
334
|
+
SelectedChipsWrapper,
|
|
335
|
+
borderedControlCss
|
|
240
336
|
};
|
|
@@ -52,10 +52,10 @@ const DropdownMenu = styled.div`
|
|
|
52
52
|
z-index: 10000;
|
|
53
53
|
min-width: 150px;
|
|
54
54
|
max-width: 300px;
|
|
55
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--background-surface-raised);
|
|
56
56
|
border-radius: 8px;
|
|
57
57
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
58
|
-
border: 1px solid var(--
|
|
58
|
+
border: 1px solid var(--border-subtle);
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
`;
|
|
61
61
|
const OptionsList = styled.div`
|
|
@@ -70,12 +70,12 @@ const ClearAllOption = styled.div`
|
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
font-weight: 400;
|
|
72
72
|
letter-spacing: 0.6px;
|
|
73
|
-
color: var(--
|
|
74
|
-
border-top: 1px solid var(--
|
|
73
|
+
color: var(--action-accent-bg);
|
|
74
|
+
border-top: 1px solid var(--border-subtle);
|
|
75
75
|
transition: background-color 0.15s ease;
|
|
76
76
|
|
|
77
77
|
&:hover {
|
|
78
|
-
background-color: var(--
|
|
78
|
+
background-color: var(--action-outline-bg-hover);
|
|
79
79
|
}
|
|
80
80
|
`;
|
|
81
81
|
function slugForDataCy(text) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
|
+
import { text } from "../../design-system/styled/text.js";
|
|
2
3
|
const TextareaWrapper = styled.div`
|
|
3
4
|
position: relative;
|
|
4
5
|
display: block;
|
|
@@ -6,7 +7,7 @@ const TextareaWrapper = styled.div`
|
|
|
6
7
|
const StyledTextarea = styled.textarea.withConfig({
|
|
7
8
|
shouldForwardProp: (props) => !["minHeight", "error"].includes(props)
|
|
8
9
|
})`
|
|
9
|
-
font-family: var(--
|
|
10
|
+
font-family: var(--font-family-base);
|
|
10
11
|
display: block;
|
|
11
12
|
width: 100%;
|
|
12
13
|
min-height: ${(props) => props.minHeight || "100px"};
|
|
@@ -17,41 +18,38 @@ const StyledTextarea = styled.textarea.withConfig({
|
|
|
17
18
|
padding: 12px 16px;
|
|
18
19
|
box-shadow: none;
|
|
19
20
|
outline: 0;
|
|
20
|
-
border: 1px solid var(--
|
|
21
|
+
border: 1px solid var(--border-subtle);
|
|
21
22
|
border-radius: 4px;
|
|
22
|
-
color: var(--
|
|
23
|
+
color: var(--text-primary);
|
|
23
24
|
background-color: transparent;
|
|
24
25
|
transition: border-color 0.2s;
|
|
25
26
|
resize: vertical;
|
|
26
27
|
|
|
27
28
|
&:focus,
|
|
28
29
|
&:hover {
|
|
29
|
-
border-color: var(--
|
|
30
|
+
border-color: var(--border-default);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&::placeholder {
|
|
33
|
-
color: var(--
|
|
34
|
+
color: var(--text-tertiary);
|
|
34
35
|
opacity: 1;
|
|
35
|
-
text
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
font-size: 11px;
|
|
38
|
-
letter-spacing: 2px;
|
|
36
|
+
${text("labelRegular")}
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
${(props) => props.disabled && css`
|
|
42
|
-
color: var(--
|
|
40
|
+
color: var(--text-tertiary);
|
|
43
41
|
cursor: not-allowed;
|
|
44
42
|
&:focus,
|
|
45
43
|
&:hover {
|
|
46
|
-
border-color: var(--
|
|
44
|
+
border-color: var(--border-subtle);
|
|
47
45
|
}
|
|
48
46
|
`}
|
|
49
47
|
|
|
50
48
|
${(props) => props.error && css`
|
|
51
|
-
border-color: var(--
|
|
49
|
+
border-color: var(--status-error-border);
|
|
52
50
|
&:focus,
|
|
53
51
|
&:hover {
|
|
54
|
-
border-color: var(--
|
|
52
|
+
border-color: var(--status-error-border);
|
|
55
53
|
}
|
|
56
54
|
`}
|
|
57
55
|
`;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* The Material Symbols (`<variant>/<name>[-fill]`) the library's own components draw. The host registers them with
|
|
3
3
|
* `registerMaterialIcons`; a component whose icon is not registered renders it empty.
|
|
4
4
|
*/
|
|
5
|
-
export declare const requiredMaterialIcons: readonly ["outlined/add_circle", "outlined/cancel-fill", "outlined/check", "outlined/check@600", "outlined/check_circle-fill", "outlined/chevron_left", "outlined/chevron_right", "outlined/close", "outlined/content_copy", "outlined/edit", "outlined/info", "outlined/info-fill", "outlined/keyboard_arrow_down", "outlined/search_activity", "outlined/visibility", "outlined/visibility_off", "outlined/warning"];
|
|
5
|
+
export declare const requiredMaterialIcons: readonly ["outlined/add_circle", "outlined/cancel-fill", "outlined/check", "outlined/check@600", "outlined/check_circle-fill", "outlined/chevron_left", "outlined/chevron_right", "outlined/close", "outlined/content_copy", "outlined/delete", "outlined/edit", "outlined/info", "outlined/info-fill", "outlined/keyboard_arrow_down", "outlined/language", "outlined/search_activity", "outlined/visibility", "outlined/visibility_off", "outlined/warning"];
|
|
@@ -8,10 +8,12 @@ const requiredMaterialIcons = [
|
|
|
8
8
|
"outlined/chevron_right",
|
|
9
9
|
"outlined/close",
|
|
10
10
|
"outlined/content_copy",
|
|
11
|
+
"outlined/delete",
|
|
11
12
|
"outlined/edit",
|
|
12
13
|
"outlined/info",
|
|
13
14
|
"outlined/info-fill",
|
|
14
15
|
"outlined/keyboard_arrow_down",
|
|
16
|
+
"outlined/language",
|
|
15
17
|
"outlined/search_activity",
|
|
16
18
|
"outlined/visibility",
|
|
17
19
|
"outlined/visibility_off",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import { text } from "../../design-system/styled/text.js";
|
|
2
3
|
const MenuNav = styled.nav.withConfig({
|
|
3
4
|
shouldForwardProp: (props) => !["mobile"].includes(props)
|
|
4
5
|
})`
|
|
@@ -24,10 +25,7 @@ const MenuNav = styled.nav.withConfig({
|
|
|
24
25
|
a {
|
|
25
26
|
position: relative;
|
|
26
27
|
display: block;
|
|
27
|
-
|
|
28
|
-
line-height: 16px;
|
|
29
|
-
letter-spacing: 2px;
|
|
30
|
-
text-transform: uppercase;
|
|
28
|
+
${text("labelRegular")}
|
|
31
29
|
padding: 2px 0;
|
|
32
30
|
border: 0;
|
|
33
31
|
margin: 0;
|
|
@@ -35,7 +33,6 @@ const MenuNav = styled.nav.withConfig({
|
|
|
35
33
|
background: none;
|
|
36
34
|
font-family: inherit;
|
|
37
35
|
cursor: pointer;
|
|
38
|
-
font-weight: 500;
|
|
39
36
|
text-decoration: none;
|
|
40
37
|
|
|
41
38
|
&:hover {
|
|
@@ -3,6 +3,7 @@ import styled, { css } from "styled-components";
|
|
|
3
3
|
import { Link } from "react-router-dom";
|
|
4
4
|
import { glyph, withGlyph } from "../MaterialIcon/glyph.js";
|
|
5
5
|
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
6
|
+
import { text } from "../../design-system/styled/text.js";
|
|
6
7
|
const ModalRoot = styled.div`
|
|
7
8
|
z-index: 1000;
|
|
8
9
|
position: fixed;
|
|
@@ -46,7 +47,7 @@ const Box = styled.div.withConfig({
|
|
|
46
47
|
left: 0;
|
|
47
48
|
top: 0;
|
|
48
49
|
width: 100%;
|
|
49
|
-
background-color: var(--
|
|
50
|
+
background-color: var(--background-surface-raised);
|
|
50
51
|
font-size: 10px;
|
|
51
52
|
text-align: left;
|
|
52
53
|
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
|
|
@@ -93,8 +94,8 @@ const Box = styled.div.withConfig({
|
|
|
93
94
|
`}
|
|
94
95
|
`;
|
|
95
96
|
const ModalInnerSmartContractAddress = styled.input`
|
|
96
|
-
color: var(--
|
|
97
|
-
font-family: var(--
|
|
97
|
+
color: var(--text-primary);
|
|
98
|
+
font-family: var(--font-family-base);
|
|
98
99
|
font-size: 14px;
|
|
99
100
|
font-weight: 400;
|
|
100
101
|
text-align: left;
|
|
@@ -109,7 +110,7 @@ const ModalInnerWithBorder = styled.div.withConfig({
|
|
|
109
110
|
shouldForwardProp: (props) => !["bottomRadius0", "topRadius0", "marginTop0", "borderTopNone", "textAlignRight", "paddingSmall"].includes(props)
|
|
110
111
|
})`
|
|
111
112
|
border-radius: 8px;
|
|
112
|
-
border: 1px solid var(--
|
|
113
|
+
border: 1px solid var(--border-subtle);
|
|
113
114
|
padding: 25px 35px;
|
|
114
115
|
margin-top: 39px;
|
|
115
116
|
|
|
@@ -140,7 +141,7 @@ const ModalInnerWithBorder = styled.div.withConfig({
|
|
|
140
141
|
`}
|
|
141
142
|
|
|
142
143
|
p {
|
|
143
|
-
color: var(--
|
|
144
|
+
color: var(--text-primary);
|
|
144
145
|
font-size: 14px;
|
|
145
146
|
font-weight: 300;
|
|
146
147
|
letter-spacing: 0.53px;
|
|
@@ -168,12 +169,12 @@ const ModalInner = styled.div.withConfig({
|
|
|
168
169
|
`}
|
|
169
170
|
|
|
170
171
|
${(props) => props.background && `
|
|
171
|
-
background-color: var(--
|
|
172
|
+
background-color: var(--background-surface);
|
|
172
173
|
`}
|
|
173
174
|
|
|
174
175
|
${(props) => props.modalBot && `
|
|
175
|
-
background-color: var(--
|
|
176
|
-
color: var(--
|
|
176
|
+
background-color: var(--color-red-500);
|
|
177
|
+
color: var(--brand-pure-white);
|
|
177
178
|
flex-grow: 0 !important;
|
|
178
179
|
height: auto;
|
|
179
180
|
`}
|
|
@@ -196,7 +197,7 @@ const ModalInner = styled.div.withConfig({
|
|
|
196
197
|
|
|
197
198
|
${(props) => props.modalTop && `
|
|
198
199
|
padding-bottom: 43px;
|
|
199
|
-
border-right: 1px solid var(--
|
|
200
|
+
border-right: 1px solid var(--border-subtle);
|
|
200
201
|
`}
|
|
201
202
|
|
|
202
203
|
/* missing tiny */
|
|
@@ -243,8 +244,8 @@ const ModalClose = styled.span.attrs({
|
|
|
243
244
|
height: 40px;
|
|
244
245
|
text-align: center;
|
|
245
246
|
cursor: pointer;
|
|
246
|
-
color: var(--
|
|
247
|
-
background-color: var(--
|
|
247
|
+
color: var(--action-accent-text);
|
|
248
|
+
background-color: var(--action-accent-bg);
|
|
248
249
|
transition:
|
|
249
250
|
background-color 0.2s,
|
|
250
251
|
color 0.2s;
|
|
@@ -257,8 +258,8 @@ const ModalClose = styled.span.attrs({
|
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
&:hover {
|
|
260
|
-
color: var(--
|
|
261
|
-
background-color: var(--
|
|
261
|
+
color: var(--text-primary);
|
|
262
|
+
background-color: var(--background-surface-raised);
|
|
262
263
|
|
|
263
264
|
> [data-icon] {
|
|
264
265
|
transform: rotate(-180deg);
|
|
@@ -292,7 +293,7 @@ const ModalBack = styled.span.withConfig({
|
|
|
292
293
|
height: 40px;
|
|
293
294
|
text-align: center;
|
|
294
295
|
cursor: pointer;
|
|
295
|
-
color: var(--
|
|
296
|
+
color: var(--text-primary);
|
|
296
297
|
background-color: transparent;
|
|
297
298
|
transition:
|
|
298
299
|
color 0.2s,
|
|
@@ -312,7 +313,7 @@ const ModalBack = styled.span.withConfig({
|
|
|
312
313
|
}
|
|
313
314
|
|
|
314
315
|
&:hover {
|
|
315
|
-
color: var(--
|
|
316
|
+
color: var(--action-accent-bg);
|
|
316
317
|
|
|
317
318
|
> [data-icon] {
|
|
318
319
|
transform: translateX(-20%);
|
|
@@ -330,11 +331,8 @@ const ModalLinkWrap = styled.div.attrs((props) => ({
|
|
|
330
331
|
children: withGlyph(glyph("chevron_right", false, 16), props.children)
|
|
331
332
|
}))`
|
|
332
333
|
position: relative;
|
|
333
|
-
font-family: var(--
|
|
334
|
-
|
|
335
|
-
font-size: 11px;
|
|
336
|
-
line-height: 14px;
|
|
337
|
-
text-transform: uppercase;
|
|
334
|
+
font-family: var(--font-family-base);
|
|
335
|
+
${text("labelRegular")}
|
|
338
336
|
padding-left: 18px;
|
|
339
337
|
|
|
340
338
|
> [data-icon] {
|
|
@@ -344,7 +342,7 @@ const ModalLinkWrap = styled.div.attrs((props) => ({
|
|
|
344
342
|
width: 16px;
|
|
345
343
|
height: 16px;
|
|
346
344
|
margin-top: -8px;
|
|
347
|
-
color: var(--
|
|
345
|
+
color: var(--color-green-500);
|
|
348
346
|
}
|
|
349
347
|
`;
|
|
350
348
|
const ModalLinkBase = styled(Link)`
|
|
@@ -363,7 +361,7 @@ const ModalLinkBase = styled(Link)`
|
|
|
363
361
|
position: absolute;
|
|
364
362
|
top: 100%;
|
|
365
363
|
left: 0;
|
|
366
|
-
background-color: var(--
|
|
364
|
+
background-color: var(--color-green-500);
|
|
367
365
|
transition: width 0.2s;
|
|
368
366
|
}
|
|
369
367
|
|
|
@@ -380,12 +378,8 @@ styled.div`
|
|
|
380
378
|
height: 100%;
|
|
381
379
|
`;
|
|
382
380
|
styled.div`
|
|
383
|
-
font-family: var(--
|
|
384
|
-
|
|
385
|
-
font-size: 22px;
|
|
386
|
-
line-height: 1.27em;
|
|
387
|
-
letter-spacing: 0.8px;
|
|
388
|
-
text-transform: uppercase;
|
|
381
|
+
font-family: var(--font-family-base);
|
|
382
|
+
${text("titleL")}
|
|
389
383
|
`;
|
|
390
384
|
const ModalScroll = styled.div`
|
|
391
385
|
height: 100%;
|
|
@@ -403,15 +397,15 @@ const ModalScroll = styled.div`
|
|
|
403
397
|
}
|
|
404
398
|
|
|
405
399
|
&::-webkit-scrollbar-track {
|
|
406
|
-
background-color: var(--
|
|
400
|
+
background-color: var(--border-subtle);
|
|
407
401
|
}
|
|
408
402
|
|
|
409
403
|
&::-webkit-scrollbar-thumb {
|
|
410
|
-
background-color: var(--
|
|
404
|
+
background-color: var(--color-red-500);
|
|
411
405
|
}
|
|
412
406
|
|
|
413
407
|
&::-webkit-scrollbar-thumb:window-inactive {
|
|
414
|
-
background-color: var(--
|
|
408
|
+
background-color: var(--color-red-600);
|
|
415
409
|
}
|
|
416
410
|
`;
|
|
417
411
|
styled.div`
|