@rbxts/uiblox 0.1.7 → 0.1.10
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/README.md +33 -37
- package/out/index.d.ts +2 -2
- package/out/{init.lua → init.luau} +1 -1
- package/out/theme/components/ThemeProvider.d.ts +3 -3
- package/out/theme/components/{ThemeProvider.lua → ThemeProvider.luau} +6 -22
- package/out/theme/components/ThemeStore.d.ts +1 -2
- package/out/theme/components/{ThemeStore.lua → ThemeStore.luau} +1 -1
- package/out/theme/components/ThemeWrapper.d.ts +3 -3
- package/out/theme/components/{ThemeWrapper.lua → ThemeWrapper.luau} +6 -21
- package/out/theme/components/{init.lua → init.luau} +1 -1
- package/out/theme/constants/NumberConstants.d.ts +1 -1
- package/out/theme/constants/{NumberConstants.lua → NumberConstants.luau} +1 -1
- package/out/theme/constants/ThemeConstants.d.ts +2 -2
- package/out/theme/constants/{ThemeConstants.lua → ThemeConstants.luau} +1 -1
- package/out/theme/constants/{init.lua → init.luau} +1 -1
- package/out/theme/index.d.ts +17 -17
- package/out/theme/{init.lua → init.luau} +1 -1
- package/out/theme/interfaces/iconSizes/IconSizes.luau +2 -0
- package/out/theme/interfaces/iconSizes/init.luau +2 -0
- package/out/theme/interfaces/index.d.ts +13 -13
- package/out/theme/interfaces/{init.lua → init.luau} +1 -1
- package/out/theme/interfaces/palette/Palette.d.ts +0 -1
- package/out/theme/interfaces/palette/Palette.luau +2 -0
- package/out/theme/interfaces/palette/colorTokens/ColorTokens.d.ts +1 -2
- package/out/theme/interfaces/palette/colorTokens/ColorTokens.luau +2 -0
- package/out/theme/interfaces/palette/colorTokens/init.luau +2 -0
- package/out/theme/interfaces/palette/colors/{Blue.lua → Blue.luau} +1 -1
- package/out/theme/interfaces/palette/colors/Colors.d.ts +0 -1
- package/out/theme/interfaces/palette/colors/Colors.luau +2 -0
- package/out/theme/interfaces/palette/colors/Common.d.ts +0 -1
- package/out/theme/interfaces/palette/colors/{Common.lua → Common.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Dark.lua → Dark.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Gray.lua → Gray.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Green.lua → Green.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Light.lua → Light.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Magenta.lua → Magenta.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Orange.lua → Orange.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Purple.lua → Purple.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Red.lua → Red.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Turquoise.lua → Turquoise.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{Yellow.lua → Yellow.luau} +1 -1
- package/out/theme/interfaces/palette/colors/{init.lua → init.luau} +1 -1
- package/out/theme/interfaces/palette/index.d.ts +2 -2
- package/out/theme/interfaces/palette/{init.lua → init.luau} +1 -1
- package/out/theme/interfaces/spacing/Borders.luau +2 -0
- package/out/theme/interfaces/spacing/Padding.luau +2 -0
- package/out/theme/interfaces/spacing/Shape.luau +2 -0
- package/out/theme/interfaces/spacing/Spacing.luau +2 -0
- package/out/theme/interfaces/spacing/init.luau +2 -0
- package/out/theme/interfaces/theme/Theme.d.ts +3 -3
- package/out/theme/interfaces/theme/Theme.luau +2 -0
- package/out/theme/interfaces/theme/ThemeConstants.d.ts +4 -4
- package/out/theme/interfaces/theme/ThemeConstants.luau +2 -0
- package/out/theme/interfaces/theme/ThemeOptions.luau +2 -0
- package/out/theme/interfaces/theme/init.luau +2 -0
- package/out/theme/interfaces/tokens/Tokens.luau +2 -0
- package/out/theme/interfaces/tokens/init.luau +2 -0
- package/out/theme/interfaces/typography/{FontFamilies.lua → FontFamilies.luau} +1 -1
- package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +0 -2
- package/out/theme/interfaces/typography/FontFamilyOptions.luau +2 -0
- package/out/theme/interfaces/typography/FontSizeOptions.d.ts +0 -1
- package/out/theme/interfaces/typography/FontSizeOptions.luau +2 -0
- package/out/theme/interfaces/typography/{FontSizes.lua → FontSizes.luau} +1 -1
- package/out/theme/interfaces/typography/ThemeTypography.luau +2 -0
- package/out/theme/interfaces/typography/{Variants.lua → Variants.luau} +1 -1
- package/out/theme/interfaces/typography/{init.lua → init.luau} +1 -1
- package/out/theme/styles/index.d.ts +5 -5
- package/out/theme/styles/{init.lua → init.luau} +1 -1
- package/out/theme/styles/types/WriteableStyle.d.ts +0 -2
- package/out/theme/styles/types/WriteableStyle.luau +2 -0
- package/out/theme/styles/types/init.luau +2 -0
- package/out/theme/styles/types/styles.d.ts +0 -2
- package/out/theme/styles/types/styles.luau +2 -0
- package/out/theme/styles/utilities/classNames.d.ts +2 -3
- package/out/theme/styles/utilities/classNames.luau +33 -0
- package/out/theme/styles/utilities/{createStyles.lua → createStyles.luau} +1 -1
- package/out/theme/styles/utilities/{init.lua → init.luau} +1 -1
- package/out/theme/styles/utilities/makeStyles.d.ts +1 -1
- package/out/theme/styles/utilities/{makeStyles.lua → makeStyles.luau} +1 -1
- package/out/theme/themes/DarkTheme.d.ts +1 -1
- package/out/theme/themes/{DarkTheme.lua → DarkTheme.luau} +1 -1
- package/out/theme/themes/LightTheme.d.ts +1 -1
- package/out/theme/themes/{LightTheme.lua → LightTheme.luau} +1 -1
- package/out/theme/themes/{init.lua → init.luau} +1 -1
- package/out/theme/types/init.luau +2 -0
- package/out/theme/types/types.d.ts +5 -8
- package/out/theme/types/{types.lua → types.luau} +1 -1
- package/out/theme/utilites/{Color3FromHex.lua → Color3FromHex.luau} +2 -2
- package/out/theme/utilites/{init.lua → init.luau} +1 -1
- package/out/ui/constants/{ImageConstants.lua → ImageConstants.luau} +1 -1
- package/out/ui/constants/{LayoutConstants.lua → LayoutConstants.luau} +1 -1
- package/out/ui/constants/{init.lua → init.luau} +1 -1
- package/out/ui/enums/Directions.luau +12 -0
- package/out/ui/enums/Icons.luau +44 -0
- package/out/ui/enums/Orientations.luau +8 -0
- package/out/ui/enums/{init.lua → init.luau} +1 -1
- package/out/ui/index.d.ts +34 -34
- package/out/ui/{init.lua → init.luau} +1 -1
- package/out/ui/packages/button/components/Button.d.ts +3 -5
- package/out/ui/packages/button/components/{Button.lua → Button.luau} +63 -88
- package/out/ui/packages/button/components/Button.styles.d.ts +1 -1
- package/out/ui/packages/button/components/{Button.styles.lua → Button.styles.luau} +1 -1
- package/out/ui/packages/button/index.d.ts +3 -3
- package/out/ui/packages/button/{init.lua → init.luau} +1 -1
- package/out/ui/packages/button/types/ButtonColor.luau +2 -0
- package/out/ui/packages/button/types/ButtonSize.luau +2 -0
- package/out/ui/packages/button/types/ButtonVariant.luau +2 -0
- package/out/ui/packages/button/types/init.luau +2 -0
- package/out/ui/packages/divider/components/Divider.d.ts +2 -6
- package/out/ui/packages/divider/components/{Divider.lua → Divider.luau} +6 -10
- package/out/ui/packages/divider/components/Divider.styles.d.ts +1 -1
- package/out/ui/packages/divider/components/{Divider.styles.lua → Divider.styles.luau} +1 -1
- package/out/ui/packages/divider/{init.lua → init.luau} +1 -1
- package/out/ui/packages/icon/components/Icon.d.ts +2 -5
- package/out/ui/packages/icon/components/{Icon.lua → Icon.luau} +5 -9
- package/out/ui/packages/icon/components/Icon.styles.d.ts +1 -1
- package/out/ui/packages/icon/components/{Icon.styles.lua → Icon.styles.luau} +1 -1
- package/out/ui/packages/icon/{init.lua → init.luau} +1 -1
- package/out/ui/packages/iconButton/components/IconButton.d.ts +2 -5
- package/out/ui/packages/iconButton/components/{IconButton.lua → IconButton.luau} +18 -20
- package/out/ui/packages/iconButton/components/IconButton.styles.d.ts +1 -1
- package/out/ui/packages/iconButton/components/{IconButton.styles.lua → IconButton.styles.luau} +1 -1
- package/out/ui/packages/iconButton/{init.lua → init.luau} +1 -1
- package/out/ui/packages/index.d.ts +11 -11
- package/out/ui/packages/{init.lua → init.luau} +1 -1
- package/out/ui/packages/input/components/Input.d.ts +2 -6
- package/out/ui/packages/input/components/{Input.lua → Input.luau} +38 -69
- package/out/ui/packages/input/components/Input.styles.d.ts +1 -1
- package/out/ui/packages/input/components/{Input.styles.lua → Input.styles.luau} +1 -1
- package/out/ui/packages/input/index.d.ts +3 -3
- package/out/ui/packages/input/{init.lua → init.luau} +1 -1
- package/out/ui/packages/input/types/InputColor.luau +2 -0
- package/out/ui/packages/input/types/InputMargin.luau +2 -0
- package/out/ui/packages/input/types/InputVariant.luau +2 -0
- package/out/ui/packages/input/types/init.luau +2 -0
- package/out/ui/packages/progressBar/components/ProgressBar.d.ts +1 -3
- package/out/ui/packages/progressBar/components/ProgressBar.luau +46 -0
- package/out/ui/packages/progressBar/components/ProgressBar.styles.d.ts +1 -1
- package/out/ui/packages/progressBar/components/{ProgressBar.styles.lua → ProgressBar.styles.luau} +1 -1
- package/out/ui/packages/progressBar/{init.lua → init.luau} +1 -1
- package/out/ui/packages/shadow/components/Shadow.d.ts +0 -1
- package/out/ui/packages/shadow/components/{Shadow.lua → Shadow.luau} +14 -24
- package/out/ui/packages/shadow/components/Shadow.styles.d.ts +1 -1
- package/out/ui/packages/shadow/components/{Shadow.styles.lua → Shadow.styles.luau} +1 -1
- package/out/ui/packages/shadow/{init.lua → init.luau} +1 -1
- package/out/ui/packages/sidebar/components/Sidebar.d.ts +1 -3
- package/out/ui/packages/sidebar/components/Sidebar.luau +26 -0
- package/out/ui/packages/sidebar/components/Sidebar.styles.d.ts +1 -1
- package/out/ui/packages/sidebar/components/{Sidebar.styles.lua → Sidebar.styles.luau} +1 -1
- package/out/ui/packages/sidebar/index.d.ts +1 -1
- package/out/ui/packages/sidebar/{init.lua → init.luau} +1 -1
- package/out/ui/packages/sidebar/types/SidebarType.luau +2 -0
- package/out/ui/packages/sidebar/types/init.luau +2 -0
- package/out/ui/packages/toast/components/Toast.d.ts +0 -1
- package/out/ui/packages/toast/components/{Toast.lua → Toast.luau} +21 -29
- package/out/ui/packages/toast/components/Toast.styles.d.ts +1 -1
- package/out/ui/packages/toast/components/{Toast.styles.lua → Toast.styles.luau} +1 -1
- package/out/ui/packages/toast/enums/ToastVariants.luau +11 -0
- package/out/ui/packages/toast/{init.lua → init.luau} +1 -1
- package/out/ui/packages/toast/interfaces/ToastEvent.luau +2 -0
- package/out/ui/packages/treeView/components/TreeView.d.ts +2 -4
- package/out/ui/packages/treeView/components/{TreeView.lua → TreeView.luau} +116 -149
- package/out/ui/packages/treeView/components/TreeView.styles.d.ts +1 -1
- package/out/ui/packages/treeView/components/{TreeView.styles.lua → TreeView.styles.luau} +1 -1
- package/out/ui/packages/treeView/{init.lua → init.luau} +1 -1
- package/out/ui/packages/treeView/interfaces/Branch.luau +2 -0
- package/out/ui/packages/treeView/interfaces/Leaf.luau +2 -0
- package/out/ui/packages/treeView/interfaces/Tree.luau +2 -0
- package/out/ui/packages/typography/components/Typography.d.ts +2 -4
- package/out/ui/packages/typography/components/{Typography.lua → Typography.luau} +7 -22
- package/out/ui/packages/typography/components/Typography.styles.d.ts +1 -1
- package/out/ui/packages/typography/components/{Typography.styles.lua → Typography.styles.luau} +1 -1
- package/out/ui/packages/typography/index.d.ts +3 -3
- package/out/ui/packages/typography/{init.lua → init.luau} +1 -1
- package/out/ui/packages/typography/types/TypographyAlignment.luau +2 -0
- package/out/ui/packages/typography/types/TypographyColor.luau +2 -0
- package/out/ui/packages/typography/types/TypographyDisplay.luau +2 -0
- package/out/ui/packages/typography/types/init.luau +2 -0
- package/package.json +16 -19
- package/out/theme/interfaces/iconSizes/IconSizes.lua +0 -2
- package/out/theme/interfaces/iconSizes/init.lua +0 -2
- package/out/theme/interfaces/palette/Palette.lua +0 -2
- package/out/theme/interfaces/palette/colorTokens/ColorTokens.lua +0 -2
- package/out/theme/interfaces/palette/colorTokens/init.lua +0 -2
- package/out/theme/interfaces/palette/colors/Colors.lua +0 -2
- package/out/theme/interfaces/spacing/Borders.lua +0 -2
- package/out/theme/interfaces/spacing/Padding.lua +0 -2
- package/out/theme/interfaces/spacing/Shape.lua +0 -2
- package/out/theme/interfaces/spacing/Spacing.lua +0 -2
- package/out/theme/interfaces/spacing/init.lua +0 -2
- package/out/theme/interfaces/theme/Theme.lua +0 -2
- package/out/theme/interfaces/theme/ThemeConstants.lua +0 -2
- package/out/theme/interfaces/theme/ThemeOptions.lua +0 -2
- package/out/theme/interfaces/theme/init.lua +0 -2
- package/out/theme/interfaces/tokens/Tokens.lua +0 -2
- package/out/theme/interfaces/tokens/init.lua +0 -2
- package/out/theme/interfaces/typography/FontFamilyOptions.lua +0 -2
- package/out/theme/interfaces/typography/FontSizeOptions.lua +0 -2
- package/out/theme/interfaces/typography/ThemeTypography.lua +0 -2
- package/out/theme/styles/types/WriteableStyle.lua +0 -2
- package/out/theme/styles/types/init.lua +0 -2
- package/out/theme/styles/types/styles.lua +0 -2
- package/out/theme/styles/utilities/classNames.lua +0 -31
- package/out/theme/types/init.lua +0 -2
- package/out/ui/enums/Directions.lua +0 -23
- package/out/ui/enums/Icons.lua +0 -87
- package/out/ui/enums/Orientations.lua +0 -15
- package/out/ui/packages/button/types/ButtonColor.lua +0 -2
- package/out/ui/packages/button/types/ButtonSize.lua +0 -2
- package/out/ui/packages/button/types/ButtonVariant.lua +0 -2
- package/out/ui/packages/button/types/init.lua +0 -2
- package/out/ui/packages/input/types/InputColor.lua +0 -2
- package/out/ui/packages/input/types/InputMargin.lua +0 -2
- package/out/ui/packages/input/types/InputVariant.lua +0 -2
- package/out/ui/packages/input/types/init.lua +0 -2
- package/out/ui/packages/progressBar/components/ProgressBar.lua +0 -76
- package/out/ui/packages/sidebar/components/Sidebar.lua +0 -46
- package/out/ui/packages/sidebar/types/SidebarType.lua +0 -2
- package/out/ui/packages/sidebar/types/init.lua +0 -2
- package/out/ui/packages/toast/enums/ToastVariants.lua +0 -20
- package/out/ui/packages/toast/interfaces/ToastEvent.lua +0 -2
- package/out/ui/packages/treeView/interfaces/Branch.lua +0 -2
- package/out/ui/packages/treeView/interfaces/Leaf.lua +0 -2
- package/out/ui/packages/treeView/interfaces/Tree.lua +0 -2
- package/out/ui/packages/typography/types/TypographyAlignment.lua +0 -2
- package/out/ui/packages/typography/types/TypographyColor.lua +0 -2
- package/out/ui/packages/typography/types/TypographyDisplay.lua +0 -2
- package/out/ui/packages/typography/types/init.lua +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
|
|
3
|
+
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src.ts)
|
|
4
4
|
local _roact_hooked = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src)
|
|
5
5
|
local useState = _roact_hooked.useState
|
|
6
6
|
local markPureComponent = _roact_hooked.markPureComponent
|
|
@@ -50,27 +50,17 @@ local function Input(props)
|
|
|
50
50
|
_condition = ""
|
|
51
51
|
end
|
|
52
52
|
local input, setInput = useState(_condition)
|
|
53
|
-
local _attributes =
|
|
54
|
-
|
|
55
|
-
_attributes[_k] = _v
|
|
56
|
-
end
|
|
53
|
+
local _attributes = table.clone(root)
|
|
54
|
+
setmetatable(_attributes, nil)
|
|
57
55
|
if className then
|
|
58
56
|
for _k, _v in className do
|
|
59
57
|
_attributes[_k] = _v
|
|
60
58
|
end
|
|
61
59
|
end
|
|
62
|
-
local
|
|
63
|
-
|
|
64
|
-
local
|
|
65
|
-
|
|
66
|
-
_attributes_1[_k] = _v
|
|
67
|
-
end
|
|
68
|
-
local _children_1 = {}
|
|
69
|
-
local _length_1 = #_children_1
|
|
70
|
-
local _attributes_2 = {}
|
|
71
|
-
for _k, _v in font do
|
|
72
|
-
_attributes_2[_k] = _v
|
|
73
|
-
end
|
|
60
|
+
local _attributes_1 = table.clone(margin)
|
|
61
|
+
setmetatable(_attributes_1, nil)
|
|
62
|
+
local _attributes_2 = table.clone(font)
|
|
63
|
+
setmetatable(_attributes_2, nil)
|
|
74
64
|
for _k, _v in box do
|
|
75
65
|
_attributes_2[_k] = _v
|
|
76
66
|
end
|
|
@@ -82,49 +72,38 @@ local function Input(props)
|
|
|
82
72
|
}) do
|
|
83
73
|
_attributes_2[_k] = _v
|
|
84
74
|
end
|
|
85
|
-
_attributes_2
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
onBlur
|
|
99
|
-
|
|
100
|
-
|
|
75
|
+
_attributes_2.Event = {
|
|
76
|
+
ReturnPressedFromOnScreenKeyboard = function(rbx)
|
|
77
|
+
if onEnterPressed then
|
|
78
|
+
local text = rbx.Text
|
|
79
|
+
onEnterPressed(text)
|
|
80
|
+
end
|
|
81
|
+
end,
|
|
82
|
+
Focused = onFocus,
|
|
83
|
+
FocusLost = function(rbx)
|
|
84
|
+
if onTextChanged then
|
|
85
|
+
local text = rbx.Text
|
|
86
|
+
onTextChanged(text)
|
|
87
|
+
end
|
|
88
|
+
if onBlur then
|
|
89
|
+
onBlur()
|
|
90
|
+
end
|
|
91
|
+
end,
|
|
92
|
+
}
|
|
101
93
|
local _condition_1 = variant == "outlined"
|
|
102
94
|
if _condition_1 then
|
|
103
|
-
local _attributes_3 =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
end
|
|
107
|
-
_condition_1 = Roact.createElement("UIStroke", _attributes_3)
|
|
108
|
-
end
|
|
109
|
-
local _children_2 = {}
|
|
110
|
-
local _length_2 = #_children_2
|
|
111
|
-
if _condition_1 then
|
|
112
|
-
_children_2[_length_2 + 1] = _condition_1
|
|
95
|
+
local _attributes_3 = table.clone(stroke)
|
|
96
|
+
setmetatable(_attributes_3, nil)
|
|
97
|
+
_condition_1 = Roact.jsx("uistroke", _attributes_3)
|
|
113
98
|
end
|
|
114
|
-
_length_2 = #_children_2
|
|
115
99
|
local _condition_2 = rounded
|
|
116
100
|
if _condition_2 then
|
|
117
|
-
local _attributes_3 =
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
end
|
|
121
|
-
_condition_2 = Roact.createElement("UICorner", _attributes_3)
|
|
122
|
-
end
|
|
123
|
-
if _condition_2 then
|
|
124
|
-
_children_2[_length_2 + 1] = _condition_2
|
|
101
|
+
local _attributes_3 = table.clone(corner)
|
|
102
|
+
setmetatable(_attributes_3, nil)
|
|
103
|
+
_condition_2 = Roact.jsx("uicorner", _attributes_3)
|
|
125
104
|
end
|
|
126
|
-
|
|
127
|
-
|
|
105
|
+
local _exp = Roact.jsx("textbox", _attributes_2, _condition_1, _condition_2)
|
|
106
|
+
local _exp_1 = Roact.jsx(Divider, {
|
|
128
107
|
padding = 0,
|
|
129
108
|
orientation = Orientations.Horizontal,
|
|
130
109
|
className = classNames({
|
|
@@ -134,10 +113,8 @@ local function Input(props)
|
|
|
134
113
|
})
|
|
135
114
|
local _condition_3 = helperText ~= nil
|
|
136
115
|
if _condition_3 then
|
|
137
|
-
local _attributes_3 =
|
|
138
|
-
|
|
139
|
-
_attributes_3[_k] = _v
|
|
140
|
-
end
|
|
116
|
+
local _attributes_3 = table.clone(font)
|
|
117
|
+
setmetatable(_attributes_3, nil)
|
|
141
118
|
for _k, _v in helper do
|
|
142
119
|
_attributes_3[_k] = _v
|
|
143
120
|
end
|
|
@@ -147,17 +124,9 @@ local function Input(props)
|
|
|
147
124
|
_attributes_3[_k] = _v
|
|
148
125
|
end
|
|
149
126
|
_attributes_3.Text = helperText
|
|
150
|
-
_condition_3 = (Roact.
|
|
151
|
-
HelperText = Roact.createElement("TextLabel", _attributes_3),
|
|
152
|
-
}))
|
|
127
|
+
_condition_3 = (Roact.jsx("textlabel", _attributes_3))
|
|
153
128
|
end
|
|
154
|
-
|
|
155
|
-
_children_1[_length_1 + 2] = _condition_3
|
|
156
|
-
end
|
|
157
|
-
_children.Margin = Roact.createElement("Frame", _attributes_1, _children_1)
|
|
158
|
-
return Roact.createFragment({
|
|
159
|
-
Input = Roact.createElement("Frame", _attributes, _children),
|
|
160
|
-
})
|
|
129
|
+
return Roact.jsx("frame", _attributes, Roact.jsx("frame", _attributes_1, _exp, _exp_1, _condition_3))
|
|
161
130
|
end
|
|
162
131
|
local default = markPureComponent(Input)
|
|
163
132
|
return {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputProps } from "./Input";
|
|
2
|
-
declare const useInputStyles: (props: InputProps) => import("../../../../theme").ClassNameMap<string>;
|
|
2
|
+
declare const useInputStyles: (props: InputProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
3
3
|
export default useInputStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Input } from "./components/Input";
|
|
2
2
|
export { InputProps } from "./components/Input";
|
|
3
3
|
export * from "./components/Input";
|
|
4
|
-
export { InputColor } from "./types";
|
|
5
|
-
export { InputMargin } from "./types";
|
|
6
|
-
export { InputVariant } from "./types";
|
|
4
|
+
export { InputColor } from "./types/index";
|
|
5
|
+
export { InputMargin } from "./types/index";
|
|
6
|
+
export { InputVariant } from "./types/index";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="@rbxts/types" />
|
|
2
|
-
/// <reference types="roact" />
|
|
3
1
|
import Roact from "@rbxts/roact";
|
|
4
|
-
import { WriteableStyle } from "../../../../theme";
|
|
2
|
+
import { WriteableStyle } from "../../../../theme/index";
|
|
5
3
|
export interface ProgressBarProps {
|
|
6
4
|
progress: number;
|
|
7
5
|
className?: WriteableStyle<Frame>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src.ts)
|
|
4
|
+
local markPureComponent = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src).markPureComponent
|
|
5
|
+
local useProgressBarStyles = TS.import(script, script.Parent, "ProgressBar.styles").default
|
|
6
|
+
local function ProgressBar(_param)
|
|
7
|
+
local progress = _param.progress
|
|
8
|
+
local className = _param.className
|
|
9
|
+
local _binding = useProgressBarStyles()
|
|
10
|
+
local container = _binding.container
|
|
11
|
+
local outer = _binding.outer
|
|
12
|
+
local stroke = _binding.stroke
|
|
13
|
+
local inner = _binding.inner
|
|
14
|
+
local fill = _binding.fill
|
|
15
|
+
local corner = _binding.corner
|
|
16
|
+
local _attributes = table.clone(container)
|
|
17
|
+
setmetatable(_attributes, nil)
|
|
18
|
+
if className then
|
|
19
|
+
for _k, _v in className do
|
|
20
|
+
_attributes[_k] = _v
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
local _attributes_1 = table.clone(outer)
|
|
24
|
+
setmetatable(_attributes_1, nil)
|
|
25
|
+
local _attributes_2 = table.clone(corner)
|
|
26
|
+
setmetatable(_attributes_2, nil)
|
|
27
|
+
local _exp = Roact.jsx("uicorner", _attributes_2)
|
|
28
|
+
local _attributes_3 = table.clone(stroke)
|
|
29
|
+
setmetatable(_attributes_3, nil)
|
|
30
|
+
local _exp_1 = Roact.jsx("uistroke", _attributes_3)
|
|
31
|
+
local _attributes_4 = table.clone(inner)
|
|
32
|
+
setmetatable(_attributes_4, nil)
|
|
33
|
+
local _attributes_5 = table.clone(corner)
|
|
34
|
+
setmetatable(_attributes_5, nil)
|
|
35
|
+
local _exp_2 = Roact.jsx("uicorner", _attributes_5)
|
|
36
|
+
local _attributes_6 = table.clone(fill)
|
|
37
|
+
setmetatable(_attributes_6, nil)
|
|
38
|
+
_attributes_6.Size = UDim2.new(progress / 100, 0, 1, 0)
|
|
39
|
+
local _attributes_7 = table.clone(corner)
|
|
40
|
+
setmetatable(_attributes_7, nil)
|
|
41
|
+
return Roact.jsx("frame", _attributes, Roact.jsx("frame", _attributes_1, _exp, _exp_1, Roact.jsx("frame", _attributes_4, _exp_2, Roact.jsx("frame", _attributes_6, Roact.jsx("uicorner", _attributes_7)))))
|
|
42
|
+
end
|
|
43
|
+
local default = markPureComponent(ProgressBar)
|
|
44
|
+
return {
|
|
45
|
+
default = default,
|
|
46
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useProgressBarStyles: () => import("../../../../theme").ClassNameMap<string>;
|
|
1
|
+
declare const useProgressBarStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
2
2
|
export default useProgressBarStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
|
|
3
|
+
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src.ts)
|
|
4
4
|
local _roact_hooked = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src)
|
|
5
5
|
local markPureComponent = _roact_hooked.markPureComponent
|
|
6
6
|
local useEffect = _roact_hooked.useEffect
|
|
@@ -42,29 +42,19 @@ local function Shadow()
|
|
|
42
42
|
setZIndex(_condition_1 - 1)
|
|
43
43
|
parent.ClipsDescendants = false
|
|
44
44
|
end, { parent })
|
|
45
|
-
local _attributes =
|
|
46
|
-
|
|
47
|
-
_attributes[_k] = _v
|
|
48
|
-
end
|
|
45
|
+
local _attributes = table.clone(container)
|
|
46
|
+
setmetatable(_attributes, nil)
|
|
49
47
|
_attributes.ZIndex = zIndex
|
|
50
|
-
_attributes
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
})
|
|
62
|
-
if _child then
|
|
63
|
-
_children[_length + 1] = _child
|
|
64
|
-
end
|
|
65
|
-
return Roact.createFragment({
|
|
66
|
-
Shadow = Roact.createElement("Frame", _attributes, _children),
|
|
67
|
-
})
|
|
48
|
+
_attributes.Event = {
|
|
49
|
+
AncestryChanged = function(rbx, parent)
|
|
50
|
+
if parent:IsA("GuiObject") and rbx.Parent == parent then
|
|
51
|
+
setParent(parent)
|
|
52
|
+
end
|
|
53
|
+
end,
|
|
54
|
+
}
|
|
55
|
+
return Roact.jsx("frame", _attributes, cornerRadius ~= nil and Roact.jsx("uicorner", {
|
|
56
|
+
CornerRadius = cornerRadius,
|
|
57
|
+
}))
|
|
68
58
|
end
|
|
69
59
|
local default = markPureComponent(Shadow)
|
|
70
60
|
return {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useShadowStyles: () => import("../../../../theme").ClassNameMap<string>;
|
|
1
|
+
declare const useShadowStyles: () => import("../../../../theme/index").ClassNameMap<string>;
|
|
2
2
|
export default useShadowStyles;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="@rbxts/types" />
|
|
2
|
-
/// <reference types="roact" />
|
|
3
1
|
import Roact from "@rbxts/roact";
|
|
4
|
-
import { CustomizedProps } from "../../../../theme";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
5
3
|
export type DefaultSidebarComponent = Frame;
|
|
6
4
|
export interface SidebarProps {
|
|
7
5
|
size: "compact" | "large";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src.ts)
|
|
4
|
+
local useSidebarStyles = TS.import(script, script.Parent, "Sidebar.styles").default
|
|
5
|
+
local function Sidebar(props)
|
|
6
|
+
local _binding = props
|
|
7
|
+
local className = _binding.className
|
|
8
|
+
local children = _binding.children
|
|
9
|
+
local _binding_1 = useSidebarStyles(props)
|
|
10
|
+
local root = _binding_1.root
|
|
11
|
+
local container = _binding_1.container
|
|
12
|
+
local _attributes = table.clone(root)
|
|
13
|
+
setmetatable(_attributes, nil)
|
|
14
|
+
if className ~= 0 and className == className and className ~= "" and className then
|
|
15
|
+
for _k, _v in className do
|
|
16
|
+
_attributes[_k] = _v
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
local _attributes_1 = table.clone(container)
|
|
20
|
+
setmetatable(_attributes_1, nil)
|
|
21
|
+
return Roact.jsx("frame", _attributes, Roact.jsx("frame", _attributes_1, children))
|
|
22
|
+
end
|
|
23
|
+
local default = Sidebar
|
|
24
|
+
return {
|
|
25
|
+
default = default,
|
|
26
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SidebarProps } from "./Sidebar";
|
|
2
|
-
declare const useSidebarStyles: (props: SidebarProps) => import("../../../../theme").ClassNameMap<string>;
|
|
2
|
+
declare const useSidebarStyles: (props: SidebarProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
3
3
|
export default useSidebarStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local BoatTween = TS.import(script, TS.getModule(script, "@rbxts", "boat-tween").src).BoatTween
|
|
4
|
-
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
|
|
4
|
+
local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src.ts)
|
|
5
5
|
local _roact_hooked = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src)
|
|
6
6
|
local markPureComponent = _roact_hooked.markPureComponent
|
|
7
7
|
local useEffect = _roact_hooked.useEffect
|
|
@@ -55,38 +55,30 @@ local function Toast(props)
|
|
|
55
55
|
end
|
|
56
56
|
end, {})
|
|
57
57
|
local _attributes = {
|
|
58
|
-
|
|
58
|
+
Ref = frameRef,
|
|
59
59
|
}
|
|
60
60
|
for _k, _v in container do
|
|
61
61
|
_attributes[_k] = _v
|
|
62
62
|
end
|
|
63
|
-
local
|
|
64
|
-
|
|
65
|
-
CornerRadius = UDim.new(0, DefaultTheme.shape.borderRadius),
|
|
66
|
-
}),
|
|
67
|
-
Roact.createElement(Shadow),
|
|
68
|
-
}
|
|
69
|
-
local _length = #_children
|
|
70
|
-
local _attributes_1 = {}
|
|
71
|
-
for _k, _v in label do
|
|
72
|
-
_attributes_1[_k] = _v
|
|
73
|
-
end
|
|
74
|
-
_attributes_1.Text = text
|
|
75
|
-
_children.Label = Roact.createElement("TextLabel", _attributes_1)
|
|
76
|
-
local _attributes_2 = {}
|
|
77
|
-
for _k, _v in close do
|
|
78
|
-
_attributes_2[_k] = _v
|
|
79
|
-
end
|
|
80
|
-
_attributes_2[Roact.Event.MouseButton1Click] = function()
|
|
81
|
-
tween(Directions.Out)
|
|
82
|
-
if onDismiss then
|
|
83
|
-
onDismiss()
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
_children.Close = Roact.createElement("ImageButton", _attributes_2)
|
|
87
|
-
return Roact.createFragment({
|
|
88
|
-
Toast = Roact.createElement("Frame", _attributes, _children),
|
|
63
|
+
local _exp = Roact.jsx("uicorner", {
|
|
64
|
+
CornerRadius = UDim.new(0, DefaultTheme.shape.borderRadius),
|
|
89
65
|
})
|
|
66
|
+
local _exp_1 = Roact.jsx(Shadow)
|
|
67
|
+
local _attributes_1 = table.clone(label)
|
|
68
|
+
setmetatable(_attributes_1, nil)
|
|
69
|
+
_attributes_1.Text = text
|
|
70
|
+
local _exp_2 = Roact.jsx("textlabel", _attributes_1)
|
|
71
|
+
local _attributes_2 = table.clone(close)
|
|
72
|
+
setmetatable(_attributes_2, nil)
|
|
73
|
+
_attributes_2.Event = {
|
|
74
|
+
MouseButton1Click = function()
|
|
75
|
+
tween(Directions.Out)
|
|
76
|
+
if onDismiss then
|
|
77
|
+
onDismiss()
|
|
78
|
+
end
|
|
79
|
+
end,
|
|
80
|
+
}
|
|
81
|
+
return Roact.jsx("frame", _attributes, _exp, _exp_1, _exp_2, Roact.jsx("imagebutton", _attributes_2))
|
|
90
82
|
end
|
|
91
83
|
local default = markPureComponent(Toast)
|
|
92
84
|
return {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ToastProps } from "./Toast";
|
|
2
|
-
declare const useToastStyles: (props: ToastProps) => import("../../../../theme").ClassNameMap<string>;
|
|
2
|
+
declare const useToastStyles: (props: ToastProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
3
3
|
export default useToastStyles;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="@rbxts/types" />
|
|
2
|
-
/// <reference types="roact" />
|
|
3
1
|
import Roact from "@rbxts/roact";
|
|
4
|
-
import { CustomizedProps } from "../../../../theme";
|
|
5
|
-
import { Icons } from "../../../enums";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
+
import { Icons } from "../../../enums/index";
|
|
6
4
|
import Tree from "../interfaces/Tree";
|
|
7
5
|
type DefaultTreeViewComponent = Frame;
|
|
8
6
|
export interface TreeViewProps {
|