Sync shared snapshot from a90f4eb
This commit is contained in:
1 parent
85f02a7327
commit
4e413a5cf6
4 files changed
+19
-6
No files matched your search
Generated
+3
@@ -38,6 +38,9 @@
|
||||
"name": "@gabriel20xx/web-ui",
|
||||
"version": "0.1.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@lucide/svelte": "1.28.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/package": "^2.5.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"svelte": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
"@lucide/svelte": "1.28.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/package": "^2.5.0",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "@gabriel20xx/design-tokens/theme.css";
|
||||
@import '../../../design-tokens/theme.css';
|
||||
|
||||
:where(.sc-root, .sc-root *) {
|
||||
box-sizing: border-box;
|
||||
@@ -75,11 +75,15 @@
|
||||
}
|
||||
|
||||
.sc-brand-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
/* Fixed instead of percentage-based: the icon isn't wrapped in a sized container (unlike
|
||||
.sc-brand-mark, which this rule mirrors), and .sc-brand's own width is content-driven, so
|
||||
a percentage here has no definite box to resolve against and lets the image render at
|
||||
whatever intrinsic size its source happens to have. */
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0.25rem;
|
||||
object-fit: contain;
|
||||
border-radius: inherit;
|
||||
border-radius: var(--sc-radius-md);
|
||||
}
|
||||
|
||||
.sc-nav {
|
||||
|
||||
@@ -103,7 +103,12 @@ function Convert-ToConsumerWebUiPackage {
|
||||
|
||||
$manifest = Get-Content -LiteralPath $PackagePath -Raw | ConvertFrom-Json
|
||||
$manifest.files = @('src', 'README.md')
|
||||
$manifest.dependencies = [pscustomobject]@{}
|
||||
if ($null -ne $manifest.dependencies) {
|
||||
$designTokensDependency = $manifest.dependencies.PSObject.Properties['@gabriel20xx/design-tokens']
|
||||
if ($null -ne $designTokensDependency) {
|
||||
$manifest.dependencies.PSObject.Properties.Remove('@gabriel20xx/design-tokens')
|
||||
}
|
||||
}
|
||||
$manifest.svelte = './src/index.ts'
|
||||
$manifest.types = './src/index.ts'
|
||||
|
||||
@@ -133,6 +138,7 @@ function Convert-ToConsumerWebUiSources {
|
||||
if (Test-Path -LiteralPath $stylesPath) {
|
||||
$styles = Get-Content -LiteralPath $stylesPath -Raw
|
||||
$styles = $styles.Replace("@import '@gabriel20xx/design-tokens/theme.css';", "@import '../../../design-tokens/theme.css';")
|
||||
$styles = $styles.Replace('@import "@gabriel20xx/design-tokens/theme.css";', "@import '../../../design-tokens/theme.css';")
|
||||
Write-Utf8NoBom -Path $stylesPath -Content $styles
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user