Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qbs-core

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qbs-core - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

dist/AutoComplete.js

@@ -174,3 +174,3 @@ "use strict";

required ? react_1.default.createElement("span", { className: "text-error" }, " *") : react_1.default.createElement(react_1.default.Fragment, null)))),
react_1.default.createElement("div", { className: "relative" },
react_1.default.createElement("div", { style: { position: 'relative' } },
react_1.default.createElement("input", { id: id, type: "text", readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : type === 'custom_select', value: inputValue !== null && inputValue !== void 0 ? inputValue : { id: null, name: null }, onBlur: handleClose, disabled: disabled, "data-testid": "custom-autocomplete", className: generateClassName(), onChange: handleChange, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Type to search...' }),

@@ -177,0 +177,0 @@ react_1.default.createElement("div", { className: "qbs-autocomplete-close-icon" },

@@ -10,3 +10,3 @@ "use strict";

var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.stroke, stroke = _c === void 0 ? 1.5 : _c;
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-6 h-6" },
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", style: { width: 15 } },
react_1.default.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" })));

@@ -17,3 +17,3 @@ };

var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.stroke, stroke = _c === void 0 ? 1.5 : _c;
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5 h-5" },
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", style: { width: 15 } },
react_1.default.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })));

@@ -25,3 +25,3 @@ };

return (react_1.default.createElement("div", { role: "status" },
react_1.default.createElement("svg", { "aria-hidden": "true", className: "w-6 h-6 mr-2 text-table-hover animate-spin fill-blue-navy", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
react_1.default.createElement("svg", { "aria-hidden": "true", className: "custom-spinner ", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
react_1.default.createElement("path", { d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }),

@@ -28,0 +28,0 @@ react_1.default.createElement("path", { d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));

{
"name": "qbs-core",
"version": "1.0.10",
"version": "1.0.11",
"description": "React Components",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,12 +0,63 @@

# Autocomplete Component
# AutoComplete Component
The `Autocomplete` component provides a user-friendly way to display an input field with suggestions that appear as the user types. This can be particularly useful for forms where predefined options are available.
`AutoComplete` is a React component that allows users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.
![Autocomplete Example](/path/to/your/example-image.png)
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
-
- [Props](#props)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
## Installation
Install via NPM:
If your component is published on npm, users can install it using npm or yarn:
```sh
npm install your-autocomplete-component
```jsx
import React from 'react';
import AutoComplete from 'your-package-name';
const ExampleComponent = () => {
const handleChange = (value) => {
console.log("Selected value: ", value);
};
return (
<AutoComplete
label="Search"
onChange={handleChange}
// other props
/>
```
## Props
### `AutoComplete` Component Props
- **`id`** _(string, optional)_ - The ID of the input element.
- **`label`** _(string)_ - The label for the input element.
- **`fullWidth`** _(boolean, optional)_ - If true, the input will take up the full width of its container. Default is `false`.
- **`required`** _(boolean, optional)_ - If true, the input will be required. Default is `false`.
- **`value`** _(`valueProps`, optional)_ - The current selected value.
- **`onChange`** _(function)_ - Function to handle the change event.
- **`data`** _(array, optional)_ - The array of data for generating list suggestions.
- **`type`** _(string, optional)_ - Determines the type of autocomplete. Options are `'custom_select'`, `'auto_complete'`, and `'custom_search_select'`. Default is `'custom_select'`.
- **`placeholder`** _(string, optional)_ - Placeholder text for the input field.
- **`getData`** _(function, optional)_ - Asynchronous function to fetch data for suggestions.
- **`errors`** _(object, optional)_ - Any validation errors.
- **`name`** _(string)_ - The name of the input element.
- **`readOnly`** _(boolean, optional)_ - If true, the input is read-only. Default is `false`.
- **`disabled`** _(boolean, optional)_ - If true, the input is disabled. Default is `false`.
### `valueProps` Object Type
- **`id`** _(string)_ - The unique identifier of the value.
- **`name`** _(string)_ - The name of the value.
npm install qbs-core

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc