New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/file-input

Package Overview
Dependencies
Maintainers
1
Versions
1037
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/file-input - npm Package Compare versions

Comparing version 0.0.0-dev-20231125142739 to 0.0.0-dev-20231128173032

dist/chunk-IDGINIBD.mjs

8

dist/file-input.d.ts

@@ -18,11 +18,11 @@ import * as _yamada_ui_core from '@yamada-ui/core';

*/
value?: File[] | null;
value?: File[];
/**
* The initial value of the file input.
*/
defaultValue?: File[] | null;
defaultValue?: File[];
/**
* Function to be called when a file change event occurs.
*/
onChange?: (files: File[] | null) => void;
onChange?: (files: File[] | undefined) => void;
/**

@@ -45,3 +45,3 @@ * The component that displays uploaded files.

separator?: string;
children?: (files: File[] | null) => ReactNode;
children?: (files: File[] | undefined) => ReactNode;
/**

@@ -48,0 +48,0 @@ * Ref to a reset function.

@@ -69,5 +69,5 @@ "use client"

(ev) => {
let files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : null;
let files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
if (!(files == null ? void 0 : files.length))
files = null;
files = void 0;
setValues(files);

@@ -80,3 +80,3 @@ },

inputRef.current.value = "";
setValues(null);
setValues(void 0);
}, [setValues]);

@@ -83,0 +83,0 @@ (0, import_utils.assignRef)(resetRef, onReset);

@@ -71,5 +71,5 @@ "use client"

(ev) => {
let files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : null;
let files = !(0, import_utils.isNull)(ev.currentTarget.files) ? Array.from(ev.currentTarget.files) : void 0;
if (!(files == null ? void 0 : files.length))
files = null;
files = void 0;
setValues(files);

@@ -82,3 +82,3 @@ },

inputRef.current.value = "";
setValues(null);
setValues(void 0);
}, [setValues]);

@@ -85,0 +85,0 @@ (0, import_utils.assignRef)(resetRef, onReset);

{
"name": "@yamada-ui/file-input",
"version": "0.0.0-dev-20231125142739",
"version": "0.0.0-dev-20231128173032",
"description": "Yamada UI file input component",

@@ -38,6 +38,6 @@ "keywords": [

"dependencies": {
"@yamada-ui/core": "0.0.0-dev-20231125142739",
"@yamada-ui/core": "0.12.7",
"@yamada-ui/utils": "0.3.3",
"@yamada-ui/form-control": "0.0.0-dev-20231125142739",
"@yamada-ui/use-controllable-state": "0.0.0-dev-20231125142739"
"@yamada-ui/form-control": "0.3.20",
"@yamada-ui/use-controllable-state": "0.0.0-dev-20231128173032"
},

@@ -44,0 +44,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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