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

@spark-ui/internal-utils

Package Overview
Dependencies
Maintainers
7
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spark-ui/internal-utils - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

dist/create-split-props/index.d.ts

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [2.4.0](https://github.com/adevinta/spark/compare/@spark-ui/internal-utils@2.3.1...@spark-ui/internal-utils@2.4.0) (2024-06-15)
### Features
- **internal-utils:** add new createSplitProps util ([7e6827a](https://github.com/adevinta/spark/commit/7e6827a7ee556edb1288b38a7eb1a6bd033b9816))
## [2.3.1](https://github.com/adevinta/spark/compare/@spark-ui/internal-utils@2.3.0...@spark-ui/internal-utils@2.3.1) (2024-05-30)

@@ -8,0 +14,0 @@

1

dist/index.d.ts

@@ -6,1 +6,2 @@ export { tw } from './tw';

export { deepFind } from './react-children-utilities/deepFind';
export { createSplitProps } from './create-split-props';

2

dist/index.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),d=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost","contrast","dashed"],intents:["current","main","support","success","error","info","alert","danger","neutral","surface","accent","basic"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));function u(e){return r.isValidElement(e)&&function(n){return r.isValidElement(n)&&!!n.props.children}(e)&&r.Children.toArray(e.props.children).reduce((n,i)=>n||r.isValidElement(i),!1)}exports.VariantTypes=a,exports.deepFind=function e(n,i){let o;return r.Children.toArray(n).find((t,l,s)=>i(t,l,s)?(o=t,!0):!(!r.isValidElement(t)||!u(t))&&(o=e(t.props.children,i),o!==void 0)),o},exports.makeVariants=function(e){return e},exports.tw=function(e){return e},exports.variantConstants=d;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),d=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost","contrast","dashed"],intents:["current","main","support","success","error","info","alert","danger","neutral","surface","accent","basic"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));function u(e){return s.isValidElement(e)&&function(r){return s.isValidElement(r)&&!!r.props.children}(e)&&s.Children.toArray(e.props.children).reduce((r,t)=>r||s.isValidElement(t),!1)}exports.VariantTypes=a,exports.createSplitProps=()=>(e,r)=>r.reduce((t,i)=>{const[n,o]=t,l=i;return o[l]!==void 0&&(n[l]=o[l]),delete o[l],[n,o]},[{},{...e}]),exports.deepFind=function e(r,t){let i;return s.Children.toArray(r).find((n,o,l)=>t(n,o,l)?(i=n,!0):!(!s.isValidElement(n)||!u(n))&&(i=e(n.props.children,t),i!==void 0)),i},exports.makeVariants=function(e){return e},exports.tw=function(e){return e},exports.variantConstants=d;
{
"name": "@spark-ui/internal-utils",
"version": "2.3.1",
"version": "2.4.0",
"description": "package for sharing reusable code and resources across the codebase",

@@ -37,3 +37,3 @@ "publishConfig": {

"license": "MIT",
"gitHead": "374c07a266a2b772cbedcd6040b774ac2c023226"
"gitHead": "55efa48313eb5707161d980f13ee0a15c47413a3"
}

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