noph-ui 0.6.7 → 0.6.9

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.
@@ -12,6 +12,7 @@
12
12
  subhead,
13
13
  supportingText,
14
14
  action,
15
+ children,
15
16
  ...attributes
16
17
  }: CardProps = $props()
17
18
 
@@ -50,6 +51,9 @@
50
51
  {supportingText}
51
52
  </span>
52
53
  {/if}
54
+ {#if children}
55
+ {@render children()}
56
+ {/if}
53
57
  {#if action}
54
58
  <div class="np-card-action">{@render action()}</div>
55
59
  {/if}
@@ -89,7 +89,7 @@
89
89
  color: var(--np-color-on-surface-variant);
90
90
  }
91
91
  .np-navigation-action-selected .np-navigation-action-icon {
92
- color: var(--np-color-secondary-container);
92
+ color: var(--np-color-on-secondary-container);
93
93
  --np-icon-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
94
94
  }
95
95
  .np-navigation-action-icon::before {
@@ -102,7 +102,7 @@
102
102
  transition-duration: 0.2s;
103
103
  transition-property: transform, opacity;
104
104
  transition-timing-function: linear;
105
- background-color: var(--np-color-on-secondary-container);
105
+ background-color: var(--np-color-secondary-container);
106
106
  border-radius: 100px;
107
107
  z-index: -1;
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {
@@ -55,22 +55,22 @@
55
55
  "@material/material-color-utilities": "^0.3.0",
56
56
  "@playwright/test": "^1.49.1",
57
57
  "@sveltejs/adapter-vercel": "^5.5.2",
58
- "@sveltejs/kit": "^2.12.1",
58
+ "@sveltejs/kit": "^2.13.0",
59
59
  "@sveltejs/package": "^2.3.7",
60
- "@sveltejs/vite-plugin-svelte": "^5.0.2",
60
+ "@sveltejs/vite-plugin-svelte": "^4.0.4",
61
61
  "@types/eslint": "^9.6.1",
62
62
  "eslint": "^9.17.0",
63
63
  "eslint-config-prettier": "^9.1.0",
64
64
  "eslint-plugin-svelte": "^2.46.1",
65
- "globals": "^15.13.0",
65
+ "globals": "^15.14.0",
66
66
  "prettier": "^3.4.2",
67
67
  "prettier-plugin-svelte": "^3.3.2",
68
68
  "publint": "^0.2.12",
69
- "svelte": "^5.14.3",
69
+ "svelte": "^5.15.0",
70
70
  "svelte-check": "^4.1.1",
71
71
  "typescript": "^5.7.2",
72
72
  "typescript-eslint": "^8.18.1",
73
- "vite": "^6.0.3",
73
+ "vite": "^5.1.8",
74
74
  "vitest": "^2.1.8"
75
75
  },
76
76
  "svelte": "./dist/index.js",