umwd-components 0.1.260 → 0.1.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- "use strict";var e=require("@mui/material"),t=require("@mui/icons-material"),r=require("react");exports.ExplanatoryFoldOut=function(a){let{title:l,description:c,sx:i={}}=a;const[n,o]=r.useState(!1);return React.createElement(e.Box,null,React.createElement(e.Divider,{textAlign:"left"},React.createElement(e.Chip,{label:l,size:"small",color:"primary",onClick:()=>o(!n),icon:n?React.createElement(t.KeyboardArrowUp,null):React.createElement(t.KeyboardArrowDown,null)})),React.createElement(e.Collapse,{in:n},React.createElement(e.Typography,{variant:"body2",color:"primary",sx:{mt:1}},c)))};
6
+ "use strict";var e=require("react"),r=require("@mui/material"),t=require("@mui/icons-material");exports.ExplanatoryFoldOut=function(l){let{title:a,description:i,sx:n={}}=l;const[o,c]=e.useState(!1);return e.createElement(r.Box,null,e.createElement(r.Divider,{textAlign:"left"},e.createElement(r.Chip,{label:a,size:"small",color:"primary",onClick:()=>c(!o),icon:o?e.createElement(t.KeyboardArrowUp,null):e.createElement(t.KeyboardArrowDown,null)})),e.createElement(r.Collapse,{in:o},e.createElement(r.Typography,{variant:"body2",color:"primary",sx:{mt:1}},i)))};
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{Box as e,Divider as t,Chip as r,Collapse as l,Typography as a}from"@mui/material";import{KeyboardArrowUp as c,KeyboardArrowDown as m}from"@mui/icons-material";import{useState as n}from"react";function i(i){let{title:o,description:p,sx:s={}}=i;const[u,E]=n(!1);return React.createElement(e,null,React.createElement(t,{textAlign:"left"},React.createElement(r,{label:o,size:"small",color:"primary",onClick:()=>E(!u),icon:u?React.createElement(c,null):React.createElement(m,null)})),React.createElement(l,{in:u},React.createElement(a,{variant:"body2",color:"primary",sx:{mt:1}},p)))}export{i as ExplanatoryFoldOut};
6
+ import e,{useState as t}from"react";import{Box as r,Divider as l,Chip as m,Collapse as n,Typography as i}from"@mui/material";import{KeyboardArrowUp as a,KeyboardArrowDown as o}from"@mui/icons-material";function c(c){let{title:p,description:s,sx:u={}}=c;const[E,f]=t(!1);return e.createElement(r,null,e.createElement(l,{textAlign:"left"},e.createElement(m,{label:p,size:"small",color:"primary",onClick:()=>f(!E),icon:E?e.createElement(a,null):e.createElement(o,null)})),e.createElement(n,{in:E},e.createElement(i,{variant:"body2",color:"primary",sx:{mt:1}},s)))}export{c as ExplanatoryFoldOut};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.260",
3
+ "version": "0.1.261",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "module": "dist/esm/src/index.js",
@@ -1,4 +1,6 @@
1
1
  // "use client"
2
+
3
+ import React from "react";
2
4
  import {
3
5
  Typography,
4
6
  Divider,