ioloco-ui
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package