@rbxts/uiblox 0.1.51 → 0.1.53
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.
|
@@ -144,21 +144,22 @@ local function Button(props)
|
|
|
144
144
|
_attributes[_k] = _v
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
|
-
local _condition_1 = variant == "outlined"
|
|
147
|
+
local _condition_1 = variant == "outlined" and not animating
|
|
148
148
|
if _condition_1 then
|
|
149
149
|
local _attributes_1 = table.clone(stroke)
|
|
150
150
|
setmetatable(_attributes_1, nil)
|
|
151
151
|
_condition_1 = React.createElement("uistroke", _attributes_1)
|
|
152
152
|
end
|
|
153
|
+
local _exp = animating and React.createElement(LoadingStroke, {
|
|
154
|
+
animating = animating,
|
|
155
|
+
})
|
|
153
156
|
local _condition_2 = rounded
|
|
154
157
|
if _condition_2 then
|
|
155
158
|
local _attributes_1 = table.clone(corner)
|
|
156
159
|
setmetatable(_attributes_1, nil)
|
|
157
160
|
_condition_2 = React.createElement("uicorner", _attributes_1)
|
|
158
161
|
end
|
|
159
|
-
return React.createElement("textbutton", _attributes, _condition_1, _condition_2, children
|
|
160
|
-
animating = animating,
|
|
161
|
-
}))
|
|
162
|
+
return React.createElement("textbutton", _attributes, _condition_1, _exp, _condition_2, children)
|
|
162
163
|
end
|
|
163
164
|
local default = Button
|
|
164
165
|
return {
|
|
@@ -31,31 +31,27 @@ local function LoadingStroke(props)
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
end, { animating })
|
|
34
|
-
local
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
for _k, _v in className do
|
|
48
|
-
_attributes[_k] = _v
|
|
49
|
-
end
|
|
34
|
+
local _attributes = {}
|
|
35
|
+
local _condition = id
|
|
36
|
+
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
37
|
+
_condition = "LoadingStroke"
|
|
38
|
+
end
|
|
39
|
+
_attributes.key = _condition
|
|
40
|
+
_attributes.ref = ref
|
|
41
|
+
_attributes.Color = Color3.fromRGB(255, 255, 255)
|
|
42
|
+
_attributes.Thickness = 2
|
|
43
|
+
_attributes.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
|
|
44
|
+
if className then
|
|
45
|
+
for _k, _v in className do
|
|
46
|
+
_attributes[_k] = _v
|
|
50
47
|
end
|
|
51
|
-
_condition = (React.createElement("uistroke", _attributes, React.createElement("uigradient", {
|
|
52
|
-
ref = gradientRef,
|
|
53
|
-
Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1) }),
|
|
54
|
-
Rotation = 0,
|
|
55
|
-
Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(235, 235, 235)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)) }),
|
|
56
|
-
}), children))
|
|
57
48
|
end
|
|
58
|
-
return React.createElement(React.
|
|
49
|
+
return React.createElement("uistroke", _attributes, React.createElement("uigradient", {
|
|
50
|
+
ref = gradientRef,
|
|
51
|
+
Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0), NumberSequenceKeypoint.new(1, 1) }),
|
|
52
|
+
Rotation = 0,
|
|
53
|
+
Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(235, 235, 235)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)) }),
|
|
54
|
+
}), children)
|
|
59
55
|
end
|
|
60
56
|
local default = LoadingStroke
|
|
61
57
|
return {
|