@umami/shiso 1.1.6 → 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,13 @@
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
+
6
13
  ## 1.1.6 - 2026-08-19
7
14
 
8
15
  ### Fixed
@@ -10979,8 +10979,9 @@ const styles = {
10979
10979
  accordionContent: "px-4 pb-4 text-base leading-7",
10980
10980
  expandableTrigger: "items-center px-4 py-3 text-sm font-normal text-foreground hover:no-underline",
10981
10981
  callout: "my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6",
10982
- calloutIcon: "flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4 [&_svg]:translate-y-0.5",
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: "text-sm text-inherit leading-6",
11359
+ className: styles.calloutDescription,
11359
11360
  children
11360
11361
  })]
11361
11362
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Open-source documentation framework for Markdown and MDX sites.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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="text-sm text-inherit leading-6">{children}</AlertDescription>
37
+ <AlertDescription className={styles.calloutDescription}>{children}</AlertDescription>
38
38
  </div>
39
39
  </Alert>
40
40
  );
@@ -11,10 +11,10 @@ export const styles = {
11
11
  'items-center px-4 py-3 text-sm font-normal text-foreground hover:no-underline',
12
12
 
13
13
  callout: 'my-4 flex items-start gap-3 rounded-lg border px-3 py-2.5 text-sm leading-6',
14
- calloutIcon:
15
- 'flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4 [&_svg]:translate-y-0.5',
14
+ calloutIcon: 'flex h-6 w-5 shrink-0 items-center justify-center [&_svg]:block [&_svg]:size-4',
16
15
  calloutBody:
17
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',
18
18
  calloutTitle: 'font-semibold leading-6',
19
19
  note: 'border-border bg-muted/50 text-foreground',
20
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',