@umami/shiso 1.1.5 → 1.1.7
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to `@umami/shiso` are documented here. This project follows
|
|
4
4
|
[Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## 1.1.7 - 2026-08-19
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- Remove the nested callout description's leading paragraph margin so the first
|
|
11
|
+
line of text and icon share the same line box.
|
|
12
|
+
|
|
13
|
+
## 1.1.6 - 2026-08-19
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Apply Alert's optical SVG offset to wrapped callout icons so their visible
|
|
18
|
+
strokes align with the first line of text.
|
|
19
|
+
|
|
6
20
|
## 1.1.5 - 2026-08-19
|
|
7
21
|
|
|
8
22
|
### Fixed
|
package/dist/chunks/App.js
CHANGED
|
@@ -10981,6 +10981,7 @@ const styles = {
|
|
|
10981
10981
|
callout: "my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6",
|
|
10982
10982
|
calloutIcon: "flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4",
|
|
10983
10983
|
calloutBody: "flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0",
|
|
10984
|
+
calloutDescription: "text-sm text-inherit leading-6 [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
10984
10985
|
calloutTitle: "font-semibold leading-6",
|
|
10985
10986
|
note: "border-border bg-muted/50 text-foreground",
|
|
10986
10987
|
info: "border-blue-300 bg-blue-50 text-blue-900 dark:border-blue-400/40 dark:bg-blue-400/10 dark:text-blue-300",
|
|
@@ -11355,7 +11356,7 @@ function Callout({ title, icon, children, variant = "note" }) {
|
|
|
11355
11356
|
className: styles.calloutTitle,
|
|
11356
11357
|
children: title
|
|
11357
11358
|
}) : null, /* @__PURE__ */ jsx(AlertDescription, {
|
|
11358
|
-
className:
|
|
11359
|
+
className: styles.calloutDescription,
|
|
11359
11360
|
children
|
|
11360
11361
|
})]
|
|
11361
11362
|
})]
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export function Callout({ title, icon, children, variant = 'note' }: CalloutProp
|
|
|
34
34
|
</span>
|
|
35
35
|
<div className={styles.calloutBody}>
|
|
36
36
|
{title ? <AlertTitle className={styles.calloutTitle}>{title}</AlertTitle> : null}
|
|
37
|
-
<AlertDescription className=
|
|
37
|
+
<AlertDescription className={styles.calloutDescription}>{children}</AlertDescription>
|
|
38
38
|
</div>
|
|
39
39
|
</Alert>
|
|
40
40
|
);
|
|
@@ -14,6 +14,7 @@ export const styles = {
|
|
|
14
14
|
calloutIcon: 'flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4',
|
|
15
15
|
calloutBody:
|
|
16
16
|
'flex min-w-0 flex-1 flex-col gap-[0.35rem] [&>:first-child]:mt-0 [&>:last-child]:mb-0 [&_:where(p,ul,ol)]:my-[0.35rem] [&>:where(p,ul,ol):first-child]:mt-0 [&>:where(p,ul,ol):last-child]:mb-0',
|
|
17
|
+
calloutDescription: 'text-sm text-inherit leading-6 [&>:first-child]:mt-0 [&>:last-child]:mb-0',
|
|
17
18
|
calloutTitle: 'font-semibold leading-6',
|
|
18
19
|
note: 'border-border bg-muted/50 text-foreground',
|
|
19
20
|
info: 'border-blue-300 bg-blue-50 text-blue-900 dark:border-blue-400/40 dark:bg-blue-400/10 dark:text-blue-300',
|