@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.
Files changed (228) hide show
  1. package/README.md +33 -37
  2. package/out/index.d.ts +2 -2
  3. package/out/{init.lua → init.luau} +1 -1
  4. package/out/theme/components/ThemeProvider.d.ts +3 -3
  5. package/out/theme/components/{ThemeProvider.lua → ThemeProvider.luau} +6 -22
  6. package/out/theme/components/ThemeStore.d.ts +1 -2
  7. package/out/theme/components/{ThemeStore.lua → ThemeStore.luau} +1 -1
  8. package/out/theme/components/ThemeWrapper.d.ts +3 -3
  9. package/out/theme/components/{ThemeWrapper.lua → ThemeWrapper.luau} +6 -21
  10. package/out/theme/components/{init.lua → init.luau} +1 -1
  11. package/out/theme/constants/NumberConstants.d.ts +1 -1
  12. package/out/theme/constants/{NumberConstants.lua → NumberConstants.luau} +1 -1
  13. package/out/theme/constants/ThemeConstants.d.ts +2 -2
  14. package/out/theme/constants/{ThemeConstants.lua → ThemeConstants.luau} +1 -1
  15. package/out/theme/constants/{init.lua → init.luau} +1 -1
  16. package/out/theme/index.d.ts +17 -17
  17. package/out/theme/{init.lua → init.luau} +1 -1
  18. package/out/theme/interfaces/iconSizes/IconSizes.luau +2 -0
  19. package/out/theme/interfaces/iconSizes/init.luau +2 -0
  20. package/out/theme/interfaces/index.d.ts +13 -13
  21. package/out/theme/interfaces/{init.lua → init.luau} +1 -1
  22. package/out/theme/interfaces/palette/Palette.d.ts +0 -1
  23. package/out/theme/interfaces/palette/Palette.luau +2 -0
  24. package/out/theme/interfaces/palette/colorTokens/ColorTokens.d.ts +1 -2
  25. package/out/theme/interfaces/palette/colorTokens/ColorTokens.luau +2 -0
  26. package/out/theme/interfaces/palette/colorTokens/init.luau +2 -0
  27. package/out/theme/interfaces/palette/colors/{Blue.lua → Blue.luau} +1 -1
  28. package/out/theme/interfaces/palette/colors/Colors.d.ts +0 -1
  29. package/out/theme/interfaces/palette/colors/Colors.luau +2 -0
  30. package/out/theme/interfaces/palette/colors/Common.d.ts +0 -1
  31. package/out/theme/interfaces/palette/colors/{Common.lua → Common.luau} +1 -1
  32. package/out/theme/interfaces/palette/colors/{Dark.lua → Dark.luau} +1 -1
  33. package/out/theme/interfaces/palette/colors/{Gray.lua → Gray.luau} +1 -1
  34. package/out/theme/interfaces/palette/colors/{Green.lua → Green.luau} +1 -1
  35. package/out/theme/interfaces/palette/colors/{Light.lua → Light.luau} +1 -1
  36. package/out/theme/interfaces/palette/colors/{Magenta.lua → Magenta.luau} +1 -1
  37. package/out/theme/interfaces/palette/colors/{Orange.lua → Orange.luau} +1 -1
  38. package/out/theme/interfaces/palette/colors/{Purple.lua → Purple.luau} +1 -1
  39. package/out/theme/interfaces/palette/colors/{Red.lua → Red.luau} +1 -1
  40. package/out/theme/interfaces/palette/colors/{Turquoise.lua → Turquoise.luau} +1 -1
  41. package/out/theme/interfaces/palette/colors/{Yellow.lua → Yellow.luau} +1 -1
  42. package/out/theme/interfaces/palette/colors/{init.lua → init.luau} +1 -1
  43. package/out/theme/interfaces/palette/index.d.ts +2 -2
  44. package/out/theme/interfaces/palette/{init.lua → init.luau} +1 -1
  45. package/out/theme/interfaces/spacing/Borders.luau +2 -0
  46. package/out/theme/interfaces/spacing/Padding.luau +2 -0
  47. package/out/theme/interfaces/spacing/Shape.luau +2 -0
  48. package/out/theme/interfaces/spacing/Spacing.luau +2 -0
  49. package/out/theme/interfaces/spacing/init.luau +2 -0
  50. package/out/theme/interfaces/theme/Theme.d.ts +3 -3
  51. package/out/theme/interfaces/theme/Theme.luau +2 -0
  52. package/out/theme/interfaces/theme/ThemeConstants.d.ts +4 -4
  53. package/out/theme/interfaces/theme/ThemeConstants.luau +2 -0
  54. package/out/theme/interfaces/theme/ThemeOptions.luau +2 -0
  55. package/out/theme/interfaces/theme/init.luau +2 -0
  56. package/out/theme/interfaces/tokens/Tokens.luau +2 -0
  57. package/out/theme/interfaces/tokens/init.luau +2 -0
  58. package/out/theme/interfaces/typography/{FontFamilies.lua → FontFamilies.luau} +1 -1
  59. package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +0 -2
  60. package/out/theme/interfaces/typography/FontFamilyOptions.luau +2 -0
  61. package/out/theme/interfaces/typography/FontSizeOptions.d.ts +0 -1
  62. package/out/theme/interfaces/typography/FontSizeOptions.luau +2 -0
  63. package/out/theme/interfaces/typography/{FontSizes.lua → FontSizes.luau} +1 -1
  64. package/out/theme/interfaces/typography/ThemeTypography.luau +2 -0
  65. package/out/theme/interfaces/typography/{Variants.lua → Variants.luau} +1 -1
  66. package/out/theme/interfaces/typography/{init.lua → init.luau} +1 -1
  67. package/out/theme/styles/index.d.ts +5 -5
  68. package/out/theme/styles/{init.lua → init.luau} +1 -1
  69. package/out/theme/styles/types/WriteableStyle.d.ts +0 -2
  70. package/out/theme/styles/types/WriteableStyle.luau +2 -0
  71. package/out/theme/styles/types/init.luau +2 -0
  72. package/out/theme/styles/types/styles.d.ts +0 -2
  73. package/out/theme/styles/types/styles.luau +2 -0
  74. package/out/theme/styles/utilities/classNames.d.ts +2 -3
  75. package/out/theme/styles/utilities/classNames.luau +33 -0
  76. package/out/theme/styles/utilities/{createStyles.lua → createStyles.luau} +1 -1
  77. package/out/theme/styles/utilities/{init.lua → init.luau} +1 -1
  78. package/out/theme/styles/utilities/makeStyles.d.ts +1 -1
  79. package/out/theme/styles/utilities/{makeStyles.lua → makeStyles.luau} +1 -1
  80. package/out/theme/themes/DarkTheme.d.ts +1 -1
  81. package/out/theme/themes/{DarkTheme.lua → DarkTheme.luau} +1 -1
  82. package/out/theme/themes/LightTheme.d.ts +1 -1
  83. package/out/theme/themes/{LightTheme.lua → LightTheme.luau} +1 -1
  84. package/out/theme/themes/{init.lua → init.luau} +1 -1
  85. package/out/theme/types/init.luau +2 -0
  86. package/out/theme/types/types.d.ts +5 -8
  87. package/out/theme/types/{types.lua → types.luau} +1 -1
  88. package/out/theme/utilites/{Color3FromHex.lua → Color3FromHex.luau} +2 -2
  89. package/out/theme/utilites/{init.lua → init.luau} +1 -1
  90. package/out/ui/constants/{ImageConstants.lua → ImageConstants.luau} +1 -1
  91. package/out/ui/constants/{LayoutConstants.lua → LayoutConstants.luau} +1 -1
  92. package/out/ui/constants/{init.lua → init.luau} +1 -1
  93. package/out/ui/enums/Directions.luau +12 -0
  94. package/out/ui/enums/Icons.luau +44 -0
  95. package/out/ui/enums/Orientations.luau +8 -0
  96. package/out/ui/enums/{init.lua → init.luau} +1 -1
  97. package/out/ui/index.d.ts +34 -34
  98. package/out/ui/{init.lua → init.luau} +1 -1
  99. package/out/ui/packages/button/components/Button.d.ts +3 -5
  100. package/out/ui/packages/button/components/{Button.lua → Button.luau} +63 -88
  101. package/out/ui/packages/button/components/Button.styles.d.ts +1 -1
  102. package/out/ui/packages/button/components/{Button.styles.lua → Button.styles.luau} +1 -1
  103. package/out/ui/packages/button/index.d.ts +3 -3
  104. package/out/ui/packages/button/{init.lua → init.luau} +1 -1
  105. package/out/ui/packages/button/types/ButtonColor.luau +2 -0
  106. package/out/ui/packages/button/types/ButtonSize.luau +2 -0
  107. package/out/ui/packages/button/types/ButtonVariant.luau +2 -0
  108. package/out/ui/packages/button/types/init.luau +2 -0
  109. package/out/ui/packages/divider/components/Divider.d.ts +2 -6
  110. package/out/ui/packages/divider/components/{Divider.lua → Divider.luau} +6 -10
  111. package/out/ui/packages/divider/components/Divider.styles.d.ts +1 -1
  112. package/out/ui/packages/divider/components/{Divider.styles.lua → Divider.styles.luau} +1 -1
  113. package/out/ui/packages/divider/{init.lua → init.luau} +1 -1
  114. package/out/ui/packages/icon/components/Icon.d.ts +2 -5
  115. package/out/ui/packages/icon/components/{Icon.lua → Icon.luau} +5 -9
  116. package/out/ui/packages/icon/components/Icon.styles.d.ts +1 -1
  117. package/out/ui/packages/icon/components/{Icon.styles.lua → Icon.styles.luau} +1 -1
  118. package/out/ui/packages/icon/{init.lua → init.luau} +1 -1
  119. package/out/ui/packages/iconButton/components/IconButton.d.ts +2 -5
  120. package/out/ui/packages/iconButton/components/{IconButton.lua → IconButton.luau} +18 -20
  121. package/out/ui/packages/iconButton/components/IconButton.styles.d.ts +1 -1
  122. package/out/ui/packages/iconButton/components/{IconButton.styles.lua → IconButton.styles.luau} +1 -1
  123. package/out/ui/packages/iconButton/{init.lua → init.luau} +1 -1
  124. package/out/ui/packages/index.d.ts +11 -11
  125. package/out/ui/packages/{init.lua → init.luau} +1 -1
  126. package/out/ui/packages/input/components/Input.d.ts +2 -6
  127. package/out/ui/packages/input/components/{Input.lua → Input.luau} +38 -69
  128. package/out/ui/packages/input/components/Input.styles.d.ts +1 -1
  129. package/out/ui/packages/input/components/{Input.styles.lua → Input.styles.luau} +1 -1
  130. package/out/ui/packages/input/index.d.ts +3 -3
  131. package/out/ui/packages/input/{init.lua → init.luau} +1 -1
  132. package/out/ui/packages/input/types/InputColor.luau +2 -0
  133. package/out/ui/packages/input/types/InputMargin.luau +2 -0
  134. package/out/ui/packages/input/types/InputVariant.luau +2 -0
  135. package/out/ui/packages/input/types/init.luau +2 -0
  136. package/out/ui/packages/progressBar/components/ProgressBar.d.ts +1 -3
  137. package/out/ui/packages/progressBar/components/ProgressBar.luau +46 -0
  138. package/out/ui/packages/progressBar/components/ProgressBar.styles.d.ts +1 -1
  139. package/out/ui/packages/progressBar/components/{ProgressBar.styles.lua → ProgressBar.styles.luau} +1 -1
  140. package/out/ui/packages/progressBar/{init.lua → init.luau} +1 -1
  141. package/out/ui/packages/shadow/components/Shadow.d.ts +0 -1
  142. package/out/ui/packages/shadow/components/{Shadow.lua → Shadow.luau} +14 -24
  143. package/out/ui/packages/shadow/components/Shadow.styles.d.ts +1 -1
  144. package/out/ui/packages/shadow/components/{Shadow.styles.lua → Shadow.styles.luau} +1 -1
  145. package/out/ui/packages/shadow/{init.lua → init.luau} +1 -1
  146. package/out/ui/packages/sidebar/components/Sidebar.d.ts +1 -3
  147. package/out/ui/packages/sidebar/components/Sidebar.luau +26 -0
  148. package/out/ui/packages/sidebar/components/Sidebar.styles.d.ts +1 -1
  149. package/out/ui/packages/sidebar/components/{Sidebar.styles.lua → Sidebar.styles.luau} +1 -1
  150. package/out/ui/packages/sidebar/index.d.ts +1 -1
  151. package/out/ui/packages/sidebar/{init.lua → init.luau} +1 -1
  152. package/out/ui/packages/sidebar/types/SidebarType.luau +2 -0
  153. package/out/ui/packages/sidebar/types/init.luau +2 -0
  154. package/out/ui/packages/toast/components/Toast.d.ts +0 -1
  155. package/out/ui/packages/toast/components/{Toast.lua → Toast.luau} +21 -29
  156. package/out/ui/packages/toast/components/Toast.styles.d.ts +1 -1
  157. package/out/ui/packages/toast/components/{Toast.styles.lua → Toast.styles.luau} +1 -1
  158. package/out/ui/packages/toast/enums/ToastVariants.luau +11 -0
  159. package/out/ui/packages/toast/{init.lua → init.luau} +1 -1
  160. package/out/ui/packages/toast/interfaces/ToastEvent.luau +2 -0
  161. package/out/ui/packages/treeView/components/TreeView.d.ts +2 -4
  162. package/out/ui/packages/treeView/components/{TreeView.lua → TreeView.luau} +116 -149
  163. package/out/ui/packages/treeView/components/TreeView.styles.d.ts +1 -1
  164. package/out/ui/packages/treeView/components/{TreeView.styles.lua → TreeView.styles.luau} +1 -1
  165. package/out/ui/packages/treeView/{init.lua → init.luau} +1 -1
  166. package/out/ui/packages/treeView/interfaces/Branch.luau +2 -0
  167. package/out/ui/packages/treeView/interfaces/Leaf.luau +2 -0
  168. package/out/ui/packages/treeView/interfaces/Tree.luau +2 -0
  169. package/out/ui/packages/typography/components/Typography.d.ts +2 -4
  170. package/out/ui/packages/typography/components/{Typography.lua → Typography.luau} +7 -22
  171. package/out/ui/packages/typography/components/Typography.styles.d.ts +1 -1
  172. package/out/ui/packages/typography/components/{Typography.styles.lua → Typography.styles.luau} +1 -1
  173. package/out/ui/packages/typography/index.d.ts +3 -3
  174. package/out/ui/packages/typography/{init.lua → init.luau} +1 -1
  175. package/out/ui/packages/typography/types/TypographyAlignment.luau +2 -0
  176. package/out/ui/packages/typography/types/TypographyColor.luau +2 -0
  177. package/out/ui/packages/typography/types/TypographyDisplay.luau +2 -0
  178. package/out/ui/packages/typography/types/init.luau +2 -0
  179. package/package.json +16 -19
  180. package/out/theme/interfaces/iconSizes/IconSizes.lua +0 -2
  181. package/out/theme/interfaces/iconSizes/init.lua +0 -2
  182. package/out/theme/interfaces/palette/Palette.lua +0 -2
  183. package/out/theme/interfaces/palette/colorTokens/ColorTokens.lua +0 -2
  184. package/out/theme/interfaces/palette/colorTokens/init.lua +0 -2
  185. package/out/theme/interfaces/palette/colors/Colors.lua +0 -2
  186. package/out/theme/interfaces/spacing/Borders.lua +0 -2
  187. package/out/theme/interfaces/spacing/Padding.lua +0 -2
  188. package/out/theme/interfaces/spacing/Shape.lua +0 -2
  189. package/out/theme/interfaces/spacing/Spacing.lua +0 -2
  190. package/out/theme/interfaces/spacing/init.lua +0 -2
  191. package/out/theme/interfaces/theme/Theme.lua +0 -2
  192. package/out/theme/interfaces/theme/ThemeConstants.lua +0 -2
  193. package/out/theme/interfaces/theme/ThemeOptions.lua +0 -2
  194. package/out/theme/interfaces/theme/init.lua +0 -2
  195. package/out/theme/interfaces/tokens/Tokens.lua +0 -2
  196. package/out/theme/interfaces/tokens/init.lua +0 -2
  197. package/out/theme/interfaces/typography/FontFamilyOptions.lua +0 -2
  198. package/out/theme/interfaces/typography/FontSizeOptions.lua +0 -2
  199. package/out/theme/interfaces/typography/ThemeTypography.lua +0 -2
  200. package/out/theme/styles/types/WriteableStyle.lua +0 -2
  201. package/out/theme/styles/types/init.lua +0 -2
  202. package/out/theme/styles/types/styles.lua +0 -2
  203. package/out/theme/styles/utilities/classNames.lua +0 -31
  204. package/out/theme/types/init.lua +0 -2
  205. package/out/ui/enums/Directions.lua +0 -23
  206. package/out/ui/enums/Icons.lua +0 -87
  207. package/out/ui/enums/Orientations.lua +0 -15
  208. package/out/ui/packages/button/types/ButtonColor.lua +0 -2
  209. package/out/ui/packages/button/types/ButtonSize.lua +0 -2
  210. package/out/ui/packages/button/types/ButtonVariant.lua +0 -2
  211. package/out/ui/packages/button/types/init.lua +0 -2
  212. package/out/ui/packages/input/types/InputColor.lua +0 -2
  213. package/out/ui/packages/input/types/InputMargin.lua +0 -2
  214. package/out/ui/packages/input/types/InputVariant.lua +0 -2
  215. package/out/ui/packages/input/types/init.lua +0 -2
  216. package/out/ui/packages/progressBar/components/ProgressBar.lua +0 -76
  217. package/out/ui/packages/sidebar/components/Sidebar.lua +0 -46
  218. package/out/ui/packages/sidebar/types/SidebarType.lua +0 -2
  219. package/out/ui/packages/sidebar/types/init.lua +0 -2
  220. package/out/ui/packages/toast/enums/ToastVariants.lua +0 -20
  221. package/out/ui/packages/toast/interfaces/ToastEvent.lua +0 -2
  222. package/out/ui/packages/treeView/interfaces/Branch.lua +0 -2
  223. package/out/ui/packages/treeView/interfaces/Leaf.lua +0 -2
  224. package/out/ui/packages/treeView/interfaces/Tree.lua +0 -2
  225. package/out/ui/packages/typography/types/TypographyAlignment.lua +0 -2
  226. package/out/ui/packages/typography/types/TypographyColor.lua +0 -2
  227. package/out/ui/packages/typography/types/TypographyDisplay.lua +0 -2
  228. package/out/ui/packages/typography/types/init.lua +0 -2
@@ -1,6 +1,6 @@
1
- -- Compiled with roblox-ts v2.2.0
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
- for _k, _v in root do
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 _children = {}
63
- local _length = #_children
64
- local _attributes_1 = {}
65
- for _k, _v in margin do
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[Roact.Event.ReturnPressedFromOnScreenKeyboard] = function(rbx)
86
- if onEnterPressed then
87
- local text = rbx.Text
88
- onEnterPressed(text)
89
- end
90
- end
91
- _attributes_2[Roact.Event.Focused] = onFocus
92
- _attributes_2[Roact.Event.FocusLost] = function(rbx)
93
- if onTextChanged then
94
- local text = rbx.Text
95
- onTextChanged(text)
96
- end
97
- if onBlur then
98
- onBlur()
99
- end
100
- end
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
- for _k, _v in stroke do
105
- _attributes_3[_k] = _v
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
- for _k, _v in corner do
119
- _attributes_3[_k] = _v
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
- _children_1.Field = Roact.createElement("TextBox", _attributes_2, _children_2)
127
- _children_1[_length_1 + 1] = Roact.createElement(Divider, {
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
- for _k, _v in font do
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.createFragment({
151
- HelperText = Roact.createElement("TextLabel", _attributes_3),
152
- }))
127
+ _condition_3 = (Roact.jsx("textlabel", _attributes_3))
153
128
  end
154
- if _condition_3 then
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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
@@ -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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Input = TS.import(script, script, "components", "Input").default
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.ProgressBar = TS.import(script, script, "components", "ProgressBar").default
@@ -1,4 +1,3 @@
1
- /// <reference types="roact" />
2
1
  import Roact from "@rbxts/roact";
3
2
  declare function Shadow(): Roact.Element;
4
3
  declare const _default: typeof Shadow;
@@ -1,6 +1,6 @@
1
- -- Compiled with roblox-ts v2.2.0
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
- for _k, _v in container do
47
- _attributes[_k] = _v
48
- end
45
+ local _attributes = table.clone(container)
46
+ setmetatable(_attributes, nil)
49
47
  _attributes.ZIndex = zIndex
50
- _attributes[Roact.Event.AncestryChanged] = function(rbx, parent)
51
- if parent:IsA("GuiObject") and rbx.Parent == parent then
52
- setParent(parent)
53
- end
54
- end
55
- local _children = {}
56
- local _length = #_children
57
- local _child = cornerRadius ~= nil and Roact.createFragment({
58
- Corner = Roact.createElement("UICorner", {
59
- CornerRadius = cornerRadius,
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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Shadow = TS.import(script, script, "components", "Shadow").default
@@ -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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
@@ -1,4 +1,4 @@
1
1
  export { default as Sidebar } from "./components/Sidebar";
2
2
  export { SidebarProps } from "./components/Sidebar";
3
3
  export * from "./components/Sidebar";
4
- export { SidebarType } from "./types";
4
+ export { SidebarType } from "./types/index";
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Sidebar = TS.import(script, script, "components", "Sidebar").default
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,3 @@
1
- /// <reference types="roact" />
2
1
  import Roact from "@rbxts/roact";
3
2
  import ToastVariants from "../enums/ToastVariants";
4
3
  export interface ToastProps {
@@ -1,7 +1,7 @@
1
- -- Compiled with roblox-ts v2.2.0
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
- [Roact.Ref] = frameRef,
58
+ Ref = frameRef,
59
59
  }
60
60
  for _k, _v in container do
61
61
  _attributes[_k] = _v
62
62
  end
63
- local _children = {
64
- Corner = Roact.createElement("UICorner", {
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,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
4
  local createStyles = _theme.createStyles
@@ -0,0 +1,11 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local ToastVariants = {
3
+ default = "default",
4
+ success = "success",
5
+ error = "error",
6
+ warning = "warning",
7
+ }
8
+ local default = ToastVariants
9
+ return {
10
+ default = default,
11
+ }
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Toast = TS.import(script, script, "components", "Toast").default
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -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 {