@likable-hair/svelte 0.0.19 → 0.0.22

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.
@@ -18,7 +18,7 @@ import Icon from '../media/Icon.svelte';
18
18
  style:padding={padding}
19
19
  style:font-size={fontSize}
20
20
  style:color={color}
21
- style:button-border-radius={!!borderRadius ? borderRadius : defaultBorderRadius}
21
+ style:--button-border-radius={!!borderRadius ? borderRadius : defaultBorderRadius}
22
22
  style:--button-background-color={backgroundColor}
23
23
  style:--button-hover-background-color={hoverBackgroundColor}
24
24
  style:--button-box-shadow={boxShadow}
@@ -1,5 +1,5 @@
1
1
  <script >import Navigator from './Navigator.svelte';
2
- export let open = false, position = 'left', space = '200px', openingSpeed = '0.3s', overlaySpeed = '0.2s', blockScroll = true, overlay = true, backgroundColor = undefined, overlayColor = '#282828', overlayOpacity = '30%', zIndex = 30, items = [];
2
+ export let open = false, position = 'left', space = '200px', openingSpeed = '0.3s', overlaySpeed = '0.2s', blockScroll = true, color = undefined, overlay = true, backgroundColor = undefined, overlayColor = '#282828', overlayOpacity = '30%', zIndex = 30, items = [];
3
3
  let height = undefined, width = undefined, top = undefined, bottom = undefined, left = undefined, right = undefined;
4
4
  function handleClickOverlay() {
5
5
  open = false;
@@ -69,6 +69,7 @@ else if (position == 'bottom') {
69
69
  style:right={right}
70
70
  style:background-color={backgroundColor}
71
71
  style:z-index={zIndex}
72
+ style:color={color}
72
73
  class:animate-left={position == 'left'}
73
74
  class:animate-right={position == 'right'}
74
75
  class:animate-bottom={position == 'bottom'}
@@ -8,6 +8,7 @@ declare const __propDef: {
8
8
  openingSpeed?: string;
9
9
  overlaySpeed?: string;
10
10
  blockScroll?: boolean;
11
+ color?: string;
11
12
  overlay?: boolean;
12
13
  backgroundColor?: string;
13
14
  overlayColor?: string;
@@ -1,4 +1,4 @@
1
- <script >export let title = "", items = [], hideOnScroll = true, initialRemoveShadow = false, initialBackgroundColor = undefined, backgroundColor = 'white', color = undefined, mobileMenu = true;
1
+ <script >export let title = "", items = [], hideOnScroll = true, initialRemoveShadow = false, initialBackgroundColor = undefined, backgroundColor = 'white', color = undefined, mobileMenu = true, zIndex = 25;
2
2
  let scrollY, lastScrollY, visible = true;
3
3
  function handleScroll() {
4
4
  if (hideOnScroll) {
@@ -34,6 +34,7 @@ import Drawer from './Drawer.svelte';
34
34
  <Drawer
35
35
  bind:open={openDrawer}
36
36
  backgroundColor={backgroundColor}
37
+ color={color}
37
38
  items={items}
38
39
  on:item-click
39
40
  ></Drawer>
@@ -46,6 +47,7 @@ import Drawer from './Drawer.svelte';
46
47
  style:flex-wrap="wrap"
47
48
  style:align-items="center"
48
49
  style:height="56px"
50
+ style:z-index={zIndex}
49
51
  class="transition-all header-menu-container"
50
52
  class:-top-14={!visible}
51
53
  class:top-0={visible}
@@ -10,6 +10,7 @@ declare const __propDef: {
10
10
  backgroundColor?: string;
11
11
  color?: string;
12
12
  mobileMenu?: boolean;
13
+ zIndex?: number;
13
14
  openDrawer?: boolean;
14
15
  };
15
16
  events: {
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.19",
4
+ "version": "0.0.22",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",