How to use the @appbaseio/reactivecore/lib/utils/helper.getClassName function in @appbaseio/reactivecore

To help you get started, we’ve selected a few @appbaseio/reactivecore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appbaseio / reactivesearch / packages / web / src / components / list / TagCloud.js View on Github external
return isFunction(renderError) ? renderError(error) : renderError;
		}

		if (this.state.options.length === 0) {
			return null;
		}

		let highestCount = 0;
		this.state.options.forEach((item) => {
			highestCount = item.doc_count > highestCount ? item.doc_count : highestCount;
		});

		return (
			
				{this.props.title && (
					<title>
						{this.props.title}
					</title>
				)}
				
					{this.state.options.map((item) =&gt; {
						// eslint-disable-next-line
						const size = (item.doc_count / highestCount) * (max - min) + min;

						return (
							<span> this.handleClick(item.key)}
								onKeyPress={e =&gt;
									handleA11yAction(e, () =&gt; this.handleClick(item.key))
								}
								style={{ fontSize: `${size}em` }}</span>
github appbaseio / reactivesearch / packages / web / src / components / list / MultiDropdownList.js View on Github external
}

			return null;
		}

		if (this.props.selectAllLabel) {
			selectAll = [
				{
					key: this.props.selectAllLabel,
				},
			];
		}
		return (
			
				{this.props.title &amp;&amp; (
					<title>
						{this.props.title}
					</title>
				)}
				 String(item.key).trim().length)
							.map(item =&gt; ({ ...item, key: String(item.key) })),
					]}
					onChange={this.handleChange}
					selectedItem={this.state.currentValue}
					placeholder={this.props.placeholder}
					searchPlaceholder={this.props.searchPlaceholder}
					labelField="key"
github appbaseio / reactivesearch / packages / web / src / components / list / SingleDataList.js View on Github external
render() {
		const { selectAllLabel, showCount, renderItem } = this.props;
		const { options } = this.state;

		if (!this.hasCustomRenderer &amp;&amp; options.length === 0) {
			return this.props.renderNoResults ? this.props.renderNoResults() : null;
		}

		const listItems = this.listItems;

		const isAllChecked = this.state.currentValue === selectAllLabel;
		return (
			
				{this.props.title &amp;&amp; (
					<title>
						{this.props.title}
					</title>
				)}
				{this.renderSearch()}
				{this.hasCustomRenderer ? (
					this.getComponent()
				) : (
					<ul role="radiogroup" aria-label="{`${this.props.componentId}-items`}">
						{selectAllLabel &amp;&amp; (
							</ul>
github appbaseio / reactivesearch / packages / web / src / components / result / ReactiveList.js View on Github external
renderSortOptions = () =&gt; (
		<select name="sort-options">
			{this.props.sortOptions.map((sort, index) =&gt; (
				<option value="{index}">
					{sort.label}
				</option>
			))}
		</select>
	);
github appbaseio / reactivesearch / packages / web / src / components / range / RangeInput.js View on Github external
start: this.props.onChange ? Number(this.props.value.start) : Number(this.state.start),
			end: this.props.onChange ? Number(this.props.value.end) : Number(this.state.end),
		};

		return (
			
				
				
					
						<input aria-label="{`${this.props.componentId}-start-input`}" step="{this.props.stepValue}" value="{value.start}" type="number" name="start">
						{!this.state.isStartValid &amp;&amp; (
							<content>Input range is invalid</content>
						)}
github appbaseio / reactivesearch / packages / web / src / components / search / CategorySearch.js View on Github external
{this.state.currentValue &amp;&amp; this.props.showClear &amp;&amp; (
				
					{this.renderCancelIcon()}
				
			)}
			{this.props.showVoiceSearch &amp;&amp; (
				
			)}
			
				{this.renderIcon()}
			
		
	);
github appbaseio / reactivesearch / packages / web / src / components / basic / NumberBox.js View on Github external
render() {
		return (
			
				{this.props.title &amp;&amp; (
					<title>
						{this.props.title}
					</title>
				)}
				
					<span>
						{this.props.data.label}
					</span>
					<div>
						</div>
github appbaseio / reactivesearch / packages / web / src / components / search / DataSearch.js View on Github external
/&gt;
											
										))}
									
								) : (
									this.renderNoSuggestion(suggestionsList)
								)}
							
						)}
						{...this.props.downShiftProps}
					/&gt;
				) : (
					<div>
						<input value="{this.state.currentValue" placeholder="{this.props.placeholder}" aria-label="{this.props.componentId}">
						{this.renderIcons()}
					</div>
github appbaseio / reactivesearch / packages / web / src / components / list / MultiDataList.js View on Github external
render() {
		const { selectAllLabel, showCount, renderItem } = this.props;
		const { options } = this.state;

		if (!this.hasCustomRenderer &amp;&amp; options.length === 0) {
			return this.props.renderNoResults ? this.props.renderNoResults() : null;
		}

		const listItems = this.listItems;

		const isAllChecked = selectAllLabel ? !!this.state.currentValue[selectAllLabel] : false;

		return (
			
				{this.props.title &amp;&amp; (
					<title>
						{this.props.title}
					</title>
				)}
				{this.renderSearch()}
				{this.hasCustomRenderer ? (
					this.getComponent()
				) : (
					<ul aria-label="{`${this.props.componentId}-items`}" role="listbox">
						{selectAllLabel ? (
							</ul>
github appbaseio / reactivesearch / packages / web / src / components / list / SingleList.js View on Github external
}

		if (!this.hasCustomRenderer &amp;&amp; this.state.options.length === 0) {
			if (this.props.renderNoResults &amp;&amp; !this.props.isLoading) {
				return this.props.renderNoResults();
			}

			return null;
		}

		const isAllChecked = this.state.currentValue === selectAllLabel;

		return (
			
				{this.props.title &amp;&amp; (
					<title>
						{this.props.title}
					</title>
				)}
				{this.renderSearch()}
				{this.hasCustomRenderer ? (
					this.getComponent()
				) : (
					<ul aria-label="{`${this.props.componentId}-items`}" role="radiogroup">
						{selectAllLabel ? (
							</ul>