-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
278 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
apps/cyberstorm-remix/app/commonComponents/ListingDependency/ListingDependency.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@layer nimbus-layout { | ||
.nimbus-commoncomponents-listingdependency { | ||
display: flex; | ||
gap: 24px; | ||
align-items: flex-start; | ||
width: 100%; | ||
padding: 16px; | ||
border-radius: 8px; | ||
background: var(--surface-dim); | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__image { | ||
flex-shrink: 0; | ||
width: 80px; | ||
|
||
> svg { | ||
width: 40px; | ||
height: 40px; | ||
color: var(--color-surface-a10); | ||
} | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__info { | ||
display: flex; | ||
gap: 8px; | ||
align-items: center; | ||
align-self: stretch; | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__info__name { | ||
color: var(--color-text-primary); | ||
font-weight: 700; | ||
line-height: 150%; | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__info__title { | ||
display: flex; | ||
gap: 4px; | ||
align-items: center; | ||
align-self: stretch; | ||
font-weight: 400; | ||
font-size: var(--font-size-body-md); | ||
line-height: 150%; | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__info__by { | ||
color: var(--color-text-tertiary); | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__description { | ||
align-self: stretch; | ||
color: var(--color-text-secondary); | ||
font-weight: 400; | ||
|
||
font-size: var(--font-size-body-md, 14px); | ||
line-height: 150%; | ||
} | ||
|
||
.nimbus-commoncomponents-listingdependency__version { | ||
display: flex; | ||
gap: 4px; | ||
align-items: flex-start; | ||
color: var(--color-text-tertiary); | ||
font-weight: 400; | ||
font-size: var(--font-size-body-sm); | ||
line-height: 170%; | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
apps/cyberstorm-remix/app/commonComponents/ListingDependency/ListingDependency.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import "./ListingDependency.css"; | ||
import { dependencyShema } from "@thunderstore/dapper-ts"; | ||
import { Image, NewLink } from "@thunderstore/cyberstorm"; | ||
|
||
export interface ListingDependencyProps { | ||
dependency: typeof dependencyShema._type; | ||
} | ||
|
||
export function ListingDependency(props: ListingDependencyProps) { | ||
const { dependency } = props; | ||
|
||
return ( | ||
<div className="nimbus-commoncomponents-listingdependency"> | ||
<Image | ||
src={dependency.icon_url} | ||
cardType="package" | ||
square={true} | ||
intrinsicWidth={80} | ||
intrinsicHeight={80} | ||
rootClasses="nimbus-commoncomponents-listingdependency__image" | ||
/> | ||
<div className="nimbus-commoncomponents-listingdependency__body"> | ||
<div className="nimbus-commoncomponents-listingdependency__info"> | ||
<NewLink | ||
primitiveType="cyberstormLink" | ||
linkId="Package" | ||
community={dependency.community_identifier} | ||
namespace={dependency.namespace} | ||
package={dependency.name} | ||
rootClasses="nimbus-commoncomponents-listingdependency__info__name" | ||
> | ||
{dependency.name} | ||
</NewLink> | ||
<span className="nimbus-commoncomponents-listingdependency__info__title"> | ||
<span className="nimbus-commoncomponents-listingdependency__info__by"> | ||
by | ||
</span> | ||
<NewLink | ||
primitiveType="cyberstormLink" | ||
linkId="Team" | ||
team={dependency.namespace} | ||
rootClasses="nimbus-commoncomponents-listingdependency__info__author" | ||
csVariant="primary" | ||
> | ||
{dependency.namespace} | ||
</NewLink> | ||
</span> | ||
</div> | ||
<div className="nimbus-commoncomponents-listingdependency__description"> | ||
{dependency.description} | ||
</div> | ||
<div className="nimbus-commoncomponents-listingdependency__version"> | ||
<span>Version:</span> | ||
<NewLink | ||
// TODO: Remove this customization when /p is doned | ||
primitiveType="cyberstormLink" | ||
linkId="PackageVersion" | ||
community={dependency.community_identifier} | ||
namespace={dependency.namespace} | ||
package={dependency.name} | ||
version={dependency.version_number} | ||
title={`${dependency.name} - ${dependency.version_number}`} | ||
csVariant="cyber" | ||
> | ||
{dependency.version_number} | ||
</NewLink> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
ListingDependency.displayName = "ListingDependency"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
apps/cyberstorm-remix/app/p/components/Dependencies/Dependencies.module.css
This file was deleted.
Oops, something went wrong.
103 changes: 0 additions & 103 deletions
103
apps/cyberstorm-remix/app/p/components/Dependencies/Dependencies.tsx
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
...berstorm-remix/app/p/components/Dependencies/DependencyDialog/DependencyDialog.module.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.