@skeletonlabs/skeleton 2.0.0-rc.1 → 2.0.0-rc.2

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,8 +1,7 @@
1
1
  <script>export let files = void 0;
2
2
  export let name;
3
3
  export let width = "";
4
- export let button = "variant-filled";
5
- const cButton = "btn";
4
+ export let button = "btn variant-filled";
6
5
  let elemFileInput;
7
6
  function onButtonClick() {
8
7
  elemFileInput.click();
@@ -14,7 +13,7 @@ function prunedRestProps() {
14
13
  $:
15
14
  classesBase = `${$$props.class ?? ""}`;
16
15
  $:
17
- classesButton = `${cButton} ${button} ${width}`;
16
+ classesButton = `${button} ${width}`;
18
17
  </script>
19
18
 
20
19
  <div class="file-button {classesBase}" data-testid="file-button">
@@ -31,7 +31,7 @@ export function tocCrawler(node, args) {
31
31
  .replaceAll(/[^a-zA-Z0-9 ]/g, '')
32
32
  .replaceAll(' ', '-')
33
33
  .toLowerCase();
34
- elemHeading.id = newHeadingId || '';
34
+ elemHeading.id = `toc-${newHeadingId}`;
35
35
  }
36
36
  // Push heading data to the permalink array
37
37
  permalinks.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {