@tap-payments/os-micro-frontend-shared 0.1.397 → 0.1.398

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.
@@ -10,7 +10,9 @@ export const StyledSourceImage = styled('img')(() => ({
10
10
  maxWidth: '36px',
11
11
  maxHeight: '24px',
12
12
  }));
13
- export const ReferenceSourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
13
+ export const ReferenceSourcesContainer = styled(motion.span, {
14
+ shouldForwardProp: (prop) => prop !== 'sourcesCount',
15
+ })(({ theme, sourcesCount }) => ({
14
16
  display: 'flex',
15
17
  alignItems: 'center',
16
18
  justifyContent: 'flex-start',
@@ -46,7 +46,9 @@ export const statusAnimation = (index, shadow, xDelta) => ({
46
46
  export const StatusIcon = styled(motion.span)(({ isTextShown, theme }) => (Object.assign({ border: `1px solid ${theme.palette.divider}`, borderRadius: '12px', backgroundColor: theme.palette.background.paper, height: '24px', display: 'flex', alignItems: 'center', justifyContent: 'center', minWidth: isTextShown ? 'auto' : '36px' }, (isTextShown && {
47
47
  border: 'none',
48
48
  }))));
49
- export const StatusWrapper = styled(motion.div)(({ statusesCount }) => ({
49
+ export const StatusWrapper = styled(motion.div, {
50
+ shouldForwardProp: (prop) => prop !== 'statusesCount',
51
+ })(({ statusesCount }) => ({
50
52
  display: 'flex',
51
53
  alignItems: 'center',
52
54
  justifyContent: 'center',
@@ -1,7 +1,7 @@
1
1
  import { styled, Box, alpha } from '@mui/material';
2
2
  import { motion } from 'framer-motion';
3
3
  export const ExportButton = styled(motion.div, {
4
- shouldForwardProp: (props) => props !== 'notificationState' && props !== 'open' && props !== 'loading' && props !== 'ready',
4
+ shouldForwardProp: (prop) => !['notificationState', 'open', 'loading', 'ready', 'failed'].includes(prop),
5
5
  })(({ theme, notificationState, open, loading, ready, failed }) => (Object.assign(Object.assign({ position: 'relative', border: `1px solid ${theme.palette.divider}`, padding: '0 8px', height: 32, borderRadius: '4px', display: 'flex', alignItems: 'center', overflow: 'hidden', fontSize: '11px', fontWeight: 500, color: theme.palette.text.primary, transition: 'width 2s ease-in-out', cursor: 'pointer' }, (((notificationState === null || notificationState === void 0 ? void 0 : notificationState.success) || (notificationState === null || notificationState === void 0 ? void 0 : notificationState.failed)) &&
6
6
  !loading &&
7
7
  !ready &&
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.397",
4
+ "version": "0.1.398",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",