Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3ec60db5d | |||
| 4af10b10f7 |
+4
-4
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "nova-design-system",
|
"name": "@unkn0wndo3s/nova-design-system",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"main": "./src/index.ts",
|
||||||
"description": "Nova Design System — Astro component library",
|
"description": "Nova Design System — Astro component library",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.12.0"
|
"node": ">=22.12.0"
|
||||||
@@ -17,8 +18,7 @@
|
|||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro",
|
"astro": "astro"
|
||||||
"barrel": "node scripts/generate-barrel.mjs"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^6.3.8"
|
"astro": "^6.3.8"
|
||||||
@@ -26,4 +26,4 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"sass": "^1.99.0"
|
"sass": "^1.99.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
@use '../../styles/tokens/typography' as *;
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
width: 350px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: var(--nds-spacing-md);
|
||||||
|
border-radius: var(--nds-radius-sm);
|
||||||
|
background: var(--nds-background, #040B0B);
|
||||||
|
flex-shrink: 0;
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
background: color-mix(in srgb, var(--nds-secondary) 25%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: color-mix(in srgb, var(--nds-accent) 25%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-right: 1px solid;
|
||||||
|
border-bottom: 1px solid;
|
||||||
|
border-radius: var(--nds-radius-md);
|
||||||
|
border-color: transparent;
|
||||||
|
background:
|
||||||
|
linear-gradient(var(--nds-background, #040B0B), var(--nds-background, #040B0B)) padding-box,
|
||||||
|
linear-gradient(
|
||||||
|
135deg,
|
||||||
|
transparent 0%,
|
||||||
|
transparent 20%,
|
||||||
|
rgba(245, 250, 250, 0.08) 50%,
|
||||||
|
rgba(245, 250, 250, 0.28) 100%
|
||||||
|
) border-box;
|
||||||
|
-webkit-mask:
|
||||||
|
linear-gradient(#fff 0 0) padding-box,
|
||||||
|
linear-gradient(#fff 0 0);
|
||||||
|
-webkit-mask-composite: destination-out;
|
||||||
|
mask-composite: exclude;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: -1px;
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--nds-spacing-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__subTitle {
|
||||||
|
@include text-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__title {
|
||||||
|
@include text-xl;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
import Arrow2 from "../Icons/Arrow2/Arrow2.astro"
|
||||||
|
---
|
||||||
|
<div class='list-item'>
|
||||||
|
<div class='list-item__content'>
|
||||||
|
<slot/>
|
||||||
|
</div>
|
||||||
|
<Arrow2
|
||||||
|
size={24}
|
||||||
|
orientation='right' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@use './listItem';
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<div class='list-item__subTitle'>
|
||||||
|
<slot/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@use './listItem';
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<div class='list-item__title'>
|
||||||
|
<slot/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@use './listItem';
|
||||||
|
</style>
|
||||||
@@ -7,4 +7,7 @@ export { default as Tab } from './Tabs/tab.astro';
|
|||||||
export { default as TabItem } from './Tabs/tabItem.astro';
|
export { default as TabItem } from './Tabs/tabItem.astro';
|
||||||
export { default as TabContent } from './Tabs/tabContent.astro';
|
export { default as TabContent } from './Tabs/tabContent.astro';
|
||||||
export { default as Button } from './Button/button.astro';
|
export { default as Button } from './Button/button.astro';
|
||||||
export { default as Link } from './Link/link.astro';
|
export { default as Link } from './Link/link.astro';
|
||||||
|
export { default as ListItem } from './ListItem/listItem.astro';
|
||||||
|
export { default as ListItemTitle } from './ListItem/listItemTitle.astro';
|
||||||
|
export { default as ListItemSubtitle } from './ListItem/listItemSubtitle.astro';
|
||||||
@@ -7,6 +7,9 @@ import TabItem from '../components/Tabs/tabItem.astro';
|
|||||||
import TabContent from '../components/Tabs/tabContent.astro';
|
import TabContent from '../components/Tabs/tabContent.astro';
|
||||||
import Button from '../components/Button/button.astro';
|
import Button from '../components/Button/button.astro';
|
||||||
import Link from '../components/Link/link.astro';
|
import Link from '../components/Link/link.astro';
|
||||||
|
import ListItem from '../components/ListItem/listItem.astro';
|
||||||
|
import ListItemTitle from '../components/ListItem/listItemTitle.astro';
|
||||||
|
import ListItemSubtitle from '../components/ListItem/listItemSubtitle.astro';
|
||||||
import {
|
import {
|
||||||
Arrow2Icon, BinIcon, BurgerIcon, CalendarIcon, CheckIcon, CloseIcon,
|
Arrow2Icon, BinIcon, BurgerIcon, CalendarIcon, CheckIcon, CloseIcon,
|
||||||
CodeIcon, CubeIcon, DownloadIcon, FilterIcon, HelpIcon, HomeIcon,
|
CodeIcon, CubeIcon, DownloadIcon, FilterIcon, HelpIcon, HomeIcon,
|
||||||
@@ -21,6 +24,15 @@ const initialChecked = true;
|
|||||||
<Layout>
|
<Layout>
|
||||||
<main>
|
<main>
|
||||||
<h1>Nova Design System</h1>
|
<h1>Nova Design System</h1>
|
||||||
|
<section>
|
||||||
|
<h2>List Item</h2>
|
||||||
|
<div style="display: flex; flex-direction: column; gap: var(--nds-spacing-md);">
|
||||||
|
<ListItem>
|
||||||
|
<ListItemTitle>List Item Title</ListItemTitle>
|
||||||
|
<ListItemSubtitle>List Item Subtitle</ListItemSubtitle>
|
||||||
|
</ListItem>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Link</h2>
|
<h2>Link</h2>
|
||||||
<div style="display: flex; flex-direction: column; gap: var(--nds-spacing-md);">
|
<div style="display: flex; flex-direction: column; gap: var(--nds-spacing-md);">
|
||||||
|
|||||||
Reference in New Issue
Block a user