rimelight-components 2.0.29 → 2.0.31

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.0.29";
7
+ const version = "2.0.31";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -3,13 +3,13 @@ import { tv } from "tailwind-variants";
3
3
  const header = tv({
4
4
  slots: {
5
5
  root: "sticky top-0 z-50 h-(--ui-header-height)",
6
- container: "h-full flex flex-row items-center justify-between p-sm",
7
- left: "hidden lg:flex",
8
- center: "hidden lg:flex",
9
- right: "hidden lg:flex",
10
- collapsedLeft: "lg:hidden",
11
- collapsedCenter: "lg:hidden",
12
- collapsedRight: "lg:hidden"
6
+ container: "h-full flex flex-row items-center p-sm",
7
+ left: "hidden lg:flex flex-1 justify-start",
8
+ center: "hidden lg:flex flex-none",
9
+ right: "hidden lg:flex flex-1 justify-end",
10
+ collapsedLeft: "lg:hidden flex-1 justify-start",
11
+ collapsedCenter: "lg:hidden flex-none",
12
+ collapsedRight: "lg:hidden flex-1 justify-end"
13
13
  }
14
14
  });
15
15
  const {
@@ -7,7 +7,7 @@ export interface TOCItem {
7
7
  children?: TOCItem[];
8
8
  }
9
9
  type __VLS_Props = {
10
- pageBlocks: Block[];
10
+ pageBlocks: Block[] | null;
11
11
  title?: string;
12
12
  levels?: HeadingLevel[];
13
13
  };
@@ -8,7 +8,7 @@ const {
8
8
  title = "table_of_contents",
9
9
  levels = [2, 3, 4]
10
10
  } = defineProps({
11
- pageBlocks: { type: Array, required: true },
11
+ pageBlocks: { type: [Array, null], required: true },
12
12
  title: { type: String, required: false },
13
13
  levels: { type: Array, required: false }
14
14
  });
@@ -54,9 +54,8 @@ const tocItems = computed(() => {
54
54
  </script>
55
55
 
56
56
  <template>
57
- <div class="z-10 flex flex-col gap-md">
58
57
  <nav
59
- class="sticky top-(--ui-header-height) z-50 flex flex-col gap-md pt-lg"
58
+ class="flex flex-col gap-md pt-lg"
60
59
  aria-label="Table of Contents"
61
60
  >
62
61
  <h5 class="text-highlighted">
@@ -92,5 +91,4 @@ const tocItems = computed(() => {
92
91
 
93
92
  <slot name="bottom" />
94
93
  </nav>
95
- </div>
96
94
  </template>
@@ -7,7 +7,7 @@ export interface TOCItem {
7
7
  children?: TOCItem[];
8
8
  }
9
9
  type __VLS_Props = {
10
- pageBlocks: Block[];
10
+ pageBlocks: Block[] | null;
11
11
  title?: string;
12
12
  levels?: HeadingLevel[];
13
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "A component library by Rimelight Entertainment.",
4
- "version": "2.0.29",
4
+ "version": "2.0.31",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",