@useloops/design-system 1.4.611 → 1.4.612

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,8 +1,8 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{keyframes as r,styled as i,Box as a,useTheme as o}from"@mui/material";import m from"../../WebCore/Typography/Typography.js";import{useBreakpoint as n}from"../../../utils/breakpoint.hook.js";import"react";const s=r`
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{keyframes as r,styled as i,Box as a,useTheme as o}from"@mui/material";import m from"../../WebCore/Typography/Typography.js";import{useBreakpoint as n}from"../../../utils/breakpoint.hook.js";import"react";const p=r`
2
2
  0%, 100% {
3
3
  transform: translateY(0);
4
4
  }
5
5
  50% {
6
6
  transform: translateY(-8px);
7
7
  }
8
- `,p=i(a,{shouldForwardProp:t=>"animate"!==t})(({animate:t})=>({display:"inline-flex",flexDirection:"column",alignItems:"center",...t&&{animation:`${s} 1s ease-in-out infinite`}})),l=i(a)(({theme:t})=>({backgroundColor:t.custom.palette.icon.primary,padding:`${t.p.sm} ${t.p.md}`,borderRadius:t.r.md})),d=i("svg")(({theme:t})=>({display:"block",fill:t.custom.palette.icon.primary})),c=({message:r,animate:i})=>{const a=o(),s=n(),c=["sm","md"].includes(s)?"sm":"md";return t(p,{animate:i,children:[e(l,{children:e(m,{component:"p",variation:c,textColor:a.custom.palette.text.primaryInverted,children:r})}),e(d,{width:"20",height:"10",viewBox:"0 0 20 10",children:e("path",{d:"M10 10L20 0H0L10 10Z"})})]})};export{c as default};
8
+ `,s=i(a,{shouldForwardProp:t=>"animate"!==t})(({animate:t})=>({display:"inline-flex",flexDirection:"column",alignItems:"center",...t&&{animation:`${p} 1s ease-in-out infinite`}})),l=i(a)(({theme:t})=>({backgroundColor:t.custom.palette.icon.primary,padding:`${t.p.sm} ${t.p.md}`,borderRadius:t.r.md})),d=i("svg")(({theme:t})=>({display:"block",fill:t.custom.palette.icon.primary,marginTop:-2})),c=({message:r,animate:i})=>{const a=o(),p=n(),c=["sm","md"].includes(p)?"sm":"md";return t(s,{animate:i,children:[e(l,{children:e(m,{component:"p",variation:c,textColor:a.custom.palette.text.primaryInverted,children:r})}),e(d,{width:"20",height:"10",viewBox:"0 0 20 10",children:e("path",{d:"M10 10L20 0H0L10 10Z"})})]})};export{c as default};
@@ -5,4 +5,4 @@
5
5
  50% {
6
6
  transform: translateY(-8px);
7
7
  }
8
- `,s=r.styled(r.Box,{shouldForwardProp:e=>"animate"!==e})(({animate:e})=>({display:"inline-flex",flexDirection:"column",alignItems:"center",...e&&{animation:`${a} 1s ease-in-out infinite`}})),n=r.styled(r.Box)(({theme:e})=>({backgroundColor:e.custom.palette.icon.primary,padding:`${e.p.sm} ${e.p.md}`,borderRadius:e.r.md})),o=r.styled("svg")(({theme:e})=>({display:"block",fill:e.custom.palette.icon.primary}));module.exports=({message:a,animate:m})=>{const l=r.useTheme(),d=i.useBreakpoint(),p=["sm","md"].includes(d)?"sm":"md";return e.jsxs(s,{animate:m,children:[e.jsx(n,{children:e.jsx(t,{component:"p",variation:p,textColor:l.custom.palette.text.primaryInverted,children:a})}),e.jsx(o,{width:"20",height:"10",viewBox:"0 0 20 10",children:e.jsx("path",{d:"M10 10L20 0H0L10 10Z"})})]})};
8
+ `,s=r.styled(r.Box,{shouldForwardProp:e=>"animate"!==e})(({animate:e})=>({display:"inline-flex",flexDirection:"column",alignItems:"center",...e&&{animation:`${a} 1s ease-in-out infinite`}})),n=r.styled(r.Box)(({theme:e})=>({backgroundColor:e.custom.palette.icon.primary,padding:`${e.p.sm} ${e.p.md}`,borderRadius:e.r.md})),o=r.styled("svg")(({theme:e})=>({display:"block",fill:e.custom.palette.icon.primary,marginTop:-2}));module.exports=({message:a,animate:m})=>{const l=r.useTheme(),d=i.useBreakpoint(),p=["sm","md"].includes(d)?"sm":"md";return e.jsxs(s,{animate:m,children:[e.jsx(n,{children:e.jsx(t,{component:"p",variation:p,textColor:l.custom.palette.text.primaryInverted,children:a})}),e.jsx(o,{width:"20",height:"10",viewBox:"0 0 20 10",children:e.jsx("path",{d:"M10 10L20 0H0L10 10Z"})})]})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.611",
3
+ "version": "1.4.612",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",