tecitheme 0.0.9 → 0.0.12

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.
@@ -1,16 +1,27 @@
1
1
  /** @typedef {typeof __propDef.props} HeaderProps */
2
2
  /** @typedef {typeof __propDef.events} HeaderEvents */
3
3
  /** @typedef {typeof __propDef.slots} HeaderSlots */
4
- export default class Header extends SvelteComponentTyped<{}, {
4
+ export default class Header extends SvelteComponentTyped<{
5
+ clickOutside?: (node: any) => {
6
+ destroy(): void;
7
+ };
8
+ }, {
5
9
  [evt: string]: CustomEvent<any>;
6
10
  }, {}> {
11
+ get clickOutside(): (node: any) => {
12
+ destroy(): void;
13
+ };
7
14
  }
8
15
  export type HeaderProps = typeof __propDef.props;
9
16
  export type HeaderEvents = typeof __propDef.events;
10
17
  export type HeaderSlots = typeof __propDef.slots;
11
18
  import { SvelteComponentTyped } from "svelte";
12
19
  declare const __propDef: {
13
- props: {};
20
+ props: {
21
+ clickOutside?: (node: any) => {
22
+ destroy(): void;
23
+ };
24
+ };
14
25
  events: {
15
26
  [evt: string]: CustomEvent<any>;
16
27
  };
@@ -3,19 +3,21 @@
3
3
  export let data;
4
4
  </script>
5
5
 
6
- <section class="w-full mx-auto flex flex-col md:flex-row items-center">
6
+ <section class="w-full mx-auto flex flex-col md:flex-row items-center justify-center">
7
7
  {#if data.video}
8
- <div class="w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
9
- <YT v={data.video} />
10
- </div>
8
+ <div class="w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
9
+ <YT v={data.video} />
10
+ </div>
11
11
  {:else if data.image}
12
- <a class="block w-full max-w-xl mb-4 md:mb-0" href={data.image}>
13
- <figure>
12
+ <div class="block w-full max-w-xl mb-4 md:mb-0">
13
+ <figure>
14
+ <a href={data.image}>
14
15
  <img class="aspect-video object-cover" src={data.image} alt={data.name}/>
15
- </figure>
16
- </a>
16
+ </a>
17
+ </figure>
18
+ </div>
17
19
  {/if}
18
- <div class="flex flex-col justify-center {data.position === 'right' ? 'md:order-last md:ml-8' : 'md:order-first md:mr-8'}">
20
+ <div class="w-full max-w-xl flex flex-col justify-center {data.position === 'right' ? 'md:order-last md:ml-8' : 'md:order-first md:mr-8'}">
19
21
  <div class="w-full max-w-3xl">
20
22
  <h2 class="text-lg font-bold pb-4">{data.name}</h2>
21
23
  <span class="prose">{@html data.text}</span>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="relative mx-auto w-full divide-y-2 divide-gray-200">
7
7
  <div>
8
- <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">
8
+ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
9
9
  {data.title}
10
10
  </h2>
11
11
  <div class="mt-3 sm:mt-4 lg:grid lg:grid-cols-2 lg:items-center lg:gap-5">
@@ -15,7 +15,7 @@
15
15
  {data.toptext}
16
16
  </h2>
17
17
  {/if}
18
- <p class="mt-1 text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl">
18
+ <p class="mt-1 text-4xl font-bold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl">
19
19
  {data.title}
20
20
  </p>
21
21
  {#if data.subtitle}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",