UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

125 lines (108 loc) 3.77 kB
import { css } from '../../utils/ThemeHelperUtil.js'; export default css ` :host { position: relative; width: 100%; display: inline-flex; flex-direction: column; gap: ${({ spacing }) => spacing[3]}; color: ${({ tokens }) => tokens.theme.textPrimary}; caret-color: ${({ tokens }) => tokens.core.textAccentPrimary}; } .wui-input-text-container { position: relative; display: flex; } input { width: 100%; border-radius: ${({ borderRadius }) => borderRadius[4]}; color: inherit; background: transparent; border: 1px solid ${({ tokens }) => tokens.theme.borderPrimary}; caret-color: ${({ tokens }) => tokens.core.textAccentPrimary}; padding: ${({ spacing }) => spacing[3]} ${({ spacing }) => spacing[3]} ${({ spacing }) => spacing[3]} ${({ spacing }) => spacing[10]}; font-size: ${({ textSize }) => textSize.large}; line-height: ${({ typography }) => typography['lg-regular'].lineHeight}; letter-spacing: ${({ typography }) => typography['lg-regular'].letterSpacing}; font-weight: ${({ fontWeight }) => fontWeight.regular}; font-family: ${({ fontFamily }) => fontFamily.regular}; } input[data-size='lg'] { padding: ${({ spacing }) => spacing[4]} ${({ spacing }) => spacing[3]} ${({ spacing }) => spacing[4]} ${({ spacing }) => spacing[10]}; } @media (hover: hover) and (pointer: fine) { input:hover:enabled { border: 1px solid ${({ tokens }) => tokens.theme.borderSecondary}; } } input:disabled { cursor: unset; border: 1px solid ${({ tokens }) => tokens.theme.borderPrimary}; } input::placeholder { color: ${({ tokens }) => tokens.theme.textSecondary}; } input:focus:enabled { border: 1px solid ${({ tokens }) => tokens.theme.borderSecondary}; background-color: ${({ tokens }) => tokens.theme.foregroundPrimary}; -webkit-box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent040}; -moz-box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent040}; box-shadow: 0px 0px 0px 4px ${({ tokens }) => tokens.core.foregroundAccent040}; } div.wui-input-text-container:has(input:disabled) { opacity: 0.5; } wui-icon.wui-input-text-left-icon { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; left: ${({ spacing }) => spacing[4]}; color: ${({ tokens }) => tokens.theme.iconDefault}; } button.wui-input-text-submit-button { position: absolute; top: 50%; transform: translateY(-50%); right: ${({ spacing }) => spacing[3]}; width: 24px; height: 24px; border: none; background: transparent; border-radius: ${({ borderRadius }) => borderRadius[2]}; color: ${({ tokens }) => tokens.core.textAccentPrimary}; } button.wui-input-text-submit-button:disabled { opacity: 1; } button.wui-input-text-submit-button.loading wui-icon { animation: spin 1s linear infinite; } button.wui-input-text-submit-button:hover { background: ${({ tokens }) => tokens.core.foregroundAccent010}; } input:has(+ .wui-input-text-submit-button) { padding-right: ${({ spacing }) => spacing[12]}; } input[type='number'] { -moz-appearance: textfield; } input[type='search']::-webkit-search-decoration, input[type='search']::-webkit-search-cancel-button, input[type='search']::-webkit-search-results-button, input[type='search']::-webkit-search-results-decoration { -webkit-appearance: none; } /* -- Keyframes --------------------------------------------------- */ @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } `; //# sourceMappingURL=styles.js.map