@intechstudio/grid-uikit 0.0.6 → 0.0.8

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,13 @@
1
1
  <script>export let disabled = false;
2
2
  export let target;
3
+ export function focus() {
4
+ input.focus();
5
+ }
6
+ let input;
3
7
  </script>
4
8
 
5
9
  <input
10
+ bind:this={input}
6
11
  {disabled}
7
12
  class="w-full flex px-2 py-2 text-white text-opacity-80 flex-grow bg-black bg-opacity-10 border border-black border-opacity-20 focus:border-green-500 focus:outline-none"
8
13
  bind:value={target}
@@ -3,6 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  disabled?: boolean | undefined;
5
5
  target: any;
6
+ focus?: (() => void) | undefined;
6
7
  };
7
8
  events: {
8
9
  [evt: string]: CustomEvent<any>;
@@ -13,5 +14,6 @@ export type MoltenInputProps = typeof __propDef.props;
13
14
  export type MoltenInputEvents = typeof __propDef.events;
14
15
  export type MoltenInputSlots = typeof __propDef.slots;
15
16
  export default class MoltenInput extends SvelteComponent<MoltenInputProps, MoltenInputEvents, MoltenInputSlots> {
17
+ get focus(): () => void;
16
18
  }
17
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intechstudio/grid-uikit",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",