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