UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 2.18 kB
{"version":3,"file":"input-addon.style.cjs","names":["defineComponentStyle","inputStyle"],"sources":["../../../../src/components/input/input-addon.style.ts"],"sourcesContent":["import { defineComponentStyle } from \"../../core\"\nimport { inputStyle } from \"./input.style\"\n\nexport const inputAddonStyle = defineComponentStyle({\n base: {\n \"--error-border-color\": \"colors.border.error\",\n \"--focus-border-color\": \"colorScheme.outline\",\n alignItems: \"center\",\n alignSelf: \"stretch\",\n display: \"flex\",\n flex: \"0 0 auto\",\n rounded: \"l2\",\n transitionDuration: \"moderate\",\n transitionProperty: \"common\",\n w: \"auto\",\n whiteSpace: \"nowrap\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n },\n\n variants: {\n filled: {\n layerStyle: \"surface\",\n border: \"1px solid transparent\",\n },\n flushed: {\n bg: \"transparent\",\n borderBottomColor: \"colorScheme.muted\",\n borderBottomWidth: \"1px\",\n color: \"colorScheme.fg\",\n rounded: \"0px\",\n _peerFocusVisible: {\n borderColor: \"{focus-border-color}\",\n boxShadow: \"0px 1px 0px 0px {focus-border-color}\",\n },\n _peerInvalid: {\n borderColor: \"{error-border-color}\",\n _peerFocusVisible: {\n boxShadow: \"0px 1px 0px 0px {error-border-color}\",\n },\n },\n },\n outline: {\n layerStyle: \"surface\",\n },\n plain: {},\n },\n\n sizes: inputStyle.sizes,\n\n defaultProps: {\n size: \"md\",\n variant: \"outline\",\n },\n})\n\nexport type InputAddonStyle = typeof inputAddonStyle\n"],"mappings":";;;;AAGA,MAAa,kBAAkBA,oCAAqB;CAClD,MAAM;EACJ,wBAAwB;EACxB,wBAAwB;EACxB,YAAY;EACZ,WAAW;EACX,SAAS;EACT,MAAM;EACN,SAAS;EACT,oBAAoB;EACpB,oBAAoB;EACpB,GAAG;EACH,YAAY;EACZ,WAAW,EACT,YAAY,YACb;EACF;CAED,UAAU;EACR,QAAQ;GACN,YAAY;GACZ,QAAQ;GACT;EACD,SAAS;GACP,IAAI;GACJ,mBAAmB;GACnB,mBAAmB;GACnB,OAAO;GACP,SAAS;GACT,mBAAmB;IACjB,aAAa;IACb,WAAW;IACZ;GACD,cAAc;IACZ,aAAa;IACb,mBAAmB,EACjB,WAAW,wCACZ;IACF;GACF;EACD,SAAS,EACP,YAAY,WACb;EACD,OAAO,EAAE;EACV;CAED,OAAOC,+BAAW;CAElB,cAAc;EACZ,MAAM;EACN,SAAS;EACV;CACF,CAAC"}