({ classNames }: IconProps)
| 108 | } |
| 109 | |
| 110 | function DefaultLoadingIcon({ classNames }: IconProps) { |
| 111 | return ( |
| 112 | <svg |
| 113 | width="16" |
| 114 | height="16" |
| 115 | viewBox="0 0 38 38" |
| 116 | stroke="#444" |
| 117 | className={cx('ais-SearchBox-loadingIcon', classNames.loadingIcon)} |
| 118 | aria-hidden="true" |
| 119 | > |
| 120 | <g fill="none" fillRule="evenodd"> |
| 121 | <g transform="translate(1 1)" strokeWidth="2"> |
| 122 | <circle strokeOpacity=".5" cx="18" cy="18" r="18" /> |
| 123 | <path d="M36 18c0-9.94-8.06-18-18-18"> |
| 124 | <animateTransform |
| 125 | attributeName="transform" |
| 126 | type="rotate" |
| 127 | from="0 18 18" |
| 128 | to="360 18 18" |
| 129 | dur="1s" |
| 130 | repeatCount="indefinite" |
| 131 | /> |
| 132 | </path> |
| 133 | </g> |
| 134 | </g> |
| 135 | </svg> |
| 136 | ); |
| 137 | } |
| 138 | |
| 139 | export function SearchBox({ |
| 140 | formRef, |
nothing calls this directly
no outgoing calls
no test coverage detected