@lattice-ui/text-field 0.5.0-next.2 → 0.5.0-next.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.
@@ -8,7 +8,11 @@ local createFieldResponseRecipe = _motion.createFieldResponseRecipe
8
8
  local useResponseMotion = _motion.useResponseMotion
9
9
  local useTextFieldContext = TS.import(script, script.Parent, "context").useTextFieldContext
10
10
  local function toTextBox(instance)
11
- if not instance or not instance:IsA("TextBox") then
11
+ local _result = instance
12
+ if _result ~= nil then
13
+ _result = _result:IsA("TextBox")
14
+ end
15
+ if not _result then
12
16
  return nil
13
17
  end
14
18
  return instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lattice-ui/text-field",
3
- "version": "0.5.0-next.2",
3
+ "version": "0.5.0-next.4",
4
4
  "private": false,
5
5
  "main": "out/init.luau",
6
6
  "types": "out/index.d.ts",
@@ -16,8 +16,8 @@
16
16
  "url": "https://github.com/astra-void/lattice-ui.git"
17
17
  },
18
18
  "dependencies": {
19
- "@lattice-ui/core": "0.5.0-next.2",
20
- "@lattice-ui/motion": "0.5.0-next.2"
19
+ "@lattice-ui/motion": "0.5.0-next.4",
20
+ "@lattice-ui/core": "0.5.0-next.4"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@rbxts/react": "17.3.7-ts.1",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "scripts": {
31
31
  "build": "rbxtsc -p tsconfig.json",
32
- "lint": "eslint .",
33
- "lint:fix": "eslint . --fix",
32
+ "lint": "biome check src",
33
+ "lint:fix": "biome check src --write --unsafe",
34
34
  "typecheck": "tsc -p tsconfig.typecheck.json",
35
35
  "watch": "rbxtsc -p tsconfig.json -w"
36
36
  }
@@ -4,7 +4,7 @@ import { useTextFieldContext } from "./context";
4
4
  import type { TextFieldInputProps } from "./types";
5
5
 
6
6
  function toTextBox(instance: Instance | undefined) {
7
- if (!instance || !instance.IsA("TextBox")) {
7
+ if (!instance?.IsA("TextBox")) {
8
8
  return undefined;
9
9
  }
10
10