@moderneinc/neo-styled-components 2.0.3-next.46edb3 → 2.0.3-next.9b94c6

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.
package/dist/index.js CHANGED
@@ -4334,6 +4334,10 @@ NeoListItemButton.displayName = 'NeoListItemButton';
4334
4334
  * Combines focusWhite1 (inner white ring) and focusBlue2 (outer blue ring)
4335
4335
  */
4336
4336
  const focusRingShadow = `${neoDesign.shadows.focusWhite1.x}px ${neoDesign.shadows.focusWhite1.y}px ${neoDesign.shadows.focusWhite1.blur}px ${neoDesign.shadows.focusWhite1.spread}px ${neoDesign.shadows.focusWhite1.shadow}, ${neoDesign.shadows.focusBlue2.x}px ${neoDesign.shadows.focusBlue2.y}px ${neoDesign.shadows.focusBlue2.blur}px ${neoDesign.shadows.focusBlue2.spread}px ${neoDesign.shadows.focusBlue2.shadow}`;
4337
+ /**
4338
+ * Card box-shadow using Neo design tokens for hover and selected states
4339
+ */
4340
+ const activeShadow = `${neoDesign.shadows.card.x}px ${neoDesign.shadows.card.y}px ${neoDesign.shadows.card.blur}px ${neoDesign.shadows.card.spread}px ${neoDesign.shadows.card.shadow}`;
4337
4341
  /**
4338
4342
  * Styled Card component with Neo design tokens
4339
4343
  */
@@ -4346,17 +4350,17 @@ const StyledCard = styles.styled(MuiCard, {
4346
4350
  display: 'flex',
4347
4351
  flexDirection: 'column',
4348
4352
  gap: theme.spacing(2), // 16px
4349
- backgroundColor: selected ? neoDesign.semanticColors.status.info.light : neoDesign.semanticColors.surfaces.card,
4353
+ backgroundColor: neoDesign.semanticColors.surfaces.card,
4350
4354
  border: `1px solid ${selected ? neoDesign.semanticColors.border.tabActive : neoDesign.semanticColors.border.card}`,
4351
4355
  borderRadius: theme.typography.pxToRem(4),
4352
- boxShadow: 'none',
4356
+ boxShadow: selected ? activeShadow : 'none',
4353
4357
  transition: theme.transitions.create(['border-color', 'background-color', 'box-shadow']),
4354
4358
  cursor: 'pointer',
4355
4359
  '&:hover': {
4356
- borderColor: selected ? neoDesign.semanticColors.border.tabActive : neoDesign.semanticColors.border.card,
4360
+ borderColor: neoDesign.semanticColors.border.tabActive,
4361
+ boxShadow: activeShadow,
4357
4362
  },
4358
4363
  '&:focus-visible': {
4359
- backgroundColor: neoDesign.semanticColors.status.info.light,
4360
4364
  borderColor: neoDesign.semanticColors.border.tabActive,
4361
4365
  boxShadow: focusRingShadow,
4362
4366
  outline: 'none',
@@ -4425,6 +4429,11 @@ const Description = styles.styled('p')(({ theme }) => ({
4425
4429
  lineHeight: 1.5,
4426
4430
  color: neoDesign.colors.grey[800],
4427
4431
  width: '100%',
4432
+ display: '-webkit-box',
4433
+ WebkitLineClamp: 2,
4434
+ WebkitBoxOrient: 'vertical',
4435
+ overflow: 'hidden',
4436
+ textOverflow: 'ellipsis',
4428
4437
  }));
4429
4438
  /**
4430
4439
  * NeoMarketplaceCard - Selectable card component for marketplace items