@soyfri/shared-library 1.1.5 → 1.1.7

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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../_virtual/jsx-runtime.cjs"),t=require("react"),r=require("@mui/material"),i=require("../Input/Input.cjs"),o=require("../Select/Select.cjs"),u=require("../DatePicker/DatePicker.cjs"),s=require("../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.cjs");module.exports=({children:n})=>{const d=t.Children.toArray(n),a=d.map(((n,a)=>{if(t.isValidElement(n)){const l=n.props,p=n.type,c=p===r.TextField||p===i.Input||p===r.Select||p===o.Select||p===s.DatePicker||p===u.DatePicker?t.cloneElement(n,Object.assign(Object.assign({},l),{sx:Object.assign(Object.assign({},l.sx),{"& .MuiOutlinedInput-notchedOutline":{border:"none"},".MuiFormLabel-filled":{backgroundColor:"white"},".MuiInputLabel-shrink":{backgroundColor:"white"},fieldset:{border:"none !important"},"& .MuiInputBase-root .MuiButtonBase-root":{borderRight:"none"},".MuiFormControl-root .MuiFormControl-fullWidth > fieldset.MuiOutlinedInput-notchedOutline":{backgroundColor:"red"}})})):n;return e.jsxRuntimeExports.jsx(r.Box,{sx:{flexGrow:1,display:"flex",alignItems:"center",minWidth:0,borderRight:a<d.length-1?"1px solid #ccc":"none"},children:c},a)}return n}));return e.jsxRuntimeExports.jsx(r.Box,{sx:{display:"flex",justifyContent:"space-between",height:"33px",border:"0.7px solid #ccc",borderRadius:"10px",padding:"8px 10px","& .MuiInputBase-root, & .MuiButtonBase-root, & .MuiChip-root":{borderRadius:0},"& > div:first-of-type .MuiInputBase-root, & > div:first-of-type .MuiButtonBase-root, & > div:first-of-type .MuiChip-root":{borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"& > div:last-of-type .MuiInputBase-root, & > div:last-of-type .MuiButtonBase-root, & > div:last-of-type .MuiChip-root":{borderTopRightRadius:"10px",borderBottomRightRadius:"10px"}},children:a})};
1
+ "use strict";var e=require("../../_virtual/jsx-runtime.cjs"),t=require("react"),r=require("@mui/material"),i=require("../Input/Input.cjs"),o=require("../Select/Select.cjs"),s=require("../DatePicker/DatePicker.cjs"),u=require("../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.cjs");module.exports=({children:n})=>{const d=t.Children.toArray(n),a=d.map(((n,a)=>{if(t.isValidElement(n)){const p=n.props,l=n.type,c=l===r.TextField||l===i.Input||l===r.Select||l===o.Select||l===u.DatePicker||l===s.DatePicker?t.cloneElement(n,Object.assign(Object.assign({},p),{sx:Object.assign(Object.assign({},p.sx),{"& .MuiOutlinedInput-notchedOutline":{border:"none"},".MuiInputLabel-shrink":{backgroundColor:"white"},fieldset:{border:"none !important"},"& .MuiInputBase-root .MuiButtonBase-root":{borderRight:"none"},".MuiFormControl-root .MuiFormControl-fullWidth > fieldset.MuiOutlinedInput-notchedOutline":{backgroundColor:"red"}})})):n;return e.jsxRuntimeExports.jsx(r.Box,{sx:{flexGrow:1,display:"flex",alignItems:"center",minWidth:0,borderRight:a<d.length-1?"1px solid #ccc":"none"},children:c},a)}return n}));return e.jsxRuntimeExports.jsx(r.Box,{className:"InputGroup",sx:{display:"flex",justifyContent:"space-between",height:"34px",border:"1px solid #ccc",borderRadius:"10px",padding:"8px 0px","& .MuiInputBase-root, & .MuiButtonBase-root, & .MuiChip-root":{borderRadius:0},"& > div:first-of-type .MuiInputBase-root, & > div:first-of-type .MuiButtonBase-root, & > div:first-of-type .MuiChip-root":{borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"& > div:last-of-type .MuiInputBase-root, & > div:last-of-type .MuiButtonBase-root, & > div:last-of-type .MuiChip-root":{borderTopRightRadius:"10px",borderBottomRightRadius:"10px"}},children:a})};
2
2
  //# sourceMappingURL=InputGroup.cjs.map
@@ -1,2 +1,2 @@
1
- import{j as t}from"../../_virtual/jsx-runtime.js";import{Children as o,isValidElement as e,cloneElement as r}from"react";import{Box as i,TextField as s,Select as n}from"@mui/material";import{Input as u}from"../Input/Input.js";import{Select as a}from"../Select/Select.js";import{DatePicker as d}from"../DatePicker/DatePicker.js";import{DatePicker as p}from"../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js";const l=({children:l})=>{const c=o.toArray(l),m=c.map(((o,l)=>{if(e(o)){const e=o.props,m=o.type,f=m===s||m===u||m===n||m===a||m===p||m===d?r(o,Object.assign(Object.assign({},e),{sx:Object.assign(Object.assign({},e.sx),{"& .MuiOutlinedInput-notchedOutline":{border:"none"},".MuiFormLabel-filled":{backgroundColor:"white"},".MuiInputLabel-shrink":{backgroundColor:"white"},fieldset:{border:"none !important"},"& .MuiInputBase-root .MuiButtonBase-root":{borderRight:"none"},".MuiFormControl-root .MuiFormControl-fullWidth > fieldset.MuiOutlinedInput-notchedOutline":{backgroundColor:"red"}})})):o;return t.jsx(i,{sx:{flexGrow:1,display:"flex",alignItems:"center",minWidth:0,borderRight:l<c.length-1?"1px solid #ccc":"none"},children:f},l)}return o}));return t.jsx(i,{sx:{display:"flex",justifyContent:"space-between",height:"33px",border:"0.7px solid #ccc",borderRadius:"10px",padding:"8px 10px","& .MuiInputBase-root, & .MuiButtonBase-root, & .MuiChip-root":{borderRadius:0},"& > div:first-of-type .MuiInputBase-root, & > div:first-of-type .MuiButtonBase-root, & > div:first-of-type .MuiChip-root":{borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"& > div:last-of-type .MuiInputBase-root, & > div:last-of-type .MuiButtonBase-root, & > div:last-of-type .MuiChip-root":{borderTopRightRadius:"10px",borderBottomRightRadius:"10px"}},children:m})};export{l as default};
1
+ import{j as t}from"../../_virtual/jsx-runtime.js";import{Children as o,isValidElement as e,cloneElement as r}from"react";import{Box as i,TextField as s,Select as n}from"@mui/material";import{Input as u}from"../Input/Input.js";import{Select as p}from"../Select/Select.js";import{DatePicker as a}from"../DatePicker/DatePicker.js";import{DatePicker as d}from"../../node_modules/@mui/x-date-pickers/esm/DatePicker/DatePicker.js";const l=({children:l})=>{const c=o.toArray(l),m=c.map(((o,l)=>{if(e(o)){const e=o.props,m=o.type,f=m===s||m===u||m===n||m===p||m===d||m===a?r(o,Object.assign(Object.assign({},e),{sx:Object.assign(Object.assign({},e.sx),{"& .MuiOutlinedInput-notchedOutline":{border:"none"},".MuiInputLabel-shrink":{backgroundColor:"white"},fieldset:{border:"none !important"},"& .MuiInputBase-root .MuiButtonBase-root":{borderRight:"none"},".MuiFormControl-root .MuiFormControl-fullWidth > fieldset.MuiOutlinedInput-notchedOutline":{backgroundColor:"red"}})})):o;return t.jsx(i,{sx:{flexGrow:1,display:"flex",alignItems:"center",minWidth:0,borderRight:l<c.length-1?"1px solid #ccc":"none"},children:f},l)}return o}));return t.jsx(i,{className:"InputGroup",sx:{display:"flex",justifyContent:"space-between",height:"34px",border:"1px solid #ccc",borderRadius:"10px",padding:"8px 0px","& .MuiInputBase-root, & .MuiButtonBase-root, & .MuiChip-root":{borderRadius:0},"& > div:first-of-type .MuiInputBase-root, & > div:first-of-type .MuiButtonBase-root, & > div:first-of-type .MuiChip-root":{borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px"},"& > div:last-of-type .MuiInputBase-root, & > div:last-of-type .MuiButtonBase-root, & > div:last-of-type .MuiChip-root":{borderTopRightRadius:"10px",borderBottomRightRadius:"10px"}},children:m})};export{l as default};
2
2
  //# sourceMappingURL=InputGroup.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyfri/shared-library",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",