@rbxts/uiblox 0.1.43 → 0.1.45
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/theme/constants/index.d.ts +1 -1
- package/out/theme/constants/init.luau +1 -1
- package/out/theme/context/index.d.ts +1 -1
- package/out/theme/context/init.luau +1 -1
- package/out/theme/context/provider.d.ts +1 -1
- package/out/theme/context/provider.luau +1 -1
- package/out/theme/hooks/useTheme.d.ts +1 -1
- package/out/theme/hooks/useTheme.luau +7 -6
- package/out/theme/themes/DarkTheme.luau +9 -8
- package/out/theme/themes/LightTheme.luau +9 -8
- package/package.json +1 -1
- /package/out/theme/constants/{ThemeConstants.d.ts → ColorConstants.d.ts} +0 -0
- /package/out/theme/constants/{ThemeConstants.luau → ColorConstants.luau} +0 -0
|
@@ -7,7 +7,7 @@ end
|
|
|
7
7
|
for _k, _v in TS.import(script, script, "StateConstants") or {} do
|
|
8
8
|
exports[_k] = _v
|
|
9
9
|
end
|
|
10
|
-
for _k, _v in TS.import(script, script, "
|
|
10
|
+
for _k, _v in TS.import(script, script, "ColorConstants") or {} do
|
|
11
11
|
exports[_k] = _v
|
|
12
12
|
end
|
|
13
13
|
return exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local exports = {}
|
|
4
|
-
exports.
|
|
4
|
+
exports.ThemeProvider = TS.import(script, script, "provider").default
|
|
5
5
|
for _k, _v in TS.import(script, script, "provider") or {} do
|
|
6
6
|
exports[_k] = _v
|
|
7
7
|
end
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local
|
|
3
|
+
local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local useContext = _react.useContext
|
|
5
|
+
local useMemo = _react.useMemo
|
|
4
6
|
local ThemeContext = TS.import(script, script.Parent.Parent, "context").ThemeContext
|
|
5
|
-
local function
|
|
7
|
+
local useTheme = function()
|
|
6
8
|
local context = useContext(ThemeContext)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
end
|
|
10
|
-
return context
|
|
9
|
+
return useMemo(function()
|
|
10
|
+
return context
|
|
11
|
+
end, { context })
|
|
11
12
|
end
|
|
12
13
|
local default = useTheme
|
|
13
14
|
return {
|
|
@@ -14,14 +14,15 @@ local Purple = _colors.Purple
|
|
|
14
14
|
local Magenta = _colors.Magenta
|
|
15
15
|
local Orange = _colors.Orange
|
|
16
16
|
local Turquoise = _colors.Turquoise
|
|
17
|
-
local
|
|
18
|
-
local BORDER_RADIUS =
|
|
19
|
-
local
|
|
20
|
-
local
|
|
21
|
-
local
|
|
22
|
-
local
|
|
23
|
-
local
|
|
24
|
-
local
|
|
17
|
+
local _NumberConstants = TS.import(script, script.Parent.Parent, "constants", "NumberConstants")
|
|
18
|
+
local BORDER_RADIUS = _NumberConstants.BORDER_RADIUS
|
|
19
|
+
local CONTENT_WIDTH = _NumberConstants.CONTENT_WIDTH
|
|
20
|
+
local ICON_SIZES = _NumberConstants.ICON_SIZES
|
|
21
|
+
local PADDING_BASE = _NumberConstants.PADDING_BASE
|
|
22
|
+
local SPACING_BASE = _NumberConstants.SPACING_BASE
|
|
23
|
+
local _ColorConstants = TS.import(script, script.Parent.Parent, "constants", "ColorConstants")
|
|
24
|
+
local DARK_THEME_COLORS = _ColorConstants.DARK_THEME_COLORS
|
|
25
|
+
local DEFAULT_BORDERS = _ColorConstants.DEFAULT_BORDERS
|
|
25
26
|
local allFontFamilies = TS.import(script, script.Parent.Parent, "interfaces", "typography", "FontFamilies").allFontFamilies
|
|
26
27
|
local DarkTheme = {
|
|
27
28
|
type = "Dark",
|
|
@@ -14,14 +14,15 @@ local Purple = _colors.Purple
|
|
|
14
14
|
local Magenta = _colors.Magenta
|
|
15
15
|
local Orange = _colors.Orange
|
|
16
16
|
local Turquoise = _colors.Turquoise
|
|
17
|
-
local
|
|
18
|
-
local BORDER_RADIUS =
|
|
19
|
-
local
|
|
20
|
-
local
|
|
21
|
-
local
|
|
22
|
-
local
|
|
23
|
-
local
|
|
24
|
-
local LIGHT_THEME_COLORS =
|
|
17
|
+
local _NumberConstants = TS.import(script, script.Parent.Parent, "constants", "NumberConstants")
|
|
18
|
+
local BORDER_RADIUS = _NumberConstants.BORDER_RADIUS
|
|
19
|
+
local CONTENT_WIDTH = _NumberConstants.CONTENT_WIDTH
|
|
20
|
+
local ICON_SIZES = _NumberConstants.ICON_SIZES
|
|
21
|
+
local PADDING_BASE = _NumberConstants.PADDING_BASE
|
|
22
|
+
local SPACING_BASE = _NumberConstants.SPACING_BASE
|
|
23
|
+
local _ColorConstants = TS.import(script, script.Parent.Parent, "constants", "ColorConstants")
|
|
24
|
+
local LIGHT_THEME_COLORS = _ColorConstants.LIGHT_THEME_COLORS
|
|
25
|
+
local DEFAULT_BORDERS = _ColorConstants.DEFAULT_BORDERS
|
|
25
26
|
local allFontFamilies = TS.import(script, script.Parent.Parent, "interfaces", "typography", "FontFamilies").allFontFamilies
|
|
26
27
|
local LightTheme = {
|
|
27
28
|
type = "Light",
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|