@soul-refiner/design-system 1.7.17 → 1.7.18

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,6 +1,7 @@
1
1
  'use client';
2
2
  import React from 'react';
3
3
  import Image from 'next/image';
4
+ import Link from 'next/link';
4
5
  import styled from 'styled-components';
5
6
  import { H, P } from '../../atoms/typography';
6
7
  import { TimeAgo } from '../../atoms/time_ago/time_ago';
@@ -94,8 +95,8 @@ export const Post = ({ actions, author, authorActive, authorHref, authorImage, a
94
95
  React.createElement(NavArrow, { "$side": "right", "$visible": curr !== images.length - 1, onClick: handleIncrement },
95
96
  React.createElement(ChevronRight, { color: "white", size: 48 }))))),
96
97
  React.createElement(Header, null,
97
- React.createElement(Avatar, { href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React.createElement(P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
98
- React.createElement(TimeAgo, { date: new Date(createdDate) })), title: React.createElement(H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx }),
98
+ React.createElement(Avatar, { as: !!authorHref ? Link : 'button', href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React.createElement(P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
99
+ React.createElement(TimeAgo, { date: new Date(createdDate) })), title: React.createElement(H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx, sx: !!authorHref ? 'img { cursor: pointer; }' : undefined }),
99
100
  dropdown),
100
101
  !!content?.length && (React.createElement("div", { style: { padding: '16px 24px' } },
101
102
  React.createElement(P, { "$textClampLines": isPaywalled ? 2 : undefined }, content))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "1.7.17",
3
+ "version": "1.7.18",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {