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

abaabil.select

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abaabil.select - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

dist/index.esm.min.js

@@ -1,1 +0,1 @@

import*as a from"react";import e from"prop-types";const r=a.forwardRef(({id:t,name:u,options:n,label:o,value:c,onChange:m,labelClassName:f,selectClassName:g,disabled:i,required:b},p)=>{const d=`${t}-label`;return a.createElement("div",null,a.createElement("label",{id:d,htmlFor:t,className:`block ${f||"text-df font-medium mb-df/2"}`},o),a.createElement("select",{id:t,name:u,onChange:m,className:`block w-full h-df text-df px-df rounded-df ${i?"bg-stable-disabled text-on-stable-disabled":"bg-stable text-on-stable hover:bg-stable-hover focus:bg-stable-focus active:bg-stable-active"} ${g}`,defaultValue:c,"aria-labelledby":d,"aria-required":b,required:b,disabled:i,ref:p},n.map(l=>l.options?a.createElement("optgroup",{key:l.label,label:l.label},l.options.map(s=>a.createElement("option",{key:s.value,value:s.value},s.label))):a.createElement("option",{key:l.value,value:l.value},l.label))))});r.displayName="Select",r.propTypes={id:e.string.isRequired,name:e.string.isRequired,label:e.string.isRequired,value:e.string,options:e.arrayOf(e.oneOfType([e.shape({label:e.string.isRequired,value:e.string.isRequired}),e.shape({label:e.string.isRequired,options:e.arrayOf(e.shape({label:e.string.isRequired,value:e.string.isRequired})).isRequired})])).isRequired,onChange:e.func,labelClassName:e.string,selectClassName:e.string,required:e.bool,disabled:e.bool};var R=r;export{R as default};
import*as l from"react";const s=l.forwardRef(({id:a,name:d,options:m,label:f,value:u,onChange:o,labelClassName:v,selectClassName:n,disabled:b,required:c},g)=>{const r=`${a}-label`;return l.createElement("div",null,l.createElement("label",{id:r,htmlFor:a,className:`block ${v||"text-df font-medium mb-df/2"}`},f),l.createElement("select",{id:a,name:d,onChange:o,className:`block w-full h-df text-df px-df rounded-df ${b?"bg-stable-disabled text-on-stable-disabled":"bg-stable text-on-stable hover:bg-stable-hover focus:bg-stable-focus active:bg-stable-active"} ${n}`,defaultValue:u,"aria-labelledby":r,"aria-required":c,required:c,disabled:b,ref:g},m.map(e=>e.options?l.createElement("optgroup",{key:e.label,label:e.label},e.options.map(t=>l.createElement("option",{key:t.value,value:t.value},t.label))):l.createElement("option",{key:e.value,value:e.value},e.label))))});s.displayName="Select";var x=s;export{x as default};
{
"name": "abaabil.select",
"author": "Abaabil",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/index.esm.min.js",

@@ -14,6 +14,5 @@ "files": [

"dependencies": {
"abaabil.icon": "^0.1.4"
"abaabil.icon": "^0.1.5"
},
"peerDependencies": {
"prop-types": "^15.8.1",
"react": "^17.0.0 || ^18.0.0",

@@ -46,3 +45,3 @@ "react-dom": "^17.0.0 || ^18.0.0"

],
"gitHead": "132a24147a779ef72bb1fb5a77700285aaebe14b"
"gitHead": "db4d950b0970d10241731eb850e49be0940d782d"
}
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