@likable-hair/svelte 3.0.2 → 3.0.4

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.
@@ -34,12 +34,12 @@ export let input = void 0, value = void 0;
34
34
  placeholder="Find something..."
35
35
  maxlength="512"
36
36
  tabindex="0"
37
- class="input {clazz.input}"
38
37
  bind:this={input}
39
38
  bind:value={value}
40
39
  on:input
41
40
  on:change
42
41
  on:keydown
42
+ class="input {clazz.input}"
43
43
  />
44
44
  </slot>
45
45
  </div>
@@ -22,12 +22,12 @@ function handleOverlayClick() {
22
22
  class={clazz.container || ''}
23
23
  >
24
24
  <header
25
- class="side-bar {clazz.header}"
26
25
  class:opened={drawerOpened}
26
+ class="side-bar {clazz.header}"
27
27
  >
28
28
  <div
29
- class="header-toolbar"
30
29
  class:opened-drawer={drawerOpened}
30
+ class="header-toolbar"
31
31
  >
32
32
  <slot name="menu">
33
33
  <div class="inner-menu">
@@ -54,10 +54,10 @@ function handleOverlayClick() {
54
54
  </header>
55
55
  <div class="main-section {clazz.mainSection || ''}">
56
56
  <div
57
- class="overlay {clazz.overlay || ''}"
58
57
  on:click={handleOverlayClick}
59
58
  on:keypress={handleOverlayClick}
60
59
  class:visible={drawerOpened}
60
+ class="overlay {clazz.overlay || ''}"
61
61
  ></div>
62
62
  <div
63
63
  class="content"
@@ -28,13 +28,13 @@ import CircularLoader from "../loaders/CircularLoader.svelte";
28
28
  <button
29
29
  type={type}
30
30
  style:position
31
- class="button no-select {clazz || ''}"
32
31
  class:button-default={buttonType === "default"}
33
32
  class:button-text={buttonType === "text"}
34
33
  class:button-icon={buttonType === "icon"}
35
34
  on:click={handleClick}
36
35
  on:keypress={handleKeyPress}
37
36
  tabindex={tabindex}
37
+ class="button no-select {clazz || ''}"
38
38
  >
39
39
  {#if loading}
40
40
  <div
@@ -15,7 +15,7 @@ export let value = void 0, type = "text", placeholder = void 0, disabled = false
15
15
  <Icon name={prependIcon} --icon-size={iconSize}></Icon>
16
16
  {/if}
17
17
  </slot>
18
- <div class="textfield">
18
+ <div class="textfield {clazz.field || ''}">
19
19
  <slot name="prepend-inner" {prependInnerIcon} {iconSize}>
20
20
  {#if !!prependInnerIcon}
21
21
  <Icon name={prependInnerIcon} --icon-size={iconSize}></Icon>
@@ -176,6 +176,7 @@ export let value = void 0, type = "text", placeholder = void 0, disabled = false
176
176
  var(--simple-textfield-default-inner-gap)
177
177
  );
178
178
  display: flex;
179
+ flex-grow: 1;
179
180
  }
180
181
 
181
182
  .textfield:focus-within {
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  class?: {
7
7
  container?: string | undefined;
8
8
  row?: string | undefined;
9
+ field?: string | undefined;
9
10
  hint?: string | undefined;
10
11
  input?: string | undefined;
11
12
  } | undefined;
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": "3.0.2",
4
+ "version": "3.0.4",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",