y200subcontrols 0.1.0 → 0.1.1

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.
@@ -47,14 +47,14 @@ async function pasteCode(event) {
47
47
  }
48
48
  </script>
49
49
 
50
- <div>
50
+ <div class="flex flex-col">
51
51
  <h3 class="text-slate-700 px-2 text-xl">
52
52
  <span>
53
53
  <slot name="title">Code Presenter</slot>
54
54
  </span>
55
55
  </h3>
56
56
 
57
- <div class="relative">
57
+ <div class="relative flex-grow flex-shrink-0 grid">
58
58
  <div class="absolute right-0 top-0 left-0 h-8 flex">
59
59
  <div class="ml-auto flex">
60
60
  <button type="button" class={buttonStyle} on:click={copyCode}>
@@ -2,6 +2,7 @@
2
2
  export let value = "";
3
3
  export let name = void 0;
4
4
  export let searchQuery = "";
5
+ export let placeholder = "Search...";
5
6
  const dispatch = createEventDispatcher();
6
7
  let list;
7
8
  let select;
@@ -44,6 +45,7 @@ onMount(() => {
44
45
  </script>
45
46
 
46
47
  <div class="w-full h-full py-2 flex flex-col">
48
+ <slot name="header" />
47
49
  <select
48
50
  bind:this={select}
49
51
  class="hidden"
@@ -66,7 +68,7 @@ onMount(() => {
66
68
  dark:bg-slate-900
67
69
  dark:border-slate-600 border-slate-300 focus:ring-teal-500/20 dark:focus:ring-teal-500/30
68
70
  "
69
- placeholder="Search"
71
+ placeholder={placeholder}
70
72
  bind:value={searchQuery}
71
73
  on:keydown={handleKeyDown}
72
74
  />
@@ -132,4 +134,5 @@ onMount(() => {
132
134
  </li>
133
135
  {/each}
134
136
  </ul>
137
+ <slot name="footer" />
135
138
  </div>
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  value?: string;
5
5
  name?: string | undefined;
6
6
  searchQuery?: string;
7
+ placeholder?: string;
7
8
  };
8
9
  events: {
9
10
  change: CustomEvent<any>;
@@ -11,7 +12,9 @@ declare const __propDef: {
11
12
  [evt: string]: CustomEvent<any>;
12
13
  };
13
14
  slots: {
15
+ header: {};
14
16
  default: {};
17
+ footer: {};
15
18
  };
16
19
  exports?: {} | undefined;
17
20
  bindings?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",