@contentful/field-editor-reference 4.3.10 → 4.3.11

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.
@@ -2,8 +2,8 @@ import React__default, { useState, useRef, useEffect, createElement, Fragment, u
2
2
  import { css } from 'emotion';
3
3
  import tokens from '@contentful/f36-tokens';
4
4
  import get from 'lodash-es/get';
5
- import { SearchIcon, PlusIcon, ChevronDownIcon, LinkIcon, CloseIcon, ClockIcon } from '@contentful/f36-icons';
6
5
  import { Menu, TextInput, Button, Paragraph, Card, SectionHeading, IconButton, Tooltip, EntryCard, MenuItem, MenuDivider, Text, AssetCard } from '@contentful/f36-components';
6
+ import { SearchIcon, PlusIcon, ChevronDownIcon, LinkIcon, CloseIcon, ClockIcon } from '@contentful/f36-icons';
7
7
  import moment from 'moment';
8
8
  import deepEqual from 'deep-equal';
9
9
  import { FieldConnector, isValidImage, entityHelpers, shortenStorageUnit } from '@contentful/field-editor-shared';
@@ -108,20 +108,10 @@ var styles = {
108
108
  position: 'relative',
109
109
  padding: "0 " + tokens.spacing2Xs
110
110
  }),
111
- searchInput: function searchInput(parentHasDropdown) {
112
- return css({
113
- '& > input': {
114
- borderColor: 'transparent',
115
- borderRadius: parentHasDropdown ? 0 : undefined,
116
- borderLeft: parentHasDropdown ? 'none' : undefined,
117
- borderRight: parentHasDropdown ? 'none' : undefined,
118
- paddingRight: tokens.spacing2Xl,
119
- '::placeholder': {
120
- color: tokens.gray600
121
- }
122
- }
123
- });
124
- },
111
+ searchInput: /*#__PURE__*/css({
112
+ paddingRight: tokens.spacingXl,
113
+ textOverflow: 'ellipsis'
114
+ }),
125
115
  searchIcon: /*#__PURE__*/css({
126
116
  position: 'absolute',
127
117
  right: tokens.spacingM,
@@ -270,7 +260,7 @@ var CreateEntryMenuTrigger = function CreateEntryMenuTrigger(_ref) {
270
260
  ref: textField,
271
261
  className: styles.inputWrapper
272
262
  }, React__default.createElement(TextInput, {
273
- className: styles.searchInput(hasDropdown),
263
+ className: styles.searchInput,
274
264
  placeholder: "Search all content types",
275
265
  testId: "add-entry-menu-search",
276
266
  value: searchInput,