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

@biotic-ui/collapsible

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biotic-ui/collapsible - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

LICENSE

34

lib/main.js
var $6ex1d$reactjsxruntime = require("react/jsx-runtime");
var $6ex1d$framermotion = require("framer-motion");
var $6ex1d$react = require("react");
var $6ex1d$emotioncss = require("@emotion/css");

@@ -72,23 +71,2 @@ function $parcel$export(e, n, v, s) {

let $44ad0614922ac38a$export$8837f4fc672e936d = (0, $6ex1d$emotioncss.css)`
list-style-type: none;
padding: 0;
margin: 0;
`;
let $44ad0614922ac38a$export$fb184b623420d9be = (0, $6ex1d$emotioncss.css)`
background: none;
border: none;
flex-grow: 0;
cursor: pointer;
padding: calc(var(--size-2) / 2) var(--size-2);
`;
let $44ad0614922ac38a$export$a7db06668cad9adb = (0, $6ex1d$emotioncss.css)`
padding: var(--size-2);
`;
let $44ad0614922ac38a$export$a5d588907f6ab62d = (0, $6ex1d$emotioncss.css)`
padding: calc(var(--size-2) / 2);
`;
let $21634c8e4f99bbb4$var$defaultOptions = {

@@ -146,3 +124,3 @@ open: [],

className: [
$44ad0614922ac38a$export$8837f4fc672e936d,
"biotic-accordion-list",
className

@@ -177,5 +155,5 @@ ].join(" "),

let classes = [
$44ad0614922ac38a$export$fb184b623420d9be,
"biotic-accordion-title",
className,
isOpen ? "is-open" : "",
isOpen ? "biotic-accordion-title--open" : ""
].join(" ");

@@ -194,5 +172,5 @@ return /*#__PURE__*/ (0, $6ex1d$reactjsxruntime.jsx)((0, $6ex1d$framermotion.motion).button, {

let classes = [
$44ad0614922ac38a$export$a7db06668cad9adb,
open ? $44ad0614922ac38a$export$a5d588907f6ab62d : "",
className ?? "",
"biotic-accordion-content",
open ? "biotic-accordion-content--open" : "",
className ?? ""
];

@@ -199,0 +177,0 @@ return /*#__PURE__*/ (0, $6ex1d$reactjsxruntime.jsx)((0, $142e369381921674$export$6eb0f7ddcda6131f), {

import {jsx as $1F54I$jsx} from "react/jsx-runtime";
import {AnimatePresence as $1F54I$AnimatePresence, motion as $1F54I$motion, AnimateSharedLayout as $1F54I$AnimateSharedLayout} from "framer-motion";
import {useState as $1F54I$useState, createContext as $1F54I$createContext, Children as $1F54I$Children, useContext as $1F54I$useContext, cloneElement as $1F54I$cloneElement} from "react";
import {css as $1F54I$css} from "@emotion/css";

@@ -62,23 +61,2 @@

let $736ac96ac3fad2d1$export$8837f4fc672e936d = (0, $1F54I$css)`
list-style-type: none;
padding: 0;
margin: 0;
`;
let $736ac96ac3fad2d1$export$fb184b623420d9be = (0, $1F54I$css)`
background: none;
border: none;
flex-grow: 0;
cursor: pointer;
padding: calc(var(--size-2) / 2) var(--size-2);
`;
let $736ac96ac3fad2d1$export$a7db06668cad9adb = (0, $1F54I$css)`
padding: var(--size-2);
`;
let $736ac96ac3fad2d1$export$a5d588907f6ab62d = (0, $1F54I$css)`
padding: calc(var(--size-2) / 2);
`;
let $9600a9d5e36ef490$var$defaultOptions = {

@@ -136,3 +114,3 @@ open: [],

className: [
$736ac96ac3fad2d1$export$8837f4fc672e936d,
"biotic-accordion-list",
className

@@ -167,5 +145,5 @@ ].join(" "),

let classes = [
$736ac96ac3fad2d1$export$fb184b623420d9be,
"biotic-accordion-title",
className,
isOpen ? "is-open" : "",
isOpen ? "biotic-accordion-title--open" : ""
].join(" ");

@@ -184,5 +162,5 @@ return /*#__PURE__*/ (0, $1F54I$jsx)((0, $1F54I$motion).button, {

let classes = [
$736ac96ac3fad2d1$export$a7db06668cad9adb,
open ? $736ac96ac3fad2d1$export$a5d588907f6ab62d : "",
className ?? "",
"biotic-accordion-content",
open ? "biotic-accordion-content--open" : "",
className ?? ""
];

@@ -189,0 +167,0 @@ return /*#__PURE__*/ (0, $1F54I$jsx)((0, $dc3b4269432ef05b$export$6eb0f7ddcda6131f), {

{
"name": "@biotic-ui/collapsible",
"version": "0.4.1",
"version": "0.5.0",
"description": "React Collapsible",

@@ -29,9 +29,8 @@ "source": "src/main.ts",

"homepage": "https://github.com/riezler-co/biotic#readme",
"peerDependencies": {
"@biotic-ui/std": "^0.4.1",
"@emotion/css": "^11.10.5",
"dependencies": {
"@biotic-ui/std": "^0.5.0",
"framer-motion": "^7.5.1",
"react": "17 - 18.x"
},
"gitHead": "aa286c278d255c6e014a6714da74e77c0ef15013",
"gitHead": "f34dcb031e1abcb02d03c3ce56c5650a7ab80f62",
"publishConfig": {

@@ -38,0 +37,0 @@ "access": "public"

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