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

ioloco-ui

Package Overview
Dependencies
Maintainers
0
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioloco-ui - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

dist/Components/Components/Accordion/index.js

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

import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as o}from"react";import{Accordion as n}from"./accordion.js";import r from"@stylexjs/stylex";const i=i=>{let{data:s,expandAll:d=!1,expandIndexes:c=[],ChevronUp:a,ChevronDown:p,GoPlay:x,center:m,styleHeader:y,styleContent:h}=i;const[u,f]=t([]);o((()=>{f(d?s.map(((e,t)=>t)):c)}),[s,d,c]);return e("div",Object.assign({},r.props(l.root,m&&l.center),{children:s.map(((t,o)=>e(n,{title:null==t?void 0:t.title,duration:null==t?void 0:t.duration,isOpen:u.includes(o),toggleAccordion:()=>(e=>{f((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))})(o),ChevronUp:a,ChevronDown:p,GoPlay:x,styleHeader:y,styleContent:h,children:t.content},o)))}))},l={root:{display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},center:{width:"x3hqpx7",$$css:!0}};export{i as default};
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as o}from"react";import{Accordion as n}from"./accordion.js";import r from"@stylexjs/stylex";const i=i=>{let{data:s,expandAll:d=!1,expandIndexes:c=[],ChevronUp:a,ChevronDown:p,GoPlay:m,center:x,styleHeader:y,styleContent:h}=i;const[u,f]=t([]);o((()=>{f(d?s.map(((e,t)=>t)):c)}),[s,d,c]);return e("div",Object.assign({},r.props(l.root,x&&l.center),{children:s.map(((t,o)=>e(n,{title:null==t?void 0:t.title,duration:null==t?void 0:t.duration,isOpen:u.includes(o),toggleAccordion:()=>(e=>{f((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))})(o),ChevronUp:a,ChevronDown:p,GoPlay:m,styleHeader:y,styleContent:h,children:t.content},o)))}))},l={root:{display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},center:{width:"xh8yej3",$$css:!0}};export{i as default};
{
"name": "ioloco-ui",
"version": "0.4.4",
"version": "0.4.5",
"description": "Stylex UI components for React",

@@ -5,0 +5,0 @@ "author": {

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