@nrbx/topbar-components 1.1.2 → 1.1.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.
package/out/components/icon.luau
CHANGED
|
@@ -34,7 +34,7 @@ local Notification = TS.import(script, script.Parent, "notification").Notificati
|
|
|
34
34
|
* both states, or `{ deselected: T; selected: T }` to animate between them.
|
|
35
35
|
|
|
36
36
|
]]
|
|
37
|
-
local ANIMATEABLE = { "backgroundTransparency", "imageTransparency" }
|
|
37
|
+
local ANIMATEABLE = { "backgroundColor", "backgroundTransparency", "imageColor", "imageTransparency" }
|
|
38
38
|
--* Icon select/deselect state.
|
|
39
39
|
--[[
|
|
40
40
|
*
|
|
@@ -21,11 +21,11 @@ local function useAnimateableProps(state, props, ...)
|
|
|
21
21
|
for i = 0, #keys - 1 do
|
|
22
22
|
local key = keys[i + 1]
|
|
23
23
|
local value = stateful(props[key], state)
|
|
24
|
-
local previousValue = stateful(previousProps, state)
|
|
24
|
+
local previousValue = if previousProps then stateful(previousProps[key], state) else nil
|
|
25
25
|
if value == previousValue then
|
|
26
26
|
continue
|
|
27
27
|
end
|
|
28
|
-
motionControls[i + 1]
|
|
28
|
+
motionControls[i + 1]:spring(value, springs.responsive)
|
|
29
29
|
end
|
|
30
30
|
end, { props })
|
|
31
31
|
-- ▼ ReadonlyArray.map ▼
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local config = TS.import(script, TS.getModule(script, "@rbxts", "ripple").src).config
|
|
4
|
-
local _object = table.clone(config)
|
|
4
|
+
local _object = table.clone(config.spring)
|
|
5
5
|
setmetatable(_object, nil)
|
|
6
6
|
_object.bubbly = {
|
|
7
7
|
tension = 400,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrbx/topbar-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"main": "out/init.luau",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rbxtsc",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@rbxts/object-utils": "^1.0.4",
|
|
44
44
|
"@rbxts/pretty-react-hooks": "^0.6.4",
|
|
45
|
-
"@rbxts/ripple": "^0.
|
|
45
|
+
"@rbxts/ripple": "^0.9.1",
|
|
46
46
|
"@rbxts/services": "^1.6.0",
|
|
47
47
|
"@rbxts/t": "^3.2.1"
|
|
48
48
|
},
|