@nrbx/topbar-components 1.0.8 → 1.0.9

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.
@@ -27,6 +27,7 @@ local ANIMATEABLE = { "backgroundColor", "backgroundTransparency", "imageColor",
27
27
  local function Icon(componentProps)
28
28
  local _binding = componentProps
29
29
  local children = _binding.children
30
+ local style = componentProps.style
30
31
  local inset = useGuiInset()
31
32
  local location = useLocation()
32
33
  local id = useId()
@@ -40,15 +41,16 @@ local function Icon(componentProps)
40
41
  assert(_arg0, "Icons cannot be nested")
41
42
  local _object = table.clone(stylesheet.icon)
42
43
  setmetatable(_object, nil)
43
- for _k, _v in componentProps do
44
+ for _k, _v in (style or {}) do
44
45
  _object[_k] = _v
45
46
  end
46
- local animatedProps = useAnimateableProps(currentState, _object, unpack(ANIMATEABLE))
47
- local _object_1 = table.clone(stylesheet.icon)
48
- setmetatable(_object_1, nil)
49
47
  for _k, _v in componentProps do
50
- _object_1[_k] = _v
48
+ _object[_k] = _v
51
49
  end
50
+ local merged = _object
51
+ local animatedProps = useAnimateableProps(currentState, merged, unpack(ANIMATEABLE))
52
+ local _object_1 = table.clone(merged)
53
+ setmetatable(_object_1, nil)
52
54
  for _k, _v in animatedProps do
53
55
  _object_1[_k] = _v
54
56
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrbx/topbar-components",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "out/init.lua",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",