🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@coderebus/react-searchbox

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coderebus/react-searchbox - npm Package Compare versions

Comparing version

to
1.3.0

2

dist/index.js
import e from 'react';
import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
import { cx } from 'class-variance-authority';
import { Button } from '@coderebus/react-button';
import { Button } from '@coderebus/button';

@@ -6,0 +6,0 @@ var i=r=>{console.log(`Performing search for "${r}"`);};function S({className:r,placeholder:a="Search",onSearch:n=i}){let[t,s]=e.useState({query:""}),c=o=>{s({...t,query:o.target.value});};return e.createElement("form",{onSubmit:o=>{o.preventDefault(),n&&n(t.query);},className:cx("flex items-center rounded-md border border-gray-300",r)},e.createElement("input",{type:"text",value:t.query,onChange:c,placeholder:a,className:"py-2 px-4 focus:outline-none focus:border-blue-500 flex-grow"}),e.createElement(Button,{type:"submit",variant:"contain",className:"rounded-r-md border-l-0"},e.createElement(MagnifyingGlassIcon,{className:"h-5 w-5"})))}

{
"name": "@coderebus/react-searchbox",
"version": "1.2.2",
"version": "1.3.0",
"description": "SearchBox component",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.mts",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "dist/index.d.mts",
"default": "dist/index.mjs"
"types": "dist/index.d.ts",
"default": "dist/index.js"
},
"require": {
"types": "dist/index.d.ts",
"default": "dist/index.js"
"types": "dist/index.d.cts",
"default": "dist/index.cjs"
}

@@ -33,3 +33,3 @@ }

"dependencies": {
"@coderebus/react-button": "workspace:*",
"@coderebus/button": "1.3.0",
"@radix-ui/react-icons": "1.3.0",

@@ -36,0 +36,0 @@ "class-variance-authority": "0.6.0"

Sorry, the diff of this file is not supported yet