@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 3.32 kB
Source Map (JSON)
{"version":3,"file":"autocomplete.style.cjs","names":["defineComponentSlotStyle","selectStyle"],"sources":["../../../../src/components/autocomplete/autocomplete.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { selectStyle } from \"../select\"\n\nexport const autocompleteStyle = defineComponentSlotStyle({\n base: {\n ...selectStyle.base,\n empty: selectStyle.base?.option,\n field: {\n ...selectStyle.base?.field,\n cursor: \"text\",\n flexWrap: \"wrap\",\n gapY: \"{gap}\",\n py: \"{gap}\",\n },\n input: {\n \"&[data-max]\": { caretColor: \"transparent\" },\n flex: \"1\",\n focusVisibleRing: \"none\",\n _disabled: { cursor: \"not-allowed\" },\n },\n },\n\n variants: {\n filled: {\n ...selectStyle.variants?.filled,\n field: {\n \":has(input:focus)\": selectStyle.variants?.filled.field._focus,\n ...selectStyle.variants?.filled.field,\n },\n },\n flushed: {\n ...selectStyle.variants?.flushed,\n field: {\n \":has(input:focus)\": selectStyle.variants?.flushed.field._focus,\n ...selectStyle.variants?.flushed.field,\n },\n },\n outline: {\n ...selectStyle.variants?.outline,\n field: {\n \":has(input:focus)\": selectStyle.variants?.outline.field._focus,\n ...selectStyle.variants?.outline.field,\n },\n },\n plain: {\n ...selectStyle.variants?.plain,\n field: {\n \":has(input:focus)\": selectStyle.variants?.plain.field._focus,\n ...selectStyle.variants?.plain.field,\n },\n },\n },\n\n sizes: {\n xs: { ...selectStyle.sizes?.xs, empty: selectStyle.sizes?.xs.option },\n sm: { ...selectStyle.sizes?.sm, empty: selectStyle.sizes?.sm.option },\n md: { ...selectStyle.sizes?.md, empty: selectStyle.sizes?.md.option },\n lg: { ...selectStyle.sizes?.lg, empty: selectStyle.sizes?.lg.option },\n xl: { ...selectStyle.sizes?.xl, empty: selectStyle.sizes?.xl.option },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"outline\",\n },\n})\n\nexport type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