@lattice-ui/radio-group 0.5.0-next.2 → 0.5.0-next.3

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.
@@ -57,7 +57,11 @@ local function RadioGroupItem(props)
57
57
  },
58
58
  }, props.transition or createSelectionResponseRecipe())
59
59
  local setItemRef = React.useCallback(function(instance)
60
- local nextItem = if not instance or not instance:IsA("GuiObject") then nil else instance
60
+ local _result = instance
61
+ if _result ~= nil then
62
+ _result = _result:IsA("GuiObject")
63
+ end
64
+ local nextItem = if not _result then nil else instance
61
65
  itemRef.current = nextItem
62
66
  motionRef.current = nextItem
63
67
  end, { motionRef })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lattice-ui/radio-group",
3
- "version": "0.5.0-next.2",
3
+ "version": "0.5.0-next.3",
4
4
  "private": false,
5
5
  "main": "out/init.luau",
6
6
  "types": "out/index.d.ts",
@@ -16,10 +16,10 @@
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/layer": "0.5.0-next.2",
21
- "@lattice-ui/focus": "0.5.0-next.2",
22
- "@lattice-ui/motion": "0.5.0-next.2"
19
+ "@lattice-ui/core": "0.5.0-next.3",
20
+ "@lattice-ui/focus": "0.5.0-next.3",
21
+ "@lattice-ui/layer": "0.5.0-next.3",
22
+ "@lattice-ui/motion": "0.5.0-next.3"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@rbxts/react": "17.3.7-ts.1",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rbxtsc -p tsconfig.json",
34
- "lint": "eslint .",
35
- "lint:fix": "eslint . --fix",
34
+ "lint": "biome check src",
35
+ "lint:fix": "biome check src --write --unsafe",
36
36
  "typecheck": "tsc -p tsconfig.typecheck.json",
37
37
  "watch": "rbxtsc -p tsconfig.json -w"
38
38
  }
@@ -56,7 +56,7 @@ export function RadioGroupItem(props: RadioGroupItemProps) {
56
56
 
57
57
  const setItemRef = React.useCallback(
58
58
  (instance: Instance | undefined) => {
59
- const nextItem = !instance || !instance.IsA("GuiObject") ? undefined : instance;
59
+ const nextItem = !instance?.IsA("GuiObject") ? undefined : instance;
60
60
  itemRef.current = nextItem;
61
61
  motionRef.current = nextItem;
62
62
  },