@rbxts/uiblox 0.1.20 → 0.1.22

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.
@@ -77,7 +77,7 @@ local function Preloader(props)
77
77
  local _assetId = assetId
78
78
  setCurrentAsset(contentNamesById[_assetId])
79
79
  setPercentage(function(prev)
80
- local newPercentage = math.round(math.clamp(prev + unit, 0, 100))
80
+ local newPercentage = math.clamp(prev + unit, 0, 100)
81
81
  if newPercentage == 100 then
82
82
  setLoaded(true)
83
83
  end
@@ -90,7 +90,7 @@ local function Preloader(props)
90
90
  if not showPercentage then
91
91
  return nil
92
92
  end
93
- return `{string.format(`%.{loaderPrecision}f`, percentage)}%`
93
+ return `{string.format(`%.{loaderPrecision}f`, math.round(percentage))}%`
94
94
  end, { showPercentage, loaderPrecision, percentage })
95
95
  local _result
96
96
  if loaded then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {
@@ -32,8 +32,8 @@
32
32
  "@rbxts/attributes": "^1.0.0",
33
33
  "@rbxts/compiler-types": "^3.0.0-types.0",
34
34
  "@rbxts/types": "^1.0.813",
35
- "@typescript-eslint/eslint-plugin": "^8.14.0",
36
- "@typescript-eslint/parser": "^8.14.0",
35
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
36
+ "@typescript-eslint/parser": "^8.15.0",
37
37
  "eslint": "^9.14.0",
38
38
  "eslint-config-prettier": "^9.1.0",
39
39
  "eslint-plugin-prettier": "^5.2.1",
@@ -65,4 +65,4 @@
65
65
  "url": "https://github.com/bjlarouche/uiblox-rbxts/issues"
66
66
  },
67
67
  "homepage": "https://github.com/bjlarouche/uiblox-rbxts#readme"
68
- }
68
+ }