@likable-hair/svelte 0.0.49 → 0.0.50

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,7 +1,7 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script >import { onMount } from 'svelte';
4
- export let tabs = [], selected = undefined, mandatory = true, width = undefined, color = "rgb(51 65 85)", bookmarkColor = undefined;
4
+ export let tabs = [], selected = undefined, mandatory = true, width = undefined, color = "rgb(51 65 85)", bookmarkColor = undefined, margin = "12px";
5
5
  let tabButtons = {};
6
6
  onMount(() => {
7
7
  if (mandatory && !selected && tabs.length > 0)
@@ -35,8 +35,8 @@ function setBookmarkPosition() {
35
35
  style:white-spaces="nowrap"
36
36
  style:-webkit-tap-highlight-color="rgba(0,0,0,0)"
37
37
  style:cursor="pointer"
38
- style:margin-left="12px"
39
- style:margin-right="12px"
38
+ style:margin-left={margin}
39
+ style:margin-right={margin}
40
40
  style:padding="8px"
41
41
  style:--tab-switcher-color={color}
42
42
  class:selected-tab={tab.name == selected}
@@ -53,6 +53,7 @@ function setBookmarkPosition() {
53
53
  class="bookmark"
54
54
  ></span>
55
55
  <span
56
+ style:--tab-switcher-bookmark-color={bookmarkColor || color}
56
57
  style:width={width}
57
58
  class="horizontal-guide"
58
59
  ></span>
@@ -12,6 +12,7 @@ declare const __propDef: {
12
12
  width?: string;
13
13
  color?: string;
14
14
  bookmarkColor?: string;
15
+ margin?: string;
15
16
  };
16
17
  events: {
17
18
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",