@soubiran/ui 0.7.1 → 0.8.3

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.
@@ -22,6 +22,8 @@ export interface HeaderProps {
22
22
  icon: FunctionalComponent<SVGAttributes>
23
23
  label: string
24
24
  to: string
25
+ target?: string
26
+ rel?: string
25
27
  }[]
26
28
  class?: any
27
29
  ui?: Partial<typeof header.slots>
@@ -57,6 +59,8 @@ const ui = computed(() => header())
57
59
  :to="link.to"
58
60
  :aria-label="link.label"
59
61
  :icon="link.icon"
62
+ :target="link.target"
63
+ :rel="link.rel"
60
64
  :class="ui.link({ class: props.ui?.link })"
61
65
  @click="trackClick(link.label)"
62
66
  />
@@ -1,4 +1,5 @@
1
1
  //#region src/wrapper-classes.d.ts
2
+ declare const prose: string[];
2
3
  declare const _default: string[];
3
4
  //#endregion
4
- export { _default as default };
5
+ export { _default as default, prose };
@@ -1,6 +1,5 @@
1
1
  //#region src/wrapper-classes.ts
2
- var wrapper_classes_default = [
3
- "slide-enter-content",
2
+ const prose = [
4
3
  "max-w-none",
5
4
  "prose prose-neutral dark:prose-invert",
6
5
  "prose-headings:text-default prose-h2:text-[1.125em] prose-h2:mb-[0.5em] prose-h3:text-[1em]",
@@ -15,5 +14,6 @@ var wrapper_classes_default = [
15
14
  "prose-figcaption:text-center prose-figcaption:py-1 prose-figcaption:m-0",
16
15
  "[&_:first-child]:mt-0 [&_:last-child]:mb-0"
17
16
  ];
17
+ var wrapper_classes_default = ["slide-enter-content", ...prose];
18
18
  //#endregion
19
- export { wrapper_classes_default as default };
19
+ export { wrapper_classes_default as default, prose };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/ui",
3
3
  "type": "module",
4
- "version": "0.7.1",
4
+ "version": "0.8.3",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",