@rbxts/uiblox 0.1.31 → 0.1.32
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/ui/packages/button/components/Button.luau +18 -14
- package/out/ui/packages/divider/components/Divider.luau +7 -3
- package/out/ui/packages/icon/components/Icon.luau +7 -3
- package/out/ui/packages/iconButton/components/IconButton.luau +7 -3
- package/out/ui/packages/input/components/Input.luau +18 -14
- package/out/ui/packages/layout/components/Grid.luau +7 -3
- package/out/ui/packages/layout/components/List.luau +10 -2
- package/out/ui/packages/preloader/components/Preloader.luau +14 -10
- package/out/ui/packages/progressBar/components/ProgressBar.d.ts +2 -3
- package/out/ui/packages/progressBar/components/ProgressBar.luau +18 -13
- package/out/ui/packages/sidebar/components/Sidebar.luau +7 -3
- package/out/ui/packages/toast/components/Toast.d.ts +2 -1
- package/out/ui/packages/toast/components/Toast.luau +14 -4
- package/out/ui/packages/treeView/components/TreeView.luau +15 -11
- package/out/ui/packages/typography/components/Typography.luau +7 -3
- package/package.json +1 -1
|
@@ -40,15 +40,19 @@ local function Button(props)
|
|
|
40
40
|
local mouseLeave = _binding.mouseLeave
|
|
41
41
|
local className = _binding.className
|
|
42
42
|
local children = _binding.children
|
|
43
|
+
local key = _binding.key
|
|
43
44
|
local _binding_1 = useButtonStyles(props)
|
|
44
45
|
local root = _binding_1.root
|
|
45
46
|
local font = _binding_1.font
|
|
46
47
|
local corner = _binding_1.corner
|
|
47
48
|
local stroke = _binding_1.stroke
|
|
48
49
|
local hovering, setHovering = useState(false)
|
|
49
|
-
local _attributes = {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
local _attributes = {}
|
|
51
|
+
local _condition = key
|
|
52
|
+
if not (_condition ~= "" and _condition) then
|
|
53
|
+
_condition = "Button"
|
|
54
|
+
end
|
|
55
|
+
_attributes.key = _condition
|
|
52
56
|
for _k, _v in root do
|
|
53
57
|
_attributes[_k] = _v
|
|
54
58
|
end
|
|
@@ -65,11 +69,11 @@ local function Button(props)
|
|
|
65
69
|
if _result_1 ~= nil then
|
|
66
70
|
_result_1 = _result_1.BackgroundTransparency
|
|
67
71
|
end
|
|
68
|
-
local
|
|
69
|
-
if
|
|
70
|
-
|
|
72
|
+
local _condition_1 = _result_1
|
|
73
|
+
if _condition_1 == nil then
|
|
74
|
+
_condition_1 = (if variant == "outlined" or variant == "text" then 1 else 0)
|
|
71
75
|
end
|
|
72
|
-
_result =
|
|
76
|
+
_result = _condition_1
|
|
73
77
|
end
|
|
74
78
|
_attributes.BackgroundTransparency = _result
|
|
75
79
|
_attributes.Event = {
|
|
@@ -133,19 +137,19 @@ local function Button(props)
|
|
|
133
137
|
_attributes[_k] = _v
|
|
134
138
|
end
|
|
135
139
|
end
|
|
136
|
-
local
|
|
137
|
-
if
|
|
140
|
+
local _condition_1 = variant == "outlined"
|
|
141
|
+
if _condition_1 then
|
|
138
142
|
local _attributes_1 = table.clone(stroke)
|
|
139
143
|
setmetatable(_attributes_1, nil)
|
|
140
|
-
|
|
144
|
+
_condition_1 = React.createElement("uistroke", _attributes_1)
|
|
141
145
|
end
|
|
142
|
-
local
|
|
143
|
-
if
|
|
146
|
+
local _condition_2 = rounded
|
|
147
|
+
if _condition_2 then
|
|
144
148
|
local _attributes_1 = table.clone(corner)
|
|
145
149
|
setmetatable(_attributes_1, nil)
|
|
146
|
-
|
|
150
|
+
_condition_2 = React.createElement("uicorner", _attributes_1)
|
|
147
151
|
end
|
|
148
|
-
return React.createElement("textbutton", _attributes,
|
|
152
|
+
return React.createElement("textbutton", _attributes, _condition_1, _condition_2, children)
|
|
149
153
|
end
|
|
150
154
|
local default = Button
|
|
151
155
|
return {
|
|
@@ -5,11 +5,15 @@ local useDividerStyles = TS.import(script, script.Parent, "Divider.styles").defa
|
|
|
5
5
|
local function Divider(props)
|
|
6
6
|
local _binding = props
|
|
7
7
|
local className = _binding.className
|
|
8
|
+
local key = _binding.key
|
|
8
9
|
local _binding_1 = useDividerStyles(props)
|
|
9
10
|
local root = _binding_1.root
|
|
10
|
-
local _attributes = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
local _attributes = {}
|
|
12
|
+
local _condition = key
|
|
13
|
+
if not (_condition ~= "" and _condition) then
|
|
14
|
+
_condition = "Divider"
|
|
15
|
+
end
|
|
16
|
+
_attributes.key = _condition
|
|
13
17
|
for _k, _v in root do
|
|
14
18
|
_attributes[_k] = _v
|
|
15
19
|
end
|
|
@@ -7,11 +7,15 @@ local function Icon(props)
|
|
|
7
7
|
local icon = _binding.icon
|
|
8
8
|
local tint = _binding.tint
|
|
9
9
|
local className = _binding.className
|
|
10
|
+
local key = _binding.key
|
|
10
11
|
local _binding_1 = useIconStyles(props)
|
|
11
12
|
local container = _binding_1.container
|
|
12
|
-
local _attributes = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
local _attributes = {}
|
|
14
|
+
local _condition = key
|
|
15
|
+
if not (_condition ~= "" and _condition) then
|
|
16
|
+
_condition = "Icon"
|
|
17
|
+
end
|
|
18
|
+
_attributes.key = _condition
|
|
15
19
|
for _k, _v in container do
|
|
16
20
|
_attributes[_k] = _v
|
|
17
21
|
end
|
|
@@ -11,12 +11,16 @@ local function IconButton(props)
|
|
|
11
11
|
local tint = _binding.tint
|
|
12
12
|
local onClick = _binding.onClick
|
|
13
13
|
local className = _binding.className
|
|
14
|
+
local key = _binding.key
|
|
14
15
|
local _binding_1 = useIconButtonStyles(props)
|
|
15
16
|
local container = _binding_1.container
|
|
16
17
|
local hovering, setHovering = useState(false)
|
|
17
|
-
local _attributes = {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
local _attributes = {}
|
|
19
|
+
local _condition = key
|
|
20
|
+
if not (_condition ~= "" and _condition) then
|
|
21
|
+
_condition = "IconButton"
|
|
22
|
+
end
|
|
23
|
+
_attributes.key = _condition
|
|
20
24
|
for _k, _v in container do
|
|
21
25
|
_attributes[_k] = _v
|
|
22
26
|
end
|
|
@@ -33,6 +33,7 @@ local function Input(props)
|
|
|
33
33
|
local onBlur = _binding.onBlur
|
|
34
34
|
local onEnterPressed = _binding.onEnterPressed
|
|
35
35
|
local className = _binding.className
|
|
36
|
+
local key = _binding.key
|
|
36
37
|
local _binding_1 = useInputStyles(props)
|
|
37
38
|
local root = _binding_1.root
|
|
38
39
|
local font = _binding_1.font
|
|
@@ -49,9 +50,12 @@ local function Input(props)
|
|
|
49
50
|
_condition = ""
|
|
50
51
|
end
|
|
51
52
|
local input, setInput = useState(_condition)
|
|
52
|
-
local _attributes = {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
local _attributes = {}
|
|
54
|
+
local _condition_1 = key
|
|
55
|
+
if not (_condition_1 ~= "" and _condition_1) then
|
|
56
|
+
_condition_1 = "Input"
|
|
57
|
+
end
|
|
58
|
+
_attributes.key = _condition_1
|
|
55
59
|
for _k, _v in root do
|
|
56
60
|
_attributes[_k] = _v
|
|
57
61
|
end
|
|
@@ -101,19 +105,19 @@ local function Input(props)
|
|
|
101
105
|
end
|
|
102
106
|
end,
|
|
103
107
|
}
|
|
104
|
-
local
|
|
105
|
-
if
|
|
108
|
+
local _condition_2 = variant == "outlined"
|
|
109
|
+
if _condition_2 then
|
|
106
110
|
local _attributes_3 = table.clone(stroke)
|
|
107
111
|
setmetatable(_attributes_3, nil)
|
|
108
|
-
|
|
112
|
+
_condition_2 = React.createElement("uistroke", _attributes_3)
|
|
109
113
|
end
|
|
110
|
-
local
|
|
111
|
-
if
|
|
114
|
+
local _condition_3 = rounded
|
|
115
|
+
if _condition_3 then
|
|
112
116
|
local _attributes_3 = table.clone(corner)
|
|
113
117
|
setmetatable(_attributes_3, nil)
|
|
114
|
-
|
|
118
|
+
_condition_3 = React.createElement("uicorner", _attributes_3)
|
|
115
119
|
end
|
|
116
|
-
local _exp = React.createElement("textbox", _attributes_2,
|
|
120
|
+
local _exp = React.createElement("textbox", _attributes_2, _condition_2, _condition_3)
|
|
117
121
|
local _exp_1 = React.createElement(Divider, {
|
|
118
122
|
padding = 0,
|
|
119
123
|
orientation = Orientations.Horizontal,
|
|
@@ -122,8 +126,8 @@ local function Input(props)
|
|
|
122
126
|
[divider] = true,
|
|
123
127
|
}),
|
|
124
128
|
})
|
|
125
|
-
local
|
|
126
|
-
if
|
|
129
|
+
local _condition_4 = helperText ~= nil
|
|
130
|
+
if _condition_4 then
|
|
127
131
|
local _attributes_3 = {
|
|
128
132
|
key = "HelperText",
|
|
129
133
|
}
|
|
@@ -139,9 +143,9 @@ local function Input(props)
|
|
|
139
143
|
_attributes_3[_k] = _v
|
|
140
144
|
end
|
|
141
145
|
_attributes_3.Text = helperText
|
|
142
|
-
|
|
146
|
+
_condition_4 = (React.createElement("textlabel", _attributes_3))
|
|
143
147
|
end
|
|
144
|
-
return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _exp_1,
|
|
148
|
+
return React.createElement("frame", _attributes, React.createElement("frame", _attributes_1, _exp, _exp_1, _condition_4))
|
|
145
149
|
end
|
|
146
150
|
local default = Input
|
|
147
151
|
return {
|
|
@@ -60,6 +60,7 @@ local function Grid(props)
|
|
|
60
60
|
end
|
|
61
61
|
local className = _binding.className
|
|
62
62
|
local children = _binding.children
|
|
63
|
+
local key = _binding.key
|
|
63
64
|
local _binding_1 = useGridStyles({
|
|
64
65
|
cellPadding = cellPadding,
|
|
65
66
|
cellSize = cellSize,
|
|
@@ -72,9 +73,12 @@ local function Grid(props)
|
|
|
72
73
|
})
|
|
73
74
|
local baseGrid = _binding_1.baseGrid
|
|
74
75
|
local baseLayout = _binding_1.baseLayout
|
|
75
|
-
local _attributes = {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
local _attributes = {}
|
|
77
|
+
local _condition = key
|
|
78
|
+
if not (_condition ~= "" and _condition) then
|
|
79
|
+
_condition = "Grid"
|
|
80
|
+
end
|
|
81
|
+
_attributes.key = _condition
|
|
78
82
|
for _k, _v in baseGrid do
|
|
79
83
|
_attributes[_k] = _v
|
|
80
84
|
end
|
|
@@ -60,6 +60,7 @@ local function List(props)
|
|
|
60
60
|
end
|
|
61
61
|
local className = _binding.className
|
|
62
62
|
local children = _binding.children
|
|
63
|
+
local key = _binding.key
|
|
63
64
|
local _binding_1 = useListStyles({
|
|
64
65
|
padding = padding,
|
|
65
66
|
fillDirection = fillDirection,
|
|
@@ -72,8 +73,15 @@ local function List(props)
|
|
|
72
73
|
})
|
|
73
74
|
local baseList = _binding_1.baseList
|
|
74
75
|
local baseLayout = _binding_1.baseLayout
|
|
75
|
-
local _attributes =
|
|
76
|
-
|
|
76
|
+
local _attributes = {}
|
|
77
|
+
local _condition = key
|
|
78
|
+
if not (_condition ~= "" and _condition) then
|
|
79
|
+
_condition = "List"
|
|
80
|
+
end
|
|
81
|
+
_attributes.key = _condition
|
|
82
|
+
for _k, _v in baseList do
|
|
83
|
+
_attributes[_k] = _v
|
|
84
|
+
end
|
|
77
85
|
if className then
|
|
78
86
|
for _k, _v in className do
|
|
79
87
|
_attributes[_k] = _v
|
|
@@ -34,6 +34,7 @@ local function Preloader(props)
|
|
|
34
34
|
local Adornment = _binding.adornment
|
|
35
35
|
local className = _binding.className
|
|
36
36
|
local children = _binding.children
|
|
37
|
+
local key = _binding.key
|
|
37
38
|
local percentage, setPercentage = useState(0)
|
|
38
39
|
local loaded, setLoaded = useState(false)
|
|
39
40
|
local _binding_1 = usePreloaderStyles(props)
|
|
@@ -100,9 +101,12 @@ local function Preloader(props)
|
|
|
100
101
|
children = children,
|
|
101
102
|
})
|
|
102
103
|
else
|
|
103
|
-
local _attributes = {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
local _attributes = {}
|
|
105
|
+
local _condition = key
|
|
106
|
+
if not (_condition ~= "" and _condition) then
|
|
107
|
+
_condition = "Preloader"
|
|
108
|
+
end
|
|
109
|
+
_attributes.key = _condition
|
|
106
110
|
for _k, _v in container do
|
|
107
111
|
_attributes[_k] = _v
|
|
108
112
|
end
|
|
@@ -114,23 +118,23 @@ local function Preloader(props)
|
|
|
114
118
|
local _exp = Adornment ~= nil and React.createElement(Adornment, {
|
|
115
119
|
progress = percentage,
|
|
116
120
|
})
|
|
117
|
-
local
|
|
118
|
-
if
|
|
121
|
+
local _condition_1 = icon ~= nil
|
|
122
|
+
if _condition_1 then
|
|
119
123
|
local _attributes_1 = table.clone(logo)
|
|
120
124
|
setmetatable(_attributes_1, nil)
|
|
121
|
-
|
|
125
|
+
_condition_1 = React.createElement("imagelabel", _attributes_1)
|
|
122
126
|
end
|
|
123
|
-
local
|
|
124
|
-
if
|
|
127
|
+
local _condition_2 = not hideProgressBar
|
|
128
|
+
if _condition_2 then
|
|
125
129
|
local _attributes_1 = table.clone(label)
|
|
126
130
|
setmetatable(_attributes_1, nil)
|
|
127
131
|
_attributes_1.Text = `Loading {if currentAsset ~= nil then currentAsset else "resources"}... {percentageStr}`
|
|
128
|
-
|
|
132
|
+
_condition_2 = (React.createElement(React.Fragment, nil, React.createElement("textlabel", _attributes_1), React.createElement(ProgressBar, {
|
|
129
133
|
className = progressBar,
|
|
130
134
|
progress = percentage,
|
|
131
135
|
})))
|
|
132
136
|
end
|
|
133
|
-
_result = (React.createElement("frame", _attributes, _exp,
|
|
137
|
+
_result = (React.createElement("frame", _attributes, _exp, _condition_1, _condition_2))
|
|
134
138
|
end
|
|
135
139
|
return React.createElement(React.Fragment, nil, _result)
|
|
136
140
|
end
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface ProgressBarProps {
|
|
3
3
|
progress: number;
|
|
4
|
-
className?: WriteableStyle<Frame>;
|
|
5
4
|
}
|
|
6
|
-
declare function ProgressBar(
|
|
5
|
+
declare function ProgressBar(props: CustomizedProps<Frame, ProgressBarProps>): JSX.Element;
|
|
7
6
|
export default ProgressBar;
|
|
@@ -2,19 +2,24 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local useProgressBarStyles = TS.import(script, script.Parent, "ProgressBar.styles").default
|
|
5
|
-
local function ProgressBar(
|
|
6
|
-
local
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
11
|
-
local
|
|
12
|
-
local
|
|
13
|
-
local
|
|
14
|
-
local
|
|
15
|
-
local
|
|
16
|
-
|
|
17
|
-
}
|
|
5
|
+
local function ProgressBar(props)
|
|
6
|
+
local _binding = props
|
|
7
|
+
local progress = _binding.progress
|
|
8
|
+
local className = _binding.className
|
|
9
|
+
local key = _binding.key
|
|
10
|
+
local _binding_1 = useProgressBarStyles()
|
|
11
|
+
local container = _binding_1.container
|
|
12
|
+
local outer = _binding_1.outer
|
|
13
|
+
local stroke = _binding_1.stroke
|
|
14
|
+
local inner = _binding_1.inner
|
|
15
|
+
local fill = _binding_1.fill
|
|
16
|
+
local corner = _binding_1.corner
|
|
17
|
+
local _attributes = {}
|
|
18
|
+
local _condition = key
|
|
19
|
+
if not (_condition ~= "" and _condition) then
|
|
20
|
+
_condition = "ProgressBar"
|
|
21
|
+
end
|
|
22
|
+
_attributes.key = _condition
|
|
18
23
|
for _k, _v in container do
|
|
19
24
|
_attributes[_k] = _v
|
|
20
25
|
end
|
|
@@ -6,12 +6,16 @@ local function Sidebar(props)
|
|
|
6
6
|
local _binding = props
|
|
7
7
|
local className = _binding.className
|
|
8
8
|
local children = _binding.children
|
|
9
|
+
local key = _binding.key
|
|
9
10
|
local _binding_1 = useSidebarStyles(props)
|
|
10
11
|
local root = _binding_1.root
|
|
11
12
|
local container = _binding_1.container
|
|
12
|
-
local _attributes = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
local _attributes = {}
|
|
14
|
+
local _condition = key
|
|
15
|
+
if not (_condition ~= "" and _condition) then
|
|
16
|
+
_condition = "Sidebar"
|
|
17
|
+
end
|
|
18
|
+
_attributes.key = _condition
|
|
15
19
|
for _k, _v in root do
|
|
16
20
|
_attributes[_k] = _v
|
|
17
21
|
end
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
1
2
|
import ToastVariants from "../enums/ToastVariants";
|
|
2
3
|
export interface ToastProps {
|
|
3
4
|
text: string;
|
|
@@ -6,5 +7,5 @@ export interface ToastProps {
|
|
|
6
7
|
variant?: ToastVariants;
|
|
7
8
|
toggledAt?: number;
|
|
8
9
|
}
|
|
9
|
-
declare function Toast(props: ToastProps): JSX.Element;
|
|
10
|
+
declare function Toast(props: CustomizedProps<Frame, ToastProps>): JSX.Element;
|
|
10
11
|
export default Toast;
|
|
@@ -18,6 +18,8 @@ local function Toast(props)
|
|
|
18
18
|
if duration == nil then
|
|
19
19
|
duration = 4
|
|
20
20
|
end
|
|
21
|
+
local className = _binding.className
|
|
22
|
+
local key = _binding.key
|
|
21
23
|
local _binding_1 = useToastStyles(props)
|
|
22
24
|
local container = _binding_1.container
|
|
23
25
|
local label = _binding_1.label
|
|
@@ -53,13 +55,21 @@ local function Toast(props)
|
|
|
53
55
|
onDismiss()
|
|
54
56
|
end
|
|
55
57
|
end, {})
|
|
56
|
-
local _attributes = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
local _attributes = {}
|
|
59
|
+
local _condition = key
|
|
60
|
+
if not (_condition ~= "" and _condition) then
|
|
61
|
+
_condition = "Toast"
|
|
62
|
+
end
|
|
63
|
+
_attributes.key = _condition
|
|
64
|
+
_attributes.ref = frameRef
|
|
60
65
|
for _k, _v in container do
|
|
61
66
|
_attributes[_k] = _v
|
|
62
67
|
end
|
|
68
|
+
if className then
|
|
69
|
+
for _k, _v in className do
|
|
70
|
+
_attributes[_k] = _v
|
|
71
|
+
end
|
|
72
|
+
end
|
|
63
73
|
local _exp = React.createElement("uicorner", {
|
|
64
74
|
key = "Corner",
|
|
65
75
|
CornerRadius = UDim.new(0, DefaultTheme.shape.borderRadius),
|
|
@@ -16,6 +16,7 @@ local function TreeView(props)
|
|
|
16
16
|
local icon = _binding.icon
|
|
17
17
|
local filter = _binding.filter
|
|
18
18
|
local className = _binding.className
|
|
19
|
+
local key = _binding.key
|
|
19
20
|
local _binding_1 = useTreeViewStyles()
|
|
20
21
|
local root = _binding_1.root
|
|
21
22
|
local header = _binding_1.header
|
|
@@ -133,9 +134,12 @@ local function TreeView(props)
|
|
|
133
134
|
-- Set expanded to new array
|
|
134
135
|
setExpanded(newExpanded)
|
|
135
136
|
end, { tree, filter })
|
|
136
|
-
local _attributes = {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
local _attributes = {}
|
|
138
|
+
local _condition = key
|
|
139
|
+
if not (_condition ~= "" and _condition) then
|
|
140
|
+
_condition = "TreeView"
|
|
141
|
+
end
|
|
142
|
+
_attributes.key = _condition
|
|
139
143
|
for _k, _v in root do
|
|
140
144
|
_attributes[_k] = _v
|
|
141
145
|
end
|
|
@@ -234,15 +238,15 @@ local function TreeView(props)
|
|
|
234
238
|
end
|
|
235
239
|
end,
|
|
236
240
|
}
|
|
237
|
-
local
|
|
238
|
-
if
|
|
241
|
+
local _condition_1 = #branch.leaves > 0
|
|
242
|
+
if _condition_1 then
|
|
239
243
|
local _attributes_5 = {}
|
|
240
244
|
local _branch = branch
|
|
241
245
|
_attributes_5.icon = if table.find(expanded, _branch) ~= nil then Icons.Expanded else Icons.Collapsed
|
|
242
246
|
_attributes_5.size = "xxs"
|
|
243
247
|
_attributes_5.className = branchIcon
|
|
244
248
|
_attributes_5.tint = DefaultTheme.options.constants.extendedPalette.Gray[70]
|
|
245
|
-
|
|
249
|
+
_condition_1 = (React.createElement(Icon, _attributes_5))
|
|
246
250
|
end
|
|
247
251
|
local _attributes_5 = {
|
|
248
252
|
text = branch.title,
|
|
@@ -253,10 +257,10 @@ local function TreeView(props)
|
|
|
253
257
|
_attributes_5.color = "textPrimary"
|
|
254
258
|
_attributes_5.variant = "body"
|
|
255
259
|
_attributes_5.family = if selectedBranch == branch then "bold" else "default"
|
|
256
|
-
local _exp_3 = React.createElement("textbutton", _attributes_4,
|
|
260
|
+
local _exp_3 = React.createElement("textbutton", _attributes_4, _condition_1, React.createElement(Typography, _attributes_5))
|
|
257
261
|
local _branch = branch
|
|
258
|
-
local
|
|
259
|
-
if
|
|
262
|
+
local _condition_2 = table.find(expanded, _branch) ~= nil
|
|
263
|
+
if _condition_2 then
|
|
260
264
|
local _exp_4 = branch.leaves
|
|
261
265
|
-- ▼ ReadonlyArray.map ▼
|
|
262
266
|
local _newValue_1 = table.create(#_exp_4)
|
|
@@ -302,9 +306,9 @@ local function TreeView(props)
|
|
|
302
306
|
_newValue_1[_k] = _callback_1(_v, _k - 1, _exp_4)
|
|
303
307
|
end
|
|
304
308
|
-- ▲ ReadonlyArray.map ▲
|
|
305
|
-
|
|
309
|
+
_condition_2 = _newValue_1
|
|
306
310
|
end
|
|
307
|
-
return React.createElement(React.Fragment, nil, _exp_3,
|
|
311
|
+
return React.createElement(React.Fragment, nil, _exp_3, _condition_2)
|
|
308
312
|
else
|
|
309
313
|
return React.createElement(React.Fragment)
|
|
310
314
|
end
|
|
@@ -10,12 +10,16 @@ local function Typography(props)
|
|
|
10
10
|
end
|
|
11
11
|
local className = _binding.className
|
|
12
12
|
local children = _binding.children
|
|
13
|
+
local key = _binding.key
|
|
13
14
|
local _binding_1 = useTypographyStyles(props)
|
|
14
15
|
local root = _binding_1.root
|
|
15
16
|
local variantToken = _binding_1.variantToken
|
|
16
|
-
local _attributes = {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
local _attributes = {}
|
|
18
|
+
local _condition = key
|
|
19
|
+
if not (_condition ~= "" and _condition) then
|
|
20
|
+
_condition = "Typography"
|
|
21
|
+
end
|
|
22
|
+
_attributes.key = _condition
|
|
19
23
|
for _k, _v in root do
|
|
20
24
|
_attributes[_k] = _v
|
|
21
25
|
end
|