@molecule/app-status-badge-svelte 1.1.0 → 1.1.2
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.
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-24T08:59:53.815Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-status-badge-svelte
|
|
@@ -135,7 +135,7 @@ const StatusPill: LegacyComponentType
|
|
|
135
135
|
|
|
136
136
|
Peer dependencies:
|
|
137
137
|
|
|
138
|
-
- `@molecule/app-svelte` ^3.
|
|
138
|
+
- `@molecule/app-svelte` ^3.13.0
|
|
139
139
|
- `@molecule/app-ui` ^1.0.1
|
|
140
140
|
- `@molecule/app-ui-svelte` ^1.1.0
|
|
141
141
|
- `svelte` ^5.0.0
|
package/dist/StatusBadge.svelte
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
`icon` are snippets.
|
|
7
7
|
-->
|
|
8
8
|
<script lang="ts">
|
|
9
|
+
import { PresentWhileContent } from '@molecule/app-svelte'
|
|
9
10
|
import { getClassMap } from '@molecule/app-ui'
|
|
10
11
|
import { Badge } from '@molecule/app-ui-svelte'
|
|
11
12
|
|
|
@@ -40,12 +41,16 @@
|
|
|
40
41
|
className,
|
|
41
42
|
)}
|
|
42
43
|
>
|
|
43
|
-
{#if icon}<span class={cm.sp('mr', 1)}
|
|
44
|
-
|
|
44
|
+
{#if icon}<PresentWhileContent tag="span" class={cm.sp('mr', 1)}
|
|
45
|
+
>{@render icon?.()}</PresentWhileContent
|
|
46
|
+
>{/if}
|
|
47
|
+
{@render children?.()}
|
|
45
48
|
</span>
|
|
46
49
|
{:else}
|
|
47
50
|
<Badge color={KIND_TO_COLOR[kind]} {className}>
|
|
48
|
-
{#if icon}<span class={cm.sp('mr', 1)}
|
|
49
|
-
|
|
51
|
+
{#if icon}<PresentWhileContent tag="span" class={cm.sp('mr', 1)}
|
|
52
|
+
>{@render icon?.()}</PresentWhileContent
|
|
53
|
+
>{/if}
|
|
54
|
+
{@render children?.()}
|
|
50
55
|
</Badge>
|
|
51
56
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadge.svelte.d.ts","sourceRoot":"","sources":["../src/StatusBadge.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusBadge.svelte.d.ts","sourceRoot":"","sources":["../src/StatusBadge.svelte"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,YAAY,CAAC;AAiD/D,QAAA,MAAM,WAAW,sDAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
package/dist/StatusPill.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-status-badge-svelte",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Svelte status badge / pill with semantic kinds",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-status-badge-svelte",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@molecule/app-svelte": "^3.
|
|
51
|
+
"@molecule/app-svelte": "^3.13.0",
|
|
52
52
|
"@molecule/app-ui": "^1.0.1",
|
|
53
53
|
"@molecule/app-ui-svelte": "^1.1.0",
|
|
54
54
|
"svelte": "^5.0.0"
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
58
58
|
"@molecule/app-i18n": "1.2.2",
|
|
59
59
|
"@molecule/app-icons": "1.0.4",
|
|
60
|
-
"@molecule/app-svelte": "3.
|
|
61
|
-
"@molecule/app-ui": "1.
|
|
62
|
-
"@molecule/app-ui-svelte": "1.
|
|
60
|
+
"@molecule/app-svelte": "3.14.1",
|
|
61
|
+
"@molecule/app-ui": "1.5.0",
|
|
62
|
+
"@molecule/app-ui-svelte": "1.4.2",
|
|
63
63
|
"@sveltejs/package": "3.0.2",
|
|
64
64
|
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
65
65
|
"@types/node": "26.6.5",
|
|
66
|
-
"jsdom": "
|
|
66
|
+
"jsdom": "31.0.1",
|
|
67
67
|
"svelte": "5.57.2",
|
|
68
68
|
"svelte-check": "4.7.7",
|
|
69
69
|
"typescript": "6.0.3",
|